sqllogictest
Artifact Content
Not logged in

Artifact ba043cbf0284edc014d4f9a5f904c28ffa09227e:


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 15 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-1
SELECT + + MIN ( + 43 ) FROM tab2 AS cor0
----
43

query I rowsort
SELECT DISTINCT 88 + col2 AS col0 FROM tab1 AS cor0
----
147
156
184

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5
SELECT DISTINCT - col2 AS col0, 65 AS col1 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query II rowsort label-5
SELECT DISTINCT - col2 AS col0, 65 AS col1 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) = NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 - col2 col0 FROM tab2 cor0
----
-106
-71
-88

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

onlyif mysql # DIV for integer division: 
query I rowsort label-9
SELECT + + col2 DIV col0 - + - 24 + - - col2 FROM tab1 AS cor0
----
121
83
92

skipif mysql # not compatible
query I rowsort label-9
SELECT + + col2 / col0 - + - 24 + - - col2 FROM tab1 AS cor0
----
121
83
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col2 col2 FROM tab1 AS cor0 WHERE ( + col2 ) = 50
----

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

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

query I rowsort
SELECT DISTINCT 29 * + - ( - - 98 ) - + + 85 FROM tab2
----
-2927

query I rowsort
SELECT 89 * + col0 AS col0 FROM tab0
----
1335
7743
8633

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

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

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

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

query II rowsort
SELECT ALL + col0 * - ( + col0 ) - - 67 AS col0, + 89 AS col1 FROM tab1 cor0
----
-2534
89
-7158
89
-8214
89

query I rowsort
SELECT DISTINCT ( + 9 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT + 17 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 90 IS NOT NULL
----

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

query I rowsort
SELECT ALL 11 + + 30 FROM tab2 AS cor0
----
41
41
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-22
SELECT ALL + - 49 * - - CAST( + col0 AS SIGNED ) * + - col2 FROM tab1 AS cor0
----
239904
245735
303212

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL + - 49 * - - CAST ( + col0 AS INTEGER ) * + - col2 FROM tab1 AS cor0
----
239904
245735
303212

query I rowsort
SELECT DISTINCT - col1 * - col1 * - col0 + + 1 + col0 + - + 37 AS col0 FROM tab0 AS cor0
----
-36
-38316
-98436

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

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

query II rowsort
SELECT col0, - 78 AS col2 FROM tab0
----
15
-78
87
-78
97
-78

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( 93 + + - col0, col1 * col0, - - 51, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-27
SELECT col2 * + col2, - 23 * + - col2 * + col2 + - col0 - - CAST( - + col0 AS SIGNED ) AS col2 FROM tab0
----
100
2126
2209
50777
9801
225229

skipif mysql # not compatible
query II rowsort label-27
SELECT col2 * + col2, - 23 * + - col2 * + col2 + - col0 - - CAST ( - + col0 AS INTEGER ) AS col2 FROM tab0
----
100
2126
2209
50777
9801
225229

query I rowsort
SELECT ALL ( - 47 ) AS col2 FROM tab0
----
-47
-47
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-29
SELECT DISTINCT + col2 + - + col2, + 15 DIV + col2 FROM tab2
----
0
0

skipif mysql # not compatible
query II rowsort label-29
SELECT DISTINCT + col2 + - + col2, + 15 / + col2 FROM tab2
----
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT + COUNT( * ) + - ( 80 ) FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-31
SELECT + COUNT ( * ) + - ( 80 ) FROM tab0 AS cor0
----
-77

query I rowsort
SELECT DISTINCT - col2 * + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 51 > + + 45 / - col1 + - 72
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE 18 > 29 + - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query II rowsort label-35
SELECT - + 80 / - 13, - col2 AS col1 FROM tab1 AS cor0
----
6
-59
6
-68
6
-96

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE 33 NOT BETWEEN NULL AND - col2
----
-59
-68
-96

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

query II rowsort
SELECT 28 - 72 AS col2, col0 * 85 AS col2 FROM tab0 AS cor0
----
-44
1275
-44
7395
-44
8245

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > + 59
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-40
SELECT - CAST( - col2 AS SIGNED ), + col0 col2 FROM tab1 AS cor0
----
59
85
68
91
96
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-40
SELECT - CAST ( - col2 AS INTEGER ), + col0 col2 FROM tab1 AS cor0
----
59
85
68
91
96
51

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT ( - 65 ) + + + col1 AS col2, + 15 AS col0 FROM tab0 WHERE NULL BETWEEN col0 AND NULL
----

query II rowsort
SELECT DISTINCT 81 AS col0, - col0 FROM tab2
----
81
-46
81
-64
81
-75

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-51
SELECT - col2 / - CAST( - 86 AS SIGNED ), col0 * col1 AS col1 FROM tab2 AS cor0 WHERE NOT + 15 + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-51
SELECT - col2 / - CAST ( - 86 AS INTEGER ), col0 * col1 AS col1 FROM tab2 AS cor0 WHERE NOT + 15 + - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-52
SELECT ALL + col1 AS col2 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN - col1 - - col1 AND + - col0
----

skipif mysql # not compatible
query I rowsort label-52
SELECT ALL + col1 AS col2 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN - col1 - - col1 AND + - col0
----

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

query I rowsort
SELECT ALL - + 35 * 27 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cbf2ccf5c4236bcabecb3031312857c3

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

skipif mysql # not compatible
query I rowsort label-55
SELECT DISTINCT + ( COUNT ( * ) ) * - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT DISTINCT + MIN( - - 36 ) * 69 FROM tab0 AS cor0
----
2484

skipif mysql # not compatible
query I rowsort label-57
SELECT DISTINCT + MIN ( - - 36 ) * 69 FROM tab0 AS cor0
----
2484

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE 80 * + - 22 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT + COUNT( * ) + COUNT( ALL - 76 ) FROM tab1 cor0 WHERE 27 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-59
SELECT + COUNT ( * ) + COUNT ( ALL - 76 ) FROM tab1 cor0 WHERE 27 IS NULL
----
0

query II rowsort
SELECT DISTINCT col2 AS col1, - ( - col0 ) FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT ALL 96 + COUNT( * ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-61
SELECT ALL 96 + COUNT ( * ) FROM tab1
----
99

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

skipif mysql # not compatible
query I rowsort label-62
SELECT COUNT ( * ) / + 29 AS col1 FROM tab0
----
0

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

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

query III rowsort
SELECT * FROM tab1 WHERE - + 69 >= NULL
----

query II rowsort
SELECT ALL + col0 AS col2, - col1 * - col2 AS col0 FROM tab1
----
51
1344
85
295
91
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT 43 + - + COUNT( * ) FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-66
SELECT 43 + - + COUNT ( * ) FROM tab2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-67
SELECT ALL - col1 * + 68 - - CAST( - col1 AS SIGNED ) * + col2 col2 FROM tab0
----
-1638
-167
-9315

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-67
SELECT ALL - col1 * + 68 - - CAST ( - col1 AS INTEGER ) * + col2 col2 FROM tab0
----
-1638
-167
-9315

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

query I rowsort
SELECT col0 + - - ( + col2 ) AS col0 FROM tab0
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-70
SELECT 92 + + CAST( + + col0 AS SIGNED ) FROM tab0
----
107
179
189

skipif mysql # not compatible
query I rowsort label-70
SELECT 92 + + CAST ( + + col0 AS INTEGER ) FROM tab0
----
107
179
189

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 92 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + ( - - 91 )
----

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

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

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

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

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

query II rowsort
SELECT ALL - col0 * + col0, + 26 AS col2 FROM tab2
----
-2116
26
-4096
26
-5625
26

query II rowsort
SELECT 47 * - 36, - 86 AS col0 FROM tab1, tab0 AS cor0
----
18 values hashing to e343fa199a553dec74fcec0f1aeb63e3

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col2 > - 20
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - 71 * - + col1, col1 AS col1 FROM tab2 AS cor0
----
3621
51
4757
67
5467
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 23 col2 FROM tab2 AS cor0
----
-1334
-529
-920

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

skipif mysql # not compatible
query I rowsort label-83
SELECT DISTINCT - MIN ( + 39 ) AS col1 FROM tab2
----
-39

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

skipif mysql # not compatible
query I rowsort label-84
SELECT - - MAX ( - + col2 ) FROM tab1 cor0
----
-59

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

query II rowsort
SELECT - 62, ( + col1 ) FROM tab2 AS cor0
----
-62
51
-62
67
-62
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT - 52 * + MAX( ALL - col0 ) FROM tab1 AS cor0
----
2652

skipif mysql # not compatible
query I rowsort label-88
SELECT - 52 * + MAX ( ALL - col0 ) FROM tab1 AS cor0
----
2652

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT ALL + SUM( 58 ) AS col0 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-90
SELECT ALL + SUM ( 58 ) AS col0 FROM tab2 AS cor0
----
174

onlyif mysql # DIV for integer division: 
query I rowsort label-91
SELECT + 26 DIV - col0 col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-91
SELECT + 26 / - col0 col1 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT - 39 * + SUM( DISTINCT + 37 ) FROM tab2
----
-1443

skipif mysql # not compatible
query I rowsort label-92
SELECT - 39 * + SUM ( DISTINCT + 37 ) FROM tab2
----
-1443

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT ALL + 5 - - COUNT( * ) AS col1 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-93
SELECT ALL + 5 - - COUNT ( * ) AS col1 FROM tab1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT DISTINCT + 66 * - COUNT( * ) * - 24 col2 FROM tab2
----
4752

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-94
SELECT DISTINCT + 66 * - COUNT ( * ) * - 24 col2 FROM tab2
----
4752

query I rowsort
SELECT ALL col2 * + ( 4 ) AS col1 FROM tab0
----
188
396
40

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT ALL + 72 * - COUNT( * ) FROM tab1
----
-216

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL + 72 * - COUNT ( * ) FROM tab1
----
-216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-97
SELECT + 31 + - col0 * + CAST( + - 20 AS SIGNED ) FROM tab2
----
1311
1531
951

skipif mysql # not compatible
query I rowsort label-97
SELECT + 31 + - col0 * + CAST ( + - 20 AS INTEGER ) FROM tab2
----
1311
1531
951

query I rowsort
SELECT - col0 + - 99 + + - 8 AS col1 FROM tab0 AS cor0
----
-122
-194
-204

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

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

query I rowsort
SELECT ALL - 27 + - - ( + col0 ) * col0 AS col0 FROM tab1 AS cor0
----
2574
7198
8254

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT ALL ( + - col0 ) * ( + - col0 ) AS col0 FROM tab0
----
225
7569
9409

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

skipif mysql # not compatible
query I rowsort label-103
SELECT DISTINCT - 94 / col1 AS col1 FROM tab2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-104
SELECT col1 DIV - 6 AS col2 FROM tab1
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-104
SELECT col1 / - 6 AS col2 FROM tab1
----
-2
-7
0

onlyif mysql # DIV for integer division: 
query I rowsort label-105
SELECT col1 DIV - - 75 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-105
SELECT col1 / - - 75 FROM tab0 cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 33 col2 FROM tab0 AS cor0
----
-2673
-33
-693

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

skipif mysql # not compatible
query I rowsort label-107
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE + col0 BETWEEN NULL AND 29
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT - MIN( DISTINCT 1 ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-108
SELECT - MIN ( DISTINCT 1 ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-1

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-111
SELECT - + col2 col2, 93 * - + col2 / + col2 FROM tab1 AS cor0
----
-59
-93
-68
-93
-96
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT ALL - ( - MIN( DISTINCT - 12 ) ) col1 FROM tab2 WHERE NULL BETWEEN - + ( - + col2 ) AND - + 5
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-112
SELECT ALL - ( - MIN ( DISTINCT - 12 ) ) col1 FROM tab2 WHERE NULL BETWEEN - + ( - + col2 ) AND - + 5
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 <> 40 + - - col1 + + + 38 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT ALL + ( + col0 ) * + - col2 AS col2 FROM tab1
----
-4896
-5015
-6188

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

skipif mysql # not compatible
query I rowsort label-117
SELECT ALL - col1 / + 66 FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL col2 + - 76 AS col2 FROM tab1 AS cor0
----
-17
-8
20

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-121
SELECT DISTINCT 98 DIV - + col0 AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-121
SELECT DISTINCT 98 / - + col0 AS col2 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT 44 * + - MAX( 13 ) FROM tab2
----
-572

skipif mysql # not compatible
query I rowsort label-122
SELECT 44 * + - MAX ( 13 ) FROM tab2
----
-572

onlyif mysql # DIV for integer division: 
query I rowsort label-123
SELECT - 81 DIV + 35 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

skipif mysql # not compatible
query I rowsort label-123
SELECT - 81 / + 35 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT - col1 * + col1 * + col0 + + 7 FROM tab2 cor0
----
-119639
-336668
-379449

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT DISTINCT - SUM( + col1 ) + + - 57 col2 FROM tab1 AS cor0
----
-123

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

query I rowsort
SELECT DISTINCT - 16 AS col2 FROM tab0 cor0
----
-16

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-130
SELECT - COUNT( DISTINCT - col1 ) + - - 99 * + 45 FROM tab1
----
4452

skipif mysql # not compatible
query I rowsort label-130
SELECT - COUNT ( DISTINCT - col1 ) + - - 99 * + 45 FROM tab1
----
4452

query I rowsort
SELECT ALL col1 * ( + + col2 ) FROM tab2
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query II rowsort label-132
SELECT - col0 * - - 58 DIV 58 AS col2, ( + 17 ) FROM tab0
----
-15
17
-87
17
-97
17

skipif mysql # not compatible
query II rowsort label-132
SELECT - col0 * - - 58 / 58 AS col2, ( + 17 ) FROM tab0
----
-15
17
-87
17
-97
17

query I rowsort
SELECT DISTINCT col2 * - - 88 FROM tab1
----
5192
5984
8448

query III rowsort
SELECT * FROM tab2 WHERE - 72 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-135
SELECT * FROM tab2 WHERE - col2 * + 36 * - + col1 NOT BETWEEN + col0 + - - col1 AND - 91 * - - CAST( + 58 AS SIGNED ) + + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-135
SELECT * FROM tab2 WHERE - col2 * + 36 * - + col1 NOT BETWEEN + col0 + - - col1 AND - 91 * - - CAST ( + 58 AS INTEGER ) + + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * - 6 AS col2 FROM tab0
----
-126
-486
-6

query I rowsort
SELECT DISTINCT col2 + 35 FROM tab2
----
58
75
93

query III rowsort
SELECT DISTINCT - 18 * + col1 * + col1 AS col1, 99 AS col0, col2 AS col1 FROM tab2 cor0
----
9 values hashing to ee4ffd7a77f445a3e0f74301b3803b3e

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

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

query I rowsort
SELECT ALL + 75 AS col2 FROM tab0 cor0
----
75
75
75

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

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

query I rowsort
SELECT ( + 71 ) + + 93 * + 49 FROM tab2
----
4628
4628
4628

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

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

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

query I rowsort
SELECT 9 + col0 AS col0 FROM tab0
----
106
24
96

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

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

skipif mysql # not compatible
query I rowsort label-147
SELECT 37 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE + col0 + 9 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT + SUM( col0 ) * AVG ( + 12 - - 57 ) AS col0 FROM tab0 WHERE + 84 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-148
SELECT + SUM ( col0 ) * AVG ( + 12 - - 57 ) AS col0 FROM tab0 WHERE + 84 IS NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-150
SELECT + COUNT( - 8 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-150
SELECT + COUNT ( - 8 ) AS col1 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 92 IN ( + col2 * - 30 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-152
SELECT + ( 51 ) - col2 DIV + 51 FROM tab0
----
50
51
51

skipif mysql # not compatible
query I rowsort label-152
SELECT + ( 51 ) - col2 / + 51 FROM tab0
----
50
51
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-153
SELECT MIN( CAST( NULL AS SIGNED ) ) + - COUNT( * ) * 86 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-153
SELECT MIN ( CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) * 86 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE col2 >= ( + 14 * + 29 )
----

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

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

query I rowsort
SELECT DISTINCT col1 + 91 AS col1 FROM tab0 WHERE ( - col0 * + 42 ) >= ( NULL )
----

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

query I rowsort
SELECT - 57 + col2 AS col2 FROM tab1
----
11
2
39

query I rowsort
SELECT + 13 - col2 * + col0 FROM tab2
----
-1045
-2547
-4337

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT DISTINCT SUM( ALL 30 ) + 97 FROM tab2 AS cor0
----
187

skipif mysql # not compatible
query I rowsort label-163
SELECT DISTINCT SUM ( ALL 30 ) + 97 FROM tab2 AS cor0
----
187

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

onlyif mysql # DIV for integer division: 
query I rowsort label-165
SELECT col2 + 97 DIV col0 AS col2 FROM tab1 AS cor0
----
60
69
97

skipif mysql # not compatible
query I rowsort label-165
SELECT col2 + 97 / col0 AS col2 FROM tab1 AS cor0
----
60
69
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 + col2 * + 76 col1 FROM tab2 AS cor0
----
1764
3056
4424

query I rowsort
SELECT col1 + + ( 35 ) AS col0 FROM tab2
----
102
112
86

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-168
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE NOT col0 IS NOT NULL
----
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-172
SELECT ALL - col0 + - col0 DIV + col0 FROM tab1 AS cor0
----
-52
-86
-92

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL - col0 + - col0 / + col0 FROM tab1 AS cor0
----
-52
-86
-92

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

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

query I rowsort
SELECT ALL - + 87 + + col2 FROM tab1 AS cor0
----
-19
-28
9

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-176
SELECT DISTINCT 91 DIV COUNT( * ) + COUNT( * ) * 81 FROM tab0 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-176
SELECT DISTINCT 91 / COUNT ( * ) + COUNT ( * ) * 81 FROM tab0 AS cor0
----
273

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-179
SELECT col1 - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-179
SELECT col1 - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT ALL COUNT( * ) * COUNT( DISTINCT 49 ) - 18 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-180
SELECT ALL COUNT ( * ) * COUNT ( DISTINCT 49 ) - 18 FROM tab1 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-181
SELECT * FROM tab2 AS cor0 WHERE col1 * CAST( NULL AS SIGNED ) < ( 56 )
----

skipif mysql # not compatible
query III rowsort label-181
SELECT * FROM tab2 AS cor0 WHERE col1 * CAST ( NULL AS INTEGER ) < ( 56 )
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-183
SELECT DISTINCT + ( 34 ) + MAX( ALL col2 ) DIV + 63 col0 FROM tab2 AS cor0
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-183
SELECT DISTINCT + ( 34 ) + MAX ( ALL col2 ) / + 63 col0 FROM tab2 AS cor0
----
34

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

query I rowsort
SELECT ALL col0 * - + 94 * - 93 FROM tab0
----
131130
760554
847974

query I rowsort
SELECT ALL col2 - + col2 * col1 FROM tab1
----
-1248
-236
-3128

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

query I rowsort
SELECT 10 - - 36 FROM tab1
----
46
46
46

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE + col0 * 86 NOT IN ( col2 )
----
51
67
77

query I rowsort
SELECT + 32 - + + col0 FROM tab1
----
-19
-53
-59

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

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

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

query I rowsort
SELECT ALL 86 - + 59 + - 13 FROM tab2
----
14
14
14

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 48 * col0 ) IS NOT NULL
----

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

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

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

query I rowsort
SELECT ALL 58 - ( + col2 ) FROM tab2 AS cor0 WHERE + 46 > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + col0 + col1 * ( 35 + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT COUNT( * ) * + 39 AS col2 FROM tab0 WHERE NOT ( + 72 + 37 * - col2 ) BETWEEN NULL AND 57
----
0

skipif mysql # not compatible
query I rowsort label-203
SELECT COUNT ( * ) * + 39 AS col2 FROM tab0 WHERE NOT ( + 72 + 37 * - col2 ) BETWEEN NULL AND 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT COUNT( * ) + COUNT( * ) FROM tab1, tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-204
SELECT COUNT ( * ) + COUNT ( * ) FROM tab1, tab2 AS cor0
----
18

query I rowsort
SELECT 29 + + 10 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ALL + 27 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-208
SELECT + AVG ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0
----
NULL

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

skipif mysql # not compatible
query II rowsort label-209
SELECT ALL 47 AS col1, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
47
NULL
47
NULL
47
NULL

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

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

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

query I rowsort
SELECT col0 * - 83 + + ( + 65 ) FROM tab0 AS cor0
----
-1180
-7156
-7986

query I rowsort
SELECT DISTINCT - 55 - col0 AS col2 FROM tab0 cor0 WHERE NOT 4 + ( + col1 ) - col1 IS NULL
----
-142
-152
-70

query I rowsort
SELECT + - 68 * - + col0 * 18 AS col0 FROM tab2 AS cor0
----
56304
78336
91800

query I rowsort
SELECT ALL col0 * + 89 * - 70 AS col1 FROM tab1 AS cor0
----
-317730
-529550
-566930

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 90 * + col0 * - 72 ) = + col0
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - + 44 ) <= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # DIV for integer division: 
query I rowsort label-222
SELECT + 82 DIV - + col1 + - col0 * - 48 + + col2 AS col1 FROM tab2
----
2230
3111
3657

skipif mysql # not compatible
query I rowsort label-222
SELECT + 82 / - + col1 + - col0 * - 48 + + col2 AS col1 FROM tab2
----
2230
3111
3657

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-226
SELECT - ( + col2 ) FROM tab0 AS cor0 WHERE + col0 * - - CAST( col0 AS SIGNED ) < ( 18 * + col0 )
----
-47

skipif mysql # not compatible
query I rowsort label-226
SELECT - ( + col2 ) FROM tab0 AS cor0 WHERE + col0 * - - CAST ( col0 AS INTEGER ) < ( 18 * + col0 )
----
-47

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( - 81 * - col0 ) > NULL
----

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

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL + SUM ( - col1 ) AS col1 FROM tab0
----
-103

query I rowsort
SELECT - col1 * - 32 FROM tab2
----
1632
2144
2464

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-231
SELECT * FROM tab2 WHERE ( - 86 * - - col2 + CAST( NULL AS SIGNED ) * col2 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-231
SELECT * FROM tab2 WHERE ( - 86 * - - col2 + CAST ( NULL AS INTEGER ) * col2 ) IS NOT NULL
----

query I rowsort
SELECT ( + col1 ) * - col2 + + 29 + + 57 * col2 + col0 AS col0 FROM tab0
----
-1084
476
5670

query I rowsort
SELECT - col0 + - 27 AS col1 FROM tab0 AS cor0
----
-114
-124
-42

query I rowsort
SELECT + 0 + - 11 FROM tab2 AS cor0
----
-11
-11
-11

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

query I rowsort
SELECT ALL + + 16 - 73 AS col1 FROM tab0 AS cor0
----
-57
-57
-57

query I rowsort
SELECT ALL - col2 + + + col0 AS col2 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT DISTINCT + col1 + 15 AS col1 FROM tab0 AS cor0
----
16
36
96

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT ALL - col2 * col2 FROM tab1 WHERE NOT 93 * col0 + ( 83 ) IN ( col1 )
----
-3481
-4624
-9216

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

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

query I rowsort
SELECT DISTINCT + 43 - ( col0 ) FROM tab1
----
-42
-48
-8

query II rowsort
SELECT - col1 AS col2, 30 AS col0 FROM tab2
----
-51
30
-67
30
-77
30

query I rowsort
SELECT + 22 * + 95 FROM tab2, tab0 AS cor0
----
9 values hashing to d4514437b9b3405c0b852dbf88dc2d30

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

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

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

query I rowsort
SELECT col2 / 41 FROM tab0 AS cor0 WHERE NOT ( + col1 - + 38 ) NOT BETWEEN ( ( 95 ) * col2 ) AND ( - col2 * col1 )
----

query II rowsort
SELECT ALL + - 7, - col2 + + - col0 AS col2 FROM tab1 cor0
----
-7
-144
-7
-147
-7
-159

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN 62 - + 77 AND ( NULL )
----

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

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

query I rowsort
SELECT ALL - - 21 FROM tab1 AS cor0 WHERE NULL > + 92
----

query I rowsort
SELECT ALL col2 + + col0 * - 35 AS col1 FROM tab1 AS cor0
----
-1689
-2916
-3117

query II rowsort
SELECT DISTINCT + 50, + ( + col0 ) - ( 61 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 * col2 * + - 24 + - - col2 FROM tab0 cor0
----
-16873
-20870
-230373

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT 88 * - COUNT( * ) - + 54 AS col0 FROM tab0 AS cor0
----
-318

skipif mysql # not compatible
query I rowsort label-256
SELECT 88 * - COUNT ( * ) - + 54 AS col0 FROM tab0 AS cor0
----
-318

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT - MAX( ALL + + 37 ) * + COUNT( * ) FROM tab0 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-257
SELECT - MAX ( ALL + + 37 ) * + COUNT ( * ) FROM tab0 AS cor0
----
-111

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

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

query I rowsort
SELECT + ( col1 ) - - col1 FROM tab0 AS cor0 WHERE NOT ( + 63 ) IS NULL
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT COUNT( * ) * - - 54 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-260
SELECT COUNT ( * ) * - - 54 FROM tab1
----
162

query II rowsort
SELECT + col1 AS col0, col0 * + - col0 AS col0 FROM tab2
----
51
-2116
67
-5625
77
-4096

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-262
SELECT * FROM tab0 WHERE NOT - col1 + - col2 * + CAST( - - 24 AS SIGNED ) = ( - col2 * - 77 + col0 + - col0 * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-262
SELECT * FROM tab0 WHERE NOT - col1 + - col2 * + CAST ( - - 24 AS INTEGER ) = ( - col2 * - 77 + col0 + - col0 * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-263
SELECT - MIN( - col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-263
SELECT - MIN ( - col0 ) FROM tab0
----
97

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 < + col2 * col0 / - - col0 * col1 + - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-265
SELECT DISTINCT col0 DIV col1 + - col1 + - col0 FROM tab0
----
-1
-104
-96

skipif mysql # not compatible
query I rowsort label-265
SELECT DISTINCT col0 / col1 + - col1 + - col0 FROM tab0
----
-1
-104
-96

query I rowsort
SELECT ALL + 36 + + - 58 FROM tab2 AS cor0
----
-22
-22
-22

query I rowsort
SELECT DISTINCT + 55 * + col2 + col1 + - 43 + - 84 * - col2 AS col0 FROM tab1 AS cor0
----
13315
8163
9456

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

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

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

query I rowsort
SELECT ALL - 75 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - ( + - col0 ) )
----
-75
-75
-75

query II rowsort
SELECT DISTINCT + col2 + - 22 AS col1, + col2 AS col0 FROM tab0 cor0
----
-12
10
25
47
77
99

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

query I rowsort
SELECT DISTINCT + 36 * - 78 + ( - col0 ) * - col2 + col2 FROM tab1 AS cor0
----
2184
2266
3448

onlyif mysql # DIV for integer division: 
query I rowsort label-274
SELECT - col0 DIV - - 5 AS col0 FROM tab1 AS cor0
----
-10
-17
-18

skipif mysql # not compatible
query I rowsort label-274
SELECT - col0 / - - 5 AS col0 FROM tab1 AS cor0
----
-10
-17
-18

query I rowsort
SELECT 14 - - col0 FROM tab2 AS cor0
----
60
78
89

query I rowsort
SELECT ALL - - 92 + ( - 71 ) + col2 AS col0 FROM tab2 AS cor0
----
44
61
79

query I rowsort
SELECT DISTINCT col2 * + + col1 + col1 AS col2 FROM tab2 AS cor0
----
1224
3157
3953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 - + ( - col2 ) + 14 col2 FROM tab0 AS cor0 WHERE 97 IS NOT NULL
----
-63
16
46

onlyif mysql # aggregate syntax: 
query I rowsort label-279
SELECT - COUNT( * ) - - COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-279
SELECT - COUNT ( * ) - - COUNT ( * ) FROM tab0 cor0
----
0

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

skipif mysql # not compatible
query I rowsort label-280
SELECT ALL + COUNT ( * ) FROM tab0 cor0 WHERE - col1 <= + col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT DISTINCT - COUNT( * ) col1 FROM tab2 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-281
SELECT DISTINCT - COUNT ( * ) col1 FROM tab2 WHERE NULL IS NULL
----
-3

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT - 79 * + COUNT( * ) * + MIN( DISTINCT col2 ) col0 FROM tab0
----
-2370

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

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

query I rowsort
SELECT - 76 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( + ( + 36 ), + col1 * col1 + 61 + + - 31 - 23 )
----

query I rowsort
SELECT 9 * + col1 AS col0 FROM tab0 WHERE NOT ( - col2 ) < + 92
----

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

skipif mysql # not compatible
query I rowsort label-289
SELECT DISTINCT 6 * + - COUNT ( * ) FROM tab0
----
-18

query I rowsort
SELECT + 45 * - - 97 AS col2 FROM tab1
----
4365
4365
4365

query I rowsort
SELECT ALL col0 * - + 13 FROM tab2
----
-598
-832
-975

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-294
SELECT ALL - + CAST( + col1 AS SIGNED ) + - - col2 DIV - + col1 * - col2 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL - + CAST ( + col1 AS INTEGER ) + - - col2 / - + col1 * - col2 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + - col2 * 33 AS col0 FROM tab2 AS cor0
----
-1320
-1914
-759

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

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

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

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

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

query I rowsort
SELECT + col1 + + - col2 + - col1 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN ( 30 ) AND NULL
----
51
14
96
85
5
59

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

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

query I rowsort
SELECT DISTINCT + 91 * - - col2 AS col2 FROM tab0 cor0
----
4277
9009
910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 71 + - col0 + - col0, ( col1 ) + - col0 col2 FROM tab1
----
-173
-37
-241
-80
-253
-44

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

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

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

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

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

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

query I rowsort
SELECT ALL - col2 * + - ( + col2 ) + - col1 AS col1 FROM tab1 AS cor0
----
3476
4577
9202

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < + 61
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT - ( - col1 ) + 66 / col0 * col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-314
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - ( - col1 ) + 66 / col0 * col0 = NULL
----
0

query I rowsort
SELECT - 2 * - 8 AS col1 FROM tab2
----
16
16
16

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NULL BETWEEN + col0 AND - ( + col0 )
----

query II rowsort
SELECT DISTINCT + col1 * - col1, + col0 FROM tab2
----
-2601
46
-4489
75
-5929
64

query I rowsort
SELECT + 3 FROM tab1 WHERE NOT NULL > - + 93 / - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-319
SELECT CAST( - 84 AS SIGNED ), + col0 FROM tab2
----
-84
46
-84
64
-84
75

skipif mysql # not compatible
query II rowsort label-319
SELECT CAST ( - 84 AS INTEGER ), + col0 FROM tab2
----
-84
46
-84
64
-84
75

query I rowsort
SELECT + col2 * + 13 FROM tab1
----
1248
767
884

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 22 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT + col2 * - col0 + - - 72 + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-618
-711
-9434

query I rowsort
SELECT + col0 * + + 33 AS col2 FROM tab2 AS cor0
----
1518
2112
2475

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE 9 * - 18 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-328
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE 9 * - 18 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 + + col1 + + 10, - 73 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-330
SELECT ALL + 19 DIV - 78 + - - col2 + - col2 * + - ( 54 ) * ( + 94 ) + col2 FROM tab2 AS cor0
----
116794
203120
294524

skipif mysql # not compatible
query I rowsort label-330
SELECT ALL + 19 / - 78 + - - col2 + - col2 * + - ( 54 ) * ( + 94 ) + col2 FROM tab2 AS cor0
----
116794
203120
294524

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT + SUM( DISTINCT - - col0 ) FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-331
SELECT + SUM ( DISTINCT - - col0 ) FROM tab2 cor0
----
185

query I rowsort
SELECT ALL 93 + col0 FROM tab1
----
144
178
184

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-334
SELECT col0 AS col0, - 86 DIV - + col2 AS col0 FROM tab2
----
46
3
64
2
75
1

skipif mysql # not compatible
query II rowsort label-334
SELECT col0 AS col0, - 86 / - + col2 AS col0 FROM tab2
----
46
3
64
2
75
1

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

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

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

skipif mysql # not compatible
query I rowsort label-336
SELECT ALL COUNT ( ALL 19 ) + - + ( + COUNT ( * ) ) * + COUNT ( * ) AS col0 FROM tab0
----
-6

query I rowsort
SELECT ALL 51 + - + 4 + 72 * + + 81 * 93 - - + col0 * col2 FROM tab1 WHERE col2 + - ( + col2 ) + + col0 / - ( 83 ) IS NULL AND NOT + 26 * - col0 IS NULL
----

query II rowsort
SELECT ALL 58 AS col2, col2 AS col2 FROM tab0
----
58
10
58
47
58
99

query I rowsort
SELECT - col1 * + col0 AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + ( - + 15 ) + - + 77 col2 FROM tab2
----
-15
-25
-41

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

skipif mysql # not compatible
query I rowsort label-341
SELECT ALL - - 64 * + 32 * + COUNT ( * ) + - 61 AS col0 FROM tab2 AS cor0
----
6083

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-345
SELECT ALL - COUNT( * ) DIV - 96 + 37 * + 7 FROM tab0 AS cor0
----
259

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL - COUNT ( * ) / - 96 + 37 * + 7 FROM tab0 AS cor0
----
259

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT DISTINCT - COUNT( - col1 ) * 61 + + COUNT( * ) FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-346
SELECT DISTINCT - COUNT ( - col1 ) * 61 + + COUNT ( * ) FROM tab0
----
-180

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

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

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

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

query I rowsort
SELECT 83 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT DISTINCT col0 * + - col2 * + 63 FROM tab1
----
-308448
-315945
-389844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 30, 61 * col0 + - 15 col0 FROM tab2
----
30
2791
30
3889
30
4560

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

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

query I rowsort
SELECT 41 * - - 12 FROM tab1
----
492
492
492

query I rowsort
SELECT ALL - - col1 * 17 + + ( col1 ) FROM tab2 WHERE + col0 IS NOT NULL
----
1206
1386
918

query I rowsort
SELECT col0 * + - 22 FROM tab1
----
-1122
-1870
-2002

query I rowsort
SELECT DISTINCT - + 54 AS col2 FROM tab0 AS cor0
----
-54

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

skipif mysql # not compatible
query I rowsort label-357
SELECT + CAST ( - + col0 AS INTEGER ) * col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT MAX( DISTINCT + 32 ) * + 38 FROM tab2 AS cor0
----
1216

skipif mysql # not compatible
query I rowsort label-358
SELECT MAX ( DISTINCT + 32 ) * + 38 FROM tab2 AS cor0
----
1216

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-360
SELECT 55 DIV col2 * + 69 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-360
SELECT 55 / col2 * + 69 AS col0 FROM tab1
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-362
SELECT DISTINCT 85 DIV col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-362
SELECT DISTINCT 85 / col0 FROM tab2
----
1

query I rowsort
SELECT - col2 * - + 86 AS col0 FROM tab0
----
4042
8514
860

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT - SUM( ALL 68 ) AS col2 FROM tab0
----
-204

skipif mysql # not compatible
query I rowsort label-364
SELECT - SUM ( ALL 68 ) AS col2 FROM tab0
----
-204

query I rowsort
SELECT ALL 71 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT ALL 90 * + col0 + + col1 AS col1 FROM tab2 AS cor0
----
4191
5837
6817

query I rowsort
SELECT DISTINCT - 74 + + 49 * - - col1 FROM tab2 AS cor0
----
2425
3209
3699

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 59 - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + col2 + col0 FROM tab0 AS cor0
----
-19
195
76

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT ALL - + ( + + 39 ) + - - COUNT( * ) FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-372
SELECT ALL - + ( + + 39 ) + - - COUNT ( * ) FROM tab1 AS cor0
----
-36

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 + - col0 + - - col1 + + col1 col0 FROM tab2 AS cor0
----
147
150
181

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

onlyif mysql # DIV for integer division: 
query I rowsort label-377
SELECT ALL col2 DIV - - ( + - col0 ) AS col2 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL col2 / - - ( + - col0 ) AS col2 FROM tab0
----
-1
-3
0

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

skipif mysql # not compatible
query I rowsort label-378
SELECT - MIN ( - col0 ) * + COUNT ( * ) FROM tab0
----
291

query I rowsort
SELECT - col2 * - 20 FROM tab2
----
1160
460
800

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-382
SELECT col2 DIV 86 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-382
SELECT col2 / 86 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 41 + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1303
-254
-3155

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-386
SELECT DISTINCT SUM( - + CAST( - 86 AS SIGNED ) ) AS col0 FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-386
SELECT DISTINCT SUM ( - + CAST ( - 86 AS INTEGER ) ) AS col0 FROM tab0
----
258

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

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

query I rowsort
SELECT col2 * - ( + col2 ) FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT ALL 49 * - col0 FROM tab2
----
-2254
-3136
-3675

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + ( col2 ) col0 FROM tab1 AS cor0
----
144
147
159

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 * + col1 col1 FROM tab2 AS cor0
----
1139
1309
867

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

query I rowsort
SELECT - 14 + + col1 AS col0 FROM tab2
----
37
53
63

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

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

query II rowsort
SELECT DISTINCT - col1 AS col2, 54 AS col2 FROM tab2
----
-51
54
-67
54
-77
54

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

query I rowsort
SELECT DISTINCT + 68 + - col0 + - 99 * - 95 AS col0 FROM tab1 cor0
----
9382
9388
9422

query I rowsort
SELECT col2 / - + col2 AS col0 FROM tab2 WHERE ( NOT ( NOT NULL = ( 22 ) ) )
----

query III rowsort
SELECT * FROM tab0 WHERE ( - 71 IS NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-402
SELECT DISTINCT + COUNT( * ) AS col2, - 15 AS col1 FROM tab1, tab2 AS cor0
----
9
-15

skipif mysql # not compatible
query II rowsort label-402
SELECT DISTINCT + COUNT ( * ) AS col2, - 15 AS col1 FROM tab1, tab2 AS cor0
----
9
-15

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

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

query I rowsort
SELECT - 87 + ( - 2 ) FROM tab1
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT DISTINCT + COUNT( * ) * + - COUNT( * ) + + 1 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-405
SELECT DISTINCT + COUNT ( * ) * + - COUNT ( * ) + + 1 FROM tab1 AS cor0
----
-8

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

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

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

query I rowsort
SELECT DISTINCT - col1 - - - 32 FROM tab2 AS cor0
----
-109
-83
-99

query II rowsort
SELECT - col1 AS col2, - 56 AS col0 FROM tab0
----
-1
-56
-21
-56
-81
-56

query I rowsort
SELECT ALL - + 8 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-411
SELECT DISTINCT - COUNT ( * ) col0, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3
-3

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

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

query I rowsort
SELECT ALL 74 * ( 3 ) AS col2 FROM tab1 AS cor0
----
222
222
222

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-417
SELECT COUNT ( DISTINCT col1 ) col1 FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, + col2 * - col1 - - col0 - + 34 FROM tab2
----
-46
-1161
-64
-3050
-75
-3845

onlyif mysql # aggregate syntax: 
query II rowsort label-419
SELECT ALL + MIN( ALL + col0 ), + COUNT( * ) + 4 AS col0 FROM tab0
----
15
7

skipif mysql # not compatible
query II rowsort label-419
SELECT ALL + MIN ( ALL + col0 ), + COUNT ( * ) + 4 AS col0 FROM tab0
----
15
7

query II rowsort
SELECT ALL + col2, 70 FROM tab0
----
10
70
47
70
99
70

onlyif mysql # DIV for integer division: 
query I rowsort label-421
SELECT + col2 DIV col2 FROM tab1 WHERE NOT 10 IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-421
SELECT + col2 / col2 FROM tab1 WHERE NOT 10 IS NULL
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-422
SELECT ALL 25 AS col1, + CAST( COUNT( * ) AS SIGNED ) FROM tab2
----
25
3

skipif mysql # not compatible
query II rowsort label-422
SELECT ALL 25 AS col1, + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2
----
25
3

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 82 BETWEEN col2 AND NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 col2 FROM tab0 AS cor0 WHERE 38 >= + - col1 * + + col2
----
10
47
99

query II rowsort
SELECT - 18 AS col1, - 3 AS col2 FROM tab0 AS cor0
----
-18
-3
-18
-3
-18
-3

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

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

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

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

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

query I rowsort
SELECT - - 10 * 81 * + col1 * col0 AS col2 FROM tab2 AS cor0
----
1900260
3991680
4070250

query I rowsort
SELECT ALL + col1 * - 43 AS col2 FROM tab1 AS cor0
----
-2021
-215
-602

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

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

query I rowsort
SELECT col1 + + 84 AS col2 FROM tab0 AS cor0
----
105
165
85

query I rowsort
SELECT + 46 + - 14 FROM tab1 AS cor0
----
32
32
32

query I rowsort
SELECT ALL + col0 + + + col1 + + 20 AS col1 FROM tab0 cor0
----
116
118
128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + 53 col1 FROM tab2 AS cor0
----
117
128
99

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 78 + - + 72 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * - 74 FROM tab0
----
-1110
-6438
-7178

query I rowsort
SELECT + 42 + + 64 * col2 + + col0 AS col1 FROM tab1 WHERE - ( col2 ) IS NOT NULL
----
3903
4485
6237

query I rowsort
SELECT DISTINCT col2 - 20 AS col0 FROM tab0
----
-10
27
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, - col1 * - + 96 AS col1 FROM tab2
----
-46
4896
-64
7392
-75
6432

query I rowsort
SELECT 24 * + - col2 FROM tab2
----
-1392
-552
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 62 col2 FROM tab2
----
2852
3968
4650

query I rowsort
SELECT DISTINCT - col2 * - ( + col0 ) FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-451
SELECT - col1, + ( col1 ) DIV 83 + - ( + 97 ) + - CAST( - - ( 28 ) AS SIGNED ) * col1 DIV - col2 AS col2 FROM tab0
----
-1
-97
-21
-39
-81
-49

skipif mysql # not compatible
query II rowsort label-451
SELECT - col1, + ( col1 ) / 83 + - ( + 97 ) + - CAST ( - - ( 28 ) AS INTEGER ) * col1 / - col2 AS col2 FROM tab0
----
-1
-97
-21
-39
-81
-49

onlyif mysql # DIV for integer division: 
query II rowsort label-452
SELECT - col0 - + + col2 DIV col0 AS col2, - col1 FROM tab2
----
-46
-51
-64
-77
-75
-67

skipif mysql # not compatible
query II rowsort label-452
SELECT - col0 - + + col2 / col0 AS col2, - col1 FROM tab2
----
-46
-51
-64
-77
-75
-67

query II rowsort
SELECT DISTINCT + col0 + 93 - - - 32 + - + col0 + - 74 * + col2 AS col0, col0 FROM tab2 AS cor0
----
-1641
46
-2899
64
-4231
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * + + 26 IS NOT NULL
----

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

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

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

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

query I rowsort
SELECT ALL 89 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
89
89
89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT - SUM( + 31 ) AS col0 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-459
SELECT - SUM ( + 31 ) AS col0 FROM tab0
----
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 52 col1 FROM tab0
----
4524
5044
780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + col2 ) AS col0, - col0 * + col2 col2 FROM tab0
----
10
-870
47
-705
99
-9603

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-465
SELECT DISTINCT MIN ( + col2 ) col2 FROM tab0
----
10

query III rowsort
SELECT col0, 54 + + 70 AS col0, col2 FROM tab2
----
9 values hashing to 6a5f1d91a7324029e3ac35f3f88e89cb

query II rowsort
SELECT DISTINCT col0 AS col2, col0 + col2 FROM tab1
----
51
147
85
144
91
159

query I rowsort
SELECT + 49 * + col0 AS col1 FROM tab2
----
2254
3136
3675

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE NOT + col2 NOT BETWEEN + col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-469
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT + col2 NOT BETWEEN + col1 AND NULL
----
0

query II rowsort
SELECT DISTINCT col0, 11 AS col1 FROM tab2
----
46
11
64
11
75
11

query II rowsort
SELECT + col1 + 89 + col2, col1 AS col2 FROM tab1 AS cor0
----
153
5
199
14
204
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-472
SELECT DISTINCT COUNT( * ) + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-472
SELECT DISTINCT COUNT ( * ) + - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-473
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - col0 + col2 * 3 * + - 94 AS col1 FROM tab0 WHERE + 87 = NULL
----

skipif mysql # not compatible
query I rowsort label-473
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - col0 + col2 * 3 * + - 94 AS col1 FROM tab0 WHERE + 87 = NULL
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-475
SELECT - 18 - - col0 DIV - col2 - + - col2, + col0 col1 FROM tab1 AS cor0
----
40
85
49
91
78
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-475
SELECT - 18 - - col0 / - col2 - + - col2, + col0 col1 FROM tab1 AS cor0
----
40
85
49
91
78
51

query I rowsort
SELECT 24 * - + col2 * - 50 - + 30 * + + 6 + - 37 * + + 11 * - 12 - + 78 AS col2 FROM tab2 AS cor0
----
32226
52626
74226

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE 31 IS NULL
----

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

query I rowsort
SELECT ALL + - 32 - - col1 * - col0 FROM tab0 AS cor0
----
-1247
-129
-1859

onlyif mysql # DIV for integer division: 
query I rowsort label-480
SELECT + col1 DIV + 3 - + col2 AS col0 FROM tab1 AS cor0
----
-53
-58
-92

skipif mysql # not compatible
query I rowsort label-480
SELECT + col1 / + 3 - + col2 AS col0 FROM tab1 AS cor0
----
-53
-58
-92

query I rowsort
SELECT ALL 99 + col2 AS col1 FROM tab2 AS cor0
----
122
139
157

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT ALL COUNT( * ) * - 19 - - 13 FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-482
SELECT ALL COUNT ( * ) * - 19 - - 13 FROM tab1
----
-44

query I rowsort
SELECT col0 - + col0 FROM tab0 WHERE - col0 + - - 80 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - 7 AS col1 FROM tab1 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT ALL 93 * - COUNT( * ) AS col0 FROM tab2
----
-279

skipif mysql # not compatible
query I rowsort label-485
SELECT ALL 93 * - COUNT ( * ) AS col0 FROM tab2
----
-279

query I rowsort
SELECT + - col1 FROM tab1 WHERE NOT - 31 IS NULL
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 97 * - col1 / + col2 / + + col0 <> NULL
----

query I rowsort
SELECT ALL - col2 * - col0 + + col0 * + 11 AS col0 FROM tab2 AS cor0
----
1564
3264
5175

query I rowsort
SELECT ALL - 23 * col1 FROM tab2
----
-1173
-1541
-1771

query I rowsort
SELECT 91 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-492
SELECT DISTINCT 82, COUNT( * ) AS col0 FROM tab2
----
82
3

skipif mysql # not compatible
query II rowsort label-492
SELECT DISTINCT 82, COUNT ( * ) AS col0 FROM tab2
----
82
3

query I rowsort
SELECT DISTINCT - col1 * - 65 AS col0 FROM tab2
----
3315
4355
5005

query II rowsort
SELECT ALL - 43 AS col2, + col1 AS col2 FROM tab1 AS cor0
----
-43
14
-43
47
-43
5

query I rowsort
SELECT + 35 * - col0 FROM tab0 AS cor0
----
-3045
-3395
-525

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-499
SELECT ALL - 15 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-45

query I rowsort
SELECT - 99 * 13 + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT col0 * - 24 * 63 + - col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-501
SELECT DISTINCT + 65 + + + col1 DIV col2 FROM tab0 AS cor0
----
65
66
67

skipif mysql # not compatible
query I rowsort label-501
SELECT DISTINCT + 65 + + + col1 / col2 FROM tab0 AS cor0
----
65
66
67

query II rowsort
SELECT ALL + 63, ( col1 ) FROM tab1 AS cor0
----
63
14
63
47
63
5

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT + 18 + + MAX( ALL + col2 ) AS col1 FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-503
SELECT + 18 + + MAX ( ALL + col2 ) AS col1 FROM tab1
----
114

query I rowsort
SELECT ALL col2 * 47 FROM tab0
----
2209
4653
470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-505
SELECT ALL 66 DIV + ( - COUNT( * ) ) AS col2 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-505
SELECT ALL 66 / + ( - COUNT ( * ) ) AS col2 FROM tab2
----
-22

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

onlyif mysql # DIV for integer division: 
query II rowsort label-507
SELECT ALL + col2 DIV + 63 AS col2, 7 + + 31 AS col0 FROM tab2
----
0
38
0
38
0
38

skipif mysql # not compatible
query II rowsort label-507
SELECT ALL + col2 / + 63 AS col2, 7 + + 31 AS col0 FROM tab2
----
0
38
0
38
0
38

onlyif mysql # DIV for integer division: 
query I rowsort label-508
SELECT col1 + + - col0 DIV - col1 AS col2 FROM tab1
----
17
22
48

skipif mysql # not compatible
query I rowsort label-508
SELECT col1 + + - col0 / - col1 AS col2 FROM tab1
----
17
22
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) + + col0 col1 FROM tab0
----
108
96
98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT - MAX( DISTINCT - + 1 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-511
SELECT - MAX ( DISTINCT - + 1 ) FROM tab1 AS cor0
----
1

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

skipif mysql # not compatible
query I rowsort label-512
SELECT ALL + 82 FROM tab0 WHERE NOT - + CAST ( NULL AS INTEGER ) + 9 IS NOT NULL
----
82
82
82

onlyif mysql # DIV for integer division: 
query I rowsort label-513
SELECT ( - col0 ) DIV - 79 + + + col2 + + 51 FROM tab2
----
109
74
91

skipif mysql # not compatible
query I rowsort label-513
SELECT ( - col0 ) / - 79 + + + col2 + + 51 FROM tab2
----
109
74
91

query I rowsort
SELECT DISTINCT - - 39 + - col2 * - 47 FROM tab0 AS cor0
----
2248
4692
509

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT DISTINCT + COUNT( * ) * - - COUNT( - col0 ) + + ( MIN( + 1 ) ) FROM tab2 cor0
----
10

skipif mysql # not compatible
query I rowsort label-515
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( - col0 ) + + ( MIN ( + 1 ) ) FROM tab2 cor0
----
10

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-516
SELECT ALL - col1 / + 96 - + col2 + + - col0 col0 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT DISTINCT MIN( ALL 40 ) AS col2 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-517
SELECT DISTINCT MIN ( ALL 40 ) AS col2 FROM tab0
----
40

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

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

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

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

query I rowsort
SELECT ALL + col1 * - col2 * + ( + 79 ) FROM tab1
----
-106176
-23305
-252484

query II rowsort
SELECT + 22 AS col2, + col1 AS col1 FROM tab2
----
22
51
22
67
22
77

query I rowsort
SELECT ALL 90 * - col1 FROM tab1
----
-1260
-4230
-450

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-525
SELECT ALL - ( - + col0 ), + CAST( + col0 AS SIGNED ) - - 23 AS col0 FROM tab0
----
15
38
87
110
97
120

skipif mysql # not compatible
query II rowsort label-525
SELECT ALL - ( - + col0 ), + CAST ( + col0 AS INTEGER ) - - 23 AS col0 FROM tab0
----
15
38
87
110
97
120

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

query I rowsort
SELECT ALL 54 - + 80 FROM tab1 WHERE NULL IS NULL
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT DISTINCT - MIN( - - 57 ) - + 21 FROM tab0 WHERE NULL IS NULL
----
-78

skipif mysql # not compatible
query I rowsort label-528
SELECT DISTINCT - MIN ( - - 57 ) - + 21 FROM tab0 WHERE NULL IS NULL
----
-78

query I rowsort
SELECT DISTINCT col2 * - 25 AS col1 FROM tab0 AS cor0
----
-1175
-2475
-250

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 < - - col2
----
87
21
10

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

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

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

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

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

query I rowsort
SELECT - + 24 * + col0 * 28 + - col2 FROM tab0 AS cor0
----
-10127
-58474
-65283

onlyif mysql # DIV for integer division: 
query I rowsort label-535
SELECT - 9 DIV - - 86 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-535
SELECT - 9 / - - 86 AS col0 FROM tab0
----
0
0
0

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

query I rowsort
SELECT + col1 * + 87 FROM tab1
----
1218
4089
435

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT - COUNT( * ) * 95 col2 FROM tab1
----
-285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-538
SELECT - COUNT ( * ) * 95 col2 FROM tab1
----
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT + COUNT( * ) * ( + 43 ) + 8 AS col0 FROM tab2
----
137

skipif mysql # not compatible
query I rowsort label-539
SELECT + COUNT ( * ) * ( + 43 ) + 8 AS col0 FROM tab2
----
137

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

query II rowsort
SELECT col2 + 41 * + col0, 81 AS col0 FROM tab0 cor0
----
3577
81
4076
81
662
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 + - col1 col1 FROM tab2 AS cor0
----
-12
-28
-38

query I rowsort
SELECT + - 14 + 72 - - + col2 * 88 * 5 AS col1 FROM tab0 AS cor0
----
20738
43618
4458

query I rowsort
SELECT ALL - - col2 - - ( - + col1 ) AS col0 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT DISTINCT 95 + - 98 AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT - MAX( col2 ) - 81 + + 8 + + + 77 FROM tab0 cor0
----
-95

skipif mysql # not compatible
query I rowsort label-546
SELECT - MAX ( col2 ) - 81 + + 8 + + + 77 FROM tab0 cor0
----
-95

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

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT ALL + SUM( 90 ) FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-548
SELECT ALL + SUM ( 90 ) FROM tab0
----
270

query II rowsort
SELECT DISTINCT 23, col0 FROM tab2
----
23
46
23
64
23
75

query I rowsort
SELECT DISTINCT - 91 * + + col0 FROM tab0
----
-1365
-7917
-8827

onlyif mysql # DIV for integer division: 
query II rowsort label-551
SELECT 14 DIV + 52 + + - col0 AS col2, 73 FROM tab0 AS cor0
----
-15
73
-87
73
-97
73

skipif mysql # not compatible
query II rowsort label-551
SELECT 14 / + 52 + + - col0 AS col2, 73 FROM tab0 AS cor0
----
-15
73
-87
73
-97
73

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

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

query I rowsort
SELECT ALL col0 * 72 FROM tab2
----
3312
4608
5400

query I rowsort
SELECT DISTINCT - 2 * col1 AS col0 FROM tab2
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT DISTINCT + SUM( ALL - col0 ) col1 FROM tab0
----
-199

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - ( + col2 ) / - + 73 + - + col2 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT ALL 59 * + MIN( ALL + col1 ) FROM tab1 AS cor0
----
295

skipif mysql # not compatible
query I rowsort label-559
SELECT ALL 59 * + MIN ( ALL + col1 ) FROM tab1 AS cor0
----
295

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

query I rowsort
SELECT DISTINCT - ( + - ( - - col1 ) ) AS col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT - 93 + - col1 AS col2 FROM tab0
----
-114
-174
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-563
SELECT - ( 62 ) + + col1 - + + col0 DIV - col2 AS col1 FROM tab0
----
-33
-61
19

skipif mysql # not compatible
query I rowsort label-563
SELECT - ( 62 ) + + col1 - + + col0 / - col2 AS col1 FROM tab0
----
-33
-61
19

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT MAX( DISTINCT + 77 ) * + COUNT( * ) AS col2 FROM tab1
----
231

skipif mysql # not compatible
query I rowsort label-564
SELECT MAX ( DISTINCT + 77 ) * + COUNT ( * ) AS col2 FROM tab1
----
231

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 96 ) > + col0 / 59
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 43 IS NULL )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-568
SELECT MAX( - 52 ) AS col2, 46 + + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-52
49

skipif mysql # not compatible
query II rowsort label-568
SELECT MAX ( - 52 ) AS col2, 46 + + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-52
49

query I rowsort
SELECT DISTINCT 25 + - + col1 AS col1 FROM tab1 AS cor0
----
-22
11
20

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN - col2 AND col2
----

query I rowsort
SELECT ALL col2 + + + col2 AS col2 FROM tab2 AS cor0
----
116
46
80

query II rowsort
SELECT ALL - 18 * + col0 - col1, col1 AS col1 FROM tab0
----
-1587
21
-1747
1
-351
81

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

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

query I rowsort
SELECT col0 FROM tab2 WHERE 75 + + - col0 + + 47 * - - col0 <= - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 83 * col1 * + - 70 - col1 col1 FROM tab1 WHERE NOT - col2 >= - 62 + + ( + - 49 ) + - col1
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-577
SELECT + 52 + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT - col0 <> NULL
----

skipif mysql # not compatible
query I rowsort label-577
SELECT + 52 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NOT - col0 <> NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-579
SELECT + - MAX( + col0 ) * - MAX( ALL + - CAST( + 23 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-1725

skipif mysql # not compatible
query I rowsort label-579
SELECT + - MAX ( + col0 ) * - MAX ( ALL + - CAST ( + 23 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-1725

query I rowsort
SELECT + + 7 - + + 39 AS col2 FROM tab1 AS cor0 WHERE NOT 50 IS NULL
----
-32
-32
-32

onlyif mysql # DIV for integer division: 
query II rowsort label-581
SELECT ALL + - col1 DIV + - col1 + - 20 col0, 30 * + col1 + + - 92 AS col0 FROM tab1 AS cor0
----
-19
1318
-19
328
-19
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-581
SELECT ALL + - col1 / + - col1 + - 20 col0, 30 * + col1 + + - 92 AS col0 FROM tab1 AS cor0
----
-19
1318
-19
328
-19
58

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

query I rowsort
SELECT DISTINCT col1 + + col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
102
134
154

query II rowsort
SELECT + + col0, 1 FROM tab2 WHERE NOT - col2 IS NULL
----
46
1
64
1
75
1

query I rowsort
SELECT DISTINCT - 65 AS col2 FROM tab1
----
-65

query I rowsort
SELECT + ( - 39 ) * - col1 AS col2 FROM tab1
----
1833
195
546

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 >= + col0 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 89 * + + col0 FROM tab2
----
4094
5696
6675

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 48 + + - 22 col1 FROM tab0 AS cor0
----
-4198
-4678
-742

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * 34 * - 62 >= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT col2 * - 66 + + 12 AS col1 FROM tab2
----
-1506
-2628
-3816

query I rowsort
SELECT 73 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * - col2 + col2 AS col0 FROM tab0 cor0
----
198
220
3854

query I rowsort
SELECT + + 95 AS col1 FROM tab0 AS cor0
----
95
95
95

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

query II rowsort
SELECT ALL - col1 AS col0, col1 / col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT + 63 + - + col1 * col1 FROM tab1
----
-133
-2146
38

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

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

query I rowsort
SELECT col2 - - col2 * 96 FROM tab1
----
5723
6596
9312

onlyif mysql # DIV for integer division: 
query I rowsort label-605
SELECT - col1 DIV - col0 - + col2 AS col1 FROM tab0
----
-10
-42
-99

skipif mysql # not compatible
query I rowsort label-605
SELECT - col1 / - col0 - + col2 AS col1 FROM tab0
----
-10
-42
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 79 col0, col0 + - - col0 FROM tab0
----
79
174
79
194
79
30

query II rowsort
SELECT 8 + 56, 63 + col2 FROM tab1 WHERE - + col1 * - 24 * - col0 = - col2 - + col1
----

query I rowsort
SELECT col0 + + 37 * + col0 * col0 AS col1 FROM tab0
----
280140
348230
8340

onlyif mysql # aggregate syntax: 
query II rowsort label-609
SELECT DISTINCT + 27, - ( COUNT( * ) ) * MIN( - + col1 ) AS col0 FROM tab1
----
27
141

skipif mysql # not compatible
query II rowsort label-609
SELECT DISTINCT + 27, - ( COUNT ( * ) ) * MIN ( - + col1 ) AS col0 FROM tab1
----
27
141

query I rowsort
SELECT DISTINCT + ( 67 ) * - 71 + col0 FROM tab0
----
-4660
-4670
-4742

query I rowsort
SELECT ALL + 62 * col2 AS col0 FROM tab0
----
2914
6138
620

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-613
SELECT * FROM tab2 AS cor0 WHERE col1 > + - CAST( + - col1 AS SIGNED ) / - 98
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-613
SELECT * FROM tab2 AS cor0 WHERE col1 > + - CAST ( + - col1 AS INTEGER ) / - 98
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col1 / - 85 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT DISTINCT + SUM( col0 ) + - + 90 * - COUNT( * ) FROM tab0 AS cor0
----
469

skipif mysql # not compatible
query I rowsort label-619
SELECT DISTINCT + SUM ( col0 ) + - + 90 * - COUNT ( * ) FROM tab0 AS cor0
----
469

query I rowsort
SELECT DISTINCT - col1 - - col0 * + 5 FROM tab2 AS cor0
----
179
243
308

onlyif mysql # DIV for integer division: 
query I rowsort label-621
SELECT + ( - 19 ) DIV + 79 + + col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-621
SELECT + ( - 19 ) / + 79 + + col2 FROM tab2
----
23
40
58

query II rowsort
SELECT DISTINCT 29 * col2, col2 + col0 AS col1 FROM tab1 AS cor0
----
1711
144
1972
159
2784
147

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-624
SELECT - - col2 DIV + - ( col1 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-624
SELECT - - col2 / + - ( col1 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * + 97 + ( col1 ) AS col1 FROM tab0 AS cor0
----
-2016
-7776
-96

query I rowsort
SELECT + col1 * - ( - 19 ) AS col1 FROM tab2 AS cor0
----
1273
1463
969

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-627
SELECT ALL CAST( - - 76 AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT NULL IN ( + ( - ( + col1 ) ) )
----

skipif mysql # not compatible
query I rowsort label-627
SELECT ALL CAST ( - - 76 AS REAL ) FROM tab1 AS cor0 WHERE NOT NULL IN ( + ( - ( + col1 ) ) )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-629
SELECT ALL + 22 DIV - + col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-629
SELECT ALL + 22 / - + col0 FROM tab0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

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

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

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

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

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

query I rowsort
SELECT + 89 * - col0 AS col1 FROM tab1 AS cor0
----
-4539
-7565
-8099

onlyif mysql # DIV for integer division: 
query I rowsort label-635
SELECT - 99 DIV - col0 FROM tab0 AS cor0
----
1
1
6

skipif mysql # not compatible
query I rowsort label-635
SELECT - 99 / - col0 FROM tab0 AS cor0
----
1
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT DISTINCT - MAX( + + col2 ) * - 10 AS col2 FROM tab2 AS cor0
----
580

skipif mysql # not compatible
query I rowsort label-636
SELECT DISTINCT - MAX ( + + col2 ) * - 10 AS col2 FROM tab2 AS cor0
----
580

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT 1 + + COUNT( ALL - 58 - col0 ) AS col1 FROM tab2 WHERE NOT NULL <= - col1
----
1

skipif mysql # not compatible
query I rowsort label-637
SELECT 1 + + COUNT ( ALL - 58 - col0 ) AS col1 FROM tab2 WHERE NOT NULL <= - col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT DISTINCT + COUNT( * ) * ( 4 ) AS col1 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-638
SELECT DISTINCT + COUNT ( * ) * ( 4 ) AS col1 FROM tab2
----
12

query I rowsort
SELECT 90 + + col0 * 46 FROM tab2
----
2206
3034
3540

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

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

skipif mysql # not compatible
query I rowsort label-641
SELECT COUNT ( * ) / COUNT ( * ) + - ( - 10 ) * 0 FROM tab2
----
1

query I rowsort
SELECT - col1 * + 51 + 33 AS col0 FROM tab2
----
-2568
-3384
-3894

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT DISTINCT + ( - COUNT( * ) ) + + COUNT( * ) * MAX( DISTINCT 20 ) FROM tab2 WHERE col1 + - 53 * + 37 NOT BETWEEN ( col2 ) AND - col2
----
57

skipif mysql # not compatible
query I rowsort label-646
SELECT DISTINCT + ( - COUNT ( * ) ) + + COUNT ( * ) * MAX ( DISTINCT 20 ) FROM tab2 WHERE col1 + - 53 * + 37 NOT BETWEEN ( col2 ) AND - col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT 57 * COUNT( * ) AS col0 FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-647
SELECT 57 * COUNT ( * ) AS col0 FROM tab2
----
171

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 14 col0 FROM tab0
----
-1
-73
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-650
SELECT ALL COUNT( * ) * - 31 col1 FROM tab1
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-650
SELECT ALL COUNT ( * ) * - 31 col1 FROM tab1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT DISTINCT MAX( ALL col0 ) + 90 col2 FROM tab2
----
165

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-652
SELECT * FROM tab2 WHERE col1 + - CAST( - col1 AS DECIMAL ) BETWEEN col0 * 73 AND + col1 - - 33
----

skipif mysql # not compatible
query III rowsort label-652
SELECT * FROM tab2 WHERE col1 + - CAST ( - col1 AS REAL ) BETWEEN col0 * 73 AND + col1 - - 33
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-654
SELECT CAST( col1 AS SIGNED ) * col1 + - col0 FROM tab0 WHERE ( - col0 ) BETWEEN col2 * + 73 AND col0
----

skipif mysql # not compatible
query I rowsort label-654
SELECT CAST ( col1 AS INTEGER ) * col1 + - col0 FROM tab0 WHERE ( - col0 ) BETWEEN col2 * + 73 AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-655
SELECT CAST( - col1 AS SIGNED ) * col0 FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-655
SELECT CAST ( - col1 AS INTEGER ) * col0 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT 31 - - col1 FROM tab2
----
108
82
98

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

onlyif mysql # DIV for integer division: 
query I rowsort label-658
SELECT 68 + + col0 DIV - col1 FROM tab1
----
51
65
67

skipif mysql # not compatible
query I rowsort label-658
SELECT 68 + + col0 / - col1 FROM tab1
----
51
65
67

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > ( 48 )
----

query I rowsort
SELECT - 75 + - col2 AS col2 FROM tab0
----
-122
-174
-85

query I rowsort
SELECT + col0 + - col0 * col1 FROM tab0 WHERE NOT 81 IS NULL
----
-1200
-1740
0

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT + MAX( 13 ) AS col2 FROM tab1 WHERE NOT + col1 IS NULL
----
13

skipif mysql # not compatible
query I rowsort label-662
SELECT + MAX ( 13 ) AS col2 FROM tab1 WHERE NOT + col1 IS NULL
----
13

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col2 ) <= ( 71 )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-669
SELECT ALL 52 DIV col1 AS col2 FROM tab0 cor0
----
0
2
52

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL 52 / col1 AS col2 FROM tab0 cor0
----
0
2
52

query I rowsort
SELECT ALL 10 * - col2 - + 80 FROM tab2 AS cor0
----
-310
-480
-660

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE + 71 / + ( col0 * + col2 ) <> - col0 * - col1
----
3

skipif mysql # not compatible
query I rowsort label-672
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + 71 / + ( col0 * + col2 ) <> - col0 * - col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT ALL + 85 * ( COUNT( ( col0 ) ) * 93 ) FROM tab2
----
23715

skipif mysql # not compatible
query I rowsort label-673
SELECT ALL + 85 * ( COUNT ( ( col0 ) ) * 93 ) FROM tab2
----
23715

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-674
SELECT + COUNT( * ) DIV 4 FROM tab1 AS cor0 CROSS JOIN tab0
----
2

skipif mysql # not compatible
query I rowsort label-674
SELECT + COUNT ( * ) / 4 FROM tab1 AS cor0 CROSS JOIN tab0
----
2

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 <> ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-676
SELECT - MAX ( DISTINCT + col2 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-174

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

query I rowsort
SELECT ALL + + 4 * 69 FROM tab2 AS cor0
----
276
276
276

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

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

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 <> ( - col2 )
----

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

query I rowsort
SELECT DISTINCT + - ( 94 ) * - 85 FROM tab1 AS cor0
----
7990

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

query I rowsort
SELECT ALL col0 * 30 FROM tab1
----
1530
2550
2730

query I rowsort
SELECT DISTINCT 72 * 72 * col1 AS col1 FROM tab0
----
108864
419904
5184

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

onlyif mysql # aggregate syntax: 
query I rowsort label-688
SELECT DISTINCT + 95 * - COUNT( * ) FROM tab0
----
-285

skipif mysql # not compatible
query I rowsort label-688
SELECT DISTINCT + 95 * - COUNT ( * ) FROM tab0
----
-285

onlyif mysql # DIV for integer division: 
query I rowsort label-689
SELECT - 99 DIV - - col1 AS col2 FROM tab0
----
-1
-4
-99

skipif mysql # not compatible
query I rowsort label-689
SELECT - 99 / - - col1 AS col2 FROM tab0
----
-1
-4
-99

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

onlyif mysql # DIV for integer division: 
query I rowsort label-691
SELECT ALL - 68 DIV - 84 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-691
SELECT ALL - 68 / - 84 AS col0 FROM tab2
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-692
SELECT + COUNT ( DISTINCT + CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab0
----
3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-694
SELECT DISTINCT + MAX( col0 ) col1 FROM tab0 WHERE col1 * col2 + col1 BETWEEN ( + col0 * - col0 ) AND ( - CAST( + 98 AS SIGNED ) * 59 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-694
SELECT DISTINCT + MAX ( col0 ) col1 FROM tab0 WHERE col1 * col2 + col1 BETWEEN ( + col0 * - col0 ) AND ( - CAST ( + 98 AS INTEGER ) * 59 )
----
NULL

query I rowsort
SELECT DISTINCT col1 * 23 + + col0 FROM tab0 cor0
----
120
1878
570

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT - + MAX( - 9 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-697
SELECT - + MAX ( - 9 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

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

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

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

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

query I rowsort
SELECT - 89 - - col2 FROM tab1 AS cor0
----
-21
-30
7

query I rowsort
SELECT - 90 - - 18 AS col2 FROM tab2 AS cor0
----
-72
-72
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + col2 col1 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT DISTINCT col2 - 93 FROM tab0
----
-46
-83
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-705
SELECT * FROM tab1 WHERE - 37 * + CAST( NULL AS SIGNED ) + col0 > + 62
----

skipif mysql # not compatible
query III rowsort label-705
SELECT * FROM tab1 WHERE - 37 * + CAST ( NULL AS INTEGER ) + col0 > + 62
----

query I rowsort
SELECT + col2 + col0 * - 96 + + + col1 * col0 FROM tab0
----
-178
-6515
-9116

query I rowsort
SELECT ALL - ( 49 ) FROM tab2
----
-49
-49
-49

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-709
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT - 24 NOT BETWEEN ( - + col2 ) AND col0 * + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-709
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT - 24 NOT BETWEEN ( - + col2 ) AND col0 * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT COUNT( * ) + COUNT( * ) * 34 AS col1 FROM tab2 WHERE ( col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-711
SELECT COUNT ( * ) + COUNT ( * ) * 34 AS col1 FROM tab2 WHERE ( col0 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT col2 * - col2 * + - ( 36 ) FROM tab0
----
352836
3600
79524

query I rowsort
SELECT + + 54 * - + 46 + - col2 FROM tab0 AS cor0
----
-2494
-2531
-2583

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT - + 30 * + COUNT( * ) * 50 FROM tab1 AS cor0
----
-4500

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

query I rowsort
SELECT 43 * + col2 AS col1 FROM tab0 AS cor0
----
2021
4257
430

query I rowsort
SELECT col0 * - 58 AS col1 FROM tab0 AS cor0
----
-5046
-5626
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT + MIN( ALL + col2 ) * + MAX( ALL + 96 ) FROM tab2 AS cor0
----
2208

skipif mysql # not compatible
query I rowsort label-720
SELECT + MIN ( ALL + col2 ) * + MAX ( ALL + 96 ) FROM tab2 AS cor0
----
2208

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

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

query I rowsort
SELECT ALL + 67 * - col0 AS col0 FROM tab0 cor0
----
-1005
-5829
-6499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 1 col0 FROM tab2 AS cor0
----
51
67
77

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

skipif mysql # not compatible
query I rowsort label-724
SELECT DISTINCT col1 * + 82 / + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + - 0 col2 FROM tab0
----
15
87
97

query I rowsort
SELECT 7 * - col1 + - col2 FROM tab2
----
-380
-527
-579

query I rowsort
SELECT - ( - 72 ) + ( + col1 ) AS col0 FROM tab0
----
153
73
93

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col0, - col2 + - + 99 col0 FROM tab2
----
-23
-122
-40
-139
-58
-157

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-733
SELECT col0 col1, CAST( + 7 AS SIGNED ) FROM tab0 cor0
----
15
7
87
7
97
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-733
SELECT col0 col1, CAST ( + 7 AS INTEGER ) FROM tab0 cor0
----
15
7
87
7
97
7

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

query II rowsort
SELECT DISTINCT - - 17, - 94 AS col0 FROM tab0 AS cor0
----
17
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT DISTINCT - MAX( ALL - col1 ) - 3 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
2

skipif mysql # not compatible
query I rowsort label-736
SELECT DISTINCT - MAX ( ALL - col1 ) - 3 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
2

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) <= - 52
----

query I rowsort
SELECT col2 * - - col0 + + col1 + 89 * col0 + - col2 FROM tab0 AS cor0
----
18138
2074
8624

query I rowsort
SELECT ALL + + 35 * - col1 AS col2 FROM tab0 cor0 WHERE - col1 * - col0 <= - - col2
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-740
SELECT DISTINCT - col2 + + col0 - + - 71 + - col1 DIV - 53 - - - ( + + col1 ) AS col1 FROM tab0 cor0
----
-41
127
68

skipif mysql # not compatible
query I rowsort label-740
SELECT DISTINCT - col2 + + col0 - + - 71 + - col1 / - 53 - - - ( + + col1 ) AS col1 FROM tab0 cor0
----
-41
127
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 70 - + 84 col2 FROM tab2 AS cor0
----
3136
4396
5166

query I rowsort
SELECT ALL + - 45 + + 51 + + + 56 + 22 AS col2 FROM tab2 AS cor0
----
84
84
84

query I rowsort
SELECT DISTINCT - 63 + col0 FROM tab1 WHERE + col1 + col2 IS NOT NULL
----
-12
22
28

query I rowsort
SELECT 60 AS col1 FROM tab0 WHERE - - col2 IN ( + col1 * col1 / - col2 )
----

query II rowsort
SELECT 80 * + col2 - + col1, col1 FROM tab0
----
3679
81
779
21
7919
1

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

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

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

skipif mysql # not compatible
query I rowsort label-748
SELECT DISTINCT - CAST ( NULL AS REAL ) * - - col1 / col2 AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 * + 19 col2 FROM tab1
----
-25536
-5605
-60724

query II rowsort
SELECT + col1 * ( - col0 ), col1 FROM tab2
----
-2346
51
-4928
77
-5025
67

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

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

query I rowsort
SELECT ALL + col0 * - + 80 AS col1 FROM tab0 AS cor0
----
-1200
-6960
-7760

query I rowsort
SELECT 97 / - 92 + + col2 FROM tab1 AS cor0 WHERE NOT + 88 NOT BETWEEN col2 AND 1 * - + col0
----

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

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

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

query I rowsort
SELECT + 12 * + col1 * + col0 AS col2 FROM tab0
----
1164
14580
21924

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, + 26 + - col0 - col2 col0 FROM tab2
----
-46
-43
-64
-78
-75
-107

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-761
SELECT ALL - 49 DIV - + col1 + - - col2 AS col2 FROM tab0
----
12
148
47

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL - 49 / - + col1 + - - col2 AS col2 FROM tab0
----
12
148
47

query I rowsort
SELECT col2 + - + 7 FROM tab2
----
16
33
51

query I rowsort
SELECT + col2 + col0 * - col1 * col2 FROM tab2 AS cor0
----
-197080
-291392
-53935

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

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT - - MAX( ALL col0 ) + 99 AS col1 FROM tab2 cor0 WHERE 53 NOT BETWEEN - col2 * + 69 * col0 * - - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-765
SELECT - - MAX ( ALL col0 ) + 99 AS col1 FROM tab2 cor0 WHERE 53 NOT BETWEEN - col2 * + 69 * col0 * - - col0 AND NULL
----
NULL

query I rowsort
SELECT col2 * 52 + - col1 AS col0 FROM tab2 AS cor0
----
1145
2003
2949

query I rowsort
SELECT ALL - ( + col0 ) + + col2 AS col1 FROM tab0 AS cor0
----
-77
2
32

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

query II rowsort
SELECT 59, col0 AS col0 FROM tab1
----
59
51
59
85
59
91

query I rowsort
SELECT ALL + col2 * + + 62 * + + col0 FROM tab2
----
158720
269700
65596

query I rowsort
SELECT DISTINCT col0 + + + col0 * + 87 AS col1 FROM tab2 AS cor0
----
4048
5632
6600

query II rowsort
SELECT DISTINCT + 45 * - 40, - 34 AS col0 FROM tab0 AS cor0
----
-1800
-34

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

query I rowsort
SELECT DISTINCT + + col1 - - - 32 FROM tab1 AS cor0
----
-18
-27
15

query I rowsort
SELECT + - 25 - col2 * col2 + - col0 FROM tab0 AS cor0
----
-212
-2249
-9923

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

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE ( - 42 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-777
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE ( - 42 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT - SUM( - + 25 ) FROM tab1 WHERE NOT ( NOT ( col0 IS NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-778
SELECT - SUM ( - + 25 ) FROM tab1 WHERE NOT ( NOT ( col0 IS NULL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-779
SELECT DISTINCT COUNT( * ) col0, + COUNT( * ) FROM tab1, tab1 AS cor0
----
9
9

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-782
SELECT DISTINCT 16 * COUNT( * ) AS col0, 9 AS col2 FROM tab0
----
48
9

skipif mysql # not compatible
query II rowsort label-782
SELECT DISTINCT 16 * COUNT ( * ) AS col0, 9 AS col2 FROM tab0
----
48
9

query II rowsort
SELECT ( - 24 ) * 63 AS col2, + ( + + col1 ) FROM tab2
----
-1512
51
-1512
67
-1512
77

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT + COUNT( * ) * 69 FROM tab1 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-784
SELECT + COUNT ( * ) * 69 FROM tab1 AS cor0
----
207

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

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

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

query I rowsort
SELECT DISTINCT - + col0 * + + ( col2 ) + + col2 FROM tab0 AS cor0
----
-658
-860
-9504

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

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

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

query I rowsort
SELECT ALL + + col0 + - - col2 * - 84 FROM tab2 AS cor0
----
-1886
-3296
-4797

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

skipif mysql # not compatible
query I rowsort label-791
SELECT DISTINCT CAST ( + - ( + col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-1
-21
-81

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-796
SELECT ALL + 64 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-796
SELECT ALL + 64 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-797
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ), + ( + COUNT( * ) ) AS col0 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-797
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ), + ( + COUNT ( * ) ) AS col0 FROM tab1
----
3
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + - + col2 col0, + col1 FROM tab1
----
-110
14
-115
47
-64
5

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT DISTINCT COUNT( * ) * + - COUNT( ALL - - col0 ) + - COUNT( * ) AS col0 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-800
SELECT DISTINCT COUNT ( * ) * + - COUNT ( ALL - - col0 ) + - COUNT ( * ) AS col0 FROM tab0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-801
SELECT DISTINCT + col2 DIV + col2 + col1 FROM tab2 cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-801
SELECT DISTINCT + col2 / + col2 + col1 FROM tab2 cor0
----
52
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT COUNT( * ) + + 18 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-802
SELECT COUNT ( * ) + + 18 FROM tab0
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-803
SELECT DISTINCT COUNT( * ) DIV + + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE ( 98 + + 60 - - 50 ) IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-803
SELECT DISTINCT COUNT ( * ) / + + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE ( 98 + + 60 - - 50 ) IS NOT NULL
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 66 col0 FROM tab2
----
-9
2
20

query I rowsort
SELECT DISTINCT + 45 + - col1 FROM tab1
----
-2
31
40

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col1 NOT IN ( col0 * col0 * + 29 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT - SUM( ALL - - col1 ) AS col2 FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-807
SELECT - SUM ( ALL - - col1 ) AS col2 FROM tab0 cor0
----
-103

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-811
SELECT + col2 DIV + - ( col2 ) col2, - 81 * + col1 col2 FROM tab1 AS cor0
----
-1
-1134
-1
-3807
-1
-405

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-811
SELECT + col2 / + - ( col2 ) col2, - 81 * + col1 col2 FROM tab1 AS cor0
----
-1
-1134
-1
-3807
-1
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT - + SUM( ALL + 28 ) FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-812
SELECT - + SUM ( ALL + 28 ) FROM tab1 AS cor0
----
-84

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col2 BETWEEN col1 AND - - 87 + - + 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT DISTINCT SUM( 57 ) AS col1 FROM tab0
----
171

skipif mysql # not compatible
query I rowsort label-815
SELECT DISTINCT SUM ( 57 ) AS col1 FROM tab0
----
171

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

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT - COUNT( * ) * - - 64 AS col2 FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-817
SELECT - COUNT ( * ) * - - 64 AS col2 FROM tab1
----
-192

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

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT ALL MIN( ALL col2 ) * - 58 AS col0 FROM tab1
----
-3422

skipif mysql # not compatible
query I rowsort label-819
SELECT ALL MIN ( ALL col2 ) * - 58 AS col0 FROM tab1
----
-3422

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT DISTINCT - MIN( col1 ) AS col0 FROM tab1 WHERE NOT ( - - 86 ) IS NULL
----
-5

skipif mysql # not compatible
query I rowsort label-821
SELECT DISTINCT - MIN ( col1 ) AS col0 FROM tab1 WHERE NOT ( - - 86 ) IS NULL
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT DISTINCT - COUNT( * ) * - 12 AS col2 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-822
SELECT DISTINCT - COUNT ( * ) * - 12 AS col2 FROM tab1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-823
SELECT DISTINCT col2 DIV - + 60 AS col2 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-823
SELECT DISTINCT col2 / - + 60 AS col2 FROM tab0
----
-1
0

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

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( + 82 )
----

query I rowsort
SELECT DISTINCT - - 66 + col2 + col2 * col2 * + - col1 * col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-13072380
-4927894
-620428

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

query I rowsort
SELECT ALL 53 * + col1 AS col2 FROM tab2
----
2703
3551
4081

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

query II rowsort
SELECT - col2 AS col2, - col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col0 + + 55 * + 39 * + - col1, - 95 )
----

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

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

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

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

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

query I rowsort
SELECT - col0 * - - 65 * - col0 + - col1 + col1 * + col0 AS col0 FROM tab1 cor0
----
169765
470045
542495

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT DISTINCT + + SUM( ALL - 26 ) AS col1 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-835
SELECT DISTINCT + + SUM ( ALL - 26 ) AS col1 FROM tab0 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT DISTINCT - MAX( - - col0 ) FROM tab0 cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-836
SELECT DISTINCT - MAX ( - - col0 ) FROM tab0 cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT - 81 AS col1 FROM tab0 AS cor0
----
-81
-81
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-838
SELECT + SUM( - + 0 ) DIV + 60 * + - MIN( - col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-838
SELECT + SUM ( - + 0 ) / + 60 * + - MIN ( - col0 ) FROM tab1 AS cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT 80 + + COUNT( * ) AS col0 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-840
SELECT 80 + + COUNT ( * ) AS col0 FROM tab0
----
83

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + col1 / + col0 - 70, col2 * + - col2, col0 * + col1 )
----

query I rowsort
SELECT - 31 + 85 AS col2 FROM tab2
----
54
54
54

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

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT 28 + - MIN( ALL 44 ) FROM tab2 WHERE ( - ( col0 ) ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-844
SELECT 28 + - MIN ( ALL 44 ) FROM tab2 WHERE ( - ( col0 ) ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - - 42 * 22 AS col2 FROM tab2 cor0
----
924

query I rowsort
SELECT DISTINCT col0 + - 69 FROM tab1 AS cor0
----
-18
16
22

query I rowsort
SELECT ALL - col0 + - ( - col0 ) + - col0 + 4 FROM tab0 AS cor0
----
-11
-83
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT DISTINCT COUNT( * ) - COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

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

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

query II rowsort
SELECT DISTINCT col0 * + - col0, 54 AS col1 FROM tab1
----
-2601
54
-7225
54
-8281
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * + col0 * - col1 * - - col2 * + - col2 col2 FROM tab0 cor0
----
-126144945
-1827000
-94119003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + 15 col1 FROM tab0 AS cor0
----
1215
15
315

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT + 13 * - COUNT( * ) FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-854
SELECT + 13 * - COUNT ( * ) FROM tab1 AS cor0
----
-39

query II rowsort
SELECT + - ( - 42 ), - ( - 92 ) AS col2 FROM tab1 cor0
----
42
92
42
92
42
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-856
SELECT + CAST( NULL AS SIGNED ) / - - MIN( col1 ) * - 72 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-856
SELECT + CAST ( NULL AS INTEGER ) / - - MIN ( col1 ) * - 72 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 66 * - + 8 col0, ( + col2 ) FROM tab2 WHERE NOT + + col2 BETWEEN NULL AND - col1
----
528
23
528
40
528
58

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( - col0, - 38, - 42 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 12 col2 FROM tab0
----
12
252
972

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

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

query I rowsort
SELECT DISTINCT col1 * + + col1 AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
1
441
6561

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

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

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

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

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

query I rowsort
SELECT 95 + - + col0 AS col2 FROM tab2 cor0
----
20
31
49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT - 77 + - - MIN( ALL + col1 ) FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-868
SELECT - 77 + - - MIN ( ALL + col1 ) FROM tab2 AS cor0
----
-26

query II rowsort
SELECT DISTINCT col0, - col0 FROM tab2 cor0 WHERE NOT ( NULL ) = - - 78
----

query I rowsort
SELECT ALL - + 74 + + + 9 + + - 92 FROM tab0 AS cor0
----
-157
-157
-157

onlyif mysql # DIV for integer division: 
query I rowsort label-871
SELECT DISTINCT + - ( col1 ) DIV + col1 AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-871
SELECT DISTINCT + - ( col1 ) / + col1 AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-872
SELECT DISTINCT - ( + + 6 ) + + col0 + col1 DIV - col1 FROM tab2 WHERE NOT 5 * - col1 IS NULL
----
39
57
68

skipif mysql # not compatible
query I rowsort label-872
SELECT DISTINCT - ( + + 6 ) + + col0 + col1 / - col1 FROM tab2 WHERE NOT 5 * - col1 IS NULL
----
39
57
68

query III rowsort
SELECT * FROM tab2 WHERE col1 / + col2 + - + col2 - col0 + - 33 + + col1 + - - col1 + + col1 NOT IN ( + 87 * 6, - 29 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-874
SELECT - CAST( - 64 AS SIGNED ) FROM tab2
----
64
64
64

skipif mysql # not compatible
query I rowsort label-874
SELECT - CAST ( - 64 AS INTEGER ) FROM tab2
----
64
64
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-875
SELECT + 22 FROM tab2 WHERE - - CAST( - 35 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-875
SELECT + 22 FROM tab2 WHERE - - CAST ( - 35 AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-876
SELECT - 47 DIV - + 22 AS col1 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-876
SELECT - 47 / - + 22 AS col1 FROM tab0 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-877
SELECT ALL + MAX( ALL - 47 ) - + MAX( ALL + 42 ) DIV MIN( - + col2 ) AS col2 FROM tab2 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-877
SELECT ALL + MAX ( ALL - 47 ) - + MAX ( ALL + 42 ) / MIN ( - + col2 ) AS col2 FROM tab2 cor0
----
-47

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

skipif mysql # not compatible
query I rowsort label-878
SELECT ALL + + 41 - COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT DISTINCT 68 - COUNT( * ) FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-879
SELECT DISTINCT 68 - COUNT ( * ) FROM tab2
----
65

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + + 40 IS NOT NULL
----

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 98, 34 - - - col0, + + col2 )
----

query I rowsort
SELECT + col1 * + 17 FROM tab0
----
1377
17
357

query I rowsort
SELECT ALL - col1 * 46 FROM tab0
----
-3726
-46
-966

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT NULL BETWEEN col1 AND 84 * col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT + 34 * + COUNT( * ) AS col1 FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-889
SELECT + 34 * + COUNT ( * ) AS col1 FROM tab1
----
102

query II rowsort
SELECT + 20 * + col1, 97 AS col1 FROM tab1 AS cor0
----
100
97
280
97
940
97

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

skipif mysql # not compatible
query I rowsort label-891
SELECT ALL - - CAST ( + COUNT ( * ) AS INTEGER ) * + COUNT ( * ) * MIN ( col1 ) FROM tab0 cor0
----
9

query I rowsort
SELECT 98 + - 61 * - col1 AS col0 FROM tab1 AS cor0
----
2965
403
952

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 * - col2 + + col1 col0 FROM tab2
----
2213
3837
5519

onlyif mysql # DIV for integer division: 
query I rowsort label-896
SELECT ( col0 ) DIV - 88 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-896
SELECT ( col0 ) / - 88 AS col2 FROM tab0
----
-1
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT DISTINCT + + COUNT( * ) + 29 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-898
SELECT DISTINCT + + COUNT ( * ) + 29 FROM tab1 AS cor0
----
32

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

query I rowsort
SELECT ALL 79 - + 24 AS col0 FROM tab1 AS cor0
----
55
55
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 * + + col2 col2 FROM tab2 AS cor0
----
1242
2160
3132

query I rowsort
SELECT ALL + col2 + ( - col0 ) FROM tab0 AS cor0
----
-77
2
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - col1 + 66 * col1 * - col1 col0 FROM tab2 AS cor0
----
-171564
-296140
-391160

query II rowsort
SELECT - col0 - + col1 + - col2 AS col2, col2 + + + col1 AS col2 FROM tab1 AS cor0
----
-149
64
-161
110
-206
115

query I rowsort
SELECT col1 - - 83 AS col0 FROM tab2 AS cor0
----
134
150
160

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

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

query I rowsort
SELECT + col1 + - col1 * + 85 * - col1 FROM tab0
----
37506
557766
86

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-909
SELECT - 6 + - - 16 + col2 * + col2 + + CAST( + - col0 AS SIGNED ) AS col1 FROM tab1
----
3406
4543
9175

skipif mysql # not compatible
query I rowsort label-909
SELECT - 6 + - - 16 + col2 * + col2 + + CAST ( + - col0 AS INTEGER ) AS col1 FROM tab1
----
3406
4543
9175

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 WHERE NOT - - 51 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-910
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 WHERE NOT - - 51 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT ALL + MIN( ALL + - ( + col0 ) ) + + COUNT( - col2 ) FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL + MIN ( ALL + - ( + col0 ) ) + + COUNT ( - col2 ) FROM tab0 AS cor0
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-912
SELECT - - 91 DIV 93 * - + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-912
SELECT - - 91 / 93 * - + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT + - MIN( ALL - col0 ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-913
SELECT + - MIN ( ALL - col0 ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - + 64 FROM tab2 cor0
----
-64

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-916
SELECT - - col0 DIV + col0 + - 84 + - 14 FROM tab0 AS cor0
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-916
SELECT - - col0 / + col0 + - 84 + - 14 FROM tab0 AS cor0
----
-97
-97
-97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-918
SELECT - col1 DIV col1 * - + 61 * - col1 AS col2 FROM tab0 AS cor0
----
-1281
-4941
-61

skipif mysql # not compatible
query I rowsort label-918
SELECT - col1 / col1 * - + 61 * - col1 AS col2 FROM tab0 AS cor0
----
-1281
-4941
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-919
SELECT - + col0 DIV - - col1 - + 57 AS col1 FROM tab0 AS cor0
----
-154
-57
-61

skipif mysql # not compatible
query I rowsort label-919
SELECT - + col0 / - - col1 - + 57 AS col1 FROM tab0 AS cor0
----
-154
-57
-61

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

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

query II rowsort
SELECT DISTINCT col1, 19 + - col0 FROM tab0
----
1
-78
21
-68
81
4

query II rowsort
SELECT DISTINCT + 76, + col0 FROM tab2
----
76
46
76
64
76
75

query I rowsort
SELECT ALL - 91 + + col1 AS col1 FROM tab0 AS cor0
----
-10
-70
-90

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

query I rowsort
SELECT 88 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT ( + - 8 ) + - col0 * - col2 FROM tab0
----
697
862
9595

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 61 + + + 76 + + col0 col2 FROM tab1 AS cor0
----
100
106
66

query I rowsort
SELECT - + ( + + col0 ) + - + 52 - + + 98 AS col1 FROM tab2 AS cor0
----
-196
-214
-225

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-932
SELECT AVG ( - + 62 ) * - CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-932
SELECT AVG ( - + 62 ) * - CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 - - col1 - col0 * + - 23 * + ( - col2 ) AS col2 FROM tab0
----
-16181
-19999
-220967

query I rowsort
SELECT DISTINCT - 87 * - col1 * - 27 FROM tab2
----
-119799
-157383
-180873

query I rowsort
SELECT ALL + + col2 AS col2 FROM tab2 WHERE NOT col2 <= + col0
----

query I rowsort
SELECT + col0 * - col2 * + col2 * - + col1 * ( + col1 ) FROM tab0
----
217398735
3836700
950697

onlyif mysql # DIV for integer division: 
query II rowsort label-937
SELECT - ( col2 ) - - col2, 94 DIV col2 AS col0 FROM tab1
----
0
0
0
1
0
1

skipif mysql # not compatible
query II rowsort label-937
SELECT - ( col2 ) - - col2, 94 / col2 AS col0 FROM tab1
----
0
0
0
1
0
1

query I rowsort
SELECT ALL 87 * - - col0 AS col2 FROM tab0
----
1305
7569
8439

onlyif mysql # DIV for integer division: 
query I rowsort label-939
SELECT ALL + 55 DIV + 97 + + col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-939
SELECT ALL + 55 / + 97 + + col0 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT 75 + - col1 FROM tab2
----
-2
24
8

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-943
SELECT ALL - CAST( NULL AS SIGNED ) / + MAX( ALL + 98 ) col1 FROM tab0 AS cor0 WHERE NOT + col0 * + + 69 * 37 > - 22 * - + 38
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-943
SELECT ALL - CAST ( NULL AS INTEGER ) / + MAX ( ALL + 98 ) col1 FROM tab0 AS cor0 WHERE NOT + col0 * + + 69 * 37 > - 22 * - + 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT + MIN( + + col1 ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-944
SELECT + MIN ( + + col1 ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT ALL + COUNT( DISTINCT col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 87 AND - 56
----
0

skipif mysql # not compatible
query I rowsort label-945
SELECT ALL + COUNT ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 87 AND - 56
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-948
SELECT + 28 DIV + col2 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-948
SELECT + 28 / + col2 col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT 70 * + SUM( - 92 ) col0 FROM tab0
----
-19320

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-949
SELECT 70 * + SUM ( - 92 ) col0 FROM tab0
----
-19320

query III rowsort
SELECT * FROM tab2 WHERE NOT 61 * - col1 * - - col2 <= + 70
----

onlyif mysql # DIV for integer division: 
query II rowsort label-951
SELECT ALL col2 + - 44 DIV + col0 * - col2 * col0 * + - col0 DIV + + col0 + 21 * 91 * - - col1, col0 col1 FROM tab2
----
128095
75
147187
64
97484
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-951
SELECT ALL col2 + - 44 / + col0 * - col2 * col0 * + - col0 / + + col0 + 21 * 91 * - - col1, col0 col1 FROM tab2
----
128095
75
147187
64
97484
46

query II rowsort
SELECT DISTINCT - col1 + - + 37 AS col2, col2 * + - col2 + - col1 FROM tab1 AS cor0
----
-42
-3486
-51
-9230
-84
-4671

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-953
SELECT - + COUNT( * ) DIV 22 * + 44 + 82 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-953
SELECT - + COUNT ( * ) / 22 * + 44 + 82 FROM tab0 AS cor0
----
82

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-955
SELECT - ( COUNT( col0 ) ) DIV MIN( + 69 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-955
SELECT - ( COUNT ( col0 ) ) / MIN ( + 69 ) FROM tab1
----
0

query I rowsort
SELECT + 96 FROM tab1 WHERE ( NOT NULL NOT BETWEEN 47 AND ( + - col0 ) )
----

query I rowsort
SELECT ALL + 81 + - col1 AS col0 FROM tab1
----
34
67
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 86 + - col1 col2 FROM tab1 AS cor0
----
39
72
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-959
SELECT + 35 - + col0 * - CAST( 86 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3991
5539
6485

skipif mysql # not compatible
query I rowsort label-959
SELECT + 35 - + col0 * - CAST ( 86 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3991
5539
6485

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( 77 ) - - ( + col1 ) col0 FROM tab0 AS cor0
----
158
78
98

onlyif mysql # aggregate syntax: 
query II rowsort label-962
SELECT DISTINCT 10 + + - 96 * MAX( DISTINCT + - col2 ) AS col0, 73 AS col2 FROM tab1 AS cor0
----
5674
73

skipif mysql # not compatible
query II rowsort label-962
SELECT DISTINCT 10 + + - 96 * MAX ( DISTINCT + - col2 ) AS col0, 73 AS col2 FROM tab1 AS cor0
----
5674
73

query I rowsort
SELECT - col2 - - - col2 + - 8 FROM tab2 AS cor0
----
-124
-54
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + + ( + ( + - 23 ) ) - + 76 col2 FROM tab0 AS cor0
----
-1157
-2353
-306

query I rowsort
SELECT ALL + col2 * - col0 + + + 15 - - col0 FROM tab2 AS cor0
----
-2481
-4260
-997

query I rowsort
SELECT col1 + + 8 AS col1 FROM tab0 AS cor0
----
29
89
9

query I rowsort
SELECT + + col0 + + - col2 AS col0 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT ALL + 42 - + - 51 AS col0 FROM tab1 AS cor0
----
93
93
93

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

query I rowsort
SELECT ALL - col2 * ( + - col0 ) - + - 68 FROM tab1
----
4964
5083
6256

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

query I rowsort
SELECT ALL col2 * - + col2 AS col1 FROM tab1
----
-3481
-4624
-9216

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

query I rowsort
SELECT DISTINCT + col1 * - 55 * - 84 FROM tab2
----
235620
309540
355740

query I rowsort
SELECT ALL 90 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-976
SELECT DISTINCT - + COUNT( * ) DIV - + 63 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT + 2 * COUNT( DISTINCT - 71 ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-978
SELECT + 2 * COUNT ( DISTINCT - 71 ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
5

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-980
SELECT ALL col1 DIV + ( + 95 ) + col2 * - 40 * - - col0 * + col0 FROM tab0 AS cor0
----
-3027600
-37259640
-423000

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL col1 / + ( + 95 ) + col2 * - 40 * - - col0 * + col0 FROM tab0 AS cor0
----
-3027600
-37259640
-423000

query II rowsort
SELECT + col1, ( + col1 ) FROM tab1
----
14
14
47
47
5
5

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

query I rowsort
SELECT ALL col0 + + + ( - col0 ) FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 97 * ( - - col2 ) + 19 FROM tab0
----
4578
9622
989

query II rowsort
SELECT + col0, col0 - - col0 FROM tab0
----
15
30
87
174
97
194

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

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

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

query I rowsort
SELECT + 28 + - 93 AS col2 FROM tab2
----
-65
-65
-65

query I rowsort
SELECT ALL - 3 AS col1 FROM ( tab1 cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT DISTINCT 15 * + + COUNT( * ) * - SUM( ALL - + col0 ) + 64 + - + MIN( ALL - - 74 ) - - 13 AS col1 FROM tab2 AS cor0
----
8328

skipif mysql # not compatible
query I rowsort label-991
SELECT DISTINCT 15 * + + COUNT ( * ) * - SUM ( ALL - + col0 ) + 64 + - + MIN ( ALL - - 74 ) - - 13 AS col1 FROM tab2 AS cor0
----
8328

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-994
SELECT MAX( - CAST( - ( + + 59 ) AS SIGNED ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-994
SELECT MAX ( - CAST ( - ( + + 59 ) AS INTEGER ) ) FROM tab1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-995
SELECT ALL ( 11 ) * - col0 + + 77 DIV - 78 FROM tab1
----
-1001
-561
-935

skipif mysql # not compatible
query I rowsort label-995
SELECT ALL ( 11 ) * - col0 + + 77 / - 78 FROM tab1
----
-1001
-561
-935

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col2 * col1 AS col0 FROM tab2
----
23
1173
40
3080
58
3886

query I rowsort
SELECT ALL 9 * - 79 * + col0 * + - 30 AS col1 FROM tab0
----
1855710
2069010
319950

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

query II rowsort
SELECT 21 AS col2, + ( + col2 ) * + + col2 FROM tab0
----
21
100
21
2209
21
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT + MIN( 47 ) FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-1000
SELECT + MIN ( 47 ) FROM tab2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT ALL MAX( + - 99 ) * 21 AS col2 FROM tab2
----
-2079

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL MAX ( + - 99 ) * 21 AS col2 FROM tab2
----
-2079

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

skipif mysql # not compatible
query I rowsort label-1002
SELECT DISTINCT MAX ( + 26 ) FROM tab1 cor0
----
26

query II rowsort
SELECT ALL + col2, col0 AS col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1004
SELECT ALL + - col2 * - + col1 DIV - col1 FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1004
SELECT ALL + - col2 * - + col1 / - col1 FROM tab1 cor0
----
-59
-68
-96

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

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

query I rowsort
SELECT DISTINCT col2 + - 81 AS col1 FROM tab1 cor0
----
-13
-22
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1 * + col1 AS col2, 99 col0 FROM tab2 AS cor0
----
-2601
99
-4489
99
-5929
99

query I rowsort
SELECT + 68 * - 92 AS col2 FROM tab2 AS cor0
----
-6256
-6256
-6256

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT ( + COUNT( * ) ) + - + 20 FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-1012
SELECT ( + COUNT ( * ) ) + - + 20 FROM tab1
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-1013
SELECT DISTINCT - col0 - - col2 + + col2 DIV + col0 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-77
3
35

skipif mysql # not compatible
query I rowsort label-1013
SELECT DISTINCT - col0 - - col2 + + col2 / + col0 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-77
3
35

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

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

query I rowsort
SELECT DISTINCT - 96 + col2 FROM tab2 cor0
----
-38
-56
-73

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1016
SELECT ALL ( - + CAST( NULL AS SIGNED ) ) + - ( - CAST( + col1 AS DECIMAL ) ) col1, - col0 - - col1 FROM tab2 AS cor0
----
NULL
-8
NULL
13
NULL
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1016
SELECT ALL ( - + CAST ( NULL AS INTEGER ) ) + - ( - CAST ( + col1 AS REAL ) ) col1, - col0 - - col1 FROM tab2 AS cor0
----
NULL
-8
NULL
13
NULL
5

query I rowsort
SELECT col1 + + 38 * col0 * - col2 FROM tab0 AS cor0
----
-26709
-33039
-364913

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1021
SELECT 55 - - col0 + col2 DIV - - 12 AS col1 FROM tab2 AS cor0
----
102
122
134

skipif mysql # not compatible
query I rowsort label-1021
SELECT 55 - - col0 + col2 / - - 12 AS col1 FROM tab2 AS cor0
----
102
122
134

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT ALL MAX( - + col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL MAX ( - + col1 ) FROM tab0 AS cor0
----
-1

query II rowsort
SELECT - + col2, 9 * + col0 AS col1 FROM tab2 AS cor0
----
-23
414
-40
576
-58
675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( - 32 ) + + 41 col2 FROM tab0 AS cor0
----
-2743
-3063
-439

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 63, ( + col1 ) col1 FROM tab0 AS cor0
----
63
1
63
21
63
81

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1030
SELECT + 82 AS col1 FROM tab0 WHERE NOT - 45 NOT BETWEEN ( CAST( col2 AS SIGNED ) ) AND col0
----

skipif mysql # not compatible
query I rowsort label-1030
SELECT + 82 AS col1 FROM tab0 WHERE NOT - 45 NOT BETWEEN ( CAST ( col2 AS INTEGER ) ) AND col0
----

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

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

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

query II rowsort
SELECT - ( - col2 ), col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT DISTINCT - COUNT( - col2 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1034
SELECT DISTINCT - COUNT ( - col2 ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-1035
SELECT + COUNT( ALL - 98 ), 62 AS col2 FROM tab1
----
3
62

skipif mysql # not compatible
query II rowsort label-1035
SELECT + COUNT ( ALL - 98 ), 62 AS col2 FROM tab1
----
3
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT + SUM( + 31 ) AS col2 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-1036
SELECT + SUM ( + 31 ) AS col2 FROM tab0
----
93

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1038
SELECT DISTINCT - col1 + - CAST( - + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-1038
SELECT DISTINCT - col1 + - CAST ( - + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT col2 + - + col0 AS col2 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT ALL + - 42 * 64 + 67 + - col1 + - + 10 AS col2 FROM tab2 cor0
----
-2682
-2698
-2708

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 16 * + col1 col1, - 41 FROM tab2
----
1072
-41
1232
-41
816
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1043
SELECT + 78 DIV COUNT( * ) AS col0 FROM tab0 WHERE - + 81 IS NOT NULL
----
26

skipif mysql # not compatible
query I rowsort label-1043
SELECT + 78 / COUNT ( * ) AS col0 FROM tab0 WHERE - + 81 IS NOT NULL
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1044
SELECT MAX( - col0 ) / - - CAST( NULL AS SIGNED ) - 51 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1044
SELECT MAX ( - col0 ) / - - CAST ( NULL AS INTEGER ) - 51 AS col2 FROM tab2
----
NULL

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

query I rowsort
SELECT ALL + 4 AS col1 FROM tab1 WHERE NULL BETWEEN - col2 + col2 AND col0
----

query II rowsort
SELECT ALL ( 90 ) AS col0, col0 FROM tab2
----
90
46
90
64
90
75

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

skipif mysql # not compatible
query II rowsort label-1048
SELECT ALL + - ( - ( col2 ) ) - - CAST ( NULL AS INTEGER ) AS col2, - ( + - col2 ) FROM tab2 cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1049
SELECT ALL + - col2 - ( - col1 ) + - + CAST( + col2 AS SIGNED ) * + + 62 AS col1 FROM tab1 AS cor0
----
-3712
-4237
-6034

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL + - col2 - ( - col1 ) + - + CAST ( + col2 AS INTEGER ) * + + 62 AS col1 FROM tab1 AS cor0
----
-3712
-4237
-6034

query I rowsort
SELECT ALL col1 + col1 - col0 AS col1 FROM tab2 AS cor0
----
56
59
90

query I rowsort
SELECT + 48 * + - col2 FROM tab1
----
-2832
-3264
-4608

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT - COUNT( * ) * + 69 FROM tab1 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-1052
SELECT - COUNT ( * ) * + 69 FROM tab1 AS cor0
----
-207

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1057
SELECT + 69 DIV col1 * - col2 FROM tab1
----
-384
-68
-767

skipif mysql # not compatible
query I rowsort label-1057
SELECT + 69 / col1 * - col2 FROM tab1
----
-384
-68
-767

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, - col0 col2 FROM tab0
----
-10
-87
-47
-15
-99
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 87, 70 * + 64 * + 68 col1 FROM tab0
----
87
304640
87
304640
87
304640

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT DISTINCT - - SUM( - 72 ) FROM tab0 cor0
----
-216

skipif mysql # not compatible
query I rowsort label-1062
SELECT DISTINCT - - SUM ( - 72 ) FROM tab0 cor0
----
-216

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1063
SELECT ALL 98 AS col2, CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab0 AS cor0
----
98
NULL
98
NULL
98
NULL

skipif mysql # not compatible
query II rowsort label-1063
SELECT ALL 98 AS col2, CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0
----
98
NULL
98
NULL
98
NULL

query I rowsort
SELECT DISTINCT 22 + - col1 * - - col2 - col1 + - + 71 * - col2 FROM tab2
----
-295
187
431

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1066
SELECT * FROM tab1 cor0 WHERE - CAST( 49 AS SIGNED ) * - col2 NOT IN ( ( - col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1066
SELECT * FROM tab1 cor0 WHERE - CAST ( 49 AS INTEGER ) * - col2 NOT IN ( ( - col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1068
SELECT ALL - col1 + + 67 + col2 DIV - 97 FROM tab0 cor0
----
-14
46
65

skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL - col1 + + 67 + col2 / - 97 FROM tab0 cor0
----
-14
46
65

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

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

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

query I rowsort
SELECT ALL + 42 - - col2 FROM tab1 AS cor0
----
101
110
138

onlyif mysql # DIV for integer division: 
query II rowsort label-1072
SELECT DISTINCT + 27 AS col1, - col2 DIV - - 41 FROM tab0
----
27
-1
27
-2
27
0

skipif mysql # not compatible
query II rowsort label-1072
SELECT DISTINCT + 27 AS col1, - col2 / - - 41 FROM tab0
----
27
-1
27
-2
27
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT DISTINCT + MAX( + col0 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1073
SELECT DISTINCT + MAX ( + col0 ) AS col0 FROM tab2
----
75

query I rowsort
SELECT ALL - 81 + 37 FROM tab1
----
-44
-44
-44

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

skipif mysql # not compatible
query I rowsort label-1075
SELECT DISTINCT ( COUNT ( * ) ) / - - MAX ( ALL ( + + col1 ) ) - 27 FROM tab0 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT DISTINCT - MIN( + 10 ) - + 84 AS col1 FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-1076
SELECT DISTINCT - MIN ( + 10 ) - + 84 AS col1 FROM tab2 AS cor0
----
-94

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

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

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

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

query I rowsort
SELECT 38 FROM tab0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL 95 + - col1 FROM tab2
----
18
28
44

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

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

query I rowsort
SELECT col0 + + 80 * - 10 FROM tab0
----
-703
-713
-785

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT ALL SUM( + 5 ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-1084
SELECT ALL SUM ( + 5 ) FROM tab1
----
15

query I rowsort
SELECT 88 + 8 AS col2 FROM tab0
----
96
96
96

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1087
SELECT * FROM tab2 WHERE col1 * CAST( - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1087
SELECT * FROM tab2 WHERE col1 * CAST ( - col0 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1088
SELECT - COUNT( ALL - 81 ) + - CAST( + 50 + - COUNT( DISTINCT + col0 + ( - col2 ) ) AS SIGNED ) AS col1 FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-1088
SELECT - COUNT ( ALL - 81 ) + - CAST ( + 50 + - COUNT ( DISTINCT + col0 + ( - col2 ) ) AS INTEGER ) AS col1 FROM tab1
----
-50

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

skipif mysql # not compatible
query I rowsort label-1089
SELECT + COUNT ( * ) * COUNT ( * ) + - COUNT ( * ) FROM tab0
----
6

query I rowsort
SELECT - col1 + - col1 * - ( col0 ) AS col0 FROM tab2
----
2295
4851
4958

query I rowsort
SELECT + col0 - + 6 * + 19 AS col1 FROM tab2
----
-39
-50
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT ALL - MAX( col1 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL - MAX ( col1 ) AS col0 FROM tab0
----
-81

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

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

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

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

query I rowsort
SELECT ALL col0 * - col0 FROM tab1 WHERE + col1 * col0 = col1 * 1
----

query I rowsort
SELECT col0 * col0 - col2 * 91 AS col2 FROM tab1 WHERE ( + 81 ) <= col1
----

query I rowsort
SELECT col2 FROM tab0 WHERE NOT + col1 + 37 IN ( col2 )
----
10
47
99

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

query I rowsort
SELECT 45 AS col2 FROM tab1 WHERE NOT 77 + + col2 NOT BETWEEN 32 * col1 AND ( 47 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1100
SELECT ALL - COUNT( ALL + col2 ) / MIN( CAST( - col2 AS SIGNED ) + + col2 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL - COUNT ( ALL + col2 ) / MIN ( CAST ( - col2 AS INTEGER ) + + col2 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1101
SELECT DISTINCT ( ( col2 ) ) * + col2 + + ( - CAST( NULL AS SIGNED ) ) / CAST( + 8 + CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1101
SELECT DISTINCT ( ( col2 ) ) * + col2 + + ( - CAST ( NULL AS INTEGER ) ) / CAST ( + 8 + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT col0 * - col0 + + 24 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-201
-7545
-9385

query I rowsort
SELECT 30 * col1 AS col2 FROM tab2 AS cor0
----
1530
2010
2310

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 97 + 59 col0 FROM tab0 AS cor0
----
1029
4618
9662

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1108
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( col1 * - CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( col1 * - CAST ( NULL AS INTEGER ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT DISTINCT COUNT( * ) * - ( 27 ) col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
-243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1109
SELECT DISTINCT COUNT ( * ) * - ( 27 ) col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
-243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1110
SELECT ( + CAST( - col0 AS SIGNED ) ) + col1 FROM tab0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-1110
SELECT ( + CAST ( - col0 AS INTEGER ) ) + col1 FROM tab0
----
-66
-96
66

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1112
SELECT DISTINCT 36 + - col1 DIV + col1 AS col0 FROM tab0 AS cor0 WHERE NOT 25 IS NULL
----
35

skipif mysql # not compatible
query I rowsort label-1112
SELECT DISTINCT 36 + - col1 / + col1 AS col0 FROM tab0 AS cor0 WHERE NOT 25 IS NULL
----
35

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - col1 IN ( + 82 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 AS cor0 WHERE col1 / + col2 < - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1116
SELECT DISTINCT - + col2 DIV col1 - + col1 * 58 AS col0 FROM tab2 AS cor0
----
-2958
-3886
-4466

skipif mysql # not compatible
query I rowsort label-1116
SELECT DISTINCT - + col2 / col1 - + col1 * 58 AS col0 FROM tab2 AS cor0
----
-2958
-3886
-4466

query I rowsort
SELECT 66 + ( + col2 - 18 * - col2 ) * - col2 AS col1 FROM tab2 WHERE NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT + 86 - - ( - col0 ) + - col2 AS col0 FROM tab2
----
-18
-47
17

query III rowsort
SELECT * FROM tab1 WHERE + 0 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT ( COUNT( * ) ) * 51 AS col1 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-1120
SELECT ( COUNT ( * ) ) * 51 AS col1 FROM tab1
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1121
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) / 53 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1121
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) / 53 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL + 26 * + col1 FROM tab2
----
1326
1742
2002

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 * - 51 <> - col0 + + 99
----

query I rowsort
SELECT - 90 - - col1 FROM tab0
----
-69
-89
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-1125
SELECT + 52 - - col2 DIV - col0 AS col0 FROM tab0
----
49
51
52

skipif mysql # not compatible
query I rowsort label-1125
SELECT + 52 - - col2 / - col0 AS col0 FROM tab0
----
49
51
52

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

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

query I rowsort
SELECT DISTINCT - col1 * - col1 * 58 FROM tab1 AS cor0
----
11368
128122
1450

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

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

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 32 * + 47 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT ALL + MAX( DISTINCT + col1 ) * 77 AS col0 FROM tab0
----
6237

skipif mysql # not compatible
query I rowsort label-1131
SELECT ALL + MAX ( DISTINCT + col1 ) * 77 AS col0 FROM tab0
----
6237

query I rowsort
SELECT - col0 * + 67 * + ( col0 ) AS col1 FROM tab0
----
-15075
-507123
-630403

query I rowsort
SELECT DISTINCT col0 * + + 26 AS col1 FROM tab2
----
1196
1664
1950

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1135
SELECT + col0 * + col1 + + - 45 DIV col1 FROM tab1 AS cor0
----
416
4277
711

skipif mysql # not compatible
query I rowsort label-1135
SELECT + col0 * + col1 + + - 45 / col1 FROM tab1 AS cor0
----
416
4277
711

onlyif mysql # DIV for integer division: 
query I rowsort label-1136
SELECT ALL - - col1 DIV + col1 + + + 70 FROM tab2 AS cor0
----
71
71
71

skipif mysql # not compatible
query I rowsort label-1136
SELECT ALL - - col1 / + col1 + + + 70 FROM tab2 AS cor0
----
71
71
71

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + - 71 + + 95 / - 17 IS NOT NULL OR NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1138
SELECT DISTINCT - + 61 * + - col2 DIV - + col2 FROM tab0 cor0
----
-61

skipif mysql # not compatible
query I rowsort label-1138
SELECT DISTINCT - + 61 * + - col2 / - + col2 FROM tab0 cor0
----
-61

query I rowsort
SELECT - 74 * - ( + 31 ) FROM tab1 AS cor0
----
2294
2294
2294

query I rowsort
SELECT - + 66 * + col1 AS col2 FROM tab1 cor0
----
-3102
-330
-924

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

query I rowsort
SELECT ALL + 84 AS col0 FROM tab0 cor0
----
84
84
84

query I rowsort
SELECT DISTINCT - col2 * col0 * - + col0 * + col2 AS col1 FROM tab1 AS cor0
----
23970816
25150225
38291344

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 78 <= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1150
SELECT col1 DIV col2 * - + 67 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1150
SELECT col1 / col2 * - + 67 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT ( + ( - col0 ) ) * - 83 * col2 FROM tab0
----
58515
72210
797049

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1153
SELECT ALL 97 * + 97 AS col2, SUM( DISTINCT col0 ) - - ( 6 ) * 99 FROM tab0
----
9409
793

skipif mysql # not compatible
query II rowsort label-1153
SELECT ALL 97 * + 97 AS col2, SUM ( DISTINCT col0 ) - - ( 6 ) * 99 FROM tab0
----
9409
793

query II rowsort
SELECT DISTINCT + 37 + + + 12 AS col2, + col1 FROM tab1
----
49
14
49
47
49
5

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

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

query I rowsort
SELECT col0 * 45 FROM tab2 WHERE NOT ( - ( col1 ) ) IS NOT NULL
----

query I rowsort
SELECT + ( - ( 97 ) ) + - + col2 * 7 AS col2 FROM tab0 AS cor0
----
-167
-426
-790

onlyif mysql # DIV for integer division: 
query I rowsort label-1158
SELECT col1 + - - 74 DIV - col0 FROM tab0 AS cor0
----
1
21
77

skipif mysql # not compatible
query I rowsort label-1158
SELECT col1 + - - 74 / - col0 FROM tab0 AS cor0
----
1
21
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT + SUM( - col0 ) + + + COUNT( * ) * + COUNT( ALL 94 ) - COUNT( DISTINCT ( 95 ) ) FROM tab2 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-1159
SELECT + SUM ( - col0 ) + + + COUNT ( * ) * + COUNT ( ALL 94 ) - COUNT ( DISTINCT ( 95 ) ) FROM tab2 AS cor0
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT - COUNT( * ) + 66 + - COUNT( DISTINCT 96 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
56

skipif mysql # not compatible
query I rowsort label-1160
SELECT - COUNT ( * ) + 66 + - COUNT ( DISTINCT 96 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
56

query I rowsort
SELECT DISTINCT + col2 + + col1 AS col0 FROM tab1 AS cor0 WHERE + 9 BETWEEN - - col2 + - 33 AND ( - 36 )
----

query I rowsort
SELECT DISTINCT + - 82 * - 90 + - - col2 + + + col0 * + col1 AS col2 FROM tab0 AS cor0
----
7576
8642
9217

query I rowsort
SELECT - col2 + - - col0 AS col1 FROM tab0 AS cor0 WHERE 72 IS NULL
----

query I rowsort
SELECT ALL 24 * col2 + - ( - col1 ) + + ( - col0 ) FROM tab0 AS cor0
----
1194
174
2280

query I rowsort
SELECT + col1 - + 72 + + 9 AS col1 FROM tab2 AS cor0
----
-12
14
4

query I rowsort
SELECT ALL + + col0 + - 27 FROM tab2 AS cor0
----
19
37
48

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1167
SELECT * FROM tab1 AS cor0 WHERE + col1 * CAST( NULL AS DECIMAL ) * + + col0 = NULL AND NOT col0 < NULL
----

skipif mysql # not compatible
query III rowsort label-1167
SELECT * FROM tab1 AS cor0 WHERE + col1 * CAST ( NULL AS REAL ) * + + col0 = NULL AND NOT col0 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1168
SELECT ALL + col0 DIV + - col1 - - + col0 AS col1 FROM tab0 AS cor0
----
0
15
83

skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL + col0 / + - col1 - - + col0 AS col1 FROM tab0 AS cor0
----
0
15
83

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

query III rowsort
SELECT * FROM tab2 WHERE col2 = ( + col0 + col2 )
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 + - col0 * + 26 + - 66 >= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 6 * + + 16 FROM tab2 AS cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, 93 AS col1 FROM tab0 AS cor0
----
1
93
21
93
81
93

query I rowsort
SELECT DISTINCT + + col2 * + - 58 FROM tab2 AS cor0
----
-1334
-2320
-3364

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

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

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

query I rowsort
SELECT - 72 * - 28 * + + col0 FROM tab1
----
102816
171360
183456

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT ALL - + MIN( + col0 ) * MIN( DISTINCT - col2 ) AS col2 FROM tab2 cor0
----
2668

skipif mysql # not compatible
query I rowsort label-1181
SELECT ALL - + MIN ( + col0 ) * MIN ( DISTINCT - col2 ) AS col2 FROM tab2 cor0
----
2668

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

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

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

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

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

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
10
47
99

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1187
SELECT DISTINCT + MAX ( - - col1 ) col1 FROM tab1 AS cor0
----
47

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

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

query I rowsort
SELECT 39 + - col2 - + col1 * + ( + col1 ) FROM tab1 AS cor0
----
-2238
-253
-45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT DISTINCT MAX( ALL + 34 ) FROM tab1 WHERE NOT - col2 - - 58 = ( + 81 / col1 )
----
34

skipif mysql # not compatible
query I rowsort label-1191
SELECT DISTINCT MAX ( ALL + 34 ) FROM tab1 WHERE NOT - col2 - - 58 = ( + 81 / col1 )
----
34

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 col0 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT - - 27 * + COUNT( * ) AS col2 FROM tab2 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1194
SELECT - - 27 * + COUNT ( * ) AS col2 FROM tab2 WHERE NOT col0 IS NOT NULL
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1196
SELECT DISTINCT col0 * col2 + - CAST( + col0 AS SIGNED ) FROM tab1
----
4845
4930
6097

skipif mysql # not compatible
query I rowsort label-1196
SELECT DISTINCT col0 * col2 + - CAST ( + col0 AS INTEGER ) FROM tab1
----
4845
4930
6097

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1199
SELECT + + CAST( + CAST( 78 AS SIGNED ) AS SIGNED ) col2, + col0 * col1 + + 34 DIV 81 FROM tab1 AS cor0
----
78
425
78
4277
78
714

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1199
SELECT + + CAST ( + CAST ( 78 AS INTEGER ) AS INTEGER ) col2, + col0 * col1 + + 34 / 81 FROM tab1 AS cor0
----
78
425
78
4277
78
714

query I rowsort
SELECT DISTINCT + col0 * - col1 + - col1 + - ( - col0 ) * - 80 + - - col2 - + + col0 FROM tab2 AS cor0
----
-10149
-11109
-6100

query I rowsort
SELECT ALL + + col0 + col2 + - ( + 8 ) + - col2 FROM tab1 AS cor0 WHERE col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT ALL COUNT( * ) + 6 + + 32 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL COUNT ( * ) + 6 + + 32 FROM tab2
----
41

query I rowsort
SELECT - ( + + 96 ) + - 23 AS col2 FROM tab1
----
-119
-119
-119

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1205
SELECT ALL COUNT( * ) AS col2 FROM tab2 cor0 WHERE col0 IN ( - - CAST( col0 AS SIGNED ) * + - ( + col0 ) + col0 / + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1205
SELECT ALL COUNT ( * ) AS col2 FROM tab2 cor0 WHERE col0 IN ( - - CAST ( col0 AS INTEGER ) * + - ( + col0 ) + col0 / + col0 )
----
0

query I rowsort
SELECT DISTINCT - - col0 - 10 FROM tab2 AS cor0
----
36
54
65

query I rowsort
SELECT DISTINCT col2 - - 16 FROM tab2 cor0
----
39
56
74

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1210
SELECT ALL COUNT ( * ) - - - ( + + 6 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT MIN( + col0 ) - + + COUNT( * ) AS col0 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-1211
SELECT MIN ( + col0 ) - + + COUNT ( * ) AS col0 FROM tab1
----
48

query I rowsort
SELECT DISTINCT col0 * - 6 - + col2 AS col1 FROM tab0
----
-137
-532
-681

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

query I rowsort
SELECT 73 * - + col1 AS col1 FROM tab2
----
-3723
-4891
-5621

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT + COUNT( * ) * ( + 88 ) FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-1215
SELECT + COUNT ( * ) * ( + 88 ) FROM tab0
----
264

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1217
SELECT - 78 * + CAST( col0 AS SIGNED ) FROM tab1
----
-3978
-6630
-7098

skipif mysql # not compatible
query I rowsort label-1217
SELECT - 78 * + CAST ( col0 AS INTEGER ) FROM tab1
----
-3978
-6630
-7098

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1218
SELECT ALL MIN( DISTINCT - + ( CAST( - + col1 AS SIGNED ) ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL MIN ( DISTINCT - + ( CAST ( - + col1 AS INTEGER ) ) ) FROM tab1
----
5

query II rowsort
SELECT DISTINCT - col0 AS col2, - 1 AS col0 FROM tab1 AS cor0
----
-51
-1
-85
-1
-91
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-1220
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

query I rowsort
SELECT ALL + col0 * - + col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # DIV for integer division: 
query I rowsort label-1222
SELECT DISTINCT col1 + + 22 - + + ( + 56 ) * - col0 + ( + + col1 ) + + - col2 * ( - col1 ) DIV col0 * + col1 * + col2 col1 FROM tab0 AS cor0
----
5356
5555
964195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1222
SELECT DISTINCT col1 + + 22 - + + ( + 56 ) * - col0 + ( + + col1 ) + + - col2 * ( - col1 ) / col0 * + col1 * + col2 col1 FROM tab0 AS cor0
----
5356
5555
964195

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

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

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

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

query I rowsort
SELECT ALL - + ( - 89 ) * + + 88 FROM tab1 AS cor0
----
7832
7832
7832

onlyif mysql # DIV for integer division: 
query II rowsort label-1227
SELECT + 30 * col0 - - 59 + - col0, col0 + - 94 DIV col2 AS col0 FROM tab1 cor0
----
1538
51
2524
84
2698
90

skipif mysql # not compatible
query II rowsort label-1227
SELECT + 30 * col0 - - 59 + - col0, col0 + - 94 / col2 AS col0 FROM tab1 cor0
----
1538
51
2524
84
2698
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * ( - 44 ) col1 FROM tab1 AS cor0
----
-2244
-3740
-4004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, col2 * - col1 col0 FROM tab0 AS cor0
----
-10
-210
-47
-3807
-99
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1230
SELECT ALL COUNT( * ) / CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL COUNT ( * ) / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

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

query I rowsort
SELECT DISTINCT 89 * + col2 FROM tab2
----
2047
3560
5162

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

query I rowsort
SELECT + col0 * - 77 * 89 * col1 FROM tab1 cor0
----
-2912525
-29310281
-4893042

query I rowsort
SELECT ALL + - 51 * - + col2 + + col2 - - col0 FROM tab1 AS cor0
----
3153
3627
5043

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

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

query II rowsort
SELECT - col2, ( + col0 ) FROM tab2
----
-23
46
-40
64
-58
75

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT - 47 + - ( + 71 ) = NULL
----

query I rowsort
SELECT ALL + 69 + + ( - col2 ) FROM tab0
----
-30
22
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT ALL MAX( - - col2 ) col1 FROM tab1
----
96

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

query I rowsort
SELECT + - col2 * col1 + - 98 - + 21 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - - 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT - 36 - COUNT( * ) col0 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1243
SELECT - 36 - COUNT ( * ) col0 FROM tab1 AS cor0
----
-39

query I rowsort
SELECT ALL - + col0 + - 21 AS col0 FROM tab1 AS cor0
----
-106
-112
-72

query I rowsort
SELECT col1 - - ( + + col2 ) + - 60 AS col0 FROM tab0 cor0
----
-29
40
68

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1250
SELECT - CAST( MIN( ALL col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1250
SELECT - CAST ( MIN ( ALL col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 col2 FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( - col0 )
----

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

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

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

query I rowsort
SELECT + col1 * ( col1 ) AS col2 FROM tab1
----
196
2209
25

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

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

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

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

query I rowsort
SELECT 32 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

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

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

query I rowsort
SELECT - 7 + + 93 + - col0 FROM tab0 AS cor0
----
-1
-11
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1260
SELECT - 99 * - CAST( ( + col1 ) AS SIGNED ) + + 29, + col1 FROM tab2 AS cor0
----
5078
51
6662
67
7652
77

skipif mysql # not compatible
query II rowsort label-1260
SELECT - 99 * - CAST ( ( + col1 ) AS INTEGER ) + + 29, + col1 FROM tab2 AS cor0
----
5078
51
6662
67
7652
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT MIN( col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-1263
SELECT MIN ( col2 ) FROM tab1
----
59

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

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

query I rowsort
SELECT + - 19 AS col0 FROM tab2 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 31, - 3 col0 FROM tab1
----
31
-3

query I rowsort
SELECT ALL + col0 + - - col1 FROM tab1
----
138
65
90

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + + col0 + - 90 * + 40 col1 FROM tab2 AS cor0
----
-3458
-3459
-3503

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

skipif mysql # not compatible
query I rowsort label-1271
SELECT DISTINCT + CAST ( NULL AS REAL ) + + 92 + + col2 * + col2 FROM tab0 AS cor0
----
NULL

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

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

query I rowsort
SELECT ALL - 9 * col1 FROM tab2
----
-459
-603
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT ALL - 39 + + MIN( ALL - 10 ) AS col0 FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL - 39 + + MIN ( ALL - 10 ) AS col0 FROM tab0 AS cor0
----
-49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1276
SELECT ALL + col0 * + CAST( NULL AS DECIMAL ) AS col2, - col0 * - col0 FROM tab2 AS cor0 WHERE NOT col0 * + col2 / + + 35 + - col1 IS NULL
----
NULL
2116
NULL
4096
NULL
5625

skipif mysql # not compatible
query II rowsort label-1276
SELECT ALL + col0 * + CAST ( NULL AS REAL ) AS col2, - col0 * - col0 FROM tab2 AS cor0 WHERE NOT col0 * + col2 / + + 35 + - col1 IS NULL
----
NULL
2116
NULL
4096
NULL
5625

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1278
SELECT DISTINCT 22 DIV + ( col0 ) * + col0 DIV + 39 AS col2 FROM tab2 WHERE + 89 + - 85 + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1278
SELECT DISTINCT 22 / + ( col0 ) * + col0 / + 39 AS col2 FROM tab2 WHERE + 89 + - 85 + col2 IS NOT NULL
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1280
SELECT ALL COUNT( * ) DIV - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL COUNT ( * ) / - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT ALL MIN( - col2 ) * - COUNT( * ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL MIN ( - col2 ) * - COUNT ( * ) FROM tab1
----
288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1282
SELECT - + col2 AS col0 FROM tab1 WHERE NOT 52 / CAST( + - 99 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1282
SELECT - + col2 AS col0 FROM tab1 WHERE NOT 52 / CAST ( + - 99 AS INTEGER ) IS NOT NULL
----

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

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

query I rowsort
SELECT col1 + - - col1 + - ( - col2 ) AS col2 FROM tab2
----
125
192
194

query I rowsort
SELECT ALL - 81 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 * + col2 * - 31 * + 7 + + 67 + + 62 * + - 43 IS NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1287
SELECT DISTINCT COUNT ( * ) + - 49 col2 FROM tab0
----
-46

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

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

skipif mysql # not compatible
query I rowsort label-1289
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE col1 IS NULL
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 / + - 0 + col1 * col1 col1, + col1 FROM tab1 cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + 85 - - 42 IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1295
SELECT DISTINCT - MIN( DISTINCT - col0 ) AS col2, + COUNT( * ) * - + 1 - + 53 FROM tab0 AS cor0
----
97
-56

skipif mysql # not compatible
query II rowsort label-1295
SELECT DISTINCT - MIN ( DISTINCT - col0 ) AS col2, + COUNT ( * ) * - + 1 - + 53 FROM tab0 AS cor0
----
97
-56

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1297
SELECT + - 68 * 12 - + CAST( NULL AS SIGNED ) 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-1297
SELECT + - 68 * 12 - + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - + col1 ) AS col1 FROM tab1
----
14
47
5

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

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

query I rowsort
SELECT DISTINCT 90 + + 11 * - col0 FROM tab0
----
-75
-867
-977

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1301
SELECT col2 + CAST( NULL AS DECIMAL ) + + 15 / + + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1301
SELECT col2 + CAST ( NULL AS REAL ) + + 15 / + + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL 63 + + col1 AS col0 FROM tab1
----
110
68
77

query I rowsort
SELECT DISTINCT + + 69 + - col2 FROM tab0 AS cor0
----
-30
22
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT DISTINCT + COUNT( * ) - - MAX( DISTINCT - col2 ) FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-1305
SELECT DISTINCT + COUNT ( * ) - - MAX ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT COUNT( * ) * COUNT( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
81

skipif mysql # not compatible
query I rowsort label-1308
SELECT COUNT ( * ) * COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
81

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

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

query II rowsort
SELECT 39 AS col0, - col0 + + - 85 AS col0 FROM tab2 AS cor0
----
39
-131
39
-149
39
-160

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1313
SELECT + CAST( - 79 AS SIGNED ) DIV - col2 AS col0, + col1 AS col0 FROM tab0
----
0
1
1
81
7
21

skipif mysql # not compatible
query II rowsort label-1313
SELECT + CAST ( - 79 AS INTEGER ) / - col2 AS col0, + col1 AS col0 FROM tab0
----
0
1
1
81
7
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 11 col1 FROM tab1
----
-154
-517
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1315
SELECT - - CAST( - + 34 AS SIGNED ) FROM tab2 WHERE NOT col1 <> 39
----

skipif mysql # not compatible
query I rowsort label-1315
SELECT - - CAST ( - + 34 AS INTEGER ) FROM tab2 WHERE NOT col1 <> 39
----

query I rowsort
SELECT + col2 * - 60 / 23 + + - col1 FROM tab1 WHERE NOT NULL NOT IN ( + 17 - - + col1, - col0 * - 63 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 20 * col0, col2 col0 FROM tab1
----
1020
96
1700
59
1820
68

query I rowsort
SELECT DISTINCT + ( + + col1 ) FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT - 49 * - ( - - col0 ) FROM tab1 AS cor0
----
2499
4165
4459

query I rowsort
SELECT - + 84 AS col1 FROM tab1 WHERE NOT + + col1 + - 53 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1321
SELECT - - 21, ( - COUNT( * ) ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
21
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1321
SELECT - - 21, ( - COUNT ( * ) ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
21
-9

query I rowsort
SELECT col2 + + - col2 * + col0 AS col2 FROM tab1
----
-4800
-4956
-6120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1323
SELECT DISTINCT CAST( - 64 AS SIGNED ) + - 97 FROM tab2 AS cor0
----
-161

skipif mysql # not compatible
query I rowsort label-1323
SELECT DISTINCT CAST ( - 64 AS INTEGER ) + - 97 FROM tab2 AS cor0
----
-161

query I rowsort
SELECT ALL + + 31 + + 94 FROM tab0 AS cor0
----
125
125
125

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT - 31 * - + 76 + + COUNT( * ) AS col1 FROM tab0 cor0
----
2359

skipif mysql # not compatible
query I rowsort label-1325
SELECT - 31 * - + 76 + + COUNT ( * ) AS col1 FROM tab0 cor0
----
2359

query I rowsort
SELECT ALL - col2 + - col1 + - col2 AS col2 FROM tab1 AS cor0
----
-123
-183
-206

onlyif mysql # DIV for integer division: 
query I rowsort label-1327
SELECT + - col1 DIV + 44 + - col1 FROM tab0 AS cor0
----
-1
-21
-82

skipif mysql # not compatible
query I rowsort label-1327
SELECT + - col1 / + 44 + - col1 FROM tab0 AS cor0
----
-1
-21
-82

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

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

query I rowsort
SELECT ALL + 35 + - col1 + col2 - - 91 * + col2 * - 35 FROM tab2 AS cor0
----
-127402
-184704
-73248

onlyif mysql # aggregate syntax: 
query II rowsort label-1330
SELECT DISTINCT ( + + MIN( DISTINCT col0 ) ) AS col1, 98 AS col2 FROM tab0 AS cor0
----
15
98

skipif mysql # not compatible
query II rowsort label-1330
SELECT DISTINCT ( + + MIN ( DISTINCT col0 ) ) AS col1, 98 AS col2 FROM tab0 AS cor0
----
15
98

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - - col2 ) IS NOT NULL
----

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

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

query I rowsort
SELECT + col1 - - col1 + col1 FROM tab0 AS cor0
----
243
3
63

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1336
SELECT col1, - 21 DIV + 40 FROM tab1
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-1336
SELECT col1, - 21 / + 40 FROM tab1
----
14
0
47
0
5
0

query I rowsort
SELECT ( + col1 ) FROM tab1 AS cor0 WHERE NOT - col1 <> NULL
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT ALL ( + 48 ) * - ( + COUNT( * ) ) AS col0 FROM tab0 cor0
----
-144

skipif mysql # not compatible
query I rowsort label-1342
SELECT ALL ( + 48 ) * - ( + COUNT ( * ) ) AS col0 FROM tab0 cor0
----
-144

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

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

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NULL = 79 / 77
----

query I rowsort
SELECT DISTINCT + 44 * - - col2 FROM tab2
----
1012
1760
2552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1346
SELECT COUNT( * ), - CAST( - + SUM( col1 ) AS SIGNED ) AS col0 FROM tab2
----
3
195

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1347
SELECT ALL * FROM tab2 WHERE + ( - col2 ) * - CAST( + + col0 AS SIGNED ) + + 46 + + col2 * - - col0 * col0 IN ( - 27, col2, col1, col0 )
----

skipif mysql # not compatible
query III rowsort label-1347
SELECT ALL * FROM tab2 WHERE + ( - col2 ) * - CAST ( + + col0 AS INTEGER ) + + 46 + + col2 * - - col0 * col0 IN ( - 27, col2, col1, col0 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1349
SELECT 58 AS col2, + CAST( NULL AS SIGNED ) FROM tab1
----
58
NULL
58
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-1349
SELECT 58 AS col2, + CAST ( NULL AS INTEGER ) FROM tab1
----
58
NULL
58
NULL
58
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1350
SELECT DISTINCT COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1350
SELECT DISTINCT COUNT ( * ) * - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - col1 + - ( - col1 ) AS col0 FROM tab0 AS cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT DISTINCT + - COUNT( + 3 ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1353
SELECT DISTINCT + - COUNT ( + 3 ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL + col1 + col2 + + 37 AS col1 FROM tab2 cor0
----
111
154
162

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

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

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

skipif mysql # not compatible
query I rowsort label-1356
SELECT + COUNT ( * ) * - CAST ( NULL AS REAL ) + + COUNT ( * ) FROM tab0 AS cor0
----
NULL

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

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

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE col2 BETWEEN + 27 AND col2 + - 95
----

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1361
SELECT 79 + + 43 + - 23 + 41 + 16 AS col2, COUNT( * ) DIV + + COUNT( * ) FROM tab0 AS cor0
----
156
1

skipif mysql # not compatible
query II rowsort label-1361
SELECT 79 + + 43 + - 23 + 41 + 16 AS col2, COUNT ( * ) / + + COUNT ( * ) FROM tab0 AS cor0
----
156
1

query I rowsort
SELECT + col1 + 45 FROM tab0
----
126
46
66

query III rowsort
SELECT * FROM tab1 WHERE + + 43 + - 71 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + + 55 * col1 col1 FROM tab1
----
-2653
-334
-866

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1365
SELECT ( - 1 ) + - - col1 AS col2, - CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab0
----
0
NULL
20
NULL
80
NULL

skipif mysql # not compatible
query II rowsort label-1365
SELECT ( - 1 ) + - - col1 AS col2, - CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab0
----
0
NULL
20
NULL
80
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1367
SELECT - ( + ( + - col2 ) ) DIV + col1 + - 58 FROM tab1 AS cor0
----
-47
-52
-57

skipif mysql # not compatible
query I rowsort label-1367
SELECT - ( + ( + - col2 ) ) / + col1 + - 58 FROM tab1 AS cor0
----
-47
-52
-57

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

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

query I rowsort
SELECT + 35 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT + 19 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1372
SELECT 79 DIV 88 AS col1, 41 * col0 FROM tab1 AS cor0
----
0
2091
0
3485
0
3731

skipif mysql # not compatible
query II rowsort label-1372
SELECT 79 / 88 AS col1, 41 * col0 FROM tab1 AS cor0
----
0
2091
0
3485
0
3731

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1373
SELECT ALL MIN( ALL - 48 ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL MIN ( ALL - 48 ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 * - + col0 + - - col0 + col1 * - col1 * - col0 * - 15 AS col2 FROM tab1 AS cor0
----
-149175
-3010917
-31365

query I rowsort
SELECT col1 + - 63 - + 79 AS col1 FROM tab0
----
-121
-141
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-1376
SELECT COUNT( * ) AS col0, COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-1376
SELECT COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT DISTINCT + COUNT( * ) * COUNT( DISTINCT - col0 ) + - - MAX( col1 ) * - ( + + COUNT( * ) ) FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-1377
SELECT DISTINCT + COUNT ( * ) * COUNT ( DISTINCT - col0 ) + - - MAX ( col1 ) * - ( + + COUNT ( * ) ) FROM tab1
----
-132

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1381
SELECT - col1 * - 36 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

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

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

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

query I rowsort
SELECT DISTINCT - + 38 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT DISTINCT - 73 + + COUNT( * ) FROM tab2
----
-70

skipif mysql # not compatible
query I rowsort label-1386
SELECT DISTINCT - 73 + + COUNT ( * ) FROM tab2
----
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + 19 col0, col2 FROM tab2
----
70
23
86
58
96
40

query I rowsort
SELECT ALL 36 * - - 78 FROM tab0 AS cor0
----
2808
2808
2808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1389
SELECT ALL COUNT( * ) + - COUNT( + CAST( 90 AS SIGNED ) ) AS col0, + 23 AS col0 FROM tab2 AS cor0
----
0
23

skipif mysql # not compatible
query II rowsort label-1389
SELECT ALL COUNT ( * ) + - COUNT ( + CAST ( 90 AS INTEGER ) ) AS col0, + 23 AS col0 FROM tab2 AS cor0
----
0
23

query I rowsort
SELECT ALL + 31 + - col1 AS col2 FROM tab1 AS cor0
----
-16
17
26

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1391
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1391
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----

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

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

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

query II rowsort
SELECT DISTINCT col0 * - 35 - col1 AS col0, - col2 AS col2 FROM tab2
----
-1661
-23
-2317
-40
-2692
-58

query I rowsort
SELECT 45 - + col0 AS col2 FROM tab0
----
-42
-52
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT DISTINCT + COUNT( * ) - - ( 68 ) AS col0 FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-1397
SELECT DISTINCT + COUNT ( * ) - - ( 68 ) AS col0 FROM tab1
----
71

query II rowsort
SELECT DISTINCT + col1 * col1, col2 FROM tab0
----
1
99
441
10
6561
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1399
SELECT ALL 79 - - + MAX( - CAST( - + 20 AS SIGNED ) ) + + 11 AS col0 FROM tab1
----
110

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL 79 - - + MAX ( - CAST ( - + 20 AS INTEGER ) ) + + 11 AS col0 FROM tab1
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT DISTINCT 67 + + COUNT( + col0 ) FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-1400
SELECT DISTINCT 67 + + COUNT ( + col0 ) FROM tab2
----
70

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 20 * + 17 * - col0 < - + col1
----

query I rowsort
SELECT + 46 - + col1 * ( + + 8 ) * col1 + + 59 AS col2 FROM tab1
----
-1463
-17567
-95

query I rowsort
SELECT 78 * + ( 17 ) FROM tab0
----
1326
1326
1326

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE ( + col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE ( + col0 ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1405
SELECT ALL + + col2 * - 22 AS col0, + col0 + CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1034
62
-2178
196
-220
97

skipif mysql # not compatible
query II rowsort label-1405
SELECT ALL + + col2 * - 22 AS col0, + col0 + CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1034
62
-2178
196
-220
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT ALL + - COUNT( * ) * + 42 + - COUNT( * ) + 10 * - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-477

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL + - COUNT ( * ) * + 42 + - COUNT ( * ) + 10 * - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-477

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT SUM( - 77 ) FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-1410
SELECT SUM ( - 77 ) FROM tab2 AS cor0
----
-231

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

query I rowsort
SELECT DISTINCT col1 + + 32 AS col1 FROM tab1 AS cor0
----
37
46
79

query I rowsort
SELECT ALL - 18 * col0 FROM tab0 cor0
----
-1566
-1746
-270

query I rowsort
SELECT - + 48 * + col1 AS col2 FROM tab0 AS cor0
----
-1008
-3888
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 29 AS col0, 17 - col0 col2 FROM tab0 cor0
----
29
-70
29
-80
29
2

query II rowsort
SELECT + 51 * - col0 AS col0, + 37 FROM tab1
----
-2601
37
-4335
37
-4641
37

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1419
SELECT + CAST ( - col1 AS INTEGER ) col2 FROM tab2
----
-51
-67
-77

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

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

query I rowsort
SELECT + col2 * col0 * - 76 FROM tab2
----
-194560
-330600
-80408

query II rowsort
SELECT DISTINCT col0 + col1 AS col2, + col0 + + col1 AS col0 FROM tab1
----
138
138
65
65
90
90

query I rowsort
SELECT - col2 + + 32 FROM tab0
----
-15
-67
22

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

query II rowsort
SELECT ALL - ( - col1 ) AS col1, col1 * - col2 FROM tab1 AS cor0 WHERE NULL <> 76
----

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

query I rowsort
SELECT - col2 * 66 FROM tab0 AS cor0
----
-3102
-6534
-660

query I rowsort
SELECT ALL - ( + col0 ) * + 67 AS col0 FROM tab2
----
-3082
-4288
-5025

query I rowsort
SELECT DISTINCT + ( - col2 ) - + col2 AS col1 FROM tab0 AS cor0
----
-198
-20
-94

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

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

query I rowsort
SELECT DISTINCT - + col0 - - col0 AS col0 FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT ALL - col0 - - 15 FROM tab1 AS cor0
----
-36
-70
-76

query I rowsort
SELECT + + col1 + + - 55 FROM tab2 cor0
----
-4
12
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT DISTINCT - MAX( 19 ) + + - 80 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT - MAX ( 19 ) + + - 80 FROM tab1 AS cor0
----
-99

query I rowsort
SELECT ALL 77 * 11 FROM tab0
----
847
847
847

query I rowsort
SELECT - col0 * col2 + - - col0 AS col1 FROM tab1
----
-4845
-4930
-6097

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1438
SELECT ALL - 16 - ( CAST( + 61 AS SIGNED ) ) + col1 FROM tab0
----
-56
-76
4

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL - 16 - ( CAST ( + 61 AS INTEGER ) ) + col1 FROM tab0
----
-56
-76
4

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

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

query I rowsort
SELECT ALL col2 * 77 * - col2 - col0 + col0 AS col2 FROM tab1 WHERE NOT - - col2 / col1 IS NULL
----
-268037
-356048
-709632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1441
SELECT ALL - CAST( ( 78 ) AS SIGNED ) AS col2 FROM tab0
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL - CAST ( ( 78 ) AS INTEGER ) AS col2 FROM tab0
----
-78
-78
-78

query III rowsort
SELECT * FROM tab0 WHERE NOT + 10 * + 50 > NULL
----

query I rowsort
SELECT DISTINCT + - 11 * - col1 FROM tab0 AS cor0
----
11
231
891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 17 AS col2, + 81 + + + col0 col1 FROM tab2 AS cor0
----
17
127
17
145
17
156

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT DISTINCT - ( + 16 ) * - COUNT( * ) AS col0 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-1447
SELECT DISTINCT - ( + 16 ) * - COUNT ( * ) AS col0 FROM tab0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT ALL - 10 * MAX( DISTINCT - + col1 ) FROM tab2
----
510

skipif mysql # not compatible
query I rowsort label-1448
SELECT ALL - 10 * MAX ( DISTINCT - + col1 ) FROM tab2
----
510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1449
SELECT + - col0 * col2 * + CAST( - col2 AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
102477
24385
252367

skipif mysql # not compatible
query I rowsort label-1449
SELECT + - col0 * col2 * + CAST ( - col2 AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0
----
102477
24385
252367

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT MAX( col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT 30 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1450
SELECT MAX ( col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT 30 >= NULL
----
NULL

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

query I rowsort
SELECT + col2 * col1 + - col0 * + 36 + - 74 AS col1 FROM tab2 AS cor0
----
-557
1112
702

query III rowsort
SELECT * FROM tab1 WHERE col1 = + - ( + 9 )
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT DISTINCT 69 + - + COUNT( * ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-1457
SELECT DISTINCT 69 + - + COUNT ( * ) FROM tab2
----
66

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1458
SELECT DISTINCT 96 + col1 * - - col2 - - - 29 + CAST( + 67 AS DECIMAL ) * col1 + col2 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1458
SELECT DISTINCT 96 + col1 * - - col2 - - - 29 + CAST ( + 67 AS REAL ) * col1 + col2 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE 28 / - col2 IS NULL
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1461
SELECT DISTINCT + + SUM ( DISTINCT + - 31 ) col0 FROM tab1 AS cor0
----
-31

query I rowsort
SELECT DISTINCT 13 * + 63 FROM tab0, tab0 AS cor0
----
819

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT MIN( ALL + col2 ) + + - COUNT( * ) col2 FROM tab1
----
56

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

query I rowsort
SELECT + col1 + + ( + + col2 ) * 0 FROM tab0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 / - col2 - + col2 >= + ( - - col0 ) * ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 64 * + col2 * 84 AS col1 FROM tab2 AS cor0
----
123648
215040
311808

query I rowsort
SELECT - 2 * + 89 * 73 AS col2 FROM tab0 AS cor0
----
-12994
-12994
-12994

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col2 + - + col2 > - + 50
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1471
SELECT * FROM tab0 WHERE NOT + col0 / + - CAST( col2 AS SIGNED ) * 39 < + col0
----

skipif mysql # not compatible
query III rowsort label-1471
SELECT * FROM tab0 WHERE NOT + col0 / + - CAST ( col2 AS INTEGER ) * 39 < + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= col2 + col1 * - + 68
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1473
SELECT DISTINCT + 0 * + MIN( DISTINCT + + col0 ) AS col2, + COUNT( * ) FROM tab1
----
0
3

skipif mysql # not compatible
query II rowsort label-1473
SELECT DISTINCT + 0 * + MIN ( DISTINCT + + col0 ) AS col2, + COUNT ( * ) FROM tab1
----
0
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1474
SELECT ALL + 67 DIV + + col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-1474
SELECT ALL + 67 / + + col2 FROM tab0
----
0
1
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1475
SELECT ALL 19 DIV 66 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL 19 / 66 FROM tab0
----
0
0
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1477
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) / + 13 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1477
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) / + 13 col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT + MIN( ALL + 57 ) AS col1 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-1478
SELECT + MIN ( ALL + 57 ) AS col1 FROM tab2
----
57

query I rowsort
SELECT DISTINCT col2 * - 31 AS col2 FROM tab2
----
-1240
-1798
-713

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

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

query I rowsort
SELECT DISTINCT + col1 * - + 77 AS col0 FROM tab2
----
-3927
-5159
-5929

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT ALL - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1486
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1487
SELECT - ( + + col2 ) DIV - col0 + - + 94 col1 FROM tab2 AS cor0
----
-94
-94
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1487
SELECT - ( + + col2 ) / - col0 + - + 94 col1 FROM tab2 AS cor0
----
-94
-94
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-1488
SELECT + - 9 DIV col2 * - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1488
SELECT + - 9 / col2 * - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE 10 <> - + col1
----
3

skipif mysql # not compatible
query I rowsort label-1489
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE 10 <> - + col1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + - - 16, col2 col1 FROM tab2
----
62
23
80
40
91
58

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

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

query I rowsort
SELECT ALL 24 + + col2 FROM tab1
----
120
83
92

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

query I rowsort
SELECT DISTINCT + col0 * - col0 + 53 AS col1 FROM tab1 AS cor0
----
-2548
-7172
-8228

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

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

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

query II rowsort
SELECT col0 * - col1 * col2 - + col2 AS col0, col0 AS col0 FROM tab1
----
-25134
85
-290904
91
-68640
51

query II rowsort
SELECT ALL + col1 AS col2, 41 + - col0 AS col1 FROM tab0 AS cor0
----
1
-56
21
-46
81
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT - 71 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-1500
SELECT - 71 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT - MAX( col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1501
SELECT - MAX ( col0 ) AS col2 FROM tab0 AS cor0
----
-97

query II rowsort
SELECT col1 AS col0, - 14 * - - col1 - + + 97 AS col1 FROM tab2 AS cor0
----
51
-811
67
-1035
77
-1175

onlyif mysql # DIV for integer division: 
query I rowsort label-1503
SELECT DISTINCT - + col1 DIV 15 col0 FROM tab2 AS cor0 WHERE NOT col0 + - col2 IS NULL
----
-3
-4
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1503
SELECT DISTINCT - + col1 / 15 col0 FROM tab2 AS cor0 WHERE NOT col0 + - col2 IS NULL
----
-3
-4
-5

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1506
SELECT + CAST( NULL AS SIGNED ), + col2 + - col0 AS col2 FROM tab1 AS cor0
----
NULL
-23
NULL
-26
NULL
45

skipif mysql # not compatible
query II rowsort label-1506
SELECT + CAST ( NULL AS INTEGER ), + col2 + - col0 AS col2 FROM tab1 AS cor0
----
NULL
-23
NULL
-26
NULL
45

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col0 ) >= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT - 32 * + - 17 FROM tab2 AS cor0
----
544
544
544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 * + col2 * + + col2 col2, col2 AS col1 FROM tab0 AS cor0
----
1000
10
103823
47
970299
99

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 * + - col0 + - - 64 + - + col2 / + - col0 * + 35 ) IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT ALL SUM( DISTINCT + col1 ) AS col2 FROM tab1 WHERE NOT + 44 * - col1 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL SUM ( DISTINCT + col1 ) AS col2 FROM tab1 WHERE NOT + 44 * - col1 >= NULL
----
NULL

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1520
SELECT - MIN ( ALL - 29 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * - 89 - + col2 AS col0 FROM tab2 AS cor0
----
2024
3520
5104

query I rowsort
SELECT + col2 * - - 97 AS col0 FROM tab2 AS cor0
----
2231
3880
5626

query I rowsort
SELECT - ( - col2 ) * - - col0 AS col0 FROM tab0 AS cor0
----
705
870
9603

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

skipif mysql # not compatible
query I rowsort label-1524
SELECT ALL COUNT ( - col2 ) * + - SUM ( col0 ) AS col1 FROM tab1 AS cor0
----
-681

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

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

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

query I rowsort
SELECT col0 + + - col2 FROM tab0 AS cor0
----
-2
-32
77

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

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

query I rowsort
SELECT - - 96 + - 16 AS col1 FROM tab0 cor0
----
80
80
80

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1532
SELECT CAST( + - 76 AS SIGNED ) * 8 col2 FROM tab2
----
-608
-608
-608

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1532
SELECT CAST ( + - 76 AS INTEGER ) * 8 col2 FROM tab2
----
-608
-608
-608

onlyif mysql # DIV for integer division: 
query I rowsort label-1533
SELECT DISTINCT 3 DIV + col1 AS col2 FROM tab0
----
0
3

skipif mysql # not compatible
query I rowsort label-1533
SELECT DISTINCT 3 / + col1 AS col2 FROM tab0
----
0
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1534
SELECT ALL + + CAST( + col1 AS SIGNED ) AS col0 FROM tab2 WHERE NOT + 19 NOT IN ( - CAST( - col0 AS SIGNED ), - 63 )
----

skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL + + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 WHERE NOT + 19 NOT IN ( - CAST ( - col0 AS INTEGER ), - 63 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 + - - col0 col0 FROM tab1
----
-27
13
7

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

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

query I rowsort
SELECT + 87 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT + 84 + + col1 FROM tab0 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1541
SELECT DISTINCT + - COUNT( * ) DIV - 79 + - 76 AS col2 FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-1541
SELECT DISTINCT + - COUNT ( * ) / - 79 + - 76 AS col2 FROM tab1 AS cor0
----
-76

query I rowsort
SELECT - col2 + 16 AS col2 FROM tab0
----
-31
-83
6

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

query I rowsort
SELECT ( - col1 ) * + col2 * + col0 AS col2 FROM tab2
----
-197120
-291450
-53958

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1545
SELECT DISTINCT + MAX ( DISTINCT + + col0 ) col0 FROM tab0
----
97

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

skipif mysql # not compatible
query I rowsort label-1546
SELECT - ( + + col0 ) / + col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT 15 * + col1 * - + 10 FROM tab0
----
-12150
-150
-3150

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 45 ) < col1
----
51
14
96
85
5
59

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

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

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE col0 - 34 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT MIN( + col1 ) col0 FROM tab0
----
1

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

query I rowsort
SELECT ALL + col2 + + + 62 FROM tab0 WHERE ( + ( col2 ) + + + 42 IS NULL )
----

query I rowsort
SELECT DISTINCT - 95 * - 29 AS col1 FROM tab0
----
2755

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col1, + col1 * col2 * + col1 col2 FROM tab0 AS cor0
----
10
4410
47
308367
99
99

query I rowsort
SELECT col1 + col1 FROM tab0 WHERE ( 58 ) >= ( col2 + + 84 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT DISTINCT SUM( col1 ) + + SUM( ALL col2 ) FROM tab1
----
289

skipif mysql # not compatible
query I rowsort label-1559
SELECT DISTINCT SUM ( col1 ) + + SUM ( ALL col2 ) FROM tab1
----
289

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT ALL COUNT( * ) + 25 FROM tab1 WHERE - col0 <> NULL
----
25

skipif mysql # not compatible
query I rowsort label-1560
SELECT ALL COUNT ( * ) + 25 FROM tab1 WHERE - col0 <> NULL
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1561
SELECT DISTINCT - CAST( 95 AS SIGNED ) FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-1561
SELECT DISTINCT - CAST ( 95 AS INTEGER ) FROM tab1
----
-95

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

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

query I rowsort
SELECT ALL col0 FROM tab0 WHERE ( col2 ) * + col0 IS NOT NULL
----
15
87
97

query I rowsort
SELECT 68 + + col1 * + col0 FROM tab2
----
2414
4996
5093

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1565
SELECT SUM ( ALL + col2 ) col1 FROM tab0
----
156

query I rowsort
SELECT ALL col2 * + 90 FROM tab0
----
4230
8910
900

query I rowsort
SELECT DISTINCT col1 + + col1 * - 99 AS col0 FROM tab0 WHERE NOT - 42 IS NULL
----
-2058
-7938
-98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT - 35 + ( + MAX( ALL + col2 ) ) * - COUNT( * ) AS col0 FROM tab2
----
-209

skipif mysql # not compatible
query I rowsort label-1569
SELECT - 35 + ( + MAX ( ALL + col2 ) ) * - COUNT ( * ) AS col0 FROM tab2
----
-209

query I rowsort
SELECT DISTINCT + ( + col2 ) * + 57 AS col0 FROM tab0
----
2679
5643
570

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

query I rowsort
SELECT col1 + 88 AS col0 FROM tab0
----
109
169
89

onlyif mysql # DIV for integer division: 
query I rowsort label-1573
SELECT col2 DIV 65 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1573
SELECT col2 / 65 FROM tab1
----
0
1
1

query I rowsort
SELECT - col0 * - ( 10 * col1 ) AS col1 FROM tab0
----
12150
18270
970

query I rowsort
SELECT ALL + col0 - - col0 * col0 AS col1 FROM tab0
----
240
7656
9506

query III rowsort
SELECT * FROM tab0 WHERE NOT + 71 * 89 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT DISTINCT ( MIN( - ( + col2 ) ) ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1579
SELECT DISTINCT ( MIN ( - ( + col2 ) ) ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT + col2 + - col2 * + col1 FROM tab2
----
-1150
-3040
-3828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 64 col2 FROM tab0
----
-17
-54
35

query I rowsort
SELECT DISTINCT - col0 + - 66 * col1 AS col0 FROM tab1
----
-3193
-415
-975

query I rowsort
SELECT col2 * col1 - + col1 FROM tab2
----
1122
3003
3819

query I rowsort
SELECT ALL 86 AS col0 FROM tab2 WHERE NOT ( + col1 ) >= ( + col2 * + col2 )
----
86
86
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1585
SELECT - col2 * - CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-1585
SELECT - col2 * - CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT DISTINCT 85 * col2 AS col1 FROM tab2 cor0
----
1955
3400
4930

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT COUNT( * ) + + 6 AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-1587
SELECT COUNT ( * ) + + 6 AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----
6

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 > col2
----
87
21
10

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 54 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT ALL col2 * + col2 FROM tab2 WHERE NULL IS NULL
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT + MIN( DISTINCT + 79 ) col1 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1592
SELECT + MIN ( DISTINCT + 79 ) col1 FROM tab0 AS cor0
----
79

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 > ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( 75 + + col1 * - ( col1 ) ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1595
SELECT DISTINCT col0 + - CAST( 70 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( 39 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1595
SELECT DISTINCT col0 + - CAST ( 70 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( 39 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab1 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1597
SELECT - col0 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1597
SELECT - col0 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * 69 AS col0 FROM tab2 AS cor0 WHERE NOT - 32 IN ( + 86 )
----
3174
4416
5175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 40 ) col0 FROM tab0 cor0
----
40
40
40

query I rowsort
SELECT + col2 * 32 AS col0 FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NULL
----
1504
3168
320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( 79 ) col2 FROM tab0 AS cor0
----
-79
-79
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 col2 FROM tab1
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1603
SELECT ALL CAST( + + col0 AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL CAST ( + + col0 AS INTEGER ) FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT DISTINCT + MIN( + ( - 41 ) ) FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-1604
SELECT DISTINCT + MIN ( + ( - 41 ) ) FROM tab1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT + COUNT( col2 ) FROM tab2 WHERE NOT + col1 * col1 - - col0 <> + col2 * + col1
----
0

skipif mysql # not compatible
query I rowsort label-1605
SELECT + COUNT ( col2 ) FROM tab2 WHERE NOT + col1 * col1 - - col0 <> + col2 * + col1
----
0

query I rowsort
SELECT ALL col1 + col2 FROM tab2 WHERE col0 = ( ( ( - 52 ) ) / 5 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT MAX( + col0 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-1607
SELECT MAX ( + col0 ) AS col2 FROM tab1
----
91

query I rowsort
SELECT DISTINCT col2 + + 11 * + col1 FROM tab1 WHERE col0 - + col0 * + col0 = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1609
SELECT - + col0 * - col2 + + col1 DIV 17 FROM tab1 AS cor0
----
4896
5015
6190

skipif mysql # not compatible
query I rowsort label-1609
SELECT - + col0 * - col2 + + col1 / 17 FROM tab1 AS cor0
----
4896
5015
6190

query I rowsort
SELECT col0 + + 56 * 46 AS col0 FROM tab0
----
2591
2663
2673

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT ALL - MAX( ALL - col0 ) AS col1 FROM tab1 WHERE ( NOT 31 * col2 = NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1611
SELECT ALL - MAX ( ALL - col0 ) AS col1 FROM tab1 WHERE ( NOT 31 * col2 = NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1612
SELECT DISTINCT col0 DIV + 40 AS col0 FROM tab1 WHERE NOT 55 IS NULL
----
1
2

skipif mysql # not compatible
query I rowsort label-1612
SELECT DISTINCT col0 / + 40 AS col0 FROM tab1 WHERE NOT 55 IS NULL
----
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1613
SELECT ALL + col1 DIV 96 + + col1 - col2 AS col1 FROM tab1 AS cor0
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-1613
SELECT ALL + col1 / 96 + + col1 - col2 AS col1 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT - col2 - - + col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col0 FROM tab0 cor0 WHERE col2 * + 37 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 5 > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1617
SELECT + CAST( col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1617
SELECT + CAST ( col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 97 BETWEEN NULL AND - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 30 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT DISTINCT + MAX( ALL + col0 ) - ( + COUNT( * ) ) + 47 FROM tab1 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-1620
SELECT DISTINCT + MAX ( ALL + col0 ) - ( + COUNT ( * ) ) + 47 FROM tab1 AS cor0
----
135

query III rowsort
SELECT * FROM tab2 WHERE NULL <= + 93
----

query I rowsort
SELECT - col1 * - - 86 FROM tab1
----
-1204
-4042
-430

query I rowsort
SELECT DISTINCT - 84 * - + col0 AS col1 FROM tab0
----
1260
7308
8148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1624
SELECT DISTINCT + - 35 / col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT + - 35 / col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND + + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1625
SELECT * FROM tab0 WHERE NULL NOT BETWEEN CAST( NULL AS SIGNED ) AND ( - ( + col2 ) * 96 )
----

skipif mysql # not compatible
query III rowsort label-1625
SELECT * FROM tab0 WHERE NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND ( - ( + col2 ) * 96 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1626
SELECT DISTINCT - COUNT( * ) * - 76 AS col0, + ( COUNT( * ) ) AS col2 FROM tab2
----
228
3

skipif mysql # not compatible
query II rowsort label-1626
SELECT DISTINCT - COUNT ( * ) * - 76 AS col0, + ( COUNT ( * ) ) AS col2 FROM tab2
----
228
3

query II rowsort
SELECT + col0 - - col2 AS col2, - col0 AS col0 FROM tab2
----
104
-64
133
-75
69
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT ( 63 ) - COUNT( * ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-1628
SELECT ( 63 ) - COUNT ( * ) FROM tab0
----
60

query I rowsort
SELECT - col0 - - col0 + - col0 * + - col0 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT + 62 - + 71 FROM tab0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT ALL SUM( - + 23 ) FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-1631
SELECT ALL SUM ( - + 23 ) FROM tab1
----
-69

query I rowsort
SELECT - - col2 - 28 AS col1 FROM tab2 AS cor0
----
-5
12
30

query I rowsort
SELECT + - 13 FROM tab0 WHERE NOT + 57 + + col0 > NULL
----

query I rowsort
SELECT ALL ( + col0 ) * col0 AS col0 FROM tab0
----
225
7569
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 42, - col2 * + 87 col2 FROM tab2
----
42
-2001
42
-3480
42
-5046

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1636
SELECT DISTINCT 67 DIV + MAX( ALL col2 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1636
SELECT DISTINCT 67 / + MAX ( ALL col2 ) AS col1 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1637
SELECT + 46 * - CAST( - col2 AS SIGNED ) col0 FROM tab0
----
2162
4554
460

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1637
SELECT + 46 * - CAST ( - col2 AS INTEGER ) col0 FROM tab0
----
2162
4554
460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1638
SELECT DISTINCT - COUNT( * ) / - ( - - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1638
SELECT DISTINCT - COUNT ( * ) / - ( - - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT - COUNT( * ) AS col1 FROM tab0 WHERE NOT + col1 IN ( - col1 + - 14 )
----
-3

skipif mysql # not compatible
query I rowsort label-1639
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE NOT + col1 IN ( - col1 + - 14 )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-1640
SELECT DISTINCT - - 74 AS col2, + MAX( 48 ) FROM tab0 AS cor0
----
74
48

skipif mysql # not compatible
query II rowsort label-1640
SELECT DISTINCT - - 74 AS col2, + MAX ( 48 ) FROM tab0 AS cor0
----
74
48

query II rowsort
SELECT DISTINCT - col1, 98 AS col1 FROM tab0 AS cor0
----
-1
98
-21
98
-81
98

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 91 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1643
SELECT ALL + 17, CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
17
NULL
17
NULL
17
NULL

skipif mysql # not compatible
query II rowsort label-1643
SELECT ALL + 17, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
17
NULL
17
NULL
17
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> col2 * + - 27 + - 64
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1645
SELECT - - col1 DIV 66 AS col2 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1645
SELECT - - col1 / 66 AS col2 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT + + 70 AS col2 FROM tab1 AS cor0
----
70

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 * col2 - - col1 >= 51
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 / + - col1 = NULL
----

query I rowsort
SELECT 60 * - + col1 FROM tab0
----
-1260
-4860
-60

query II rowsort
SELECT - 15, 7 AS col0 FROM tab2
----
-15
7
-15
7
-15
7

query I rowsort
SELECT ALL + 43 AS col2 FROM tab2 WHERE NULL IS NULL
----
43
43
43

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - 60 AND NULL
----

query I rowsort
SELECT ALL - col2 / 56 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + - 92 * 22 AND - - 33
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab2 WHERE col0 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT - COUNT( * ) + - - 86 FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-1655
SELECT - COUNT ( * ) + - - 86 FROM tab1 AS cor0
----
83

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 = 43
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1657
SELECT ALL - col2 + - + col1 + col1 + + + col2 - + - CAST( NULL AS SIGNED ) * 23 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL - col2 + - + col1 + col1 + + + col2 - + - CAST ( NULL AS INTEGER ) * 23 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col2 + - 63 - col1 FROM tab0 AS cor0
----
-74
-97
35

query I rowsort
SELECT DISTINCT + 60 + + col0 AS col0 FROM tab2 AS cor0
----
106
124
135

query I rowsort
SELECT - 63 + + col0 + col0 * - col0 AS col2 FROM tab2 AS cor0 WHERE NULL <> col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 col2 FROM tab1
----
-71
-71
-71

query I rowsort
SELECT ( + - col0 ) * + + col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT ALL + COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1663
SELECT ALL + COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL >= NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( + - ( col2 ) ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT DISTINCT + - ( + - ( 44 ) ) * - 14 * + 99 * COUNT( * ) FROM tab0 AS cor0
----
-182952

skipif mysql # not compatible
query I rowsort label-1665
SELECT DISTINCT + - ( + - ( 44 ) ) * - 14 * + 99 * COUNT ( * ) FROM tab0 AS cor0
----
-182952

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1666
SELECT DISTINCT - + col2 * + col1 + + + CAST( NULL AS SIGNED ) col1, + col2 AS col1 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1666
SELECT DISTINCT - + col2 * + col1 + + + CAST ( NULL AS INTEGER ) col1, + col2 AS col1 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT DISTINCT col1 - - 89 FROM tab2 AS cor0
----
140
156
166

query II rowsort
SELECT ALL col2 - + col0 AS col0, col0 FROM tab1 AS cor0
----
-23
91
-26
85
45
51

query I rowsort
SELECT - 61 + + 44 AS col1 FROM tab1 cor0
----
-17
-17
-17

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + ( - col1 ) ) NOT BETWEEN - 14 AND - + ( + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - col1 - + + 66 AS col1 FROM tab0 AS cor0
----
-147
-67
-87

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT - MIN( - col1 ) + + COUNT( * ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-1673
SELECT - MIN ( - col1 ) + + COUNT ( * ) FROM tab2
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + col1 ) + col2 col2, - col2 FROM tab1
----
21
-68
54
-59
82
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT ALL - MIN( - + 0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1675
SELECT ALL - MIN ( - + 0 ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1676
SELECT + 7 AS col0, + 5 DIV COUNT( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
7
1

skipif mysql # not compatible
query II rowsort label-1676
SELECT + 7 AS col0, + 5 / COUNT ( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
7
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT MIN( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-1677
SELECT MIN ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 - - - col1 + col0 * - + col0 ) BETWEEN 85 AND col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1679
SELECT - ( + COUNT( * ) ) AS col1, + 10 FROM tab1 AS cor0
----
-3
10

skipif mysql # not compatible
query II rowsort label-1679
SELECT - ( + COUNT ( * ) ) AS col1, + 10 FROM tab1 AS cor0
----
-3
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1680
SELECT + CAST( + col1 AS SIGNED ) * - col2 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-1680
SELECT + CAST ( + col1 AS INTEGER ) * - col2 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT ALL col2 + - 33 AS col0 FROM tab1 AS cor0
----
26
35
63

query II rowsort
SELECT 68 + + - 5 + - col2 * col0 AS col2, + col1 FROM tab0 AS cor0
----
-642
81
-807
21
-9540
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 17 = - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 - + + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT - + COUNT( col0 ) FROM tab0 AS cor0 WHERE NOT + 46 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1685
SELECT - + COUNT ( col0 ) FROM tab0 AS cor0 WHERE NOT + 46 BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT ALL COUNT( * ) * 27 AS col2 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL COUNT ( * ) * 27 AS col2 FROM tab2
----
81

query III rowsort
SELECT * FROM tab1 WHERE col2 BETWEEN - ( + + 7 ) AND + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1688
SELECT COUNT( * ) AS col0, COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-1688
SELECT COUNT ( * ) AS col0, COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab2
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT DISTINCT MIN( ALL + + col2 ) AS col1 FROM tab1 WHERE - col2 + - col2 + col0 IS NOT NULL
----
59

skipif mysql # not compatible
query I rowsort label-1689
SELECT DISTINCT MIN ( ALL + + col2 ) AS col1 FROM tab1 WHERE - col2 + - col2 + col0 IS NOT NULL
----
59

query II rowsort
SELECT DISTINCT + col2 + + col2 - + col0 AS col2, col2 FROM tab1
----
141
96
33
59
45
68

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col2 + 80 * col1 + 92 * + 78 * - 54 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1692
SELECT DISTINCT - CAST( - - 94 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-1692
SELECT DISTINCT - CAST ( - - 94 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-1693
SELECT DISTINCT col2 + - col2 DIV 8 DIV - - 95 AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1693
SELECT DISTINCT col2 + - col2 / 8 / - - 95 AS col0 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT - col0 * col2 + - + ( - 75 ) AS col1 FROM tab1 cor0
----
-4821
-4940
-6113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1695
SELECT DISTINCT - CAST( NULL AS SIGNED ) / 38 + col2 - + col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1695
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / 38 + col2 - + col0 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1696
SELECT ALL 89 / CAST( NULL AS SIGNED ) * - 71 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1696
SELECT ALL 89 / CAST ( NULL AS INTEGER ) * - 71 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1697
SELECT + col0 + - 68 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1697
SELECT + col0 + - 68 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1698
SELECT * FROM tab2 WHERE - col2 NOT IN ( - ( - ( - ( - + CAST( 25 AS DECIMAL ) ) ) ), - 53 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1698
SELECT * FROM tab2 WHERE - col2 NOT IN ( - ( - ( - ( - + CAST ( 25 AS REAL ) ) ) ), - 53 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * - col0 + - + col1 FROM tab2
----
-1109
-2637
-4417

query I rowsort
SELECT - col2 * + + ( 39 ) + + 42 AS col2 FROM tab1
----
-2259
-2610
-3702

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT ALL + + ( COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-1701
SELECT ALL + + ( COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1702
SELECT DISTINCT - COUNT( * ) DIV + COUNT( * ) + - + 80 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1702
SELECT DISTINCT - COUNT ( * ) / + COUNT ( * ) + - + 80 FROM tab0 AS cor0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-1703
SELECT DISTINCT 45 + 83 - + 15 DIV - ( + + 68 ) FROM tab0 AS cor0
----
128

skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT 45 + 83 - + 15 / - ( + + 68 ) FROM tab0 AS cor0
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT - COUNT( DISTINCT + 79 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1704
SELECT - COUNT ( DISTINCT + 79 ) FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1705
SELECT 38 / 93 col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 + + CAST( NULL AS SIGNED ) AND + - 64 * + 97 + 78 * col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1705
SELECT 38 / 93 col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 + + CAST ( NULL AS INTEGER ) AND + - 64 * + 97 + 78 * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1706
SELECT + 19 DIV - col2 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1706
SELECT + 19 / - col2 AS col0 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT DISTINCT + MAX( + 45 ) FROM tab2 AS cor0 WHERE ( NULL ) <> col0 + col2 * + 79 * + col1 - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1707
SELECT DISTINCT + MAX ( + 45 ) FROM tab2 AS cor0 WHERE ( NULL ) <> col0 + col2 * + 79 * + col1 - - col0
----
NULL

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - - ( + col1 ) - col0 + + 53 + + + col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1710
SELECT ALL - ( + col1 ) * - col1 + + CAST( + + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
210
2256
30

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL - ( + col1 ) * - col1 + + CAST ( + + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
210
2256
30

query I rowsort
SELECT ALL ( + col0 ) - + + col2 FROM tab0 cor0
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query II rowsort label-1712
SELECT DISTINCT + col1 - - col0 DIV col1 + - - col0 AS col1, + col2 FROM tab1 AS cor0
----
107
59
139
68
68
96

skipif mysql # not compatible
query II rowsort label-1712
SELECT DISTINCT + col1 - - col0 / col1 + - - col0 AS col1, + col2 FROM tab1 AS cor0
----
107
59
139
68
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - col0 AS col2, col0 col2 FROM tab1
----
2601
51
7225
85
8281
91

onlyif mysql # aggregate syntax: 
query II rowsort label-1714
SELECT DISTINCT + ( - + COUNT( * ) ), + ( + 55 ) AS col0 FROM tab2 AS cor0
----
-3
55

skipif mysql # not compatible
query II rowsort label-1714
SELECT DISTINCT + ( - + COUNT ( * ) ), + ( + 55 ) AS col0 FROM tab2 AS cor0
----
-3
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT + 93 * + COUNT( * ) FROM tab0 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-1715
SELECT + 93 * + COUNT ( * ) FROM tab0 AS cor0
----
279

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 11 * - col0 <= + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 71 AS col1 FROM tab1 AS cor0 WHERE - ( - col2 ) * + col0 <> - ( col2 )
----
-71
-71
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 54, + 79 col0 FROM tab2
----
54
79

query I rowsort
SELECT - + col1 * + col0 + col1 AS col1 FROM tab2 AS cor0
----
-2295
-4851
-4958

query I rowsort
SELECT DISTINCT + col1 + - + col0 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT ALL + 74 + + col0 FROM tab2 cor0
----
120
138
149

query I rowsort
SELECT ALL + - col1 * col1 * - col2 AS col0 FROM tab1 AS cor0
----
1475
150212
18816

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT DISTINCT - + COUNT( * ) * 81 FROM tab1 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT - + COUNT ( * ) * 81 FROM tab1 AS cor0
----
-243

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 + + + col0 >= + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1725
SELECT - CAST( NULL AS SIGNED ) * - - col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1725
SELECT - CAST ( NULL AS INTEGER ) * - - col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 * - 44 FROM tab2 AS cor0
----
-2244
-2948
-3388

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT COUNT( * ) * MIN( DISTINCT col1 ) + + COUNT( * ) + - + 61 * + 12 col0 FROM tab2
----
-576

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1727
SELECT COUNT ( * ) * MIN ( DISTINCT col1 ) + + COUNT ( * ) + - + 61 * + 12 col0 FROM tab2
----
-576

onlyif mysql # DIV for integer division: 
query I rowsort label-1728
SELECT col0 + + - col2 DIV - col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1728
SELECT col0 + + - col2 / - col0 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1729
SELECT DISTINCT COUNT( ALL col0 ) * 6 + COUNT( * ) + 74 DIV + COUNT( * ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-1729
SELECT DISTINCT COUNT ( ALL col0 ) * 6 + COUNT ( * ) + 74 / + COUNT ( * ) FROM tab2
----
45

query I rowsort
SELECT ALL - + col1 * 15 + - col2 FROM tab1 cor0
----
-134
-306
-773

query I rowsort
SELECT DISTINCT + + col2 * + col2 * - col0 FROM tab2 AS cor0
----
-102400
-24334
-252300

query II rowsort
SELECT + + col2 * col0, col2 + - + col0 + - + col2 AS col1 FROM tab2 cor0
----
1058
-46
2560
-64
4350
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1733
SELECT + + 3 + + col0 FROM tab1 cor0 WHERE col1 + + 28 + + - col1 NOT IN ( + - ( + - ( + - col1 ) ), CAST( NULL AS SIGNED ), + CAST( + col2 AS SIGNED ) + - col1, - + col1 )
----

skipif mysql # not compatible
query I rowsort label-1733
SELECT + + 3 + + col0 FROM tab1 cor0 WHERE col1 + + 28 + + - col1 NOT IN ( + - ( + - ( + - col1 ) ), CAST ( NULL AS INTEGER ), + CAST ( + col2 AS INTEGER ) + - col1, - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1734
SELECT ALL ( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1734
SELECT ALL ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1735
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> ( - + col2 + + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1735
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> ( - + col2 + + + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1736
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL > NULL
----
0

query I rowsort
SELECT DISTINCT - col2 - col2 * col2 + 57 FROM tab0 AS cor0
----
-2199
-53
-9843

query I rowsort
SELECT - - 95 FROM tab2 cor0 WHERE ( NULL ) NOT IN ( col0, 20 )
----

query II rowsort
SELECT ALL + col0 + - 22 * + col0, col0 FROM tab1 AS cor0
----
-1071
51
-1785
85
-1911
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1740
SELECT CAST( + - 64 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-64
-64
-64

skipif mysql # not compatible
query I rowsort label-1740
SELECT CAST ( + - 64 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-64
-64
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1741
SELECT + MAX( ALL + + 55 ) DIV + COUNT( * ) AS col1 FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-1741
SELECT + MAX ( ALL + + 55 ) / + COUNT ( * ) AS col1 FROM tab0 cor0
----
18

query II rowsort
SELECT col2, - col2 AS col1 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col2 / + - 25 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1744
SELECT DISTINCT - + 61 DIV - + col0 FROM tab0 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-1744
SELECT DISTINCT - + 61 / - + col0 FROM tab0 AS cor0
----
0
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1745
SELECT ALL + ( 79 ) DIV - col0 + - + 30 FROM tab2 AS cor0
----
-31
-31
-31

skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL + ( 79 ) / - col0 + - + 30 FROM tab2 AS cor0
----
-31
-31
-31

query I rowsort
SELECT DISTINCT ( + + 86 ) FROM tab1
----
86

query II rowsort
SELECT - col0, ( + - col0 ) FROM tab2
----
-46
-46
-64
-64
-75
-75

query I rowsort
SELECT ALL + 90 FROM tab0 WHERE - + ( col2 ) * - col2 + - col0 + ( col0 ) IN ( 38 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1749
SELECT ALL 54 DIV - 61 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1749
SELECT ALL 54 / - 61 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT DISTINCT - MIN( DISTINCT + + ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1750
SELECT DISTINCT - MIN ( DISTINCT + + ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT + + ( + + 76 ) AS col2 FROM tab1 AS cor0
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT ( + - MAX( DISTINCT - col1 ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1752
SELECT ( + - MAX ( DISTINCT - col1 ) ) FROM tab2
----
51

query I rowsort
SELECT - col2 * + col0 * + 49 AS col0 FROM tab2
----
-125440
-213150
-51842

query II rowsort
SELECT col0 + + col0 AS col0, - col0 AS col2 FROM tab0 AS cor0
----
174
-87
194
-97
30
-15

query I rowsort
SELECT + + col0 + + col0 + + - col1 + - + col2 AS col0 FROM tab1 AS cor0
----
-8
106
67

query I rowsort
SELECT ( col1 ) + + 29 AS col1 FROM tab2 AS cor0
----
106
80
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1757
SELECT - - col1 + + col1 - + CAST( NULL AS SIGNED ) * - - 72 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1757
SELECT - - col1 + + col1 - + CAST ( NULL AS INTEGER ) * - - 72 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL < - col2 + - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1759
SELECT ALL - CAST( 97 AS SIGNED ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL - CAST ( 97 AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1760
SELECT DISTINCT - col0 * + - ( + CAST( NULL AS SIGNED ) ) / 25 * col1 + + - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1760
SELECT DISTINCT - col0 * + - ( + CAST ( NULL AS INTEGER ) ) / 25 * col1 + + - col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + ( - 97 ) / - 28 - col2 - col1 + - col1 IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1762
SELECT DISTINCT * FROM tab0 WHERE NOT + + ( col1 ) + + + 48 <> + - CAST( NULL AS SIGNED ) * - + 3 + + col0
----

skipif mysql # not compatible
query III rowsort label-1762
SELECT DISTINCT * FROM tab0 WHERE NOT + + ( col1 ) + + + 48 <> + - CAST ( NULL AS INTEGER ) * - + 3 + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - ( - + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query II rowsort
SELECT ALL - 32 AS col2, col0 FROM tab2
----
-32
46
-32
64
-32
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT DISTINCT ( - - MAX( DISTINCT 71 ) ) * SUM( ALL + col1 ) FROM tab1
----
4686

skipif mysql # not compatible
query I rowsort label-1766
SELECT DISTINCT ( - - MAX ( DISTINCT 71 ) ) * SUM ( ALL + col1 ) FROM tab1
----
4686

onlyif mysql # DIV for integer division: 
query I rowsort label-1767
SELECT 29 DIV - 3 col1 FROM tab1
----
-9
-9
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1767
SELECT 29 / - 3 col1 FROM tab1
----
-9
-9
-9

query I rowsort
SELECT DISTINCT ( col2 ) * + + 17 * col0 + - col0 FROM tab1
----
105105
83181
85170

query I rowsort
SELECT DISTINCT - 38 + col0 AS col0 FROM tab2
----
26
37
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1770
SELECT col1, + CAST( - 20 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
51
-20
67
-20
77
-20

skipif mysql # not compatible
query II rowsort label-1770
SELECT col1, + CAST ( - 20 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
51
-20
67
-20
77
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT ALL COUNT( * ) + + + COUNT( * ) AS col2 FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab1 cor0
----
6

query I rowsort
SELECT ALL col1 - - col2 AS col2 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1773
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT SUM( ALL + + 69 ) AS col0 FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-1774
SELECT SUM ( ALL + + 69 ) AS col0 FROM tab2
----
207

onlyif mysql # DIV for integer division: 
query I rowsort label-1775
SELECT 26 DIV col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1775
SELECT 26 / col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1776
SELECT ALL 8 * col1 / + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL 8 * col1 / + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT COUNT( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1777
SELECT COUNT ( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT DISTINCT - MIN( col1 ) AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1778
SELECT DISTINCT - MIN ( col1 ) AS col1 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT ALL col0 * + col1 + + ( + col0 ) FROM tab2 AS cor0
----
2392
4992
5100

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN + col1 AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col0 FROM tab2 WHERE NOT NULL <= + col2 + + 74
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 73 + + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 col0 FROM tab1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT ALL + COUNT( * ) * - ( COUNT( * ) ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL + COUNT ( * ) * - ( COUNT ( * ) ) FROM tab0
----
-9

query I rowsort
SELECT - 94 * + col1 FROM tab2
----
-4794
-6298
-7238

query I rowsort
SELECT DISTINCT col1 * + 82 FROM tab2
----
4182
5494
6314

onlyif mysql # DIV for integer division: 
query I rowsort label-1787
SELECT + col1 DIV - 8 AS col1 FROM tab1
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-1787
SELECT + col1 / - 8 AS col1 FROM tab1
----
-1
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT - 49 * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-441

skipif mysql # not compatible
query I rowsort label-1788
SELECT - 49 * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-441

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1789
SELECT CAST( NULL AS SIGNED ) AS col1, + col1 AS col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-1789
SELECT CAST ( NULL AS INTEGER ) AS col1, + col1 AS col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 - + col1 / col1 IS NOT NULL OR NOT NULL IN ( + + col2, - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( ( + - col2 ), - 29 * + + col1, + 99 * col0 + - ( - col0 ) + + 37 )
----

query I rowsort
SELECT col1 * 29 AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
1479
1943
2233

query II rowsort
SELECT DISTINCT - col0 AS col0, col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query II rowsort
SELECT + 46 + - col0, + col1 + col1 AS col1 FROM tab2
----
-18
154
-29
134
0
102

query I rowsort
SELECT DISTINCT + 63 * + 48 * + col0 AS col2 FROM tab0
----
263088
293328
45360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1796
SELECT ALL - ( CAST( - col0 AS SIGNED ) ) * + col1 FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-1796
SELECT ALL - ( CAST ( - col0 AS INTEGER ) ) * + col1 FROM tab0
----
1215
1827
97

query I rowsort
SELECT ALL + - col1 + - 33 * + - col2 AS col2 FROM tab0 cor0
----
1470
309
3266

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1798
SELECT DISTINCT + + 51 - - - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-30
30
50

skipif mysql # not compatible
query I rowsort label-1798
SELECT DISTINCT + + 51 - - - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-30
30
50

query I rowsort
SELECT + + col2 + + 97 * - 79 FROM tab0 WHERE NULL > - col2 + + col1 * - + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1800
SELECT ALL + + COUNT( * ) DIV + 5 FROM tab0 WHERE NOT NULL BETWEEN NULL AND - col2 + - col1
----
0

skipif mysql # not compatible
query I rowsort label-1800
SELECT ALL + + COUNT ( * ) / + 5 FROM tab0 WHERE NOT NULL BETWEEN NULL AND - col2 + - col1
----
0

query I rowsort
SELECT + 4 * - col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1802
SELECT ALL - - col1 DIV col0 AS col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1802
SELECT ALL - - col1 / col0 AS col1 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( + 70 ) NOT IN ( - col2, col0, - 31 * + 93 + + ( col2 ) * + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1804
SELECT - COUNT( * ) DIV - - 83 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1804
SELECT - COUNT ( * ) / - - 83 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT + MIN( + - col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-1805
SELECT + MIN ( + - col2 ) AS col0 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 65 * col1 IN ( - col2, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1807
SELECT - + CAST( 78 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-1807
SELECT - + CAST ( 78 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-78
-78
-78

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + ( + 13 ) * + + 3 < + ( ( + - 91 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1809
SELECT + ( + col2 ) DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-1809
SELECT + ( + col2 ) / - col0 AS col1 FROM tab0 AS cor0
----
-1
-3
0

query II rowsort
SELECT - 48, col0 AS col2 FROM tab0 AS cor0
----
-48
15
-48
87
-48
97

query I rowsort
SELECT + ( - 71 ) FROM tab2 AS cor0 WHERE NOT NULL < - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1812
SELECT DISTINCT + 30 DIV + + 87 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1812
SELECT DISTINCT + 30 / + + 87 col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT ALL + MIN( DISTINCT + 69 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
69

skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL + MIN ( DISTINCT + 69 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
69

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT col1 * + + col1 - - col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT DISTINCT ( + + 24 ) * + + ( + - COUNT( * ) ) FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-1815
SELECT DISTINCT ( + + 24 ) * + + ( + - COUNT ( * ) ) FROM tab1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT + COUNT( * ) * - + COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-1816
SELECT + COUNT ( * ) * - + COUNT ( * ) FROM tab0
----
-9

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 75 + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1818
SELECT DISTINCT ( - 50 ) DIV + COUNT( * ) FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-1818
SELECT DISTINCT ( - 50 ) / + COUNT ( * ) FROM tab0
----
-16

query I rowsort
SELECT + col2 / - ( col0 ) FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT DISTINCT + - COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT col0 <= col0 / - col2 + col2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1820
SELECT DISTINCT + - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT col0 <= col0 / - col2 + col2
----
-3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 63 >= + + col1
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL <> col2
----
0

skipif mysql # not compatible
query I rowsort label-1822
SELECT - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL <> col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1823
SELECT DISTINCT + 80, - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
80
-9

skipif mysql # not compatible
query II rowsort label-1823
SELECT DISTINCT + 80, - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
80
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT - COUNT( * ) + + 95 FROM tab1 cor0
----
92

skipif mysql # not compatible
query I rowsort label-1824
SELECT - COUNT ( * ) + + 95 FROM tab1 cor0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-1825
SELECT ALL + 51 DIV - col1 + - 15 AS col1 FROM tab2 AS cor0
----
-15
-15
-16

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL + 51 / - col1 + - 15 AS col1 FROM tab2 AS cor0
----
-15
-15
-16

query II rowsort
SELECT DISTINCT + col1 AS col0, col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT DISTINCT col1 * - - col0 * - - col1 + col0 AS col2 FROM tab1 AS cor0
----
10047
201110
2210

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1828
SELECT * FROM tab2 cor0 WHERE col2 >= + CAST( NULL AS SIGNED ) + - CAST( - + col2 AS DECIMAL ) + col0
----

skipif mysql # not compatible
query III rowsort label-1828
SELECT * FROM tab2 cor0 WHERE col2 >= + CAST ( NULL AS INTEGER ) + - CAST ( - + col2 AS REAL ) + col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 54 <> + col0 / + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 <= - - 18
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 47 AS col2 FROM tab0 WHERE - col0 = - 99
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT ALL - 97 * - COUNT( * ) * SUM( DISTINCT - - col0 ) FROM tab2
----
53835

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL - 97 * - COUNT ( * ) * SUM ( DISTINCT - - col0 ) FROM tab2
----
53835

onlyif mysql # DIV for integer division: 
query I rowsort label-1833
SELECT ALL 83 DIV 69 * + col0 AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL 83 / 69 * + col0 AS col0 FROM tab2
----
46
64
75

query II rowsort
SELECT ALL 52, col1 FROM tab2
----
52
51
52
67
52
77

query I rowsort
SELECT + ( - - col1 ) AS col2 FROM tab2
----
51
67
77

query III rowsort
SELECT * FROM tab1 WHERE 56 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1837
SELECT ALL * FROM tab2 WHERE - col1 + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1837
SELECT ALL * FROM tab2 WHERE - col1 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT ALL - col0 AS col2, - col2 AS col0 FROM tab0
----
-15
-47
-87
-10
-97
-99

query I rowsort
SELECT + col1 - - 44 AS col2 FROM tab0
----
125
45
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1840
SELECT ( - ( col0 ) ) - - CAST( col2 AS SIGNED ) FROM tab0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-1840
SELECT ( - ( col0 ) ) - - CAST ( col2 AS INTEGER ) FROM tab0
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1841
SELECT CAST( col0 AS SIGNED ) * - 1 + + 41 - - col0 col2 FROM tab1
----
41
41
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1841
SELECT CAST ( col0 AS INTEGER ) * - 1 + + 41 - - col0 col2 FROM tab1
----
41
41
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1842
SELECT col1 DIV - - 21 - ( - col1 ) + - + col0 * + col2 FROM tab0
----
-621
-848
-9602

skipif mysql # not compatible
query I rowsort label-1842
SELECT col1 / - - 21 - ( - col1 ) + - + col0 * + col2 FROM tab0
----
-621
-848
-9602

query I rowsort
SELECT 41 - + - 88 FROM tab0 AS cor0
----
129
129
129

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - col0 + 63 + + 63 * col1 AND ( + col2 )
----

query I rowsort
SELECT DISTINCT + col1 * + 53 FROM tab2
----
2703
3551
4081

query I rowsort
SELECT DISTINCT - + 51 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-51

query I rowsort
SELECT ALL 84 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT ALL + SUM( ALL col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL + SUM ( ALL col0 ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT 9 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT ALL - - COUNT( * ) * + 62 FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL - - COUNT ( * ) * + 62 FROM tab2 AS cor0
----
186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1851
SELECT + COUNT( * ) DIV + 30 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1851
SELECT + COUNT ( * ) / + 30 AS col0 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 * + + col1 col1 FROM tab0
----
2835
35
735

query I rowsort
SELECT - ( + - ( col1 ) ) AS col0 FROM tab1
----
14
47
5

onlyif mysql # DIV for integer division: 
query II rowsort label-1854
SELECT - 31 DIV col1 + 40 - + col2, col2 * - col1 AS col2 FROM tab0 WHERE NOT - col0 * 68 IS NULL
----
-7
-3807
-90
-99
29
-210

skipif mysql # not compatible
query II rowsort label-1854
SELECT - 31 / col1 + 40 - + col2, col2 * - col1 AS col2 FROM tab0 WHERE NOT - col0 * 68 IS NULL
----
-7
-3807
-90
-99
29
-210

query I rowsort
SELECT DISTINCT 83 * - + col0 FROM tab1
----
-4233
-7055
-7553

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT MIN( DISTINCT + - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-1856
SELECT MIN ( DISTINCT + - col2 ) FROM tab0
----
-99

query I rowsort
SELECT DISTINCT + col0 * + - col1 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT + col2 + - 61 FROM tab2
----
-21
-3
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT + MAX( DISTINCT - - col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-1859
SELECT + MAX ( DISTINCT - - col0 ) FROM tab1
----
91

query I rowsort
SELECT DISTINCT ( + - col0 ) FROM tab2
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + 44 + - 21 FROM tab1 cor0
----
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1862
SELECT ALL - + SUM( DISTINCT col1 ) * + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1862
SELECT ALL - + SUM ( DISTINCT col1 ) * + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1863
SELECT ALL COUNT( * ) col0, 10 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
0
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1863
SELECT ALL COUNT ( * ) col0, 10 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
0
10

query I rowsort
SELECT ALL - + col1 + - 7 - + 47 + + 78 FROM tab0 AS cor0 WHERE NOT ( ( NOT - col0 >= + col1 ) )
----

query I rowsort
SELECT DISTINCT - + 92 * + col2 FROM tab0 AS cor0
----
-4324
-9108
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1866
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT 99 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
99

query I rowsort
SELECT + 68 * + + 81 FROM tab0
----
5508
5508
5508

query I rowsort
SELECT - 35 * col0 * - 32 AS col2 FROM tab1
----
101920
57120
95200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * col1 * - + col2 - - col1 AS col0, - 49 col2 FROM tab1 AS cor0
----
129038
-49
17410
-49
217375
-49

query I rowsort
SELECT ALL + + 85 + - + col0 AS col0 FROM tab1 AS cor0
----
-6
0
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1872
SELECT ALL + CAST( NULL AS SIGNED ) * - 96 / - col0 + CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL + CAST ( NULL AS INTEGER ) * - 96 / - col0 + CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - col2 + 57 AS col1 FROM tab1 AS cor0
----
-3424
-4567
-9159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1874
SELECT + 35 + + + col2 - + CAST( - 45 AS SIGNED ) AS col0 FROM tab0 cor0
----
127
179
90

skipif mysql # not compatible
query I rowsort label-1874
SELECT + 35 + + + col2 - + CAST ( - 45 AS INTEGER ) AS col0 FROM tab0 cor0
----
127
179
90

query I rowsort
SELECT ALL + - 6 FROM tab0 AS cor0
----
-6
-6
-6

query I rowsort
SELECT DISTINCT col0 - + 96 + - + col2 FROM tab1
----
-141
-70
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1877
SELECT col2 * - + col0 + - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1877
SELECT col2 * - + col0 + - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT ALL + MAX( ALL + ( + col2 ) ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL + MAX ( ALL + ( + col2 ) ) AS col1 FROM tab2
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1879
SELECT + 88 DIV col2 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-1879
SELECT + 88 / col2 FROM tab2 AS cor0
----
1
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT ALL COUNT( * ) * - 64 FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL COUNT ( * ) * - 64 FROM tab1 AS cor0
----
-192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1881
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1881
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT DISTINCT MAX( - ( + - 7 ) ) * 56 FROM tab1
----
392

skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT MAX ( - ( + - 7 ) ) * 56 FROM tab1
----
392

query II rowsort
SELECT DISTINCT + ( + 30 ) AS col0, + ( + col2 ) FROM tab2
----
30
23
30
40
30
58

query II rowsort
SELECT + col2 AS col1, - col0 FROM tab1 cor0
----
59
-85
68
-91
96
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-1885
SELECT - - col2 DIV - col1 * col1 + 44 * + 63 AS col0 FROM tab2 AS cor0
----
2772
2772
2772

skipif mysql # not compatible
query I rowsort label-1885
SELECT - - col2 / - col1 * col1 + 44 * + 63 AS col0 FROM tab2 AS cor0
----
2772
2772
2772

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1887
SELECT DISTINCT + col0 * col1 DIV - col2 FROM tab2 AS cor0
----
-102
-123
-86

skipif mysql # not compatible
query I rowsort label-1887
SELECT DISTINCT + col0 * col1 / - col2 FROM tab2 AS cor0
----
-102
-123
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1888
SELECT ALL - 67 * CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL - 67 * CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1889
SELECT DISTINCT ( + CAST( + 44 AS SIGNED ) ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT ( - col2 * - col0 = NULL ) )
----

skipif mysql # not compatible
query I rowsort label-1889
SELECT DISTINCT ( + CAST ( + 44 AS INTEGER ) ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT ( - col2 * - col0 = NULL ) )
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE + col2 < NULL
----

query I rowsort
SELECT + col1 * - + col1 * + col1 FROM tab1
----
-103823
-125
-2744

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 23 col2 FROM tab1
----
-23
-23
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-1894
SELECT ALL - 8 + - col1 - - - 55 + col1 DIV - - 13 col2 FROM tab0
----
-138
-64
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1894
SELECT ALL - 8 + - col1 - - - 55 + col1 / - - 13 col2 FROM tab0
----
-138
-64
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1895
SELECT DISTINCT COUNT( * ) * - 28 + - SUM( col0 ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT COUNT ( * ) * - 28 + - SUM ( col0 ) * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT + MIN( - 50 ) * + 98 * - 17 FROM tab2 AS cor0
----
83300

skipif mysql # not compatible
query I rowsort label-1896
SELECT + MIN ( - 50 ) * + 98 * - 17 FROM tab2 AS cor0
----
83300

query I rowsort
SELECT col1 - + 73 AS col0 FROM tab0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1898
SELECT DISTINCT + 36 DIV + col1 FROM tab1
----
0
2
7

skipif mysql # not compatible
query I rowsort label-1898
SELECT DISTINCT + 36 / + col1 FROM tab1
----
0
2
7

query II rowsort
SELECT DISTINCT - col1 + - ( - 22 ) AS col0, col2 - - + col1 FROM tab2
----
-29
74
-45
125
-55
117

query I rowsort
SELECT ALL - col0 + + + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT - col0, col0 * - col1 AS col1 FROM tab1 AS cor0
----
-51
-714
-85
-425
-91
-4277

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT DISTINCT SUM( + 63 ) + - ( + 19 ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
173

skipif mysql # not compatible
query I rowsort label-1902
SELECT DISTINCT SUM ( + 63 ) + - ( + 19 ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1903
SELECT DISTINCT CAST( NULL AS SIGNED ) - + + 66 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1903
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + + 66 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1904
SELECT DISTINCT CAST( NULL AS DECIMAL ) - - col1 - - col2 - - 22 * + + col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1904
SELECT DISTINCT CAST ( NULL AS REAL ) - - col1 - - col2 - - 22 * + + col1 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT COUNT( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE - col2 * - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1905
SELECT COUNT ( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE - col2 * - col2 IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 27 - + col1 AND + - 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT ALL - MAX( - col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL - MAX ( - col2 ) AS col2 FROM tab1
----
59

query I rowsort
SELECT col0 * + + col1 - + col2 AS col1 FROM tab1
----
366
4209
618

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT ALL MIN( ALL 2 ) - COUNT( * ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1909
SELECT ALL MIN ( ALL 2 ) - COUNT ( * ) AS col1 FROM tab1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1910
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1910
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1911
SELECT ALL CAST( NULL AS SIGNED ) * + MIN( DISTINCT + col1 ) * + 73 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL CAST ( NULL AS INTEGER ) * + MIN ( DISTINCT + col1 ) * + 73 AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1912
SELECT DISTINCT col1, CAST( NULL AS SIGNED ) * 30 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-1912
SELECT DISTINCT col1, CAST ( NULL AS INTEGER ) * 30 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col1 AS col0, col2 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 - - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 55 col0 FROM tab0 cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT DISTINCT - SUM( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-1915
SELECT DISTINCT - SUM ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1916
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 37 + + + col1 + + col0 + - col0 * - ( col2 ) + col2 * - CAST( NULL AS SIGNED ) * + - col0 AND - col1 / ( col2 )
----

skipif mysql # not compatible
query III rowsort label-1916
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 37 + + + col1 + + col0 + - col0 * - ( col2 ) + col2 * - CAST ( NULL AS INTEGER ) * + - col0 AND - col1 / ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, - col1 / - col2 col2 FROM tab2 AS cor0 WHERE NOT col0 + - 36 + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1918
SELECT - - CAST( NULL AS SIGNED ) AS col2, col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-1918
SELECT - - CAST ( NULL AS INTEGER ) AS col2, col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT ALL MAX( ALL - ( - col2 ) ) FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-1919
SELECT ALL MAX ( ALL - ( - col2 ) ) FROM tab2 cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 AS cor0 WHERE NOT + col0 + + - 44 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1921
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 * + 30 * - 16 + - col1 * col2 - - + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1921
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 * + 30 * - 16 + - col1 * col2 - - + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT col0 * + - 77 AS col0 FROM tab0
----
-1155
-6699
-7469

query I rowsort
SELECT ALL col0 * col0 + - col2 AS col0 FROM tab2
----
2093
4056
5567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1924
SELECT + COUNT( * ) DIV - COUNT( DISTINCT - + col2 ) + - COUNT( * ) FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-1924
SELECT + COUNT ( * ) / - COUNT ( DISTINCT - + col2 ) + - COUNT ( * ) FROM tab2
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-1925
SELECT ALL COUNT( * ), + 42 AS col1 FROM tab1
----
3
42

skipif mysql # not compatible
query II rowsort label-1925
SELECT ALL COUNT ( * ), + 42 AS col1 FROM tab1
----
3
42

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT + col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + 24 + 90 * + col1 AS col0 FROM tab2 AS cor0
----
4566
6006
6906

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= - col0
----
0

skipif mysql # not compatible
query I rowsort label-1928
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= - col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1929
SELECT COUNT( * ) * + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) * - 99 * - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
0

skipif mysql # not compatible
query I rowsort label-1929
SELECT COUNT ( * ) * + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - 99 * - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1930
SELECT - SUM( - 13 ) * 30 AS col0, COUNT( * ) * COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) col1 FROM tab0
----
1170
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1930
SELECT - SUM ( - 13 ) * 30 AS col0, COUNT ( * ) * COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) col1 FROM tab0
----
1170
0

query I rowsort
SELECT ALL col2 + + 97 FROM tab1
----
156
165
193

query I rowsort
SELECT ALL - col0 * 0 + 94 FROM tab0 AS cor0
----
94
94
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1933
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NOT - - col0 >= - col0 * - CAST( - col1 AS SIGNED ) + 93 )
----
3

skipif mysql # not compatible
query I rowsort label-1933
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NOT - - col0 >= - col0 * - CAST ( - col1 AS INTEGER ) + 93 )
----
3

query I rowsort
SELECT DISTINCT - col0 * - - 25 - - + ( + col1 ) + + 58 + + col2 AS col1 FROM tab0 AS cor0
----
-189
-2086
-2267

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - col2 * 5 + + - col2 / + col2 )
----

query II rowsort
SELECT ALL - col0 + - col2 AS col2, col1 AS col2 FROM tab2 AS cor0
----
-104
77
-133
67
-69
51

query I rowsort
SELECT ALL + + 96 - + col1 FROM tab1 AS cor0
----
49
82
91

query II rowsort
SELECT - col1 AS col0, col1 * + + 39 AS col0 FROM tab2
----
-51
1989
-67
2613
-77
3003

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT + MAX( 13 ) AS col2 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-1939
SELECT + MAX ( 13 ) AS col2 FROM tab1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT ALL - 47 * - + COUNT( * ) FROM tab2
----
141

skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL - 47 * - + COUNT ( * ) FROM tab2
----
141

query I rowsort
SELECT DISTINCT col2 * - - col1 AS col2 FROM tab0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1942
SELECT ALL + - CAST( - col2 AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL IN ( + col2, 16 + + + 91 )
----

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL + - CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL IN ( + col2, 16 + + + 91 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1943
SELECT - COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL <= CAST( NULL AS SIGNED ) + + ( + col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1943
SELECT - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL <= CAST ( NULL AS INTEGER ) + + ( + col0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1944
SELECT DISTINCT ( 1 ) * + col0 DIV - + col2 FROM tab0
----
-8
0

skipif mysql # not compatible
query I rowsort label-1944
SELECT DISTINCT ( 1 ) * + col0 / - + col2 FROM tab0
----
-8
0

query I rowsort
SELECT ( - 46 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT - - col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT - col1 * - 19 + - 51 AS col0 FROM tab2 AS cor0
----
1222
1412
918

query I rowsort
SELECT DISTINCT + 82 * col1 + + - 28 + + + 91 + + col2 * - - 65 FROM tab1 AS cor0 WHERE NOT col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1949
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) + + col2 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) + + col2 AS col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 35 + - col0 + + ( col2 ) col0 FROM tab2 AS cor0
----
-1633
-2264
-2642

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 + + col2 + + + col2 < - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 34 + + col0 AS col1 FROM tab0 AS cor0
----
121
131
49

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1954
SELECT - CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL >= - ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-1954
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL >= - ( + col1 )
----

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col1 BETWEEN ( 55 ) AND - 85
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col0 FROM tab2 WHERE NULL NOT BETWEEN 33 + + col2 AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 22 col0 FROM tab1
----
22
22
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1959
SELECT CAST( NULL AS SIGNED ) / + - SUM( + + 59 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1959
SELECT CAST ( NULL AS INTEGER ) / + - SUM ( + + 59 ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL - 63 + - + col2 AS col1 FROM tab1
----
-122
-131
-159

query I rowsort
SELECT DISTINCT + 48 * 82 + + col2 + - + 66 AS col1 FROM tab1 AS cor0
----
3929
3938
3966

query I rowsort
SELECT 83 + - 27 FROM tab2
----
56
56
56

query I rowsort
SELECT 32 * - col0 FROM tab0
----
-2784
-3104
-480

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL < 83
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1965
SELECT ( - CAST( - SUM( + + col0 ) AS SIGNED ) ) * COUNT( * ) FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-1965
SELECT ( - CAST ( - SUM ( + + col0 ) AS INTEGER ) ) * COUNT ( * ) FROM tab1
----
681

query II rowsort
SELECT ALL 99, col2 FROM tab2 AS cor0
----
99
23
99
40
99
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT DISTINCT + MIN( ALL - + col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT + MIN ( ALL - + col2 ) AS col0 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT DISTINCT col0 * 75 + 80 FROM tab1 cor0
----
3905
6455
6905

query I rowsort
SELECT - - 5 AS col2 FROM tab2 cor0
----
5
5
5

query II rowsort
SELECT ALL 98, col0 AS col0 FROM tab2 AS cor0
----
98
46
98
64
98
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * - 1 col1 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT ( col2 ) * + + col1 AS col2 FROM tab1
----
1344
295
3196

query I rowsort
SELECT DISTINCT 9 * - col1 * + col1 FROM tab2
----
-23409
-40401
-53361

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL + 8 * + col1 FROM tab2
----
408
536
616

query I rowsort
SELECT DISTINCT - col1 * - - col0 + - 10 AS col1 FROM tab1 cor0
----
-4287
-435
-724

query I rowsort
SELECT - col1 AS col2 FROM tab2 cor0 WHERE col1 - - 51 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT ALL + + ( - col2 ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT + - 67 + - COUNT( * ) FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-1980
SELECT + - 67 + - COUNT ( * ) FROM tab2 AS cor0
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-1981
SELECT DISTINCT col2 DIV - 19 AS col1 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-1981
SELECT DISTINCT col2 / - 19 AS col1 FROM tab2
----
-1
-2
-3

query I rowsort
SELECT + 80 + + - ( col1 ) FROM tab0
----
-1
59
79

query II rowsort
SELECT ALL 55 * - col1, + col2 FROM tab0
----
-1155
10
-4455
47
-55
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1984
SELECT DISTINCT + col0 DIV ( + - 52 ) FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-1984
SELECT DISTINCT + col0 / ( + - 52 ) FROM tab2
----
-1
0

query I rowsort
SELECT - 17 + + ( - 39 ) + + col2 FROM tab2
----
-16
-33
2

query I rowsort
SELECT ALL 56 FROM tab0 WHERE NOT - - col2 BETWEEN + 77 AND - - 90
----
56
56
56

query I rowsort
SELECT DISTINCT + 77 + - col1 + - col2 + - col1 + - col1 FROM tab0 AS cor0
----
-213
-25
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1988
SELECT + COUNT( * ) DIV + + 75 * + - ( 88 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
0

skipif mysql # not compatible
query I rowsort label-1988
SELECT + COUNT ( * ) / + + 75 * + - ( 88 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
0

query I rowsort
SELECT DISTINCT 34 + - + ( + col2 ) FROM tab0
----
-13
-65
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1990
SELECT + col1 DIV + - col1 - - col2 FROM tab1 AS cor0
----
58
67
95

skipif mysql # not compatible
query I rowsort label-1990
SELECT + col1 / + - col1 - - col2 FROM tab1 AS cor0
----
58
67
95

query I rowsort
SELECT ALL + - col2 FROM tab0 AS cor0 WHERE NOT - col0 - - - col0 - + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 = - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * 87 FROM tab0 AS cor0
----
1827
7047
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 17 AS col0, - col0 col1 FROM tab2 AS cor0
----
-17
-46
-17
-64
-17
-75

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT 94 * + - col0 * 14 + 42 AS col0 FROM tab0 AS cor0
----
-114450
-127610
-19698

query I rowsort
SELECT DISTINCT - - col1 * + 17 AS col1 FROM tab0 AS cor0
----
1377
17
357

query I rowsort
SELECT - 95 * - - col0 FROM tab0 cor0
----
-1425
-8265
-9215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1999
SELECT ( MIN( - - col0 ) ), - CAST( + + 29 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
-29

skipif mysql # not compatible
query II rowsort label-1999
SELECT ( MIN ( - - col0 ) ), - CAST ( + + 29 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
-29

query I rowsort
SELECT DISTINCT - 8 * col2 AS col0 FROM tab0 AS cor0
----
-376
-792
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT MIN( ALL + - 41 ) col0 FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2001
SELECT MIN ( ALL + - 41 ) col0 FROM tab1 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT DISTINCT + + MIN( DISTINCT - - 8 ) FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT + + MIN ( DISTINCT - - 8 ) FROM tab0 AS cor0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2003
SELECT ALL CAST( + 50 AS SIGNED ) AS col2 FROM tab2
----
50
50
50

skipif mysql # not compatible
query I rowsort label-2003
SELECT ALL CAST ( + 50 AS INTEGER ) AS col2 FROM tab2
----
50
50
50

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col2 * + col0 <> - 57
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 96 * col0 AS col2 FROM tab1
----
4896
8160
8736

query II rowsort
SELECT DISTINCT col0 * col2, col2 FROM tab1
----
4896
96
5015
59
6188
68

query II rowsort
SELECT DISTINCT col2 AS col2, - 59 FROM tab2
----
23
-59
40
-59
58
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT - MIN( col1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2008
SELECT - MIN ( col1 ) AS col0 FROM tab0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2009
SELECT COUNT( * ) * SUM( + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2009
SELECT COUNT ( * ) * SUM ( + CAST ( NULL AS REAL ) ) AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + ( + 77 ) AS col0 FROM tab1 AS cor0
----
77
77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2011
SELECT + + 18 DIV - 55 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2011
SELECT + + 18 / - 55 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 * - col0 * + - 60 - col2 + - + col2 FROM tab1 cor0
----
293568
300782
371144

onlyif mysql # aggregate syntax: 
query II rowsort label-2013
SELECT + + COUNT( * ), 5 * - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col2 * col1
----
0
0

skipif mysql # not compatible
query II rowsort label-2013
SELECT + + COUNT ( * ), 5 * - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col2 * col1
----
0
0

query I rowsort
SELECT ALL + col1 + + 50 + - - col0 AS col0 FROM tab2 AS cor0
----
147
191
192

query I rowsort
SELECT - 6 + - col2 AS col2 FROM tab2 AS cor0
----
-29
-46
-64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 79 * - 73 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT + COUNT( * ) * + 45 AS col0 FROM tab2 cor0 WHERE ( NULL ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2017
SELECT + COUNT ( * ) * + 45 AS col0 FROM tab2 cor0 WHERE ( NULL ) = NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2018
SELECT - col0 + + - col2 DIV col2 FROM tab0 AS cor0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-2018
SELECT - col0 + + - col2 / col2 FROM tab0 AS cor0
----
-16
-88
-98

query I rowsort
SELECT ALL - 54 + - 61 AS col1 FROM tab1 AS cor0
----
-115
-115
-115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 col0 FROM tab2 AS cor0
----
65
65
65

query I rowsort
SELECT DISTINCT + 88 AS col1 FROM tab2 cor0
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 col2 FROM tab1 AS cor0 WHERE col1 NOT BETWEEN col0 + + 3 + - col2 + + - 87 / - col1 AND - 20
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2023
SELECT + COUNT( * ) * - - COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2023
SELECT + COUNT ( * ) * - - COUNT ( * ) FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2024
SELECT ALL ( - + col0 ) + + CAST( NULL AS SIGNED ) AS col2, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-2024
SELECT ALL ( - + col0 ) + + CAST ( NULL AS INTEGER ) AS col2, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT DISTINCT - MAX( ALL + + col0 ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-2025
SELECT DISTINCT - MAX ( ALL + + col0 ) AS col0 FROM tab0
----
-97

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 + - + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + - col0 col2 FROM tab0
----
-77
2
32

query I rowsort
SELECT DISTINCT + ( - + col2 ) AS col2 FROM tab1
----
-59
-68
-96

query II rowsort
SELECT DISTINCT - - col2, + 5 AS col2 FROM tab0 AS cor0
----
10
5
47
5
99
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2030
SELECT DISTINCT - 1 DIV COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2030
SELECT DISTINCT - 1 / COUNT ( * ) AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 18 + 61 FROM tab2
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 + col2 col0 FROM tab0
----
128
180
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2033
SELECT ALL 74 DIV + col2 FROM tab2
----
1
1
3

skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL 74 / + col2 FROM tab2
----
1
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT + COUNT( - col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2034
SELECT + COUNT ( - col0 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT col0 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT 24 + + COUNT( * ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-2036
SELECT 24 + + COUNT ( * ) FROM tab2
----
27

query I rowsort
SELECT 93 AS col1 FROM tab1 WHERE NOT ( + 77 ) IN ( + 97 + + 68 / + col2 )
----
93
93
93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2038
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= ( + CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2038
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= ( + CAST ( - col2 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2039
SELECT * FROM tab2 WHERE NULL NOT IN ( - CAST( NULL AS SIGNED ) * - col1 )
----

skipif mysql # not compatible
query III rowsort label-2039
SELECT * FROM tab2 WHERE NULL NOT IN ( - CAST ( NULL AS INTEGER ) * - col1 )
----

query I rowsort
SELECT - col2 * ( col1 ) + 81 AS col2 FROM tab1
----
-1263
-214
-3115

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2041
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2041
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT + MAX( 94 ) * 91 + - MAX( DISTINCT col1 ) FROM tab2
----
8477

skipif mysql # not compatible
query I rowsort label-2042
SELECT + MAX ( 94 ) * 91 + - MAX ( DISTINCT col1 ) FROM tab2
----
8477

query I rowsort
SELECT - 52 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - col1 * - col1 + col1 FROM tab0
----
2
462
6642

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 24 * ( col0 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * col1 + + 0 FROM tab1
----
196
2209
25

query I rowsort
SELECT + 32 * - 5 + ( + 27 ) AS col1 FROM tab1
----
-133
-133
-133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 col0 FROM tab0 WHERE NOT col2 > + col1 * 76
----
-62
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2049
SELECT DISTINCT - 21 - - COUNT( * ) DIV + 54 AS col2 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-2049
SELECT DISTINCT - 21 - - COUNT ( * ) / + 54 AS col2 FROM tab0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-2050
SELECT - col2 DIV + col0 - col1 col1 FROM tab0
----
-2
-21
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2050
SELECT - col2 / + col0 - col1 col1 FROM tab0
----
-2
-21
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2051
SELECT DISTINCT 51 * + COUNT( * ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2051
SELECT DISTINCT 51 * + COUNT ( * ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2052
SELECT 65 + CAST( - col1 AS SIGNED ) FROM tab0
----
-16
44
64

skipif mysql # not compatible
query I rowsort label-2052
SELECT 65 + CAST ( - col1 AS INTEGER ) FROM tab0
----
-16
44
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2053
SELECT ALL + CAST( CAST( col2 AS SIGNED ) AS SIGNED ) AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2053
SELECT ALL + CAST ( CAST ( col2 AS INTEGER ) AS INTEGER ) AS col1 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2054
SELECT ALL * FROM tab1 WHERE ( CAST( - col2 AS SIGNED ) ) < ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-2054
SELECT ALL * FROM tab1 WHERE ( CAST ( - col2 AS INTEGER ) ) < ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) * 93 col0 FROM tab1 WHERE NULL IS NULL
----
5487
6324
8928

query I rowsort
SELECT DISTINCT - ( col2 ) + + 15 * - col1 FROM tab0
----
-114
-1262
-325

query I rowsort
SELECT + 36 - col2 AS col1 FROM tab1
----
-23
-32
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT + 25 - + COUNT( * ) AS col2 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-2058
SELECT + 25 - + COUNT ( * ) AS col2 FROM tab1
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-2059
SELECT 75 * + col2 + - col0 DIV ( 70 ) AS col0 FROM tab2
----
1725
3000
4349

skipif mysql # not compatible
query I rowsort label-2059
SELECT 75 * + col2 + - col0 / ( 70 ) AS col0 FROM tab2
----
1725
3000
4349

query III rowsort
SELECT * FROM tab0 WHERE NOT + 23 NOT BETWEEN ( 50 ) AND col1 - - col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < 34
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < - 29 * + col2 + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + 42 * 64 BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT 16 * - col0 AS col1 FROM tab1 AS cor0
----
-1360
-1456
-816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2065
SELECT DISTINCT - 41 + col1 / CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT - 41 + col1 / CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT DISTINCT COUNT( * ) * MAX( col2 ) AS col2 FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-2066
SELECT DISTINCT COUNT ( * ) * MAX ( col2 ) AS col2 FROM tab0 AS cor0
----
297

query I rowsort
SELECT ALL - ( ( + 18 ) ) AS col1 FROM tab1 AS cor0
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT COUNT( * ) + 37 FROM tab1 cor0
----
40

skipif mysql # not compatible
query I rowsort label-2068
SELECT COUNT ( * ) + 37 FROM tab1 cor0
----
40

query I rowsort
SELECT 13 + + 2 * col2 FROM tab1 AS cor0
----
131
149
205

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2070
SELECT CAST( - 14 AS SIGNED ) * - col0 AS col1 FROM tab2 WHERE ( + 96 * - col1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2070
SELECT CAST ( - 14 AS INTEGER ) * - col0 AS col1 FROM tab2 WHERE ( + 96 * - col1 ) IS NULL
----

query I rowsort
SELECT ALL 35 + - 11 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query III rowsort
SELECT * FROM tab1 WHERE ( col0 + - 94 * - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE + 63 * - 38 < ( - col0 / col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE ( col0 + 41 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT DISTINCT - MIN( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0 WHERE col2 <> ( 5 ) / col2
----
97

skipif mysql # not compatible
query I rowsort label-2075
SELECT DISTINCT - MIN ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0 WHERE col2 <> ( 5 ) / col2
----
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 * - 23 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * col1 + + col1 AS col2 FROM tab2 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT - 70 * col2 - + col1 FROM tab1 AS cor0
----
-4135
-4807
-6734

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 col2 FROM tab0 AS cor0 WHERE col1 / + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT DISTINCT + SUM( DISTINCT col2 ) + 75 FROM tab1 AS cor0
----
298

skipif mysql # not compatible
query I rowsort label-2080
SELECT DISTINCT + SUM ( DISTINCT col2 ) + 75 FROM tab1 AS cor0
----
298

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT + + 82 - COUNT( * ) FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-2081
SELECT + + 82 - COUNT ( * ) FROM tab2 AS cor0
----
79

query I rowsort
SELECT ( ( col2 ) ) * 82 + - col2 FROM tab0 AS cor0
----
3807
8019
810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2083
SELECT DISTINCT - CAST( + 74 AS SIGNED ) + - 58 * + 22 FROM tab1 AS cor0
----
-1350

skipif mysql # not compatible
query I rowsort label-2083
SELECT DISTINCT - CAST ( + 74 AS INTEGER ) + - 58 * + 22 FROM tab1 AS cor0
----
-1350

query I rowsort
SELECT + col2 * + col0 + 34 AS col0 FROM tab1 AS cor0
----
4930
5049
6222

query I rowsort
SELECT ALL + - col2 + - 30 AS col1 FROM tab0 AS cor0
----
-129
-40
-77

query I rowsort
SELECT 61 + col0 AS col2 FROM tab1 AS cor0 WHERE - 23 IS NULL
----

query I rowsort
SELECT + 73 + col0 * - 41 AS col0 FROM tab2 AS cor0
----
-1813
-2551
-3002

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT ALL + SUM( ALL 0 ) col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2088
SELECT ALL + SUM ( ALL 0 ) col2 FROM tab2
----
0

query I rowsort
SELECT col0 + - 39 FROM tab2
----
25
36
7

query I rowsort
SELECT ALL 43 FROM tab1 WHERE NOT + 97 * 91 NOT IN ( 98 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT DISTINCT COUNT( * ) * + - SUM( DISTINCT + ( col0 ) ) AS col2 FROM tab0
----
-597

skipif mysql # not compatible
query I rowsort label-2091
SELECT DISTINCT COUNT ( * ) * + - SUM ( DISTINCT + ( col0 ) ) AS col2 FROM tab0
----
-597

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2092
SELECT + CAST( COUNT( * ) AS SIGNED ) * CAST( NULL AS SIGNED ) + AVG ( ALL - col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2092
SELECT + CAST ( COUNT ( * ) AS INTEGER ) * CAST ( NULL AS INTEGER ) + AVG ( ALL - col0 ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2093
SELECT col2 + - CAST( - col2 AS SIGNED ) AS col0 FROM tab0
----
198
20
94

skipif mysql # not compatible
query I rowsort label-2093
SELECT col2 + - CAST ( - col2 AS INTEGER ) AS col0 FROM tab0
----
198
20
94

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( col2 ) AND - 92
----

query I rowsort
SELECT ALL - 1 + + - col2 + 54 * + col0 FROM tab2
----
2460
3415
3991

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT DISTINCT - SUM( DISTINCT col1 ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2096
SELECT DISTINCT - SUM ( DISTINCT col1 ) AS col1 FROM tab2
----
-195

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2097
SELECT ALL COUNT( * ) * + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2097
SELECT ALL COUNT ( * ) * + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 53 * - 27 AS col1 FROM tab1 AS cor0 WHERE NOT 71 = + col1
----
1431
1431
1431

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col1 / col2 - + ( col0 ) ) <> ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE col1 IN ( + 20 * + 47 )
----
0

skipif mysql # not compatible
query I rowsort label-2100
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE col1 IN ( + 20 * + 47 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE ( + col1 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2101
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE ( + col1 ) IS NOT NULL
----
-3

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= ( - col0 ) AND NULL IS NULL
----

query II rowsort
SELECT + 10 AS col2, + col2 AS col2 FROM tab2
----
10
23
10
40
10
58

query I rowsort
SELECT - ( + - 18 ) FROM tab1
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT DISTINCT + MAX( ALL + col2 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT + MAX ( ALL + col2 ) AS col2 FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2106
SELECT DISTINCT 2 AS col1 FROM tab0 WHERE NOT CAST( 96 AS SIGNED ) * col0 <> + 55
----

skipif mysql # not compatible
query I rowsort label-2106
SELECT DISTINCT 2 AS col1 FROM tab0 WHERE NOT CAST ( 96 AS INTEGER ) * col0 <> + 55
----

query II rowsort
SELECT DISTINCT + 37, + ( + col1 ) AS col2 FROM tab2 AS cor0
----
37
51
37
67
37
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col2, + 85 col1 FROM tab0 AS cor0
----
-1
85
-21
85
-81
85

query I rowsort
SELECT - 79 * - col2 FROM tab2 AS cor0
----
1817
3160
4582

query I rowsort
SELECT DISTINCT ( 1 ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 36 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2113
SELECT DISTINCT + 88 AS col0, + ( + - MIN( DISTINCT - col2 ) ) AS col1 FROM tab0 AS cor0
----
88
99

skipif mysql # not compatible
query II rowsort label-2113
SELECT DISTINCT + 88 AS col0, + ( + - MIN ( DISTINCT - col2 ) ) AS col1 FROM tab0 AS cor0
----
88
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT DISTINCT - MAX( ALL + + col2 ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2114
SELECT DISTINCT - MAX ( ALL + + col2 ) AS col1 FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2115
SELECT - CAST( MIN( + col0 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2115
SELECT - CAST ( MIN ( + col0 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2116
SELECT - + CAST( + + col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2116
SELECT - + CAST ( + + col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * col0 * 37 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( col2 ) + + col1 * col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col2 * + col0 + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 14 <= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2120
SELECT ALL MAX( + + col1 ) * + COUNT( * ) + + ( + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) ) + + 99 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2120
SELECT ALL MAX ( + + col1 ) * + COUNT ( * ) + + ( + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) ) + + 99 AS col2 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT DISTINCT - SUM( - col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-2122
SELECT DISTINCT - SUM ( - col0 ) AS col1 FROM tab1
----
227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2123
SELECT DISTINCT MAX( + col1 ) + + ( + 16 ) + CAST( AVG ( - 83 ) - COUNT( * ) AS SIGNED ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-161

skipif mysql # not compatible
query I rowsort label-2123
SELECT DISTINCT MAX ( + col1 ) + + ( + 16 ) + CAST ( AVG ( - 83 ) - COUNT ( * ) AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 * ( + col1 ) - - col2 * col2 col2 FROM tab1 AS cor0 WHERE NOT 31 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT + COUNT( ALL 74 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2125
SELECT + COUNT ( ALL 74 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2126
SELECT 14 * MAX( col1 ) - - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col0 * col0 NOT IN ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2126
SELECT 14 * MAX ( col1 ) - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col0 * col0 NOT IN ( + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 63 AS col0 FROM tab0 WHERE NOT ( - 32 - - + 78 / + - 71 ) IS NULL
----
-63

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 / - col2 * + - col0 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( - col1 ) + - 84 AS col2 FROM tab2
----
-17
-33
-7

query I rowsort
SELECT ALL 59 * + + col1 + - col0 + col1 FROM tab2
----
3014
3945
4556

query I rowsort
SELECT DISTINCT - + ( + - 87 ) * col2 + - 26 + 21 AS col0 FROM tab0 AS cor0
----
4084
8608
865

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2132
SELECT DISTINCT col2 DIV - + 37 + 84 * - + CAST( 84 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
-7116
-7125
-7154

skipif mysql # not compatible
query I rowsort label-2132
SELECT DISTINCT col2 / - + 37 + 84 * - + CAST ( 84 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
-7116
-7125
-7154

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - col2 FROM tab2 cor0 WHERE ( NULL ) BETWEEN - col1 + 1 AND + col1
----

query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT 20 - ( - col1 ) FROM tab2
----
71
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT DISTINCT - SUM( DISTINCT - - col2 ) * - MAX( col0 ) AS col2 FROM tab2
----
9075

skipif mysql # not compatible
query I rowsort label-2137
SELECT DISTINCT - SUM ( DISTINCT - - col2 ) * - MAX ( col0 ) AS col2 FROM tab2
----
9075

query II rowsort
SELECT DISTINCT + 71 AS col2, col2 AS col0 FROM tab1
----
71
59
71
68
71
96

query I rowsort
SELECT 45 - col2 * + - col2 FROM tab1
----
3526
4669
9261

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT - col1 IS NULL )
----

query I rowsort
SELECT DISTINCT - 41 * + col1 * col1 * + 62 FROM tab1
----
-498232
-5615278
-63550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + ( - col2 ) col2 FROM tab2
----
104
133
69

query I rowsort
SELECT col2 - - col1 + - ( - 3 ) * - col1 FROM tab0
----
-115
-32
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT ALL - COUNT( + col2 ) * + COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL - COUNT ( + col2 ) * + COUNT ( * ) AS col1 FROM tab0
----
-9

query I rowsort
SELECT 86 - + - col0 FROM tab1
----
137
171
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 + - + col0 col2 FROM tab0
----
-36
-46
36

query I rowsort
SELECT DISTINCT + + 6 AS col1 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT - MAX( + + col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-2148
SELECT - MAX ( + + col2 ) FROM tab0
----
-99

query III rowsort
SELECT ALL * FROM tab0 WHERE - 35 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 col2 FROM tab1 WHERE NOT NULL NOT IN ( + col0 * - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT ALL + ( + COUNT( * ) ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2151
SELECT ALL + ( + COUNT ( * ) ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( col0, - 44 )
----

query I rowsort
SELECT + col0 * - - col0 AS col2 FROM tab1 cor0
----
2601
7225
8281

query II rowsort
SELECT DISTINCT + - col1 * + col2 AS col1, col2 FROM tab0 AS cor0
----
-210
10
-3807
47
-99
99

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 AS cor0 WHERE NOT NULL <= col1 + - 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT DISTINCT - COUNT( DISTINCT - col0 ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT - COUNT ( DISTINCT - col0 ) AS col2 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT DISTINCT - MAX( + 16 ) FROM tab2 cor0
----
-16

skipif mysql # not compatible
query I rowsort label-2157
SELECT DISTINCT - MAX ( + 16 ) FROM tab2 cor0
----
-16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2158
SELECT - - col2 DIV col1 DIV + col2 - + - CAST( 22 AS SIGNED ) + - col1 DIV + col1 FROM tab1 AS cor0 WHERE NOT col0 < col2
----
21
21

skipif mysql # not compatible
query I rowsort label-2158
SELECT - - col2 / col1 / + col2 - + - CAST ( 22 AS INTEGER ) + - col1 / + col1 FROM tab1 AS cor0 WHERE NOT col0 < col2
----
21
21

onlyif mysql # DIV for integer division: 
query II rowsort label-2159
SELECT - col1 col0, col2 DIV 53 AS col1 FROM tab2
----
-51
0
-67
1
-77
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2159
SELECT - col1 col0, col2 / 53 AS col1 FROM tab2
----
-51
0
-67
1
-77
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2160
SELECT 36 DIV col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2160
SELECT 36 / col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col2 * ( + + col2 ) * - col2 AS col2 FROM tab2
----
-12167
-195112
-64000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab1 WHERE + - col1 NOT IN ( col0 * - col1 * col1 )
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2163
SELECT CAST( - - 26 AS SIGNED ) + + 84 + COUNT( * ) FROM tab0 WHERE NOT NULL < - - CAST( - + 28 AS SIGNED )
----
110

skipif mysql # not compatible
query I rowsort label-2163
SELECT CAST ( - - 26 AS INTEGER ) + + 84 + COUNT ( * ) FROM tab0 WHERE NOT NULL < - - CAST ( - + 28 AS INTEGER )
----
110

query I rowsort
SELECT 67 + - + col2 FROM tab1
----
-1
-29
8

query I rowsort
SELECT DISTINCT + + 17 FROM tab1 cor0
----
17

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 < - 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT ALL + + MIN( DISTINCT - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL + + MIN ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT + 21 AS col1 FROM tab0 AS cor0 WHERE NOT 35 + + 85 - + + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT DISTINCT + - MAX( ALL + + 2 ) AS col0 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2169
SELECT DISTINCT + - MAX ( ALL + + 2 ) AS col0 FROM tab2 AS cor0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2170
SELECT ALL - - col0 + 3 - + - col1 DIV 26 col1 FROM tab2 cor0
----
50
69
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2170
SELECT ALL - - col0 + 3 - + - col1 / 26 col1 FROM tab2 cor0
----
50
69
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT - - COUNT( * ) * + 32 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2171
SELECT - - COUNT ( * ) * + 32 FROM tab1 AS cor0
----
96

query III rowsort
SELECT * FROM tab2 WHERE + col2 + - 2 + + 84 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN + 93 * + 8 AND NULL )
----

query I rowsort
SELECT DISTINCT + - 8 + col1 AS col2 FROM tab0 AS cor0
----
-7
13
73

query I rowsort
SELECT ALL + 51 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
51
51
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2176
SELECT DISTINCT + + col0 * + col1 - - CAST( NULL AS SIGNED ) + - - col0 AS col2, 41 FROM tab0 AS cor0
----
NULL
41

skipif mysql # not compatible
query II rowsort label-2176
SELECT DISTINCT + + col0 * + col1 - - CAST ( NULL AS INTEGER ) + - - col0 AS col2, 41 FROM tab0 AS cor0
----
NULL
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT - 24 + + ( - COUNT( * ) ) AS col2 FROM tab2 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-2177
SELECT - 24 + + ( - COUNT ( * ) ) AS col2 FROM tab2 cor0
----
-27

query I rowsort
SELECT DISTINCT - + 26 - - 49 FROM tab0 cor0
----
23

query I rowsort
SELECT - 30 * + - col2 * - ( - col0 ) + - - col1 FROM tab2 AS cor0
----
130567
31791
76877

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 19 + + + col1 col0 FROM tab2 AS cor0
----
70
86
96

query I rowsort
SELECT DISTINCT col2 - 94 AS col2 FROM tab1
----
-26
-35
2

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 - + ( + ( - col1 ) ) BETWEEN - col1 AND ( + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT - - col2 IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT + 30 * col1 FROM tab2
----
1530
2010
2310

query III rowsort
SELECT * FROM tab2 WHERE NOT + 3 NOT IN ( + 8 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2186
SELECT ALL CAST( ( - col2 ) AS SIGNED ) FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL CAST ( ( - col2 ) AS INTEGER ) FROM tab0 cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( col0 * - - col1 ) AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2188
SELECT + 20 FROM tab0 AS cor0 WHERE NOT ( NOT CAST( col2 AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query I rowsort label-2188
SELECT + 20 FROM tab0 AS cor0 WHERE NOT ( NOT CAST ( col2 AS INTEGER ) IS NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 = ( NULL )
----

query II rowsort
SELECT ALL col2 * - + col1, + col1 FROM tab2
----
-1173
51
-3080
77
-3886
67

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL 95 AS col0, + col1 AS col1 FROM tab0
----
95
1
95
21
95
81

query I rowsort
SELECT ALL + ( - ( col2 ) ) FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2194
SELECT - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2194
SELECT - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

query I rowsort
SELECT ( - + 35 ) AS col1 FROM tab0
----
-35
-35
-35

query I rowsort
SELECT ALL ( - 71 ) AS col2 FROM tab2
----
-71
-71
-71

query II rowsort
SELECT 65 + - col2, - ( + col2 ) AS col2 FROM tab2 AS cor0
----
25
-40
42
-23
7
-58

query II rowsort
SELECT ALL + + col1, - ( + col2 ) AS col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

query I rowsort
SELECT - - col2 + - col2 + 71 AS col2 FROM tab1 AS cor0
----
71
71
71

onlyif mysql # DIV for integer division: 
query I rowsort label-2200
SELECT + col2 DIV 14 + + ( col1 ) * + - 0 FROM tab2 cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-2200
SELECT + col2 / 14 + + ( col1 ) * + - 0 FROM tab2 cor0
----
1
2
4

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < - col1 / col1 - + col0
----

query I rowsort
SELECT + col2 + + col0 * + col2 * + - col0 * - 22 AS col2 FROM tab2 AS cor0
----
1070719
3604520
7177558

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT ALL + + MIN( ALL col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL + + MIN ( ALL col1 ) AS col2 FROM tab1 AS cor0
----
5

query II rowsort
SELECT ALL + + col2 AS col2, + ( - col2 ) + + - col2 FROM tab0 AS cor0 WHERE ( NULL ) >= + col0 + + + 45 + - 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT DISTINCT + SUM( ALL 29 ) * - COUNT( * ) FROM tab1
----
-261

skipif mysql # not compatible
query I rowsort label-2205
SELECT DISTINCT + SUM ( ALL 29 ) * - COUNT ( * ) FROM tab1
----
-261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2206
SELECT DISTINCT - CAST( - 25 AS SIGNED ) * - + 7 AS col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2206
SELECT DISTINCT - CAST ( - 25 AS INTEGER ) * - + 7 AS col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 * col2 * - 53 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE 9 * - 76 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + + 24 - - 9 + 42 FROM tab0
----
122
174
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2210
SELECT + CAST( NULL AS SIGNED ) + col1 col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2210
SELECT + CAST ( NULL AS INTEGER ) + col1 col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 79 + 19 + col0 * col2 - - - col0 FROM tab0 AS cor0
----
788
881
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT ALL + MIN( 61 ) - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL + MIN ( 61 ) - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
58

query I rowsort
SELECT ALL 58 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 83 IS NULL
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT ALL + col0 * - - col2 AS col1 FROM tab2 WHERE - + 5 + - col2 IS NOT NULL
----
1058
2560
4350

query I rowsort
SELECT + col0 * 68 FROM tab2 WHERE - col0 * + col2 * - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col0, + col2 col1 FROM tab2
----
23
23
40
40
58
58

query II rowsort
SELECT DISTINCT + col0 AS col0, 8 FROM tab1
----
51
8
85
8
91
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT ALL + COUNT( * ) + + MAX( + + col1 ) AS col1 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL + COUNT ( * ) + + MAX ( + + col1 ) AS col1 FROM tab0 AS cor0
----
84

query I rowsort
SELECT - + 90 AS col1 FROM tab2 cor0
----
-90
-90
-90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 23 >= col1
----

query II rowsort
SELECT - col2 AS col2, - ( + col0 ) FROM tab2 AS cor0
----
-23
-46
-40
-64
-58
-75

query I rowsort
SELECT DISTINCT + col1 + 72 AS col1 FROM tab2 AS cor0
----
123
139
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2223
SELECT ALL - col0 + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL - col0 + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT - SUM( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2224
SELECT - SUM ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2225
SELECT DISTINCT + col1 * col2 - + col2 col0, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
1248
NULL
236
NULL
3128
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2225
SELECT DISTINCT + col1 * col2 - + col2 col0, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
1248
NULL
236
NULL
3128
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( + col0 + - col2, + ( + col0 ) * + + col0 - 13, - 87 / - col2 )
----

query I rowsort
SELECT + col1 * + + col1 FROM tab0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT ALL + SUM( ALL + ( - + col0 ) ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL + SUM ( ALL + ( - + col0 ) ) FROM tab1
----
-227

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 NOT BETWEEN NULL AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 20 col0 FROM tab2
----
20
20
20

query I rowsort
SELECT - col2 * - 58 AS col0 FROM tab0
----
2726
5742
580

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col1 * - 37 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT ( - 80 ) * + COUNT( * ) + + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 8 BETWEEN NULL AND - col2
----
-237

skipif mysql # not compatible
query I rowsort label-2233
SELECT ( - 80 ) * + COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 8 BETWEEN NULL AND - col2
----
-237

query I rowsort
SELECT DISTINCT - col2 + - - 42 AS col2 FROM tab2 AS cor0
----
-16
19
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2235
SELECT DISTINCT - 97 DIV col0 FROM tab0 AS cor0
----
-1
-6

skipif mysql # not compatible
query I rowsort label-2235
SELECT DISTINCT - 97 / col0 FROM tab0 AS cor0
----
-1
-6

query I rowsort
SELECT ALL - col1 * + ( col2 ) + + col2 FROM tab1 AS cor0
----
-1248
-236
-3128

query II rowsort
SELECT ALL col0, col2 FROM tab0 AS cor0 WHERE NOT 46 NOT IN ( - - col2 + - 87 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT DISTINCT - - MAX( ALL + col0 ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-2238
SELECT DISTINCT - - MAX ( ALL + col0 ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
291

query I rowsort
SELECT ALL + col2 * + + 77 FROM tab2 AS cor0
----
1771
3080
4466

query I rowsort
SELECT + 2 * 90 + - col1 FROM tab1 AS cor0
----
133
166
175

onlyif mysql # aggregate syntax: 
query II rowsort label-2241
SELECT DISTINCT + 70, COUNT( + col2 ) AS col1 FROM tab1 AS cor0
----
70
3

skipif mysql # not compatible
query II rowsort label-2241
SELECT DISTINCT + 70, COUNT ( + col2 ) AS col1 FROM tab1 AS cor0
----
70
3

query III rowsort
SELECT * FROM tab2 WHERE + + 3 * + col2 + 94 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( - + col1 ) * ( + - col2 ) AS col2 FROM tab2
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2244
SELECT + CAST( NULL AS SIGNED ) * - + col2 + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT + CAST ( NULL AS INTEGER ) * - + col2 + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2245
SELECT + col1 + 50 + ( - col1 ) DIV - 34 AS col1 FROM tab0
----
133
51
71

skipif mysql # not compatible
query I rowsort label-2245
SELECT + col1 + 50 + ( - col1 ) / - 34 AS col1 FROM tab0
----
133
51
71

onlyif mysql # DIV for integer division: 
query I rowsort label-2246
SELECT DISTINCT 84 DIV col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT 84 / col2 FROM tab1
----
0
1

query I rowsort
SELECT DISTINCT ( + - col2 ) + + ( - 78 ) * + col1 FROM tab0
----
-1648
-177
-6365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2248
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2248
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT 9 * col1 * - col2 + + ( + + 97 ) FROM tab1
----
-11999
-2558
-28667

onlyif mysql # DIV for integer division: 
query I rowsort label-2250
SELECT ALL + col1 + + col1 DIV - col1 + - 32 AS col1 FROM tab2
----
18
34
44

skipif mysql # not compatible
query I rowsort label-2250
SELECT ALL + col1 + + col1 / - col1 + - 32 AS col1 FROM tab2
----
18
34
44

query I rowsort
SELECT + col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 74 + - + 47 * col1 * - - 3 * - 14 + col0 AS col2 FROM tab1 AS cor0
----
27613
92795
9881

query III rowsort
SELECT * FROM tab0 WHERE col2 - - col1 * - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2254
SELECT * FROM tab2 WHERE 81 + - 20 < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2254
SELECT * FROM tab2 WHERE 81 + - 20 < + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( col1 * - - 30 ) <= 88 + col2 + - col1
----
15
81
47
87
21
10

onlyif mysql # DIV for integer division: 
query II rowsort label-2256
SELECT + col1 DIV ( + col1 ), col0 FROM tab1 AS cor0
----
1
51
1
85
1
91

skipif mysql # not compatible
query II rowsort label-2256
SELECT + col1 / ( + col1 ), col0 FROM tab1 AS cor0
----
1
51
1
85
1
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2257
SELECT ALL - ( - + ( + 78 ) ) DIV + + COUNT( * ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL - ( - + ( + 78 ) ) / + + COUNT ( * ) FROM tab2 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT ( COUNT( DISTINCT - + col1 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2258
SELECT ( COUNT ( DISTINCT - + col1 ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 78 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2260
SELECT ALL 34 AS col0, - CAST( + 42 AS SIGNED ) col2 FROM tab1
----
34
-42
34
-42
34
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2260
SELECT ALL 34 AS col0, - CAST ( + 42 AS INTEGER ) col2 FROM tab1
----
34
-42
34
-42
34
-42

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 87 * - 81 + + col1 * col1 + - ( - col1 ) AS col0 FROM tab1 WHERE NOT NULL < NULL
----

query II rowsort
SELECT ALL col0 AS col0, 3 FROM tab1
----
51
3
85
3
91
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2264
SELECT 74 + CAST( NULL AS DECIMAL ) + 47 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2264
SELECT 74 + CAST ( NULL AS REAL ) + 47 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 14 NOT BETWEEN + col2 AND ( NULL )
----

query I rowsort
SELECT + 30 * col1 - - + 52 + 26 + 39 + + + 28 FROM tab1 AS cor0
----
1555
295
565

onlyif mysql # DIV for integer division: 
query I rowsort label-2267
SELECT + col1 DIV + 28 FROM tab2 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-2267
SELECT + col1 / + 28 FROM tab2 AS cor0
----
1
2
2

query I rowsort
SELECT - 50 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( + + col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 NOT BETWEEN - + 74 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2271
SELECT CAST( NULL AS DECIMAL ) + + - col0 * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2271
SELECT CAST ( NULL AS REAL ) + + - col0 * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + - + col2 AS col1 FROM tab0 AS cor0
----
-198
-20
-94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2273
SELECT * FROM tab1 AS cor0 WHERE - 38 * - + col0 BETWEEN col2 + - col1 + col2 AND - - 65 * + ( - CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2273
SELECT * FROM tab1 AS cor0 WHERE - 38 * - + col0 BETWEEN col2 + - col1 + col2 AND - - 65 * + ( - CAST ( + col2 AS INTEGER ) )
----

query I rowsort
SELECT ALL col2 + + col1 - - - col1 AS col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT ALL + MIN( + col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL + MIN ( + col2 ) AS col0 FROM tab2 AS cor0
----
23

query I rowsort
SELECT + - col1 + 25 * + - col1 AS col0 FROM tab1 AS cor0
----
-1222
-130
-364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2277
SELECT + col2 * 44 * + 10 + - col2 + - CAST( + + col2 AS SIGNED ) FROM tab0 AS cor0
----
20586
43362
4380

skipif mysql # not compatible
query I rowsort label-2277
SELECT + col2 * 44 * + 10 + - col2 + - CAST ( + + col2 AS INTEGER ) FROM tab0 AS cor0
----
20586
43362
4380

query I rowsort
SELECT ALL - ( - col1 ) * + col0 + 17 FROM tab1 AS cor0
----
4294
442
731

query I rowsort
SELECT - - col0 * - 8 - - col2 FROM tab0 AS cor0
----
-677
-686
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 col2 FROM tab1 cor0
----
-33
-33
-33

query II rowsort
SELECT col0 AS col2, - col2 + + + 19 AS col2 FROM tab0
----
15
-28
87
9
97
-80

query II rowsort
SELECT ALL 69, - col2 AS col0 FROM tab0
----
69
-10
69
-47
69
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2283
SELECT DISTINCT - col2 * - CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2283
SELECT DISTINCT - col2 * - CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT + + ( - + 26 ) - - MAX( ALL + 84 ) FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2284
SELECT + + ( - + 26 ) - - MAX ( ALL + 84 ) FROM tab0 AS cor0
----
58

query I rowsort
SELECT ALL + 46 - - col2 FROM tab2 AS cor0
----
104
69
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2286
SELECT - col2 DIV + 51 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2286
SELECT - col2 / + 51 AS col0 FROM tab0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2287
SELECT ALL - + ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2287
SELECT ALL - + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2288
SELECT + 61, MAX( ALL - 44 ) col1 FROM tab0 AS cor0
----
61
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2288
SELECT + 61, MAX ( ALL - 44 ) col1 FROM tab0 AS cor0
----
61
-44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2289
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) BETWEEN NULL AND + 72
----

skipif mysql # not compatible
query III rowsort label-2289
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) BETWEEN NULL AND + 72
----

query I rowsort
SELECT DISTINCT col0 * col2 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

query II rowsort
SELECT DISTINCT - ( col2 ) AS col1, col0 AS col1 FROM tab1
----
-59
85
-68
91
-96
51

query I rowsort
SELECT ALL col2 * - 37 AS col2 FROM tab2
----
-1480
-2146
-851

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2293
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) * - 64 + + col1 / 50 * - - 37 * + col1 <= 44 + + 49
----

skipif mysql # not compatible
query III rowsort label-2293
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) * - 64 + + col1 / 50 * - - 37 * + col1 <= 44 + + 49
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2294
SELECT DISTINCT + COUNT( * ) DIV + 55 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2294
SELECT DISTINCT + COUNT ( * ) / + 55 FROM tab2
----
0

query I rowsort
SELECT col2 * - 51 FROM tab0
----
-2397
-5049
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT DISTINCT SUM( ALL + + col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2296
SELECT DISTINCT SUM ( ALL + + col1 ) FROM tab1 AS cor0
----
66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 97 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2298
SELECT ALL - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2299
SELECT DISTINCT 31, + COUNT( DISTINCT - col1 ) AS col1 FROM tab2
----
31
3

skipif mysql # not compatible
query II rowsort label-2299
SELECT DISTINCT 31, + COUNT ( DISTINCT - col1 ) AS col1 FROM tab2
----
31
3

query I rowsort
SELECT DISTINCT - col2 * - col2 - + ( col1 ) + + 80 FROM tab2 WHERE NOT NULL <> + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT DISTINCT MAX( - col2 ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-2301
SELECT DISTINCT MAX ( - col2 ) AS col0 FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-2302
SELECT 36, MAX( - + ( - + 82 ) ) AS col2 FROM tab1
----
36
82

skipif mysql # not compatible
query II rowsort label-2302
SELECT 36, MAX ( - + ( - + 82 ) ) AS col2 FROM tab1
----
36
82

query II rowsort
SELECT ALL col0 AS col1, - ( - col1 ) FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT DISTINCT + col2 + + - 41 AS col2 FROM tab2 AS cor0
----
-1
-18
17

query I rowsort
SELECT ALL ( + 26 ) AS col0 FROM tab0 AS cor0
----
26
26
26

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 - + 45 * + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT + 23 * + 85 BETWEEN - col2 * - col0 AND NULL
----
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT ALL + MAX( ALL - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL + MAX ( ALL - col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT DISTINCT ( - - COUNT( ALL col0 ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT ( - - COUNT ( ALL col0 ) ) AS col1 FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE ( 30 + - col1 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2311
SELECT DISTINCT + - col1 * col0 - CAST( NULL AS SIGNED ) * - 30 + col2 + + - col1 - - col2 * - col2 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2311
SELECT DISTINCT + - col1 * col0 - CAST ( NULL AS INTEGER ) * - 30 + col2 + + - col1 - - col2 * - col2 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 10 * - col1 + + + ( ( - - 24 ) ) FROM tab2 cor0
----
-486
-646
-746

query I rowsort
SELECT DISTINCT - + 8 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2314
SELECT - 10 + + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2314
SELECT - 10 + + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-2315
SELECT DISTINCT + 15 DIV + col2 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2315
SELECT DISTINCT + 15 / + col2 col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2316
SELECT ALL col2 * + CAST( + - ( ( col0 ) ) AS SIGNED ) AS col0 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL col2 * + CAST ( + - ( ( col0 ) ) AS INTEGER ) AS col0 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT - ( + 41 ) AS col2 FROM tab1 AS cor0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2318
SELECT ALL COUNT( * ) * + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2318
SELECT ALL COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2319
SELECT DISTINCT - col1 DIV - - 4 + + col1 FROM tab1 AS cor0
----
11
36
4

skipif mysql # not compatible
query I rowsort label-2319
SELECT DISTINCT - col1 / - - 4 + + col1 FROM tab1 AS cor0
----
11
36
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT DISTINCT + MAX( DISTINCT + 29 ) FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-2320
SELECT DISTINCT + MAX ( DISTINCT + 29 ) FROM tab2 AS cor0
----
29

query I rowsort
SELECT DISTINCT - + 23 AS col0 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT 8 AS col0 FROM tab2 AS cor0 WHERE NOT 27 / - col2 IS NULL
----
8
8
8

query I rowsort
SELECT DISTINCT - - ( col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT - 85 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2324
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * - col1 - + 19 <= - col1 * - col2 - CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2324
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * - col1 - + 19 <= - col1 * - col2 - CAST ( - col1 AS INTEGER )
----

query II rowsort
SELECT ALL col2 AS col2, 82 + + + 51 AS col2 FROM tab0
----
10
133
47
133
99
133

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT 73 * + - COUNT( DISTINCT 42 ) AS col2 FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-2326
SELECT 73 * + - COUNT ( DISTINCT 42 ) AS col2 FROM tab0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2327
SELECT ALL CAST( NULL AS SIGNED ) * + 20 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL CAST ( NULL AS INTEGER ) * + 20 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 * + 37 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 59 NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2330
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2330
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) AS col2 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2331
SELECT ALL - 93 DIV + + ( + col0 ) col0 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2331
SELECT ALL - 93 / + + ( + col0 ) col0 FROM tab0
----
-1
-6
0

query I rowsort
SELECT DISTINCT + col1 + ( col0 ) + - - 72 FROM tab2
----
169
213
214

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT + - 85 + - - COUNT( * ) AS col1 FROM tab1 WHERE col1 IS NULL OR col1 * - - col2 IS NULL
----
-85

skipif mysql # not compatible
query I rowsort label-2333
SELECT + - 85 + - - COUNT ( * ) AS col1 FROM tab1 WHERE col1 IS NULL OR col1 * - - col2 IS NULL
----
-85

query I rowsort
SELECT DISTINCT - AVG ( - ( + col1 ) ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT ALL 55 + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
58

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL 55 + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2336
SELECT - CAST( - 20 AS SIGNED ) FROM tab2
----
20
20
20

skipif mysql # not compatible
query I rowsort label-2336
SELECT - CAST ( - 20 AS INTEGER ) FROM tab2
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT + MIN( ALL 60 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
60

skipif mysql # not compatible
query I rowsort label-2337
SELECT + MIN ( ALL 60 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
60

query I rowsort
SELECT 60 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT - col2 + - col1 + + 41 + 56 AS col0 FROM tab2
----
-20
-28
23

query I rowsort
SELECT ALL ( + + 2 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ALL - 1 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) col0 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-2343
SELECT DISTINCT - - ( - COUNT( * ) ) + - 7, 6 AS col1 FROM tab0 AS cor0
----
-10
6

skipif mysql # not compatible
query II rowsort label-2343
SELECT DISTINCT - - ( - COUNT ( * ) ) + - 7, 6 AS col1 FROM tab0 AS cor0
----
-10
6

query I rowsort
SELECT 63 + col2 + - 37 AS col2 FROM tab2 cor0
----
49
66
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0 + - col2 + + + col2 AS col1, 34 col2 FROM tab2 AS cor0
----
46
34
64
34
75
34

query I rowsort
SELECT ALL - - 38 + + 63 AS col2 FROM tab1 AS cor0
----
101
101
101

onlyif mysql # DIV for integer division: 
query I rowsort label-2347
SELECT DISTINCT - 69 DIV + 34 - col2 FROM tab0 AS cor0
----
-101
-12
-49

skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT - 69 / + 34 - col2 FROM tab0 AS cor0
----
-101
-12
-49

query II rowsort
SELECT ALL col0, - col2 + col0 AS col1 FROM tab2
----
46
23
64
24
75
17

query III rowsort
SELECT * FROM tab2 WHERE - - col0 = + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NULL < + + 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT DISTINCT - COUNT( * ) - MIN( + 90 ) + - + 91 - + - 72 AS col0 FROM tab2
----
-112

skipif mysql # not compatible
query I rowsort label-2351
SELECT DISTINCT - COUNT ( * ) - MIN ( + 90 ) + - + 91 - + - 72 AS col0 FROM tab2
----
-112

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col1 < - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + col1 + 12 * 86 / - 49 * + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT ALL MIN( ALL + 93 ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL MIN ( ALL + 93 ) FROM tab0
----
93

query I rowsort
SELECT + 52 - - ( - col2 ) AS col2 FROM tab0
----
-47
42
5

query I rowsort
SELECT ALL 89 * - col2 FROM tab2
----
-2047
-3560
-5162

onlyif mysql # DIV for integer division: 
query I rowsort label-2357
SELECT + 88 DIV col1 * - + ( - col1 ) + + 17 * + - col2 col0 FROM tab2 AS cor0
----
-340
-603
-919

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2357
SELECT + 88 / col1 * - + ( - col1 ) + + 17 * + - col2 col0 FROM tab2 AS cor0
----
-340
-603
-919

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT DISTINCT COUNT( + 79 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT COUNT ( + 79 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + + col2 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 >= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE ( + col2 ) < - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT DISTINCT COUNT( * ) * + + 5 AS col2 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-2363
SELECT DISTINCT COUNT ( * ) * + + 5 AS col2 FROM tab1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT DISTINCT 93 * - + COUNT( * ) FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-2364
SELECT DISTINCT 93 * - + COUNT ( * ) FROM tab0
----
-279

query III rowsort
SELECT ALL * FROM tab0 WHERE 33 IS NULL
----

query I rowsort
SELECT DISTINCT 26 * + - col2 FROM tab0
----
-1222
-2574
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT + COUNT( ALL - 84 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2367
SELECT + COUNT ( ALL - 84 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2368
SELECT ALL + 32 DIV + COUNT( * ) FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL + 32 / + COUNT ( * ) FROM tab2
----
10

query II rowsort
SELECT ALL col1, - col2 * + 4 FROM tab2
----
51
-92
67
-232
77
-160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 93 * - - col0 col2 FROM tab0
----
1395
8091
9021

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT DISTINCT 80 + - + COUNT( * ) FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-2371
SELECT DISTINCT 80 + - + COUNT ( * ) FROM tab1
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2372
SELECT DISTINCT + - CAST( col1 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-2372
SELECT DISTINCT + - CAST ( col1 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT ALL 48 * + - col1 + - 70 FROM tab1 AS cor0
----
-2326
-310
-742

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 58 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 9 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT COUNT( ALL - col1 ) + - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2376
SELECT COUNT ( ALL - col1 ) + - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - col0 + + - 71 AS col0 FROM tab2 AS cor0
----
-25
-7
4

query II rowsort
SELECT col2, - col1 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
59
-5
68
-47
96
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * col0 * + col2 + + 35 col2 FROM tab2 cor0
----
-163805
-326215
-48633

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2380
SELECT ALL - COUNT( * ) DIV 90 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2380
SELECT ALL - COUNT ( * ) / 90 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col1 * col1 + 55 - - col0 + + 88 + 10 AS col1 FROM tab2 AS cor0
----
2800
4717
6146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2382
SELECT CAST( + 11 AS SIGNED ) + - + col2 AS col0 FROM tab2 WHERE + col1 NOT IN ( + - col2 )
----
-12
-29
-47

skipif mysql # not compatible
query I rowsort label-2382
SELECT CAST ( + 11 AS INTEGER ) + - + col2 AS col0 FROM tab2 WHERE + col1 NOT IN ( + - col2 )
----
-12
-29
-47

query I rowsort
SELECT - 97 + + - col1 * - - col0 AS col2 FROM tab2
----
-2443
-5025
-5122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2384
SELECT + CAST( + - 58 AS SIGNED ) * + COUNT( + - 39 ) + - + CAST( 69 AS SIGNED ) FROM tab2
----
-243

skipif mysql # not compatible
query I rowsort label-2384
SELECT + CAST ( + - 58 AS INTEGER ) * + COUNT ( + - 39 ) + - + CAST ( 69 AS INTEGER ) FROM tab2
----
-243

query I rowsort
SELECT DISTINCT 99 - - col0 + - - col1 FROM tab0
----
195
197
207

query I rowsort
SELECT DISTINCT - ( + + col0 ) AS col1 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT DISTINCT 84 + - 87 - col0 FROM tab0
----
-100
-18
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2388
SELECT ALL - CAST( ( - AVG ( ALL - col0 ) ) AS SIGNED ) col2 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2388
SELECT ALL - CAST ( ( - AVG ( ALL - col0 ) ) AS INTEGER ) col2 FROM tab0 AS cor0
----
-66

query I rowsort
SELECT DISTINCT - 50 * col2 AS col1 FROM tab1 AS cor0
----
-2950
-3400
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT ALL + MAX( ( - ( + col0 ) ) ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL + MAX ( ( - ( + col0 ) ) ) FROM tab1
----
-51

query I rowsort
SELECT - + col2 * col0 * ( + - col1 ) AS col1 FROM tab1 AS cor0
----
25075
290836
68544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2392
SELECT ALL - - col2 / - + col1 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN + + CAST( - - col2 AS SIGNED ) AND - 29
----

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL - - col2 / - + col1 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN + + CAST ( - - col2 AS INTEGER ) AND - 29
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2393
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND CAST( NULL AS DECIMAL ) + - col1 * - col0
----

skipif mysql # not compatible
query III rowsort label-2393
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND CAST ( NULL AS REAL ) + - col1 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT MIN( ( + - col2 ) ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2394
SELECT MIN ( ( + - col2 ) ) AS col1 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT - - 29 * col1 FROM tab1 AS cor0
----
1363
145
406

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT COUNT( + col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2396
SELECT COUNT ( + col0 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - + 60 * + 44 AS col1 FROM tab2 AS cor0
----
-2640
-2640
-2640

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2398
SELECT col1 DIV - CAST( - col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2398
SELECT col1 / - CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2399
SELECT - 98 * CAST( col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
-4606
-9702
-980

skipif mysql # not compatible
query I rowsort label-2399
SELECT - 98 * CAST ( col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
-4606
-9702
-980

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT DISTINCT MIN( ALL + 59 ) * - 50 AS col2 FROM tab0 AS cor0
----
-2950

skipif mysql # not compatible
query I rowsort label-2400
SELECT DISTINCT MIN ( ALL + 59 ) * - 50 AS col2 FROM tab0 AS cor0
----
-2950

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT - COUNT( * ) * + + 95 FROM tab0
----
-285

skipif mysql # not compatible
query I rowsort label-2401
SELECT - COUNT ( * ) * + + 95 FROM tab0
----
-285

query III rowsort
SELECT * FROM tab2 WHERE NOT 27 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 90 * col2 AS col1, - col0 AS col1 FROM tab2
----
2070
-46
3600
-64
5220
-75

query I rowsort
SELECT ALL + col0 + + + col0 + + col0 FROM tab0
----
261
291
45

query I rowsort
SELECT DISTINCT + ( - - 66 ) AS col1 FROM tab0
----
66

query I rowsort
SELECT + ( + + col1 ) AS col0 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT - ( + col1 ) * - - col2 + - - col2 FROM tab1 AS cor0
----
-1248
-236
-3128

onlyif mysql # DIV for integer division: 
query I rowsort label-2408
SELECT DISTINCT - col0 DIV + - col2 + - + 56 * + ( - col1 ) + 93 FROM tab2 AS cor0
----
2951
3846
4406

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT - col0 / + - col2 + - + 56 * + ( - col1 ) + 93 FROM tab2 AS cor0
----
2951
3846
4406

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2409
SELECT ALL - 75 + + col2 + - CAST( NULL AS SIGNED ) * 38 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2409
SELECT ALL - 75 + + col2 + - CAST ( NULL AS INTEGER ) * 38 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - 91 AND NULL
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

query I rowsort
SELECT - col1 + + 21 FROM tab1
----
-26
16
7

query I rowsort
SELECT ALL 71 * + col1 + col0 AS col2 FROM tab2 AS cor0
----
3667
4832
5531

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT - MIN( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2414
SELECT - MIN ( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
-23

query II rowsort
SELECT col1, 15 + + + col2 * - - 41 FROM tab2 cor0
----
51
958
67
2393
77
1655

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0, tab1 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT SUM( + 22 ) col0 FROM tab0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2417
SELECT SUM ( + 22 ) col0 FROM tab0
----
66

query I rowsort
SELECT ALL + col0 * + 44 AS col2 FROM tab1
----
2244
3740
4004

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 BETWEEN + col1 / + 85 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - + col2 AS col0, 70 - - col0 AS col1 FROM tab0 cor0
----
-10
157
-47
85
-99
167

query I rowsort
SELECT ( + 19 ) * - - col2 FROM tab0 AS cor0
----
1881
190
893

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 17, + col1 col2 FROM tab2 AS cor0
----
17
51
17
67
17
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( col1 + 79 )
----

query I rowsort
SELECT ALL + + 7 FROM tab1 cor0
----
7
7
7

query I rowsort
SELECT ALL col0 * - 97 FROM tab1 WHERE + col0 IS NOT NULL
----
-4947
-8245
-8827

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT MAX( ALL 24 ) FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-2426
SELECT MAX ( ALL 24 ) FROM tab1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT ALL 72 + - COUNT( * ) * - COUNT( * ) col0 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2427
SELECT ALL 72 + - COUNT ( * ) * - COUNT ( * ) col0 FROM tab1 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2428
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = CAST( NULL AS SIGNED ) / 90
----

skipif mysql # not compatible
query III rowsort label-2428
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = CAST ( NULL AS INTEGER ) / 90
----

query I rowsort
SELECT + 75 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col2 > NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2430
SELECT + 63 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2430
SELECT + 63 / - col1 AS col1 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT ( - col2 ) + - ( + + ( - + 76 ) ) FROM tab0 cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT + 35 * - col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT DISTINCT COUNT( 37 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2433
SELECT DISTINCT COUNT ( 37 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT ALL - MAX( + col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL - MAX ( + col1 ) FROM tab0
----
-81

query I rowsort
SELECT DISTINCT + 52 FROM tab2 WHERE NOT + + col1 <> 72 * + + col1 + + 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT + COUNT( * ) + 18 * + + 85 FROM tab1
----
1533

skipif mysql # not compatible
query I rowsort label-2436
SELECT + COUNT ( * ) + 18 * + + 85 FROM tab1
----
1533

query I rowsort
SELECT col0 + - - 64 FROM tab0
----
151
161
79

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 38 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT DISTINCT - 82 + - COUNT( * ) AS col1 FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-2439
SELECT DISTINCT - 82 + - COUNT ( * ) AS col1 FROM tab2
----
-85

query I rowsort
SELECT DISTINCT 72 + + 12 FROM tab0
----
84

query II rowsort
SELECT - 86 AS col0, col0 + + col1 FROM tab0 AS cor0
----
-86
108
-86
96
-86
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2442
SELECT col1 DIV - + col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2442
SELECT col1 / - + col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT ALL SUM( + - col2 ) col1 FROM tab1
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2443
SELECT ALL SUM ( + - col2 ) col1 FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT ALL - ( - + COUNT( DISTINCT + 23 ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL - ( - + COUNT ( DISTINCT + 23 ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 WHERE ( ( NULL IN ( + 88 ) ) )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 > - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT + ( MIN( 70 ) ) + 46 FROM tab1 AS cor0
----
116

skipif mysql # not compatible
query I rowsort label-2447
SELECT + ( MIN ( 70 ) ) + 46 FROM tab1 AS cor0
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2448
SELECT - col1 * - 44 FROM tab0 AS cor0 WHERE + col1 / CAST( - col1 AS SIGNED ) + - col0 + 66 IS NOT NULL
----
3564
44
924

skipif mysql # not compatible
query I rowsort label-2448
SELECT - col1 * - 44 FROM tab0 AS cor0 WHERE + col1 / CAST ( - col1 AS INTEGER ) + - col0 + 66 IS NOT NULL
----
3564
44
924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2449
SELECT ALL - - 49 * - CAST( + ( + + ( + 34 ) ) AS SIGNED ) * - 56 * col2 * - col0 col0 FROM tab0 AS cor0
----
-65773680
-81167520
-895921488

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2449
SELECT ALL - - 49 * - CAST ( + ( + + ( + 34 ) ) AS INTEGER ) * - 56 * col2 * - col0 col0 FROM tab0 AS cor0
----
-65773680
-81167520
-895921488

query I rowsort
SELECT ALL - + 53 - col2 FROM tab1 AS cor0
----
-112
-121
-149

query I rowsort
SELECT + + col1 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT - + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2452
SELECT - + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT - 35 * col0 AS col2 FROM tab2 AS cor0
----
-1610
-2240
-2625

onlyif mysql # DIV for integer division: 
query II rowsort label-2454
SELECT ALL - 53 + + col1, + col0 * col0 DIV + 66 AS col0 FROM tab0 AS cor0 WHERE 95 IS NOT NULL
----
-32
114
-52
142
28
3

skipif mysql # not compatible
query II rowsort label-2454
SELECT ALL - 53 + + col1, + col0 * col0 / + 66 AS col0 FROM tab0 AS cor0 WHERE 95 IS NOT NULL
----
-32
114
-52
142
28
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2455
SELECT ALL * FROM tab2 WHERE - 92 - + CAST( + col1 AS SIGNED ) - + - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2455
SELECT ALL * FROM tab2 WHERE - 92 - + CAST ( + col1 AS INTEGER ) - + - col0 IS NULL
----

query I rowsort
SELECT + ( + - 38 ) AS col0 FROM tab2
----
-38
-38
-38

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN + 32 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT - ( - COUNT( * ) ) * + 5 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-2458
SELECT - ( - COUNT ( * ) ) * + 5 FROM tab1
----
15

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 + + 49 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = + 74
----

query I rowsort
SELECT ALL - 4 * 43 FROM tab1
----
-172
-172
-172

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2462
SELECT DISTINCT * FROM tab2 WHERE NOT + - col0 * + - CAST( NULL AS SIGNED ) >= 69
----

skipif mysql # not compatible
query III rowsort label-2462
SELECT DISTINCT * FROM tab2 WHERE NOT + - col0 * + - CAST ( NULL AS INTEGER ) >= 69
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 76 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT DISTINCT + + MIN( - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT + + MIN ( - col2 ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT + col1 * - 47 FROM tab1 AS cor0
----
-2209
-235
-658

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT ALL MAX( DISTINCT ( - col0 ) ) + 57 + + COUNT( * ) * - ( - COUNT( * ) ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL MAX ( DISTINCT ( - col0 ) ) + 57 + + COUNT ( * ) * - ( - COUNT ( * ) ) FROM tab1
----
15

query II rowsort
SELECT col0, - 71 AS col0 FROM tab0
----
15
-71
87
-71
97
-71

query I rowsort
SELECT ALL - + col1 FROM tab2 AS cor0 WHERE - col1 * - + col2 + 7 * - - col1 * + col0 IN ( + col1, col1 * + 8 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2469
SELECT DISTINCT CAST( + 66 AS SIGNED ) col0 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2469
SELECT DISTINCT CAST ( + 66 AS INTEGER ) col0 FROM tab0 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2470
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + col2 FROM tab1 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2471
SELECT - 34 DIV col1 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2471
SELECT - 34 / col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE ( NOT col2 + - col0 <= + col0 / - 55 )
----
15
81
47
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 * - + col1 + - + col2 + - col0 * - + col0 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 + + 6 AS col2 FROM tab1
----
102
65
74

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 cor0 WHERE col2 = + + 27
----

query I rowsort
SELECT col0 + + ( + col2 ) FROM tab0 AS cor0
----
196
62
97

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT + + MAX( 0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2478
SELECT + + MAX ( 0 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col2 * + 92 FROM tab1 AS cor0
----
-5428
-6256
-8832

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT + - COUNT( * ) * - SUM( col1 ) + - COUNT( * ) FROM tab0 cor0
----
306

skipif mysql # not compatible
query I rowsort label-2480
SELECT + - COUNT ( * ) * - SUM ( col1 ) + - COUNT ( * ) FROM tab0 cor0
----
306

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL + - 16 AS col0 FROM tab0 AS cor0
----
-16
-16
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1 col1, col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 85 AS col2, 91 col1 FROM tab1 AS cor0
----
85
91
85
91
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < col2 * 93 * col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 56 IS NOT NULL
----

query I rowsort
SELECT AVG ( + col2 ) FROM tab0 AS cor0 WHERE NOT - col2 * + 16 * - col0 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT ALL - COUNT( DISTINCT col2 ) * - COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2488
SELECT ALL - COUNT ( DISTINCT col2 ) * - COUNT ( * ) FROM tab1 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2, + col0 col1 FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT DISTINCT - 81 * - ( - col1 ) FROM tab2
----
-4131
-5427
-6237

query I rowsort
SELECT + col1 * - col1 + - - 73 AS col1 FROM tab2 WHERE NOT + col0 + col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2492
SELECT * FROM tab1 WHERE NOT + + col0 > - CAST( NULL AS SIGNED ) / - + col0 / - + col0 * - col2
----

skipif mysql # not compatible
query III rowsort label-2492
SELECT * FROM tab1 WHERE NOT + + col0 > - CAST ( NULL AS INTEGER ) / - + col0 / - + col0 * - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2493
SELECT ALL + 88 DIV + + col2, + col1 FROM tab1
----
0
14
1
47
1
5

skipif mysql # not compatible
query II rowsort label-2493
SELECT ALL + 88 / + + col2, + col1 FROM tab1
----
0
14
1
47
1
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + - col0 col2 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT DISTINCT MAX( DISTINCT - - col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT MAX ( DISTINCT - - col2 ) FROM tab0
----
99

query II rowsort
SELECT col0 * 72, 75 AS col0 FROM tab0
----
1080
75
6264
75
6984
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2497
SELECT DISTINCT + col2 DIV + 96 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-2497
SELECT DISTINCT + col2 / + 96 FROM tab0
----
0
1

query I rowsort
SELECT - ( 89 ) FROM tab0 AS cor0
----
-89
-89
-89

query I rowsort
SELECT DISTINCT + 54 * col2 + - - col1 FROM tab2 AS cor0
----
1293
2237
3199

query I rowsort
SELECT 79 * - - 63 AS col2 FROM tab0
----
4977
4977
4977

query I rowsort
SELECT DISTINCT - col0 + - + col0 AS col2 FROM tab1
----
-102
-170
-182

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE ( NOT col1 <> - 3 / + 47 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NOT - 11 > NULL
----

query I rowsort
SELECT ALL + col0 + + 70 FROM tab0 AS cor0
----
157
167
85

query II rowsort
SELECT DISTINCT - col1 * + + 41 + + + col0, col0 - - - col0 AS col0 FROM tab2 AS cor0
----
-2045
0
-2672
0
-3093
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> - 7 + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 <> + col2 / + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 / 29 + - + 6 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT DISTINCT - 30 * MIN( DISTINCT - + col2 ) FROM tab0 cor0
----
2970

skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT - 30 * MIN ( DISTINCT - + col2 ) FROM tab0 cor0
----
2970

query I rowsort
SELECT DISTINCT col2 * - + col2 * + col0 AS col0 FROM tab0 AS cor0
----
-33135
-8700
-950697

onlyif mysql # DIV for integer division: 
query I rowsort label-2511
SELECT ALL ( - col0 ) DIV + col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL ( - col0 ) / + col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT COUNT( * ) + + 42 * - 75 AS col1 FROM tab0
----
-3147

skipif mysql # not compatible
query I rowsort label-2512
SELECT COUNT ( * ) + + 42 * - 75 AS col1 FROM tab0
----
-3147

onlyif mysql # aggregate syntax: 
query II rowsort label-2513
SELECT DISTINCT - COUNT( * ) col2, COUNT( * ) AS col1 FROM tab1
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2513
SELECT DISTINCT - COUNT ( * ) col2, COUNT ( * ) AS col1 FROM tab1
----
-3
3

query I rowsort
SELECT ALL col1 * - col1 + - col2 AS col1 FROM tab2
----
-2624
-4547
-5969

query I rowsort
SELECT ALL + col1 + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT - 82 IS NOT NULL
----

query I rowsort
SELECT + 41 * 64 AS col1 FROM tab2 AS cor0
----
2624
2624
2624

query I rowsort
SELECT ALL + col0 + + 80 AS col1 FROM tab0 AS cor0
----
167
177
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2518
SELECT ALL + CAST( SUM( - + col2 ) AS SIGNED ) DIV + + 14 - + - COUNT( * ) FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL + CAST ( SUM ( - + col2 ) AS INTEGER ) / + + 14 - + - COUNT ( * ) FROM tab0
----
-8

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT + col2 * - col0 - + col2, col0 * + + col2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1081
1058
-2600
2560
-4408
4350

query I rowsort
SELECT ALL col1 * col2 * col0 * + - col0 FROM tab1
----
-2131375
-26466076
-3495744

query I rowsort
SELECT - 32 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT ALL - - MIN( + - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL - - MIN ( + - col2 ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT + ( + + 57 ) FROM tab1 AS cor0
----
57

query I rowsort
SELECT ALL - 39 AS col0 FROM tab0 AS cor0
----
-39
-39
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 col2 FROM tab2 AS cor0
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-2527
SELECT 75 DIV col2 * - col2 FROM tab2 cor0
----
-40
-58
-69

skipif mysql # not compatible
query I rowsort label-2527
SELECT 75 / col2 * - col2 FROM tab2 cor0
----
-40
-58
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT + SUM( ALL + - col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2528
SELECT + SUM ( ALL + - col1 ) FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT MIN( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2529
SELECT MIN ( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
51

query I rowsort
SELECT DISTINCT - + col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query II rowsort
SELECT DISTINCT col0 * + + 62 * col1 AS col0, + col2 FROM tab1
----
26350
59
265174
68
44268
96

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 WHERE 23 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, col2 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2534
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + col0 col2 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2534
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + col0 col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT - + MAX( DISTINCT - - col0 ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2535
SELECT - + MAX ( DISTINCT - - col0 ) AS col0 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT + - MAX( ALL - 22 ) FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-2536
SELECT + - MAX ( ALL - 22 ) FROM tab1 AS cor0
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-2537
SELECT + - 65 * - + col2 + 88 * col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
1534
2645
3846

skipif mysql # not compatible
query I rowsort label-2537
SELECT + - 65 * - + col2 + 88 * col2 / + col1 AS col1 FROM tab2 AS cor0
----
1534
2645
3846

query II rowsort
SELECT DISTINCT + col0, - 4 AS col1 FROM tab0 AS cor0
----
15
-4
87
-4
97
-4

query II rowsort
SELECT DISTINCT + 42, + col1 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
42
51
42
67
42
77

query I rowsort
SELECT ALL col1 - col2 AS col1 FROM tab0 WHERE NOT NULL <> + col2
----

query I rowsort
SELECT + ( - col2 ) + - col0 * col1 FROM tab1
----
-4345
-484
-810

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - 69 + col1 / + 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT COUNT( col1 ) FROM tab0 WHERE NOT NULL NOT BETWEEN ( - col0 ) AND ( 43 )
----
0

skipif mysql # not compatible
query I rowsort label-2543
SELECT COUNT ( col1 ) FROM tab0 WHERE NOT NULL NOT BETWEEN ( - col0 ) AND ( 43 )
----
0

query I rowsort
SELECT 16 * 1 AS col1 FROM tab1
----
16
16
16

query I rowsort
SELECT ALL 84 - - 17 FROM tab1
----
101
101
101

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= - col2 * - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN ( 76 - + col1 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT ALL ( + 98 ) * + MIN( col2 ) FROM tab2
----
2254

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL ( + 98 ) * + MIN ( col2 ) FROM tab2
----
2254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2549
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL NOT IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2550
SELECT - 74 + + 2 DIV COUNT( + 13 ) FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-2550
SELECT - 74 + + 2 / COUNT ( + 13 ) FROM tab1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT - COUNT( ALL - col1 ) * COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-2551
SELECT - COUNT ( ALL - col1 ) * COUNT ( * ) FROM tab1
----
-9

query I rowsort
SELECT ALL + col1 * + 46 FROM tab2
----
2346
3082
3542

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT + 64 + COUNT( * ) FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-2554
SELECT + 64 + COUNT ( * ) FROM tab0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT + COUNT( * ) FROM tab2 WHERE ( + col1 ) - col1 * + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2555
SELECT + COUNT ( * ) FROM tab2 WHERE ( + col1 ) - col1 * + col2 IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col1 ) = ( col0 + 28 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND + col2 + col2
----

query I rowsort
SELECT ALL col2 + - 80 AS col0 FROM tab1
----
-12
-21
16

query I rowsort
SELECT ALL + col0 * - col1 FROM tab0 WHERE ( + col0 ) IS NOT NULL
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col1 + + 69 )
----

query I rowsort
SELECT ALL 10 * + col1 AS col0 FROM tab0
----
10
210
810

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT ALL + COUNT( * ) * - 65 AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL + COUNT ( * ) * - 65 AS col0 FROM tab2
----
-195

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT ( col1 ) NOT IN ( col1 )
----
-46
-64
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2564
SELECT DISTINCT - COUNT( ALL + col1 ) DIV COUNT( - col0 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2564
SELECT DISTINCT - COUNT ( ALL + col1 ) / COUNT ( - col0 ) FROM tab1
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = col2 * col2 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT ( COUNT( * ) ) FROM tab1 WHERE ( + col0 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2566
SELECT ( COUNT ( * ) ) FROM tab1 WHERE ( + col0 ) IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + 99 IS NOT NULL
----

query I rowsort
SELECT col1 * - col1 + + ( - col0 + + col2 ) FROM tab1
----
-151
-2232
-51

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 71 * col1 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2570
SELECT - 13 DIV col2 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2570
SELECT - 13 / col2 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + ( col1 ) * - col1 FROM tab0
----
-1
-441
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2572
SELECT ALL CAST( col1 AS SIGNED ) * + 79 FROM tab0
----
1659
6399
79

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL CAST ( col1 AS INTEGER ) * + 79 FROM tab0
----
1659
6399
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2573
SELECT DISTINCT + 99 + - 1 DIV - ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2573
SELECT DISTINCT + 99 + - 1 / - ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 12 AND NULL
----

query I rowsort
SELECT DISTINCT 56 * 2 + col2 FROM tab1 AS cor0
----
171
180
208

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - ( col1 * 11 ) < - col1 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + + col2 AS col1 FROM tab0 WHERE NOT + col0 * col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( col1 ) NOT BETWEEN - col0 * + col2 AND + ( - col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 76 / - 91 + - col1 * col2 NOT BETWEEN ( 18 * + col0 ) AND 36
----

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT col0 = 82 + 64
----
59
68
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * - col0 BETWEEN - col0 * col0 + + col2 AND NULL
----

query I rowsort
SELECT col1 * 37 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col0 )
----

query I rowsort
SELECT 73 FROM tab0 WHERE NOT ( - 48 ) IS NULL
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT - COUNT( - 8 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2584
SELECT - COUNT ( - 8 ) AS col1 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2585
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT ( - 86 ) IS NOT NULL OR ( + col2 / + 71 ) > col0
----

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT ( - 86 ) IS NOT NULL OR ( + col2 / + 71 ) > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT ALL 61 * - COUNT( * ) * - COUNT( * ) FROM tab2
----
549

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL 61 * - COUNT ( * ) * - COUNT ( * ) FROM tab2
----
549

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NULL IN ( 85 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT ALL SUM( ALL + col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-2588
SELECT ALL SUM ( ALL + col2 ) AS col2 FROM tab0
----
156

query I rowsort
SELECT DISTINCT + col2 * col0 AS col2 FROM tab1 WHERE NOT + 1 IS NULL
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT + - MAX( - col0 ) + 66 AS col1 FROM tab2 AS cor0
----
112

skipif mysql # not compatible
query I rowsort label-2590
SELECT + - MAX ( - col0 ) + 66 AS col1 FROM tab2 AS cor0
----
112

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( col2 / + 49 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 79 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query I rowsort
SELECT + 23 FROM tab0 WHERE ( ( NULL ) > NULL )
----

query I rowsort
SELECT - 6 + - col2 AS col0 FROM tab2 WHERE ( + 79 + + 63 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - + col2 + ( + ( col2 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2, col0 * - col0 FROM tab0
----
10
-7569
47
-225
99
-9409

query I rowsort
SELECT DISTINCT + 65 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + col1 + ( col2 ) - + col0 * 5 * col2 FROM tab0 AS cor0
----
-4130
-47817
329

query I rowsort
SELECT col0 + - col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( - + col2 ) AND col2
----

query I rowsort
SELECT ALL + 53 - col0 FROM tab2 AS cor0 WHERE ( - ( - col0 ) ) / 62 IS NOT NULL
----
-11
-22
7

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE - col2 * + ( col1 ) BETWEEN NULL AND ( col0 * col0 )
----

query I rowsort
SELECT DISTINCT + 44 - - - col0 FROM tab1 AS cor0
----
-41
-47
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT ALL + - COUNT( * ) - - COUNT( * ) col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2603
SELECT ALL + - COUNT ( * ) - - COUNT ( * ) col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT NULL NOT IN ( + col1 ) ) OR - col0 + + col2 <= NULL
----

query I rowsort
SELECT - col1 * - col1 AS col0 FROM tab2 AS cor0 WHERE col1 - + - 49 IS NULL
----

query I rowsort
SELECT - - col0 + - - col0 * - - ( 91 ) FROM tab2 AS cor0
----
4232
5888
6900

query II rowsort
SELECT DISTINCT - - col2, + col2 AS col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 67 col2 FROM tab2
----
-21
-3
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT DISTINCT 53 - + + COUNT( * ) AS col1 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-2609
SELECT DISTINCT 53 - + + COUNT ( * ) AS col1 FROM tab2
----
50

query I rowsort
SELECT - col2 * - - col0 + + col0 FROM tab1
----
-4845
-4930
-6097

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2611
SELECT 3 * + 66 + + + CAST( COUNT( * ) AS SIGNED ) FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-2611
SELECT 3 * + 66 + + + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2
----
201

query I rowsort
SELECT 83 + col1 AS col1 FROM tab0
----
104
164
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * - col1, col2 * + 50 + - 28 col1 FROM tab1
----
-1344
4772
-295
2922
-3196
3372

query I rowsort
SELECT - 2 AS col0 FROM tab0 WHERE - + col0 = NULL
----

query I rowsort
SELECT ALL 87 * + col2 FROM tab2
----
2001
3480
5046

query I rowsort
SELECT + AVG ( 23 ) FROM tab2 WHERE NULL NOT BETWEEN + - col0 AND + 12 + ( col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2617
SELECT * FROM tab1 AS cor0 WHERE ( CAST( NULL AS SIGNED ) + - col1 ) BETWEEN ( col2 ) AND col2 + + 60 * + 88
----

skipif mysql # not compatible
query III rowsort label-2617
SELECT * FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) + - col1 ) BETWEEN ( col2 ) AND col2 + + 60 * + 88
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT ( NULL ) >= NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 37 / - 43 BETWEEN + col1 * 36 AND ( col0 )
----

query I rowsort
SELECT ALL - - col1 - - col0 * + - 18 AS col1 FROM tab2 AS cor0
----
-1075
-1283
-777

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT - MAX( + 27 ) AS col1 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-2621
SELECT - MAX ( + 27 ) AS col1 FROM tab0 AS cor0
----
-27

query I rowsort
SELECT - 30 AS col0 FROM tab1 cor0
----
-30
-30
-30

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT COUNT( + col2 ) col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 25 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2624
SELECT COUNT ( + col2 ) col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 25 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2625
SELECT ALL + - 92 DIV + col0 AS col0 FROM tab2 cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL + - 92 / + col0 AS col0 FROM tab2 cor0
----
-1
-1
-2

query I rowsort
SELECT + col1 * + 95 AS col0 FROM tab0 AS cor0
----
1995
7695
95

query II rowsort
SELECT ALL + 16, col1 AS col1 FROM tab1 AS cor0
----
16
14
16
47
16
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - col1 col0 FROM tab1 cor0
----
1344
295
3196

query I rowsort
SELECT col1 * + 58 FROM tab2 AS cor0
----
2958
3886
4466

onlyif mysql # DIV for integer division: 
query II rowsort label-2630
SELECT 31 DIV + - ( - - 33 ) AS col2, - col2 DIV - - 49 + col0 FROM tab0 AS cor0
----
0
15
0
87
0
95

skipif mysql # not compatible
query II rowsort label-2630
SELECT 31 / + - ( - - 33 ) AS col2, - col2 / - - 49 + col0 FROM tab0 AS cor0
----
0
15
0
87
0
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2631
SELECT + ( + CAST( NULL AS SIGNED ) ) * - - col1 * + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2631
SELECT + ( + CAST ( NULL AS INTEGER ) ) * - - col1 * + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 33 AS col1 FROM tab1 AS cor0
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT COUNT( * ) col2 FROM tab2 WHERE NOT 67 > + 60 + + + col0 - - 41
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2633
SELECT COUNT ( * ) col2 FROM tab2 WHERE NOT 67 > + 60 + + + col0 - - 41
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT ALL MIN( + - col1 ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL MIN ( + - col1 ) AS col1 FROM tab2
----
-77

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col2 * - 76 + + 16 ) <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2636
SELECT * FROM tab1 WHERE NOT + col2 NOT IN ( CAST( - + col0 AS SIGNED ) + + + col1 )
----

skipif mysql # not compatible
query III rowsort label-2636
SELECT * FROM tab1 WHERE NOT + col2 NOT IN ( CAST ( - + col0 AS INTEGER ) + + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT 46 * + MIN( ALL - 91 ) AS col0 FROM tab0
----
-4186

skipif mysql # not compatible
query I rowsort label-2637
SELECT 46 * + MIN ( ALL - 91 ) AS col0 FROM tab0
----
-4186

query II rowsort
SELECT ALL + - col1 AS col0, - col2 AS col1 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( + 17 ) IS NOT NULL
----

query II rowsort
SELECT ALL - col2, col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + 62 - 6 col2, col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * + col1 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col1 + + - col2 + + col0 + - - 97 * + col0 * + - 28 FROM tab1
----
-138547
-230829
-247086

query I rowsort
SELECT ALL - 26 + - 78 AS col2 FROM tab0 AS cor0
----
-104
-104
-104

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 94 + - 57 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT - SUM( - - 71 ) AS col1 FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-2648
SELECT - SUM ( - - 71 ) AS col1 FROM tab2 AS cor0
----
-213

query I rowsort
SELECT DISTINCT col2 + 20 FROM tab0 AS cor0
----
119
30
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - col2 ) IS NULL
----

query I rowsort
SELECT ALL - 18 + - 20 AS col0 FROM tab2 cor0
----
-38
-38
-38

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 47 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2653
SELECT - + CAST( NULL AS DECIMAL ) - + + col2, + col2 col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2653
SELECT - + CAST ( NULL AS REAL ) - + + col2, + col2 col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2654
SELECT * FROM tab2 WHERE + col1 / col1 - - CAST( NULL AS SIGNED ) * + col0 - - - col0 + + col2 - - col0 / - col1 = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2654
SELECT * FROM tab2 WHERE + col1 / col1 - - CAST ( NULL AS INTEGER ) * + col0 - - - col0 + + col2 - - col0 / - col1 = ( NULL )
----

query I rowsort
SELECT ALL 97 - 22 AS col0 FROM tab0
----
75
75
75

query III rowsort
SELECT * FROM tab2 WHERE - col2 >= + + col0 - - + col2
----

query I rowsort
SELECT - 63 - - 11 FROM tab2
----
-52
-52
-52

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> + 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT + COUNT( * ) + 34 AS col2 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-2659
SELECT + COUNT ( * ) + 34 AS col2 FROM tab2
----
37

query I rowsort
SELECT ALL col0 * - + col1 AS col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2661
SELECT ALL col2 DIV - - 79 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL col2 / - - 79 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * - 24 FROM tab0
----
-1944
-24
-504

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2663
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, - col2 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-2663
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, - col2 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2664
SELECT * FROM tab1 WHERE NOT - + col0 / + CAST( + 35 AS SIGNED ) + + col0 / - ( + 1 ) NOT IN ( col0 + col0 )
----

skipif mysql # not compatible
query III rowsort label-2664
SELECT * FROM tab1 WHERE NOT - + col0 / + CAST ( + 35 AS INTEGER ) + + col0 / - ( + 1 ) NOT IN ( col0 + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2665
SELECT 64 DIV + - ( - COUNT( ALL col0 ) ) FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-2665
SELECT 64 / + - ( - COUNT ( ALL col0 ) ) FROM tab2 AS cor0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2666
SELECT ALL - + col1 / - col0 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL - + col1 / - col0 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2667
SELECT MAX( + CAST( - + col2 AS SIGNED ) ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2667
SELECT MAX ( + CAST ( - + col2 AS INTEGER ) ) FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT + MAX( ALL - col1 ) AS col2 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2668
SELECT + MAX ( ALL - col1 ) AS col2 FROM tab1 cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2669
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( CAST( col1 AS SIGNED ) ) IN ( + 72 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2669
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( CAST ( col1 AS INTEGER ) ) IN ( + 72 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + ( + col2 ) AS col0 FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2671
SELECT ALL - 93 DIV COUNT( * ) col2 FROM tab0
----
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2671
SELECT ALL - 93 / COUNT ( * ) col2 FROM tab0
----
-31

query I rowsort
SELECT + 98 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT + - COUNT( * ) * + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2673
SELECT + - COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-2674
SELECT ALL - - MIN( - - col2 ) AS col2, 34 col1 FROM tab0 AS cor0
----
10
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2674
SELECT ALL - - MIN ( - - col2 ) AS col2, 34 col1 FROM tab0 AS cor0
----
10
34

query I rowsort
SELECT - - 20 AS col2 FROM tab0 cor0
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT COUNT( ALL col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2676
SELECT COUNT ( ALL col1 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE - 68 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 75 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2679
SELECT CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2679
SELECT CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col2 AS col1, col2 AS col2 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT - 92 / - col0 FROM tab1 AS cor0 WHERE - col1 <> NULL
----

query II rowsort
SELECT - ( 79 ) AS col1, 78 AS col2 FROM tab2
----
-79
78
-79
78
-79
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT ALL COUNT( * ) * + MIN( ALL - col1 ) * - ( - 76 ) AS col0 FROM tab2
----
-17556

skipif mysql # not compatible
query I rowsort label-2683
SELECT ALL COUNT ( * ) * + MIN ( ALL - col1 ) * - ( - 76 ) AS col0 FROM tab2
----
-17556

query I rowsort
SELECT 30 * + col1 AS col0 FROM tab1
----
1410
150
420

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2685
SELECT CAST( NULL AS SIGNED ), col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-2685
SELECT CAST ( NULL AS INTEGER ), col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT ALL - 87 + - 84 + + COUNT( * ) AS col2 FROM tab1
----
-168

skipif mysql # not compatible
query I rowsort label-2686
SELECT ALL - 87 + - 84 + + COUNT ( * ) AS col2 FROM tab1
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2687
SELECT ALL - + ( + 76 ) * + - col1 AS col2 FROM tab0 WHERE - ( + col1 ) <= - CAST( - col2 AS SIGNED ) * + 24
----
1596
6156
76

skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL - + ( + 76 ) * + - col1 AS col2 FROM tab0 WHERE - ( + col1 ) <= - CAST ( - col2 AS INTEGER ) * + 24
----
1596
6156
76

query III rowsort
SELECT * FROM tab0 WHERE - col1 + 62 NOT BETWEEN - - col2 + + - 7 AND NULL
----
15
81
47
97
1
99

query I rowsort
SELECT + - 85 FROM tab0 AS cor0 WHERE + 56 IS NOT NULL
----
-85
-85
-85

query I rowsort
SELECT ALL + col1 + - 78 + - col1 + + 89 * - - col1 + - col1 * - 39 AS col2 FROM tab1 AS cor0
----
1714
562
5938

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2691
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) IN ( + + 43 )
----

skipif mysql # not compatible
query III rowsort label-2691
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IN ( + + 43 )
----

query I rowsort
SELECT - col2 + ( + 42 ) FROM tab2 cor0
----
-16
19
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2693
SELECT DISTINCT col2 + - + 11 DIV - + col1 FROM tab0 AS cor0
----
10
110
47

skipif mysql # not compatible
query I rowsort label-2693
SELECT DISTINCT col2 + - + 11 / - + col1 FROM tab0 AS cor0
----
10
110
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2694
SELECT - col2 * + CAST( NULL AS DECIMAL ) + - 2 + - 26 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2694
SELECT - col2 * + CAST ( NULL AS REAL ) + - 2 + - 26 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT DISTINCT - col0 - + + 69 FROM tab1 AS cor0
----
-120
-154
-160

query I rowsort
SELECT DISTINCT 6 * + 1 AS col1 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT DISTINCT + SUM( ALL + 37 ) * 46 * 19 FROM tab0
----
97014

skipif mysql # not compatible
query I rowsort label-2698
SELECT DISTINCT + SUM ( ALL + 37 ) * 46 * 19 FROM tab0
----
97014

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 >= - 72 + + col0
----
85
5
59
91
47
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2700
SELECT DISTINCT ( + - col2 ) * col1 DIV - ( + + 88 ) + + 15 * col1 col1 FROM tab1
----
225
741
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2700
SELECT DISTINCT ( + - col2 ) * col1 / - ( + + 88 ) + + 15 * col1 col1 FROM tab1
----
225
741
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 47 * - + 96 AS col2, - col1 col1 FROM tab1
----
-4512
-14
-4512
-47
-4512
-5

query I rowsort
SELECT DISTINCT col2 * + - 69 FROM tab1
----
-4071
-4692
-6624

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT DISTINCT COUNT( DISTINCT col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2703
SELECT DISTINCT COUNT ( DISTINCT col1 ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > + 82
----

query I rowsort
SELECT col0 * - - col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2706
SELECT - CAST( col2 AS SIGNED ) * - col2 * + col0 FROM tab1 AS cor0
----
295885
420784
470016

skipif mysql # not compatible
query I rowsort label-2706
SELECT - CAST ( col2 AS INTEGER ) * - col2 * + col0 FROM tab1 AS cor0
----
295885
420784
470016

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * - col1 / col2 * - ( + - col2 ) <= NULL OR NOT + 45 = - 1 * 93
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT + MIN( - - col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2708
SELECT + MIN ( - - col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT DISTINCT 5 + - COUNT( * ) + - 54 + + - 28 + - 39 FROM tab1 cor0
----
-119

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT 5 + - COUNT ( * ) + - 54 + + - 28 + - 39 FROM tab1 cor0
----
-119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2711
SELECT + col1 + - + col0 + col1 + col2 * - CAST( NULL AS SIGNED ) / - - col0 + 64 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2711
SELECT + col1 + - + col0 + col1 + col2 * - CAST ( NULL AS INTEGER ) / - - col0 + 64 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 10 + + + col0 AS col2 FROM tab2 AS cor0
----
56
74
85

query II rowsort
SELECT ALL - + ( col1 ) * - 65, col2 FROM tab1 AS cor0
----
3055
68
325
59
910
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2714
SELECT ALL 79 DIV - MIN( ALL 88 ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2714
SELECT ALL 79 / - MIN ( ALL 88 ) col2 FROM tab0
----
0

query II rowsort
SELECT - + col0 AS col1, ( col0 ) / + col0 + + 21 FROM tab0 WHERE NULL <= - ( + col2 ) + - col0 * + + col2
----

query I rowsort
SELECT DISTINCT col0 * + 31 + col1 AS col2 FROM tab0
----
2718
3008
546

query I rowsort
SELECT ALL + col1 + 75 AS col1 FROM tab2 AS cor0
----
126
142
152

onlyif mysql # DIV for integer division: 
query I rowsort label-2718
SELECT - col1 DIV col0 * - col1 AS col1 FROM tab2 cor0
----
0
51
77

skipif mysql # not compatible
query I rowsort label-2718
SELECT - col1 / col0 * - col1 AS col1 FROM tab2 cor0
----
0
51
77

query I rowsort
SELECT + ( - - col2 ) AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2720
SELECT - + COUNT( * ) DIV + + COUNT( * ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2720
SELECT - + COUNT ( * ) / + + COUNT ( * ) FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT col0 + + 68 FROM tab2 AS cor0
----
114
132
143

query I rowsort
SELECT ALL col0 + - - 30 * - 40 * - col2 FROM tab2 AS cor0
----
27646
48064
69675

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT ALL - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col0
----
0

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, + col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2726
SELECT DISTINCT + col1 * - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2726
SELECT DISTINCT + col1 * - CAST ( NULL AS REAL ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col2, col0, - col1 * - 19 * col0 col2 FROM tab1
----
9 values hashing to 35796bbe295a72b926bfc03711c74973

query I rowsort
SELECT 75 * - - ( - col1 ) * 4 + + - col0 AS col2 FROM tab2
----
-15346
-20175
-23164

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 col2 FROM tab0
----
47
47
47

query II rowsort
SELECT DISTINCT 92 AS col1, 61 + - 78 - + ( - 55 ) + col2 FROM tab0
----
92
137
92
48
92
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 55 AND - 82
----
0

skipif mysql # not compatible
query I rowsort label-2731
SELECT + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 55 AND - 82
----
0

query I rowsort
SELECT ALL + - col2 * - 38 FROM tab1 cor0
----
2242
2584
3648

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2733
SELECT - CAST( - 48 AS SIGNED ) AS col0, - col1 * + - ( col1 ) AS col2 FROM tab1
----
48
196
48
2209
48
25

skipif mysql # not compatible
query II rowsort label-2733
SELECT - CAST ( - 48 AS INTEGER ) AS col0, - col1 * + - ( col1 ) AS col2 FROM tab1
----
48
196
48
2209
48
25

query I rowsort
SELECT ALL - + 17 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT ALL + SUM( + + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
227

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL + SUM ( + + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
227

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT - 40 IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT - MAX( ALL col0 ) col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2737
SELECT - MAX ( ALL col0 ) col2 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT + 45 * col1 + + + ( - col0 ) + 5 FROM tab2
----
2254
2945
3406

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2739
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2739
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) col1 FROM tab1
----
NULL

query I rowsort
SELECT col1 + + - ( + col1 ) AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col2 + - ( - col1 ) AS col1 FROM tab1
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2742
SELECT + ( + CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2742
SELECT + ( + CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2743
SELECT - 65 DIV 97 + - col0 - + 92 * - col2 col2 FROM tab0
----
4309
833
9011

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2743
SELECT - 65 / 97 + - col0 - + 92 * - col2 col2 FROM tab0
----
4309
833
9011

query III rowsort
SELECT * FROM tab0 WHERE ( ( NULL ) = col2 )
----

query I rowsort
SELECT ALL 62 + col0 AS col2 FROM tab1
----
113
147
153

query I rowsort
SELECT - 73 * + col2 + + 8 FROM tab0
----
-3423
-7219
-722

query I rowsort
SELECT DISTINCT - 64 + col2 AS col2 FROM tab0 AS cor0
----
-17
-54
35

query I rowsort
SELECT ALL - + col0 + col0 + + col1 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - + 46 ) + + + ( col0 ) / - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( - 38 + + + col2 )
----

query I rowsort
SELECT ALL - - col1 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 - 63 FROM tab1 AS cor0
----
-114
-148
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT SUM( DISTINCT - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-2753
SELECT SUM ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-223

query III rowsort
SELECT * FROM tab0 WHERE + col0 * + 74 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT DISTINCT 78 * + - SUM( + col0 ) FROM tab1 cor0
----
-17706

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT 78 * + - SUM ( + col0 ) FROM tab1 cor0
----
-17706

onlyif mysql # aggregate syntax: 
query II rowsort label-2756
SELECT DISTINCT - MIN( DISTINCT col2 ) col0, 82 + ( + - MIN( ALL 81 ) ) FROM tab2 AS cor0
----
-23
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2756
SELECT DISTINCT - MIN ( DISTINCT col2 ) col0, 82 + ( + - MIN ( ALL 81 ) ) FROM tab2 AS cor0
----
-23
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 7 BETWEEN NULL AND ( - - col2 )
----

query I rowsort
SELECT ALL + 27 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 - - col2 + - col2 AND - col2
----

query I rowsort
SELECT DISTINCT 67 * - col2 AS col2 FROM tab0
----
-3149
-6633
-670

query I rowsort
SELECT DISTINCT + 71 FROM tab0 WHERE + col2 * col1 + - col0 < + - 20
----

query I rowsort
SELECT ALL + 55 AS col2 FROM tab2
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2762
SELECT + 61, - CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab0
----
61
NULL
61
NULL
61
NULL

skipif mysql # not compatible
query II rowsort label-2762
SELECT + 61, - CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab0
----
61
NULL
61
NULL
61
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2763
SELECT DISTINCT COUNT( ALL - CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2763
SELECT DISTINCT COUNT ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2764
SELECT col2 col0, col1 DIV + col2 AS col1 FROM tab1 AS cor0
----
59
0
68
0
96
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2764
SELECT col2 col0, col1 / + col2 AS col1 FROM tab1 AS cor0
----
59
0
68
0
96
0

query I rowsort
SELECT - + 62 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT 67 - - 50 FROM tab2, tab0 AS cor0
----
9 values hashing to fffa05abe62cb539edc957636b354583

onlyif mysql # DIV for integer division: 
query I rowsort label-2767
SELECT ALL + + col1 DIV - col0 col2 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2767
SELECT ALL + + col1 / - col0 col2 FROM tab0 AS cor0
----
-5
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 ) BETWEEN + 62 AND - 53
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( - + 47 ) FROM tab2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT ALL + MIN( DISTINCT - + col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL + MIN ( DISTINCT - + col1 ) AS col0 FROM tab1
----
-47

query III rowsort
SELECT * FROM tab0 WHERE - 80 = ( - ( + col2 ) - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2772
SELECT ALL col2 + - ( + + 75 ) DIV - 95 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL col2 + - ( + + 75 ) / - 95 FROM tab0
----
10
47
99

query I rowsort
SELECT - col2 - - 57 * - - col2 AS col1 FROM tab1
----
3304
3808
5376

query I rowsort
SELECT ALL - 17 + col2 AS col0 FROM tab2 AS cor0
----
23
41
6

query I rowsort
SELECT + ( + - col1 ) + col2 AS col2 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2776
SELECT DISTINCT 50 DIV + + 26 + COUNT( * ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT 50 / + + 26 + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2777
SELECT ALL + - COUNT( * ) - - COUNT( * ) AS col2, COUNT( * ) * + ( - COUNT( * ) ) * - COUNT( * ) * SUM( ALL - col2 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2777
SELECT ALL + - COUNT ( * ) - - COUNT ( * ) AS col2, COUNT ( * ) * + ( - COUNT ( * ) ) * - COUNT ( * ) * SUM ( ALL - col2 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0
NULL

query I rowsort
SELECT DISTINCT ( - - 18 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT DISTINCT COUNT( * ) - - 1 AS col1 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-2779
SELECT DISTINCT COUNT ( * ) - - 1 AS col1 FROM tab0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT DISTINCT COUNT( * ) * 91 * - 7 FROM tab0
----
-1911

skipif mysql # not compatible
query I rowsort label-2780
SELECT DISTINCT COUNT ( * ) * 91 * - 7 FROM tab0
----
-1911

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 65 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * - ( + 93 ) FROM tab2 AS cor0
----
-2139
-3720
-5394

onlyif mysql # aggregate syntax: 
query II rowsort label-2783
SELECT + 6 col1, + COUNT( * ) FROM tab0 AS cor0
----
6
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2783
SELECT + 6 col1, + COUNT ( * ) FROM tab0 AS cor0
----
6
3

query I rowsort
SELECT ALL - col0 + - 45 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT ALL - ( - MAX( ALL 73 ) ) AS col1 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-2785
SELECT ALL - ( - MAX ( ALL 73 ) ) AS col1 FROM tab0 AS cor0
----
73

query I rowsort
SELECT ALL + + 57 AS col1 FROM tab1 AS cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2787
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE - 57 IS NOT NULL
----
46
64
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 15 / - 66 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 63 * + col0 FROM tab1 AS cor0 WHERE - col2 * + - 63 IS NULL
----

query I rowsort
SELECT - ( - 51 ) AS col0 FROM tab0 AS cor0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT - 77 * COUNT( * ) * + COUNT( * ) FROM tab1
----
-693

skipif mysql # not compatible
query I rowsort label-2792
SELECT - 77 * COUNT ( * ) * + COUNT ( * ) FROM tab1
----
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT DISTINCT + COUNT( * ) * - + MAX( col0 ) AS col2 FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-2793
SELECT DISTINCT + COUNT ( * ) * - + MAX ( col0 ) AS col2 FROM tab0
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT - COUNT( * ) * COUNT( col1 ) * + 32 AS col1 FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-2794
SELECT - COUNT ( * ) * COUNT ( col1 ) * + 32 AS col1 FROM tab2
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT COUNT( 53 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2795
SELECT COUNT ( 53 ) AS col0 FROM tab2
----
3

query II rowsort
SELECT DISTINCT ( + col2 ), col2 + - 27 * + col2 * + + 10 + col1 FROM tab1
----
59
-15866
68
-18245
96
-25810

query I rowsort
SELECT ALL + col0 * + col1 + - 39 + - ( + col1 ) + col2 FROM tab1
----
4259
440
757

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT + COUNT( DISTINCT + + col1 ) * + 23 AS col2 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2798
SELECT + COUNT ( DISTINCT + + col1 ) * + 23 AS col2 FROM tab2 AS cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2799
SELECT + CAST( NULL AS SIGNED ) + + + 55 + + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2799
SELECT + CAST ( NULL AS INTEGER ) + + + 55 + + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 + - 45 * col2 + - col1 + - 50 * - - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 87 AS col2 FROM tab1 AS cor0
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-2802
SELECT + col0 DIV - 12 AS col2 FROM tab2 AS cor0
----
-3
-5
-6

skipif mysql # not compatible
query I rowsort label-2802
SELECT + col0 / - 12 AS col2 FROM tab2 AS cor0
----
-3
-5
-6

query I rowsort
SELECT ALL ( - - 86 ) * + - col0 + - - 39 + - col1 FROM tab1
----
-4361
-7276
-7834

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT DISTINCT COUNT( - - col0 ) + + COUNT( + + col2 ) col2 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2804
SELECT DISTINCT COUNT ( - - col0 ) + + COUNT ( + + col2 ) col2 FROM tab0
----
6

query I rowsort
SELECT ALL - - col2 * + col1 + - + col2 FROM tab1 cor0
----
1248
236
3128

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE ( NULL ) IN ( 39, 24 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2807
SELECT ALL + CAST( NULL AS DECIMAL ) + - col1 * + col2 * col0 + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL + CAST ( NULL AS REAL ) + - col1 * + col2 * col0 + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col0, + col1 * - col0 * + ( col1 ) * - ( - 25 ) FROM tab0 AS cor0
----
15
-2460375
87
-959175
97
-2425

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 90 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 70 + - - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2811
SELECT 61 * - col1 + col0 DIV + col0 + - col2 col2 FROM tab1 AS cor0
----
-2934
-363
-949

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2811
SELECT 61 * - col1 + col0 / + col0 + - col2 col2 FROM tab1 AS cor0
----
-2934
-363
-949

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2812
SELECT ALL MAX( + - col0 ) - - COUNT( * ) + MAX( - col1 ) DIV - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL MAX ( + - col0 ) - - COUNT ( * ) + MAX ( - col1 ) / - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-2813
SELECT col2 DIV - col0 + - col1 col0 FROM tab1 AS cor0
----
-15
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2813
SELECT col2 / - col0 + - col1 col0 FROM tab1 AS cor0
----
-15
-47
-5

query II rowsort
SELECT DISTINCT - 69, 71 AS col0 FROM tab1
----
-69
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT MIN( + 88 ) + + COUNT( * ) col1 FROM tab0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2815
SELECT MIN ( + 88 ) + + COUNT ( * ) col1 FROM tab0
----
91

query II rowsort
SELECT DISTINCT col0 AS col0, col2 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT col0 * 36 + + col0 FROM tab1
----
1887
3145
3367

onlyif mysql # DIV for integer division: 
query I rowsort label-2818
SELECT 48 + - + col2 DIV - col0 FROM tab0
----
48
49
51

skipif mysql # not compatible
query I rowsort label-2818
SELECT 48 + - + col2 / - col0 FROM tab0
----
48
49
51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 37 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT DISTINCT + COUNT( * ) + + SUM( - - col0 ) FROM tab1
----
230

skipif mysql # not compatible
query I rowsort label-2820
SELECT DISTINCT + COUNT ( * ) + + SUM ( - - col0 ) FROM tab1
----
230

query I rowsort
SELECT DISTINCT + 84 * + col2 AS col1 FROM tab1
----
4956
5712
8064

query I rowsort
SELECT ALL - col1 + - col2 * - col0 - + ( + col2 ) * - - col2 * - col1 FROM tab0
----
179553
19403
2949

query III rowsort
SELECT * FROM tab0 WHERE NULL <= + - col0 * - - col2 / col2 * col1
----

query II rowsort
SELECT col2 AS col1, + col2 - + 10 + 2 * col2 * - + col2 FROM tab0 WHERE - 47 IS NOT NULL
----
10
-200
47
-4381
99
-19513

query I rowsort
SELECT DISTINCT 68 + col0 FROM tab0
----
155
165
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2826
SELECT CAST( NULL AS SIGNED ) * col1 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-2826
SELECT CAST ( NULL AS INTEGER ) * col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2827
SELECT - COUNT( * ), - COUNT( - 27 ) FROM tab2 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-2827
SELECT - COUNT ( * ), - COUNT ( - 27 ) FROM tab2 AS cor0
----
-3
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-2828
SELECT DISTINCT + col2 - col2, 19 DIV - col0 * - - col2 * - col2 FROM tab2 AS cor0
----
0
0

skipif mysql # not compatible
query II rowsort label-2828
SELECT DISTINCT + col2 - col2, 19 / - col0 * - - col2 * - col2 FROM tab2 AS cor0
----
0
0

query I rowsort
SELECT col2 - + + col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL OR - 53 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT - MAX( 64 ) col0 FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2831
SELECT - MAX ( 64 ) col0 FROM tab1 AS cor0
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-2832
SELECT + col1 DIV 7 * + - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-161
-440
-522

skipif mysql # not compatible
query I rowsort label-2832
SELECT + col1 / 7 * + - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-161
-440
-522

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> ( + + col1 )
----

query II rowsort
SELECT + 5 * col1, col2 FROM tab1 cor0
----
235
68
25
59
70
96

query I rowsort
SELECT DISTINCT 20 * - col0 AS col1 FROM tab2
----
-1280
-1500
-920

query II rowsort
SELECT DISTINCT + 62 AS col0, - col0 + 92 AS col0 FROM tab0
----
62
-5
62
5
62
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2837
SELECT ALL + 44 DIV - col1 col2 FROM tab1
----
-3
-8
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2837
SELECT ALL + 44 / - col1 col2 FROM tab1
----
-3
-8
0

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT - 94 NOT BETWEEN 56 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2839
SELECT ALL - 18 + col2 DIV + ( + col1 ) FROM tab0
----
-18
-18
81

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL - 18 + col2 / + ( + col1 ) FROM tab0
----
-18
-18
81

query II rowsort
SELECT ALL - col0, - col1 AS col0 FROM tab2
----
-46
-51
-64
-77
-75
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2841
SELECT ALL col0 + col1 + + col1 * CAST( - col2 AS SIGNED ) AS col1 FROM tab2
----
-1076
-2939
-3744

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL col0 + col1 + + col1 * CAST ( - col2 AS INTEGER ) AS col1 FROM tab2
----
-1076
-2939
-3744

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT ( - + MAX( + 54 ) ) AS col2 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-2842
SELECT ( - + MAX ( + 54 ) ) AS col2 FROM tab1 AS cor0
----
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 66 col2 FROM tab0 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2844
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 + + + col0 + 18 - - 10 + - 50 + - 38 * col1 * - 20 * + CAST( + col1 AS SIGNED ) <> + 79
----

skipif mysql # not compatible
query III rowsort label-2844
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 + + + col0 + 18 - - 10 + - 50 + - 38 * col1 * - 20 * + CAST ( + col1 AS INTEGER ) <> + 79
----

query II rowsort
SELECT ALL col1 AS col2, 29 + + - col0 - - col1 FROM tab2 AS cor0
----
51
34
67
21
77
42

query II rowsort
SELECT ALL + + col0 AS col1, 90 + + 91 AS col0 FROM tab1 cor0
----
51
181
85
181
91
181

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT DISTINCT COUNT( + 99 ) + - 1 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-2847
SELECT DISTINCT COUNT ( + 99 ) + - 1 FROM tab1 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT ALL - - MAX( - + 92 ) - - 85 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL - - MAX ( - + 92 ) - - 85 FROM tab0 AS cor0
----
-7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2850
SELECT - ( + - col2 ) AS col0, + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-2850
SELECT - ( + - col2 ) AS col0, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT - MAX( + - 43 ) - + 89 - 12 AS col1 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-2851
SELECT - MAX ( + - 43 ) - + 89 - 12 AS col1 FROM tab0
----
-58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 - + col2 col2 FROM tab2
----
-13
-31
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 29 col0 FROM tab1
----
-15
-24
18

query I rowsort
SELECT - 5 FROM tab0 WHERE NULL BETWEEN col0 * + col0 * - col2 AND + - col2 + col0 + - col2
----

query I rowsort
SELECT + col1 + - ( + col0 ) * - col0 - + col0 FROM tab2
----
2121
4109
5617

query I rowsort
SELECT ALL + ( + - col2 ) FROM tab2 cor0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT ALL + - col2 * + 56 + + + 49 FROM tab0 AS cor0
----
-2583
-511
-5495

query I rowsort
SELECT ALL col2 * col2 * - ( col1 ) FROM tab1
----
-129024
-17405
-217328

query I rowsort
SELECT 73 * 70 FROM tab1
----
5110
5110
5110

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 91 + + col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 * col0, + 79 col1 FROM tab1
----
4896
79
5015
79
6188
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2864
SELECT + COUNT( * ) DIV + COUNT( * ), COUNT( * ) AS col0 FROM tab2
----
1
3

skipif mysql # not compatible
query II rowsort label-2864
SELECT + COUNT ( * ) / + COUNT ( * ), COUNT ( * ) AS col0 FROM tab2
----
1
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2865
SELECT + col1 DIV 93 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2865
SELECT + col1 / 93 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 WHERE NOT NULL = - + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2867
SELECT ALL + 90 DIV - - 31, col1 + - 45 DIV + col0 col1 FROM tab0
----
2
1
2
21
2
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2867
SELECT ALL + 90 / - - 31, col1 + - 45 / + col0 col1 FROM tab0
----
2
1
2
21
2
78

query I rowsort
SELECT col2 + - + col2 AS col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2869
SELECT col2 * col0 + + col2 DIV + 90 AS col0 FROM tab0
----
705
870
9604

skipif mysql # not compatible
query I rowsort label-2869
SELECT col2 * col0 + + col2 / + 90 AS col0 FROM tab0
----
705
870
9604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2870
SELECT + CAST( - 46 AS SIGNED ) * - 99 + + 89 + + 83 + + col1 FROM tab0
----
4727
4747
4807

skipif mysql # not compatible
query I rowsort label-2870
SELECT + CAST ( - 46 AS INTEGER ) * - 99 + + 89 + + 83 + + col1 FROM tab0
----
4727
4747
4807

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 60 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2872
SELECT ALL - - CAST( - MAX( 58 ) AS SIGNED ) * - - COUNT( * ) col2 FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2872
SELECT ALL - - CAST ( - MAX ( 58 ) AS INTEGER ) * - - COUNT ( * ) col2 FROM tab2 AS cor0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT COUNT( * ) FROM tab2 WHERE + col2 <= col2
----
3

skipif mysql # not compatible
query I rowsort label-2873
SELECT COUNT ( * ) FROM tab2 WHERE + col2 <= col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2874
SELECT DISTINCT col1 DIV col1 DIV - 4 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2874
SELECT DISTINCT col1 / col1 / - 4 AS col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( NULL ) >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT DISTINCT - SUM( 82 ) + + 87 + + + 35 * + - 18 FROM tab0
----
-789

skipif mysql # not compatible
query I rowsort label-2876
SELECT DISTINCT - SUM ( 82 ) + + 87 + + + 35 * + - 18 FROM tab0
----
-789

query I rowsort
SELECT ALL 3 + - - col2 AS col2 FROM tab2
----
26
43
61

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 41 <> col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + 66 col0 FROM tab0 AS cor0
----
-21
-31
51

query I rowsort
SELECT DISTINCT + + 76 + - - ( - col0 ) * + col2 AS col2 FROM tab2 AS cor0
----
-2484
-4274
-982

query I rowsort
SELECT ALL - ( col2 ) + + col1 FROM tab2 cor0
----
28
37
9

query I rowsort
SELECT + col2 + + 86 * col0 FROM tab0 AS cor0
----
1337
7492
8441

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2883
SELECT + - CAST( - col2 AS SIGNED ) + - + col1 * - - 41 col1 FROM tab2 AS cor0
----
-2068
-2689
-3117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2883
SELECT + - CAST ( - col2 AS INTEGER ) + - + col1 * - - 41 col1 FROM tab2 AS cor0
----
-2068
-2689
-3117

query I rowsort
SELECT - col0 + - - 42 FROM tab1 AS cor0
----
-43
-49
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2885
SELECT ALL + 10 DIV + col1 - + 84 col0 FROM tab0
----
-74
-84
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2885
SELECT ALL + 10 / + col1 - + 84 col0 FROM tab0
----
-74
-84
-84

query I rowsort
SELECT DISTINCT + 57 * - 47 * 90 AS col0 FROM tab2
----
-241110

query III rowsort
SELECT * FROM tab2 WHERE ( + - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT DISTINCT + MIN( + + col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2888
SELECT DISTINCT + MIN ( + + col0 ) FROM tab1
----
51

query III rowsort
SELECT * FROM tab1 WHERE 13 * - 48 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2890
SELECT DISTINCT CAST( - 22 AS SIGNED ) FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-2890
SELECT DISTINCT CAST ( - 22 AS INTEGER ) FROM tab0
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-2891
SELECT col1 DIV + - col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2891
SELECT col1 / + - col1 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT COUNT( * ) * 86 FROM tab1 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-2892
SELECT COUNT ( * ) * 86 FROM tab1 AS cor0
----
258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2893
SELECT CAST( - MAX( - 39 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-2893
SELECT CAST ( - MAX ( - 39 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
39

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 43 NOT BETWEEN - 26 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 91 BETWEEN + 47 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2896
SELECT - - col1 DIV + 5 - CAST( + - col1 AS SIGNED ) + + 46 DIV + - col0 AS col1 FROM tab2 AS cor0
----
60
80
92

skipif mysql # not compatible
query I rowsort label-2896
SELECT - - col1 / + 5 - CAST ( + - col1 AS INTEGER ) + + 46 / + - col0 AS col1 FROM tab2 AS cor0
----
60
80
92

query II rowsort
SELECT - 17 AS col2, + 20 AS col1 FROM tab1 AS cor0
----
-17
20
-17
20
-17
20

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * + col2 NOT IN ( 13, 36, + 92 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2899
SELECT DISTINCT + + col1 * ( - col0 ) DIV + + 17 - + col2 AS col1, - col1 AS col2 FROM tab2 AS cor0
----
-161
-51
-329
-77
-353
-67

skipif mysql # not compatible
query II rowsort label-2899
SELECT DISTINCT + + col1 * ( - col0 ) / + + 17 - + col2 AS col1, - col1 AS col2 FROM tab2 AS cor0
----
-161
-51
-329
-77
-353
-67

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 AS cor0 WHERE NULL < ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2901
SELECT - + col0 DIV - + col1 AS col2 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-2901
SELECT - + col0 / - + col1 AS col2 FROM tab0 AS cor0
----
0
4
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT COUNT( * ) * + + 70 AS col0 FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-2902
SELECT COUNT ( * ) * + + 70 AS col0 FROM tab1
----
210

query I rowsort
SELECT + + 45 FROM tab0 WHERE NOT NULL IS NOT NULL
----
45
45
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2904
SELECT ALL col1 DIV - - col1 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2904
SELECT ALL col1 / - - col1 AS col1 FROM tab1
----
1
1
1

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 3 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 96 + col1 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col0 * + col1, + col1 + 25 AS col1 FROM tab2 AS cor0
----
2346
76
4928
102
5025
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT DISTINCT - + 8 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2908
SELECT DISTINCT - + 8 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT + + 49 - + COUNT( 18 ) col2 FROM tab2 WHERE + ( col2 ) IS NOT NULL
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2909
SELECT + + 49 - + COUNT ( 18 ) col2 FROM tab2 WHERE + ( col2 ) IS NOT NULL
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-2910
SELECT ALL - - 48 AS col2, + 35 + + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
48
44

skipif mysql # not compatible
query II rowsort label-2910
SELECT ALL - - 48 AS col2, + 35 + + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
48
44

onlyif mysql # DIV for integer division: 
query I rowsort label-2911
SELECT ALL 71 + col1 DIV ( + col2 ) AS col2 FROM tab2 AS cor0
----
72
72
73

skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL 71 + col1 / ( + col2 ) AS col2 FROM tab2 AS cor0
----
72
72
73

query I rowsort
SELECT ALL col1 - - 16 AS col2 FROM tab1 AS cor0
----
21
30
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT COUNT( ALL + + col2 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2913
SELECT COUNT ( ALL + + col2 ) FROM tab1 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2914
SELECT - + 93 DIV - - col0 + - + col1 FROM tab1 AS cor0
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-2914
SELECT - + 93 / - - col0 + - + col1 FROM tab1 AS cor0
----
-15
-48
-6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 33 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 - 18 + col2 AS col0 FROM tab2 AS cor0
----
28
62
98

query I rowsort
SELECT + col0 * col0 + - 88 * - 69 / ( - col2 ) * - - col2 * + - 0 AS col2 FROM tab2 AS cor0 WHERE 3 BETWEEN - 43 AND NULL
----

query I rowsort
SELECT - 5 * + col2 - + col1 FROM tab0 AS cor0
----
-316
-496
-71

query I rowsort
SELECT 51 - + col0 * + col1 AS col1 FROM tab2 AS cor0
----
-2295
-4877
-4974

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT DISTINCT - COUNT( * ) - + COUNT( + col2 ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2920
SELECT DISTINCT - COUNT ( * ) - + COUNT ( + col2 ) FROM tab1 AS cor0
----
-6

query I rowsort
SELECT DISTINCT - 96 - + - ( col2 ) FROM tab1
----
-28
-37
0

query I rowsort
SELECT + + ( + - 4 ) * + 39 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-156
-156
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-2923
SELECT DISTINCT + col0 DIV - 1 AS col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2923
SELECT DISTINCT + col0 / - 1 AS col2 FROM tab1
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= + 81 * + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2925
SELECT ( - + ( + 61 ) ) DIV col1 FROM tab0
----
-2
-61
0

skipif mysql # not compatible
query I rowsort label-2925
SELECT ( - + ( + 61 ) ) / col1 FROM tab0
----
-2
-61
0

query II rowsort
SELECT ALL col2 AS col1, col2 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT ALL + ( 66 ) * - col1 * 82 AS col2 FROM tab1 cor0
----
-254364
-27060
-75768

query II rowsort
SELECT DISTINCT + + 11, col0 AS col1 FROM tab1 AS cor0
----
11
51
11
85
11
91

query I rowsort
SELECT DISTINCT 59 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
59

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 <> - - ( + col2 ) - - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2931
SELECT ALL + + 6 DIV - ( + + 59 ) - + 7 + - col2 + - col2 AS col2 FROM tab1 AS cor0
----
-125
-143
-199

skipif mysql # not compatible
query I rowsort label-2931
SELECT ALL + + 6 / - ( + + 59 ) - + 7 + - col2 + - col2 AS col2 FROM tab1 AS cor0
----
-125
-143
-199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 * + 43 + - col1 * + 77 col2 FROM tab2 cor0
----
-1719
-2489
-487

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT DISTINCT - COUNT( + col1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2933
SELECT DISTINCT - COUNT ( + col1 ) AS col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + + 63 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col2 col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2936
SELECT DISTINCT 68 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= ( - + col0 + + 67 * CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT 68 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= ( - + col0 + + 67 * CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT - 78 * - 98 + - - col0 + - 3 FROM tab0 AS cor0 WHERE + col0 + 54 + + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2938
SELECT col1 + + CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2938
SELECT col1 + + CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * col1 + - + 83 + + 40 * + 48 FROM tab1
----
2262
2551
6114

query I rowsort
SELECT col0 + ( - col0 ) + - col0 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT - 23 + + + SUM( ALL + col1 ) AS col2 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-2941
SELECT - 23 + + + SUM ( ALL + col1 ) AS col2 FROM tab1
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2942
SELECT - 90 + + col1 * + 78 + + col1 * + CAST( + 35 AS SIGNED ) + col1 - 39 + - CAST( NULL AS SIGNED ) * + col2 + - 61 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2942
SELECT - 90 + + col1 * + 78 + + col1 * + CAST ( + 35 AS INTEGER ) + col1 - 39 + - CAST ( NULL AS INTEGER ) * + col2 + - 61 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2943
SELECT - 51 DIV 89 + - 53 - 32 FROM tab2
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-2943
SELECT - 51 / 89 + - 53 - 32 FROM tab2
----
-85
-85
-85

query III rowsort
SELECT * FROM tab1 WHERE col1 BETWEEN + col0 + - + 65 * + col1 AND - col0 * + ( col0 ) * 47
----

query II rowsort
SELECT + col2 AS col2, + col2 AS col2 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2946
SELECT col0 * ( col1 ) DIV - col0 + + col0 * col1 AS col0 FROM tab0
----
1134
1806
96

skipif mysql # not compatible
query I rowsort label-2946
SELECT col0 * ( col1 ) / - col0 + + col0 * col1 AS col0 FROM tab0
----
1134
1806
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT ALL COUNT( - + col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL COUNT ( - + col2 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT ALL - + col0 + + - col2 + - col2 FROM tab2 AS cor0
----
-144
-191
-92

query I rowsort
SELECT DISTINCT col0 * 12 + - col1 FROM tab0 AS cor0
----
1023
1163
99

query I rowsort
SELECT ALL 45 + - - ( ( col2 ) ) AS col2 FROM tab2 AS cor0
----
103
68
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT DISTINCT - + COUNT( * ) + + + COUNT( * ) col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2951
SELECT DISTINCT - + COUNT ( * ) + + + COUNT ( * ) col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col1 - - col2 + + - col0 * - 21 + col1 + + 79 AS col0 FROM tab1 AS cor0
----
1274
1933
2152

query I rowsort
SELECT + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT - 51 IS NOT NULL
----

query I rowsort
SELECT ALL + 76 * - - col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2955
SELECT + CAST( NULL AS SIGNED ), col2 * - 24 - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2955
SELECT + CAST ( NULL AS INTEGER ), col2 * - 24 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 63 AS col2 FROM tab2 WHERE NOT NULL <= 89
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2957
SELECT - - col2 DIV - - 21 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2957
SELECT - - col2 / - - 21 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2958
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 95 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + + col0 + - col2 FROM tab2 AS cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 94 col1 FROM tab1 cor0
----
-108
-141
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 99 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - 82 ) FROM tab1 cor0
----
-82

query I rowsort
SELECT + 46 + + + 38 FROM tab0 AS cor0
----
84
84
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2965
SELECT DISTINCT - + 91 DIV col2 + + + col1 AS col2 FROM tab1 AS cor0
----
14
4
46

skipif mysql # not compatible
query I rowsort label-2965
SELECT DISTINCT - + 91 / col2 + + + col1 AS col2 FROM tab1 AS cor0
----
14
4
46

onlyif mysql # DIV for integer division: 
query I rowsort label-2966
SELECT 4 DIV - 63 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2966
SELECT 4 / - 63 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT DISTINCT - SUM( 48 ) FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT - SUM ( 48 ) FROM tab2 AS cor0
----
-144

query I rowsort
SELECT 69 AS col2 FROM tab1 AS cor0 WHERE - ( + 8 ) IS NULL
----

query I rowsort
SELECT - 6 * + - 17 AS col2 FROM tab0 cor0
----
102
102
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT ALL COUNT( * ) * - COUNT( * ) * + + 2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL COUNT ( * ) * - COUNT ( * ) * + + 2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 * - 17 * 70 * 84 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col2 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT + COUNT( * ) * + ( + COUNT( * ) ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2973
SELECT + COUNT ( * ) * + ( + COUNT ( * ) ) FROM tab1
----
9

query I rowsort
SELECT ALL col2 + + + col2 FROM tab1
----
118
136
192

query I rowsort
SELECT - + col0 - col0 * + col0 AS col1 FROM tab0 AS cor0
----
-240
-7656
-9506

query I rowsort
SELECT - 52 FROM tab1 WHERE - col2 <= + col1 + - + col1 + + col2
----
-52
-52
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2977
SELECT 38 DIV + COUNT( * ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-2977
SELECT 38 / + COUNT ( * ) FROM tab2
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2978
SELECT COUNT( * ) DIV - 75 * COUNT( * ), + COUNT( - col2 ) * - 68 col1 FROM tab0
----
0
-204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2978
SELECT COUNT ( * ) / - 75 * COUNT ( * ), + COUNT ( - col2 ) * - 68 col1 FROM tab0
----
0
-204

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 81 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * 74 FROM tab2
----
3774
4958
5698

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT - - MIN( - + col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2981
SELECT - - MIN ( - + col2 ) AS col2 FROM tab2 AS cor0
----
-58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + - 54 / - col2 + - + 33 <> + - 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT - + MIN( ALL + 74 ) FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-2983
SELECT - + MIN ( ALL + 74 ) FROM tab1 AS cor0
----
-74

query II rowsort
SELECT DISTINCT col1, - col1 FROM tab0
----
1
-1
21
-21
81
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-2985
SELECT 84 AS col1, 48 * + COUNT( * ) FROM tab0
----
84
144

skipif mysql # not compatible
query II rowsort label-2985
SELECT 84 AS col1, 48 * + COUNT ( * ) FROM tab0
----
84
144

query I rowsort
SELECT DISTINCT col0 * + ( - + 25 ) FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2987
SELECT ALL - MAX( - 93 ) * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL - MAX ( - 93 ) * CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + 41 + - col1 * col1 AS col2 FROM tab1 WHERE NOT - 78 / ( + 81 ) IS NULL
----
-155
-2168
16

onlyif mysql # DIV for integer division: 
query I rowsort label-2989
SELECT DISTINCT - 13 DIV - ( col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2989
SELECT DISTINCT - 13 / - ( col0 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2990
SELECT 9 * - 25 AS col0, + COUNT( * ) AS col1 FROM tab1
----
-225
3

skipif mysql # not compatible
query II rowsort label-2990
SELECT 9 * - 25 AS col0, + COUNT ( * ) AS col1 FROM tab1
----
-225
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2991
SELECT ALL col2 / ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2991
SELECT ALL col2 / ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + ( + + 28 ) FROM tab1 AS cor0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2993
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 / CAST( NULL AS SIGNED ) - 5 < - 52
----

skipif mysql # not compatible
query III rowsort label-2993
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 / CAST ( NULL AS INTEGER ) - 5 < - 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT DISTINCT - 22 * + ( MIN( - col0 ) ) FROM tab1
----
2002

skipif mysql # not compatible
query I rowsort label-2994
SELECT DISTINCT - 22 * + ( MIN ( - col0 ) ) FROM tab1
----
2002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2995
SELECT ALL CAST( + - col0 AS SIGNED ) * - col2 + 3 FROM tab0
----
708
873
9606

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL CAST ( + - col0 AS INTEGER ) * - col2 + 3 FROM tab0
----
708
873
9606

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT DISTINCT 11 + ( - COUNT( * ) ) AS col0 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-2996
SELECT DISTINCT 11 + ( - COUNT ( * ) ) AS col0 FROM tab1
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2997
SELECT DISTINCT - col0 + + col1 - + - 28 DIV + 23 AS col0 FROM tab0 AS cor0
----
-65
-95
67

skipif mysql # not compatible
query I rowsort label-2997
SELECT DISTINCT - col0 + + col1 - + - 28 / + 23 AS col0 FROM tab0 AS cor0
----
-65
-95
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT ALL - - COUNT( DISTINCT - + 28 ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2998
SELECT ALL - - COUNT ( DISTINCT - + 28 ) AS col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT - 21 + + 56 * - col0 * col2 FROM tab2 AS cor0
----
-143381
-243621
-59269

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT - SUM( ALL + col2 ) FROM tab2 AS cor0 WHERE - col2 * col0 + - col2 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3000
SELECT - SUM ( ALL + col2 ) FROM tab2 AS cor0 WHERE - col2 * col0 + - col2 < NULL
----
NULL

query I rowsort
SELECT DISTINCT + + 99 FROM tab0 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT - + SUM( - 60 ) + + 45 FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-3002
SELECT - + SUM ( - 60 ) + + 45 FROM tab0 AS cor0
----
225

query I rowsort
SELECT - 75 + - + col0 AS col1 FROM tab1 AS cor0
----
-126
-160
-166

query II rowsort
SELECT ALL + col2 AS col1, - 55 AS col0 FROM tab2
----
23
-55
40
-55
58
-55

query I rowsort
SELECT col0 + - + col2 + + 87 * - - 89 FROM tab0
----
7711
7741
7820

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col2, col2 AS col2 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT ALL ( - col1 ) * - 20 + 40 FROM tab0
----
1660
460
60

query III rowsort
SELECT * FROM tab2 WHERE + - col0 * - col2 + col1 IS NULL
----

query I rowsort
SELECT - 82 * + - col0 AS col1 FROM tab0
----
1230
7134
7954

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 53 + + 11 * + col1 * + col2 + 37 BETWEEN ( + 94 ) * - col1 * - col2 / + - 51 * - - col1 + - 41 AND - 23
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3011
SELECT col2 + col0 AS col2 FROM tab1 WHERE - CAST( NULL AS SIGNED ) IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-3011
SELECT col2 + col0 AS col2 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT DISTINCT + COUNT( col1 ) + - ( 59 ) AS col0 FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-3012
SELECT DISTINCT + COUNT ( col1 ) + - ( 59 ) AS col0 FROM tab2
----
-56

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( 91 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3014
SELECT - ( - col1 ) DIV col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3014
SELECT - ( - col1 ) / col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + 49 * + col1 + - col0 * col2 FROM tab0
----
-9554
159
3264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3016
SELECT COUNT( * ) DIV + MAX( 37 ) AS col1 FROM tab1 WHERE NOT ( + col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3016
SELECT COUNT ( * ) / + MAX ( 37 ) AS col1 FROM tab1 WHERE NOT ( + col0 ) IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 / + col0 > NULL
----

query I rowsort
SELECT DISTINCT - 18 FROM tab0 WHERE NOT ( + col1 ) IS NULL
----
-18

query I rowsort
SELECT DISTINCT col0 - - col0 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
128
150
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3020
SELECT - col0 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3020
SELECT - col0 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 col0 FROM tab1
----
31
31
31

query I rowsort
SELECT + col2 FROM tab2 WHERE + 25 + - col1 = - 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT - SUM( - col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-3023
SELECT - SUM ( - col1 ) FROM tab2
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3024
SELECT CAST( NULL AS SIGNED ) FROM tab0 WHERE ( NULL ) <= - col2 - - col0 * - 55
----

skipif mysql # not compatible
query I rowsort label-3024
SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE ( NULL ) <= - col2 - - col0 * - 55
----

query III rowsort
SELECT * FROM tab1 WHERE col0 < ( + 1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + ( col0 ) * + col2 + + 41
----

query I rowsort
SELECT 37 + + 93 * + col0 FROM tab1
----
4780
7942
8500

query I rowsort
SELECT DISTINCT ( - 7 ) AS col1 FROM tab2 WHERE NOT + col1 IS NULL
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3029
SELECT MIN( ALL CAST( NULL AS SIGNED ) ) + COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3029
SELECT MIN ( ALL CAST ( NULL AS INTEGER ) ) + COUNT ( * ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT DISTINCT - COUNT( * ) + COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3030
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col0 / - 56 AS col2 FROM tab1 WHERE NULL >= ( col0 / + col0 )
----

query I rowsort
SELECT DISTINCT 65 - + col2 * - col2 AS col2 FROM tab0
----
165
2274
9866

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT BETWEEN + 45 AND 28 / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT DISTINCT + 66 - MAX( DISTINCT + 34 ) FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT + 66 - MAX ( DISTINCT + 34 ) FROM tab1
----
32

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN col2 + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT DISTINCT COUNT( * ) + 5 AS col2 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT COUNT ( * ) + 5 AS col2 FROM tab2
----
8

query I rowsort
SELECT DISTINCT - col2 + col0 FROM tab2 WHERE + col2 + col0 NOT IN ( - col0 - 18 )
----
17
23
24

query I rowsort
SELECT ALL + 3 - + col0 FROM tab1 WHERE + col1 < NULL
----

query I rowsort
SELECT DISTINCT col1 * - col2 + col2 / col2 FROM tab1 WHERE col2 * - 3 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT COUNT( * ) FROM tab0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3040
SELECT COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT DISTINCT 22 * col1 AS col0 FROM tab1 AS cor0
----
1034
110
308

query I rowsort
SELECT col2 * 1 AS col2 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE ( NULL ) IN ( + 72 )
----
0

skipif mysql # not compatible
query I rowsort label-3044
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE ( NULL ) IN ( + 72 )
----
0

query III rowsort
SELECT * FROM tab1 WHERE + col1 + col1 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 24 + - 66 FROM tab2
----
-42
-42
-42

query I rowsort
SELECT col2 * - 12 + + col1 * col2 AS col1 FROM tab0
----
-1089
3243
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT DISTINCT - SUM( ALL 55 ) + + 72 AS col0 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-3048
SELECT DISTINCT - SUM ( ALL 55 ) + + 72 AS col0 FROM tab1 AS cor0
----
-93

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT col0 + 66 <= NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT - 84 AS col0 FROM tab0 cor0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT + 85 * + MAX( DISTINCT col2 + + 57 ) AS col2 FROM tab0 AS cor0
----
13260

skipif mysql # not compatible
query I rowsort label-3052
SELECT + 85 * + MAX ( DISTINCT col2 + + 57 ) AS col2 FROM tab0 AS cor0
----
13260

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT DISTINCT MAX( ALL - ( col0 ) ) + + MAX( ALL - col1 ) FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-3053
SELECT DISTINCT MAX ( ALL - ( col0 ) ) + + MAX ( ALL - col1 ) FROM tab0 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT + + MAX( col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3054
SELECT + + MAX ( col0 ) AS col2 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT - MAX( - col2 ) + + 54 FROM tab0 AS cor0 WHERE col2 + + col2 >= + 68 + 8
----
101

skipif mysql # not compatible
query I rowsort label-3055
SELECT - MAX ( - col2 ) + + 54 FROM tab0 AS cor0 WHERE col2 + + col2 >= + 68 + 8
----
101

query I rowsort
SELECT ALL ( col0 ) + + col1 AS col1 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT - 7 FROM tab2 AS cor0 WHERE ( NULL ) = ( + 62 + 18 * - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3058
SELECT ALL col0 DIV - col2 AS col1 FROM tab1 AS cor0 WHERE NOT col2 * 9 IS NULL
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3058
SELECT ALL col0 / - col2 AS col1 FROM tab1 AS cor0 WHERE NOT col2 * 9 IS NULL
----
-1
-1
0

query III rowsort
SELECT * FROM tab1 WHERE - col1 * + col0 + - ( + col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT ( + - 35 ) AS col2 FROM tab0
----
-35

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3061
SELECT * FROM tab2 WHERE CAST( NULL AS DECIMAL ) IN ( 54 )
----

skipif mysql # not compatible
query III rowsort label-3061
SELECT * FROM tab2 WHERE CAST ( NULL AS REAL ) IN ( 54 )
----

query I rowsort
SELECT ALL col2 - - - col0 FROM tab0
----
-77
2
32

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT 74 IN ( col1 + + 61 * col1 )
----
14
47
5

query I rowsort
SELECT DISTINCT + col2 * - col0 + 22 AS col0 FROM tab1
----
-4874
-4993
-6166

query I rowsort
SELECT + 69 * - col0 - 63 * col1 AS col0 FROM tab1
----
-4401
-6180
-9240

query I rowsort
SELECT + 31 * + 99 - - col0 FROM tab2
----
3115
3133
3144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3067
SELECT ALL col0 * + CAST( NULL AS SIGNED ) / - col0 + + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3067
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) / - col0 + + col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT + SUM( + col2 ) * - 33 + + ( ( - COUNT( ALL + 55 ) ) ) FROM tab0
----
-5151

skipif mysql # not compatible
query I rowsort label-3068
SELECT + SUM ( + col2 ) * - 33 + + ( ( - COUNT ( ALL + 55 ) ) ) FROM tab0
----
-5151

query I rowsort
SELECT + 27 * col0 + col1 AS col2 FROM tab1
----
1391
2300
2504

query I rowsort
SELECT DISTINCT - col2 - 47 FROM tab1 AS cor0
----
-106
-115
-143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3071
SELECT ALL col0 / + 14 + 31 FROM tab1 AS cor0 WHERE NOT + col2 * col1 + CAST( NULL AS SIGNED ) NOT BETWEEN col2 * + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL col0 / + 14 + 31 FROM tab1 AS cor0 WHERE NOT + col2 * col1 + CAST ( NULL AS INTEGER ) NOT BETWEEN col2 * + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3072
SELECT DISTINCT col2 DIV 44 AS col2 FROM tab2 AS cor0 WHERE + 67 NOT IN ( ( - ( col0 ) ) )
----
0
1

skipif mysql # not compatible
query I rowsort label-3072
SELECT DISTINCT col2 / 44 AS col2 FROM tab2 AS cor0 WHERE + 67 NOT IN ( ( - ( col0 ) ) )
----
0
1

query I rowsort
SELECT ALL + 97 * - col2 + col2 FROM tab2 WHERE + col0 NOT IN ( + col2 )
----
-2208
-3840
-5568

query I rowsort
SELECT ALL - 23 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT - 72 * + col1 AS col0 FROM tab2 AS cor0
----
-3672
-4824
-5544

query I rowsort
SELECT - + 84 * - - col0 AS col1 FROM tab1 AS cor0
----
-4284
-7140
-7644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3077
SELECT + + CAST( NULL AS SIGNED ) * + col2 * - + 5 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3077
SELECT + + CAST ( NULL AS INTEGER ) * + col2 * - + 5 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 <= + col0
----
51
14
96

query II rowsort
SELECT DISTINCT - + 58, + col0 FROM tab1 AS cor0
----
-58
51
-58
85
-58
91

query I rowsort
SELECT ALL + - col1 * - 72 * + col0 * ( col1 * + col1 ) FROM tab0 AS cor0
----
573956280
58010904
6984

query I rowsort
SELECT ALL - 0 AS col1 FROM tab0 AS cor0 WHERE ( + ( + col2 ) / - col2 ) IS NOT NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 * - - col2 col0 FROM tab2
----
1633
2840
4118

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT DISTINCT + MAX( ALL + ( - col0 ) ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT + MAX ( ALL + ( - col0 ) ) AS col1 FROM tab0
----
-15

query I rowsort
SELECT DISTINCT - 80 FROM tab0 WHERE + col2 <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3085
SELECT ALL - 17 + + 51 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL - 17 + + 51 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + 85 + + 86 * - col0 FROM tab2 AS cor0 WHERE NOT col0 > ( NULL )
----

query I rowsort
SELECT DISTINCT + 99 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
99

query II rowsort
SELECT DISTINCT - col1, + col2 FROM tab2
----
-51
23
-67
58
-77
40

query I rowsort
SELECT + 70 - + col1 + col1 * - ( - col0 ) FROM tab2
----
2365
4921
5028

query I rowsort
SELECT ALL - col0 + + - col2 AS col2 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3091
SELECT ALL + CAST( NULL AS SIGNED ) - + + 45 col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3091
SELECT ALL + CAST ( NULL AS INTEGER ) - + + 45 col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * + + col1 + - 6 FROM tab1 AS cor0
----
-202
-2215
-31

query I rowsort
SELECT - col0 * - - col0 + + col2 AS col2 FROM tab1 AS cor0
----
-2505
-7166
-8213

query I rowsort
SELECT DISTINCT col0 - 29 FROM tab0 AS cor0
----
-14
58
68

query I rowsort
SELECT 96 + + 55 FROM tab1 AS cor0
----
151
151
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3096
SELECT DISTINCT + 94 * - COUNT( * ) + - MIN( DISTINCT + - col2 ) + + CAST( - COUNT( * ) AS SIGNED ) DIV SUM( - col0 ) * ( 74 ) + 99 AS col2 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-3096
SELECT DISTINCT + 94 * - COUNT ( * ) + - MIN ( DISTINCT + - col2 ) + + CAST ( - COUNT ( * ) AS INTEGER ) / SUM ( - col0 ) * ( 74 ) + 99 AS col2 FROM tab0 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT ALL - 58 - COUNT( * ) FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL - 58 - COUNT ( * ) FROM tab2 AS cor0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT + - COUNT( * ) * + SUM( 37 ) * + MIN( col2 ) + - 31 + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE 91 - + 65 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT + - COUNT ( * ) * + SUM ( 37 ) * + MIN ( col2 ) + - 31 + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE 91 - + 65 IS NULL
----
NULL

query I rowsort
SELECT ( - + col1 ) + col1 + col1 * - col0 + + col2 AS col1 FROM tab2
----
-2323
-4888
-4967

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 30 col1, col1 FROM tab1
----
30
14
30
47
30
5

query I rowsort
SELECT ( 99 ) + - col0 * - col0 AS col0 FROM tab0
----
324
7668
9508

query I rowsort
SELECT - col2 * - col2 * - + 9 + - + 57 + col0 * col2 * + col1 AS col1 FROM tab1
----
-14457
-6311
249163

query I rowsort
SELECT 23 * - col2 AS col2 FROM tab2
----
-1334
-529
-920

query III rowsort
SELECT ALL 20, col2, col2 AS col2 FROM tab0
----
9 values hashing to eda68eb5e8b5dd60990e0122f6bcadfb

query III rowsort
SELECT * FROM tab1 WHERE ( - 44 + - col2 IS NULL )
----

query I rowsort
SELECT ALL - 40 * + ( 5 ) AS col0 FROM tab2
----
-200
-200
-200

query III rowsort
SELECT * FROM tab0 cor0 WHERE 54 > - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 24 AS col2 FROM tab0 cor0
----
-24
-24
-24

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + col2 NOT BETWEEN - + col1 / - col2 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3110
SELECT - SUM( DISTINCT - col2 ) / - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3110
SELECT - SUM ( DISTINCT - col2 ) / - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - + col2 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND + - col1 * + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3112
SELECT - MIN( ALL - + col1 ), + ( - COUNT( * ) ) AS col0 FROM tab1
----
47
-3

skipif mysql # not compatible
query II rowsort label-3112
SELECT - MIN ( ALL - + col1 ), + ( - COUNT ( * ) ) AS col0 FROM tab1
----
47
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 col0 FROM tab2 AS cor0 WHERE NOT + col2 >= + col0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + - 22 AS col1 FROM tab0 AS cor0
----
-22

query I rowsort
SELECT ALL + 54 * - 80 - - + 5 + + - 17 * col2 - + - col0 + + 64 FROM tab2 AS cor0
----
-4596
-4867
-5162

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT DISTINCT - MAX( DISTINCT + - 16 ) FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-3117
SELECT DISTINCT - MAX ( DISTINCT + - 16 ) FROM tab0
----
16

query I rowsort
SELECT DISTINCT + - 13 AS col1 FROM tab2 WHERE + col1 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3119
SELECT DISTINCT 50 AS col2, COUNT( ALL - col1 ) * 56 DIV - - 26 AS col0 FROM tab2
----
50
6

skipif mysql # not compatible
query II rowsort label-3119
SELECT DISTINCT 50 AS col2, COUNT ( ALL - col1 ) * 56 / - - 26 AS col0 FROM tab2
----
50
6

query I rowsort
SELECT DISTINCT + col1 * col0 + + - 23 FROM tab0
----
1192
1804
74

query I rowsort
SELECT DISTINCT - col0 * + + col0 AS col2 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3122
SELECT - 60 * + + CAST( + ( 46 ) AS SIGNED ) * col0 FROM tab1 AS cor0 WHERE ( - 26 ) >= - ( - col2 ) * + col1
----

skipif mysql # not compatible
query I rowsort label-3122
SELECT - 60 * + + CAST ( + ( 46 ) AS INTEGER ) * col0 FROM tab1 AS cor0 WHERE ( - 26 ) >= - ( - col2 ) * + col1
----

query I rowsort
SELECT ALL + 38 + + - col1 AS col1 FROM tab2 AS cor0
----
-13
-29
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT - + COUNT( ALL col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3124
SELECT - + COUNT ( ALL col0 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3125
SELECT ALL 10, CAST( + - 8 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
10
-8
10
-8
10
-8

skipif mysql # not compatible
query II rowsort label-3125
SELECT ALL 10, CAST ( + - 8 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
10
-8
10
-8
10
-8

query I rowsort
SELECT DISTINCT + 17 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT - - COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3127
SELECT - - COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( NOT ( NULL IS NULL ) ) )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 46 - - col2 AS col2 FROM tab2 AS cor0
----
104
69
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT ALL 34 * COUNT( * ) + + - 63 AS col0 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL 34 * COUNT ( * ) + + - 63 AS col0 FROM tab2 AS cor0
----
39

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT + 79 > NULL OR - - col2 <> ( col1 * - col1 )
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) + - 80 col2 FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3133
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) + - 80 col2 FROM tab1 AS cor0
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3134
SELECT CAST( 30 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
30
30
30

skipif mysql # not compatible
query I rowsort label-3134
SELECT CAST ( 30 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
30
30
30

query I rowsort
SELECT DISTINCT - 43 * + - col1 + col0 FROM tab1 cor0
----
2112
300
653

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 < col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3137
SELECT DISTINCT col0 - 66 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3137
SELECT DISTINCT col0 - 66 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT col0 - 95 AS col0 FROM tab2
----
-20
-31
-49

query I rowsort
SELECT ALL col0 - + col2 * col0 AS col1 FROM tab1
----
-4845
-4930
-6097

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3140
SELECT 92 + CAST( - COUNT( * ) AS SIGNED ) - - - 60 AS col2 FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-3140
SELECT 92 + CAST ( - COUNT ( * ) AS INTEGER ) - - - 60 AS col2 FROM tab0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT 0 * + COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3141
SELECT 0 * + COUNT ( * ) AS col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 87 ) col2 FROM tab2
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT 45 * - + COUNT( * ) AS col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3143
SELECT 45 * - + COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NULL IN ( col2 * + col2 + - 55 - + - 29 * - + col0 + + - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 37 > NULL
----

query II rowsort
SELECT DISTINCT + + col2, col2 FROM tab1 cor0
----
59
59
68
68
96
96

query III rowsort
SELECT - col1 AS col0, col2, - col2 FROM tab1
----
9 values hashing to 1f0022453ce99084d8150cbf2a074164

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT ALL COUNT( + 58 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL COUNT ( + 58 ) AS col1 FROM tab0 cor0
----
3

query I rowsort
SELECT + col2 * - col1 - col1 AS col1 FROM tab2 AS cor0
----
-1224
-3157
-3953

query I rowsort
SELECT DISTINCT - - ( - 77 ) FROM tab0 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT ALL MAX( ALL - col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL MAX ( ALL - col0 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL + 2 * + - 82 FROM tab2 cor0
----
-164
-164
-164

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 23 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT ( MIN( + 27 ) ) AS col0 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-3154
SELECT ( MIN ( + 27 ) ) AS col0 FROM tab1
----
27

query II rowsort
SELECT 60 AS col1, + 2 FROM tab2, tab0 AS cor0
----
18 values hashing to 7199454c83ff0b30cc83d335e976620f

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT COUNT( * ) + - + COUNT( * ) + + 45 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-3156
SELECT COUNT ( * ) + - + COUNT ( * ) + + 45 FROM tab2
----
45

query I rowsort
SELECT + 57 + col1 + + ( col0 ) + + 11 * col0 FROM tab2
----
1024
660
902

query I rowsort
SELECT DISTINCT - col2 + + - 37 FROM tab2
----
-60
-77
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3159
SELECT + ( + col2 ) + - CAST( - - col0 AS SIGNED ) + 69 / - col2 / + 34 FROM tab0 WHERE NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-3159
SELECT + ( + col2 ) + - CAST ( - - col0 AS INTEGER ) + 69 / - col2 / + 34 FROM tab0 WHERE NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 + + + col0 BETWEEN + - 60 + + col1 * col0 - - + col1 + + col1 + - col2 / + 5 - col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3161
SELECT col0 AS col0, - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-3161
SELECT col0 AS col0, - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3162
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * + + 69 / + + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 + + + 12 + col1, col2 + col1 col1 FROM tab0 AS cor0
----
-86
100
23
31
46
128

query I rowsort
SELECT ALL - 98 - - - ( + 71 ) FROM tab2 AS cor0
----
-169
-169
-169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3166
SELECT - + col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT - + col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( + col1 ) - - ( col1 ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT + + MIN( + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3168
SELECT + + MIN ( + col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT DISTINCT ( - 52 ) * COUNT( * ) AS col1 FROM tab2
----
-156

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT ( - 52 ) * COUNT ( * ) AS col1 FROM tab2
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-3170
SELECT ALL - col1 DIV - - ( + 45 ) AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL - col1 / - - ( + 45 ) AS col0 FROM tab1
----
-1
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 ) * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 68 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT - ( + MAX( 7 ) ) FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-3173
SELECT - ( + MAX ( 7 ) ) FROM tab0 AS cor0
----
-7

query I rowsort
SELECT ALL + 80 * - col1 - - 74 FROM tab2 AS cor0
----
-4006
-5286
-6086

query I rowsort
SELECT ALL - 10 FROM tab0 AS cor0 WHERE NOT 67 * + col1 BETWEEN NULL AND - - col2 + col0 * - + 23
----
-10
-10
-10

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 + + 22 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3177
SELECT + col1 * - CAST( col0 AS SIGNED ) FROM tab0 cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-3177
SELECT + col1 * - CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-3178
SELECT ALL MIN( DISTINCT + + col1 ) AS col2, - SUM( - col1 ) AS col2 FROM tab2
----
51
195

skipif mysql # not compatible
query II rowsort label-3178
SELECT ALL MIN ( DISTINCT + + col1 ) AS col2, - SUM ( - col1 ) AS col2 FROM tab2
----
51
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT DISTINCT - MAX( ALL - 54 ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-3179
SELECT DISTINCT - MAX ( ALL - 54 ) FROM tab2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT DISTINCT + - COUNT( * ) * + 99 + - - 56 AS col0 FROM tab0 WHERE NULL IS NULL
----
-241

skipif mysql # not compatible
query I rowsort label-3180
SELECT DISTINCT + - COUNT ( * ) * + 99 + - - 56 AS col0 FROM tab0 WHERE NULL IS NULL
----
-241

query I rowsort
SELECT DISTINCT - 12 + - + 94 AS col2 FROM tab0
----
-106

query I rowsort
SELECT + ( + ( + col1 ) ) FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT ALL + - 85 * + COUNT( ALL - col2 ) + - COUNT( * ) FROM tab1 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL + - 85 * + COUNT ( ALL - col2 ) + - COUNT ( * ) FROM tab1 AS cor0
----
-258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3184
SELECT - 38 + - + CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3184
SELECT - 38 + - + CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) + + MIN( ALL - col0 ) * - - 71 FROM tab0 cor0
----
-6887

skipif mysql # not compatible
query I rowsort label-3185
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) + + MIN ( ALL - col0 ) * - - 71 FROM tab0 cor0
----
-6887

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT DISTINCT - COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3186
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col1 * col2 - - col0 AS col1 FROM tab2 AS cor0
----
1219
3144
3961

onlyif mysql # aggregate syntax: 
query II rowsort label-3188
SELECT ALL - MIN( ALL col1 ) col2, 53 FROM tab1
----
-5
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3188
SELECT ALL - MIN ( ALL col1 ) col2, 53 FROM tab1
----
-5
53

query I rowsort
SELECT ALL - col0 - - 47 + + col1 * col2 FROM tab0
----
170
3839
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT DISTINCT MAX( ALL + - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT MAX ( ALL + - col0 ) FROM tab2
----
-46

query I rowsort
SELECT + ( + 61 ) AS col1 FROM tab1 AS cor0
----
61
61
61

query II rowsort
SELECT col1 - + - col1, - 48 AS col0 FROM tab0 AS cor0
----
162
-48
2
-48
42
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3193
SELECT - CAST( SUM( CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3193
SELECT - CAST ( SUM ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab2 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 72 + + col2 <> ( NULL )
----

query I rowsort
SELECT ALL + col1 - - - ( + 36 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-15
-35
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3196
SELECT - col2 * + ( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3196
SELECT - col2 * + ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 82 FROM tab2 WHERE NOT + 20 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT DISTINCT MIN( + 56 ) FROM tab1 WHERE NOT col0 * + - col0 IS NULL
----
56

skipif mysql # not compatible
query I rowsort label-3198
SELECT DISTINCT MIN ( + 56 ) FROM tab1 WHERE NOT col0 * + - col0 IS NULL
----
56

query II rowsort
SELECT + col1 AS col1, - 20 AS col1 FROM tab2
----
51
-20
67
-20
77
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3200
SELECT ALL col0 / 21 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL col0 / 21 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3201
SELECT DISTINCT col0 DIV 52 AS col1, + col0 FROM tab1
----
0
51
1
85
1
91

skipif mysql # not compatible
query II rowsort label-3201
SELECT DISTINCT col0 / 52 AS col1, + col0 FROM tab1
----
0
51
1
85
1
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT DISTINCT + MIN( DISTINCT - + col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3202
SELECT DISTINCT + MIN ( DISTINCT - + col2 ) AS col0 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT + + col2 * - 24 * 41 * + - 78 FROM tab0 AS cor0
----
3607344
7598448
767520

query I rowsort
SELECT ALL - - ( + col2 ) + 16 FROM tab0 cor0
----
115
26
63

query I rowsort
SELECT - + 77 * + col1 FROM tab1 AS cor0
----
-1078
-3619
-385

query I rowsort
SELECT ALL ( col1 ) * - - ( - - col2 ) FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3207
SELECT DISTINCT - col0 DIV CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-3207
SELECT DISTINCT - col0 / CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
1
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT - COUNT( * ) + - - 50 AS col2 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-3208
SELECT - COUNT ( * ) + - - 50 AS col2 FROM tab0
----
47

query I rowsort
SELECT + col1 + + + 54 * + 30 * - col0 + - - col1 FROM tab0
----
-140898
-157138
-24138

query I rowsort
SELECT - col0 FROM tab0 WHERE + 42 / - 76 IS NOT NULL
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND 11 * + - 21
----

query I rowsort
SELECT ALL + col0 * + + col1 AS col1 FROM tab0
----
1215
1827
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > col0 + 39
----

query I rowsort
SELECT + 32 + + 9 AS col2 FROM tab1
----
41
41
41

onlyif mysql # aggregate syntax: 
query II rowsort label-3215
SELECT ALL - COUNT( * ), COUNT( * ) AS col1 FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-3215
SELECT ALL - COUNT ( * ), COUNT ( * ) AS col1 FROM tab1
----
-3
3

query II rowsort
SELECT - ( - - col0 ) * + - col2 * col1 + 37 * col0 + - ( + col0 ) AS col2, col0 FROM tab2
----
199424
64
294150
75
55614
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3217
SELECT ALL col1 DIV + - col0 - - 27 FROM tab0 AS cor0
----
22
27
27

skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL col1 / + - col0 - - 27 FROM tab0 AS cor0
----
22
27
27

query I rowsort
SELECT ALL - col1 + + 71 - col2 * - 81 + col0 AS col2 FROM tab1 AS cor0
----
4930
5623
7884

query I rowsort
SELECT - - 39 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT 52 - - COUNT( * ) AS col1 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-3220
SELECT 52 - - COUNT ( * ) AS col1 FROM tab1
----
55

query I rowsort
SELECT ALL + 77 * col0 - + - col2 + col0 + col2 FROM tab1
----
4170
6748
7234

query II rowsort
SELECT ALL + col1, - col1 * - col2 FROM tab0 AS cor0
----
1
99
21
210
81
3807

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT - ( + + MIN( - col1 ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3223
SELECT - ( + + MIN ( - col1 ) ) FROM tab1 AS cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, + col0 * col0 col1 FROM tab0 AS cor0
----
15
225
87
7569
97
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT ALL + SUM( DISTINCT - - 2 ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL + SUM ( DISTINCT - - 2 ) FROM tab1 AS cor0
----
2

query II rowsort
SELECT + col0 AS col0, 0 + - - 34 FROM tab1 cor0
----
51
34
85
34
91
34

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( - 81 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 59 * + + col0 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = col2 + - 25
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 25 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT ALL + COUNT( DISTINCT + col0 ) * - COUNT( * ) + + 69 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
60

skipif mysql # not compatible
query I rowsort label-3231
SELECT ALL + COUNT ( DISTINCT + col0 ) * - COUNT ( * ) + + 69 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
60

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 BETWEEN - - ( + col1 ) AND + col1 * ( + col1 ) * col2 * - col2 * + - 96
----
46
51
23
64
77
40

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 AND col2 / + ( - col1 )
----

query II rowsort
SELECT - col0 AS col0, col0 AS col0 FROM tab0
----
-15
15
-87
87
-97
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col1 * + + ( col0 ) + - + 0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 63 * - col2 FROM tab2
----
-1449
-2520
-3654

query I rowsort
SELECT + col1 + col0 - - col1 + col1 * - col1 AS col2 FROM tab0 AS cor0
----
-312
-6384
98

query I rowsort
SELECT ALL col0 * - 22 + + col2 + 90 * - 59 AS col2 FROM tab2 AS cor0
----
-6299
-6678
-6902

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT DISTINCT MIN( DISTINCT + 63 ) + + COUNT( ALL 20 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
66

skipif mysql # not compatible
query I rowsort label-3239
SELECT DISTINCT MIN ( DISTINCT + 63 ) + + COUNT ( ALL 20 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3240
SELECT - + 49 * + CAST( col2 AS SIGNED ) + 37 AS col0 FROM tab2 AS cor0
----
-1090
-1923
-2805

skipif mysql # not compatible
query I rowsort label-3240
SELECT - + 49 * + CAST ( col2 AS INTEGER ) + 37 AS col0 FROM tab2 AS cor0
----
-1090
-1923
-2805

query I rowsort
SELECT DISTINCT - - col0 * + + col0 AS col2 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3242
SELECT + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE col0 <> NULL
----

skipif mysql # not compatible
query I rowsort label-3242
SELECT + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3243
SELECT ALL - - col0 DIV - col1 + + col0 FROM tab0 AS cor0
----
0
15
83

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL - - col0 / - col1 + + col0 FROM tab0 AS cor0
----
0
15
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT + - 80 * - COUNT( * ) FROM tab2 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-3244
SELECT + - 80 * - COUNT ( * ) FROM tab2 AS cor0
----
240

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3245
SELECT * FROM tab1 AS cor0 WHERE col1 / - ( - CAST( NULL AS SIGNED ) ) - - col1 + 4 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3245
SELECT * FROM tab1 AS cor0 WHERE col1 / - ( - CAST ( NULL AS INTEGER ) ) - - col1 + 4 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3246
SELECT - - col0 * + 44 + col1 AS col0, + CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab0 AS cor0
----
3849
NULL
4269
NULL
741
NULL

skipif mysql # not compatible
query II rowsort label-3246
SELECT - - col0 * + 44 + col1 AS col0, + CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab0 AS cor0
----
3849
NULL
4269
NULL
741
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col0 AS col0, + ( col2 ) AS col1 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT 27 - - col1 FROM tab1
----
32
41
74

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = + col2
----

query I rowsort
SELECT DISTINCT col1 * + col2 + + col2 AS col0 FROM tab2
----
1196
3120
3944

query I rowsort
SELECT + col0 + - 81 AS col2 FROM tab1
----
-30
10
4

query I rowsort
SELECT DISTINCT 95 + col2 - 35 FROM tab1
----
119
128
156

query I rowsort
SELECT col2 + - - col0 AS col2 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT + col1 + + + col0 FROM tab1 AS cor0
----
138
65
90

query II rowsort
SELECT DISTINCT - col0 + col1, col1 AS col0 FROM tab0 AS cor0
----
-66
21
-96
1
66
81

query II rowsort
SELECT ALL - + col2 - col1, 75 AS col0 FROM tab2 AS cor0
----
-117
75
-125
75
-74
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 + ( 34 ) col2 FROM tab2 AS cor0
----
65
65
65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3259
SELECT * FROM tab0 WHERE NOT - 0 >= 78 * - 39 + + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3259
SELECT * FROM tab0 WHERE NOT - 0 >= 78 * - 39 + + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + ( - col0 ) * + - col0 AS col1 FROM tab0
----
225
7569
9409

query I rowsort
SELECT - + 56 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

onlyif mysql # DIV for integer division: 
query II rowsort label-3262
SELECT - 15 DIV - col2 * - col0, + col0 DIV + + col2 AS col1 FROM tab2
----
0
1
0
1
0
2

skipif mysql # not compatible
query II rowsort label-3262
SELECT - 15 / - col2 * - col0, + col0 / + + col2 AS col1 FROM tab2
----
0
1
0
1
0
2

query I rowsort
SELECT + 61 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 + - 63 > 37
----
61
61
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3264
SELECT DISTINCT CAST( 23 AS SIGNED ) FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3264
SELECT DISTINCT CAST ( 23 AS INTEGER ) FROM tab1 AS cor0
----
23

query I rowsort
SELECT ALL - - 15 AS col1 FROM tab1 AS cor0
----
15
15
15

query II rowsort
SELECT 84 AS col0, + col2 AS col0 FROM tab0 AS cor0
----
84
10
84
47
84
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) col1 FROM tab2 cor0
----
23
40
58

query II rowsort
SELECT ALL - col0, ( + - col2 ) + col0 AS col1 FROM tab1
----
-51
-45
-85
26
-91
23

query I rowsort
SELECT col0 * + - col1 * + 30 FROM tab0
----
-2910
-36450
-54810

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > - - col2 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, col1 + - col0 AS col2 FROM tab2
----
51
5
67
-8
77
13

query II rowsort
SELECT ALL col2 AS col2, col0 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT - MAX( - 37 ) FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-3273
SELECT - MAX ( - 37 ) FROM tab2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3274
SELECT DISTINCT - AVG ( - col2 ) * + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3274
SELECT DISTINCT - AVG ( - col2 ) * + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT ALL - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL >= + col0 * + col1 + - col1
----
0

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL >= + col0 * + col1 + - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3277
SELECT col1 * + + 41 FROM tab2 WHERE col1 + + - col1 - - ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3277
SELECT col1 * + + 41 FROM tab2 WHERE col1 + + - col1 - - ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - - 83 col1 FROM tab2
----
-3818
-5312
-6225

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN + 87 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT COUNT( DISTINCT - + col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3280
SELECT COUNT ( DISTINCT - + col1 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT ALL - col2 + col1 + + col1 FROM tab2
----
114
76
79

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN + col1 + + + col0 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 + - - col2 * - col2 AS col2 FROM tab0 AS cor0
----
-121
-2290
-9802

query I rowsort
SELECT ALL + + 98 + + - col2 + + + col2 FROM tab2 cor0
----
98
98
98

query II rowsort
SELECT + col1 AS col2, col1 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
51
51
67
67
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 col0 FROM tab0 WHERE - - col2 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT ALL COUNT( * ) * - MAX( + + col2 ) FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL COUNT ( * ) * - MAX ( + + col2 ) FROM tab2
----
-174

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 11 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 + - 56 BETWEEN NULL AND col1 * 53
----

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE - 47 BETWEEN - + 15 + + + 17 AND NULL
----

query I rowsort
SELECT + + 36 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
36
36
36

query I rowsort
SELECT DISTINCT - 71 + - + ( - - col2 ) + - ( - + 3 ) * 1 / + col2 * col2 AS col1 FROM tab2 AS cor0 WHERE + 19 * - col0 - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT DISTINCT COUNT( * ) - + - 37 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT COUNT ( * ) - + - 37 FROM tab0 AS cor0
----
40

query I rowsort
SELECT ALL - col0 * + col1 * + col1 * - - 20 AS col2 FROM tab0
----
-1940
-1968300
-767340

onlyif mysql # DIV for integer division: 
query I rowsort label-3295
SELECT DISTINCT + 36 DIV + col1 AS col0 FROM tab0
----
0
1
36

skipif mysql # not compatible
query I rowsort label-3295
SELECT DISTINCT + 36 / + col1 AS col0 FROM tab0
----
0
1
36

onlyif mysql # DIV for integer division: 
query I rowsort label-3296
SELECT col1 DIV - + ( 50 ) FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3296
SELECT col1 / - + ( 50 ) FROM tab0
----
-1
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3297
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) / + col1 * - 91 > + col0
----
0

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) / + col1 * - 91 > + col0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( - 39, + 96 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3299
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 >= CAST( ( col1 ) AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3299
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 >= CAST ( ( col1 ) AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col1 * + col1 - + col0 FROM tab1 AS cor0 WHERE NOT 62 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 0 col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT - - SUM( DISTINCT + - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3302
SELECT - - SUM ( DISTINCT + - col0 ) FROM tab1 AS cor0
----
-227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3303
SELECT + + SUM( ALL + CAST( NULL AS SIGNED ) ) AS col2, 1 + - COUNT( * ) + - + COUNT( * ) FROM tab0 AS cor0
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-3303
SELECT + + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col2, 1 + - COUNT ( * ) + - + COUNT ( * ) FROM tab0 AS cor0
----
NULL
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * + + 27 + + + col1, col1 + - col2 col1 FROM tab2
----
1293
28
1805
37
2092
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT - ( MAX( ALL + col2 ) ) AS col0 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3305
SELECT - ( MAX ( ALL + col2 ) ) AS col0 FROM tab0 cor0
----
-99

query I rowsort
SELECT ALL + 24 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT - MIN( DISTINCT - - col2 ) col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3307
SELECT - MIN ( DISTINCT - - col2 ) col2 FROM tab0 AS cor0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + 67 col1 FROM tab1 AS cor0
----
-16
18
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col0 col1, + col2 AS col2, - 17 FROM tab2 AS cor0
----
9 values hashing to efb9b383e4d13aa0fe8db004f8df0884

query I rowsort
SELECT ( - + 52 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT DISTINCT COUNT( DISTINCT - 64 ) AS col0 FROM tab1 AS cor0 WHERE col0 - - - 38 + 53 + - - ( - col2 ) * + ( col2 ) * - 22 NOT BETWEEN ( col0 * - 21 ) AND + 14
----
1

skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT COUNT ( DISTINCT - 64 ) AS col0 FROM tab1 AS cor0 WHERE col0 - - - 38 + 53 + - - ( - col2 ) * + ( col2 ) * - 22 NOT BETWEEN ( col0 * - 21 ) AND + 14
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3312
SELECT DISTINCT + - col0 - + 17 DIV 58 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3312
SELECT DISTINCT + - col0 - + 17 / 58 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 NOT BETWEEN col2 AND ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT DISTINCT - 81 - + - COUNT( * ) AS col1 FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT - 81 - + - COUNT ( * ) AS col1 FROM tab1
----
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * - - col0 * + + 96 col1, col2 * + col2 AS col0 FROM tab0
----
-67680
2209
-83520
100
-921888
9801

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 11 + + 60 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > - + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3318
SELECT ALL - COUNT( * ) * + 25 AS col0, + 37 DIV + 75 AS col2 FROM tab1
----
-75
0

skipif mysql # not compatible
query II rowsort label-3318
SELECT ALL - COUNT ( * ) * + 25 AS col0, + 37 / + 75 AS col2 FROM tab1
----
-75
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3319
SELECT ALL - col1 + + col0 + col1 + - 39 + - 22 DIV + col1 + 46 * + - 4 AS col0 FROM tab0
----
-137
-148
-208

skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL - col1 + + col0 + col1 + - 39 + - 22 / + col1 + 46 * + - 4 AS col0 FROM tab0
----
-137
-148
-208

query II rowsort
SELECT DISTINCT - col2, 47 * + - col1 AS col0 FROM tab0
----
-10
-987
-47
-3807
-99
-47

query I rowsort
SELECT - + 87 * - 5 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d5cff7726eff78e42b13240a3000ab1c

onlyif mysql # aggregate syntax: 
query II rowsort label-3322
SELECT DISTINCT COUNT( * ) AS col2, 17 AS col0 FROM tab1
----
3
17

skipif mysql # not compatible
query II rowsort label-3322
SELECT DISTINCT COUNT ( * ) AS col2, 17 AS col0 FROM tab1
----
3
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 36 * - - col1 col0 FROM tab0 AS cor0
----
2916
36
756

query II rowsort
SELECT - 44 AS col0, col1 FROM tab0 cor0
----
-44
1
-44
21
-44
81

query II rowsort
SELECT DISTINCT + col2, + col0 FROM tab1 cor0
----
59
85
68
91
96
51

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * - col0 < + 27 / + - 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT ALL - COUNT( * ) * - - COUNT( * ) * + SUM( DISTINCT 25 ) AS col0 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-3327
SELECT ALL - COUNT ( * ) * - - COUNT ( * ) * + SUM ( DISTINCT 25 ) AS col0 FROM tab2
----
-225

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3328
SELECT DISTINCT * FROM tab2 WHERE + - CAST( NULL AS SIGNED ) * - 37 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3328
SELECT DISTINCT * FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) * - 37 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT DISTINCT + COUNT( + - 26 ) * COUNT( * ) + 47 AS col1 FROM tab1 WHERE + col1 * + col2 BETWEEN + + col0 AND - - col0 + - col2
----
47

skipif mysql # not compatible
query I rowsort label-3329
SELECT DISTINCT + COUNT ( + - 26 ) * COUNT ( * ) + 47 AS col1 FROM tab1 WHERE + col1 * + col2 BETWEEN + + col0 AND - - col0 + - col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT ALL COUNT( * ) * + + COUNT( * ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab2
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + 19 col2 FROM tab0
----
-2
-62
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT DISTINCT + ( + - 46 ) + SUM( ALL + col1 ) AS col2 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-3332
SELECT DISTINCT + ( + - 46 ) + SUM ( ALL + col1 ) AS col2 FROM tab0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-3333
SELECT - col1 DIV ( + col1 ) + + col1 * 62 * 61 FROM tab0
----
306341
3781
79421

skipif mysql # not compatible
query I rowsort label-3333
SELECT - col1 / ( + col1 ) + + col1 * 62 * 61 FROM tab0
----
306341
3781
79421

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3334
SELECT + - 77 + - COUNT( DISTINCT - - ( + col1 ) ) + 71 / - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3334
SELECT + - 77 + - COUNT ( DISTINCT - - ( + col1 ) ) + 71 / - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT ALL MIN( + - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3335
SELECT ALL MIN ( + - col1 ) FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT ALL 35 + - 27 * + - COUNT( + col2 ) AS col2 FROM tab1 AS cor0
----
116

skipif mysql # not compatible
query I rowsort label-3336
SELECT ALL 35 + - 27 * + - COUNT ( + col2 ) AS col2 FROM tab1 AS cor0
----
116

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( 64 < col1 ) )
----
15
81
47

query I rowsort
SELECT 12 * + col0 AS col0 FROM tab1
----
1020
1092
612

query I rowsort
SELECT ALL + 96 AS col2 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query III rowsort
SELECT * FROM tab2 WHERE + col2 + - + ( + 46 ) * 38 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 70 * - col2 + + + 15 - + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3342
SELECT + col1 DIV - 61 + + 5 + - ( - col1 ) + + 41 AS col2 FROM tab2 AS cor0
----
112
122
97

skipif mysql # not compatible
query I rowsort label-3342
SELECT + col1 / - 61 + + 5 + - ( - col1 ) + + 41 AS col2 FROM tab2 AS cor0
----
112
122
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT ALL COUNT( * ) + - MIN( DISTINCT - col1 ) FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL COUNT ( * ) + - MIN ( DISTINCT - col1 ) FROM tab2 AS cor0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3344
SELECT ( - 8 ) + + CAST( 32 AS SIGNED ) * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3344
SELECT ( - 8 ) + + CAST ( 32 AS INTEGER ) * CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 BETWEEN - - col2 AND col1
----
46
51
23
64
77
40

query I rowsort
SELECT + + col1 + - - col0 AS col2 FROM tab2 AS cor0
----
141
142
97

query II rowsort
SELECT col2, + col0 * - - col1 + col2 AS col2 FROM tab2
----
23
2369
40
4968
58
5083

query I rowsort
SELECT ALL - 15 - + + col2 + - col1 FROM tab2
----
-132
-140
-89

query III rowsort
SELECT * FROM tab1 WHERE - - 44 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT COUNT( * ) * + MIN( + col2 ) AS col0 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-3350
SELECT COUNT ( * ) * + MIN ( + col2 ) AS col0 FROM tab1
----
177

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 + col0 NOT IN ( + - col2 * col2, col2 )
----

query II rowsort
SELECT ALL - col2 AS col2, + 99 AS col1 FROM tab0
----
-10
99
-47
99
-99
99

query I rowsort
SELECT + ( - 97 ) FROM tab0
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT DISTINCT - ( - + MAX( ALL - col1 ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT - ( - + MAX ( ALL - col1 ) ) FROM tab1
----
-5

query I rowsort
SELECT ALL 64 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 / col0 BETWEEN + + 99 AND + col1 + - col1 * + + col2
----
51
67
77

query II rowsort
SELECT - 1, + col1 FROM tab2 cor0
----
-1
51
-1
67
-1
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3358
SELECT - 95 + CAST( NULL AS SIGNED ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3358
SELECT - 95 + CAST ( NULL AS INTEGER ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + 4 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3360
SELECT DISTINCT + MAX( CAST( - CAST( + col0 AS SIGNED ) AS SIGNED ) ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT + MAX ( CAST ( - CAST ( + col0 AS INTEGER ) AS INTEGER ) ) AS col0 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT COUNT( * ) col1 FROM tab0 WHERE NOT + 12 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3361
SELECT COUNT ( * ) col1 FROM tab0 WHERE NOT + 12 IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 * 1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - - 2 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3364
SELECT + col2 * ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT - ( col2 ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-3364
SELECT + col2 * ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT - ( col2 ) >= NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NOT - col2 * + col0 IS NULL )
----

query I rowsort
SELECT - - col0 * + 83 - - + col1 * + - col0 - col0 FROM tab2 AS cor0
----
1125
1426
320

query I rowsort
SELECT ALL 33 * - col0 FROM tab0 AS cor0
----
-2871
-3201
-495

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 81 + + + col2 IS NOT NULL
----

query I rowsort
SELECT - col0 * - - col1 AS col1 FROM tab0
----
-1215
-1827
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 39 col0, + 51 FROM tab0 WHERE - 13 IS NOT NULL
----
39
51
39
51
39
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3372
SELECT DISTINCT + 10 * + + 86 + - CAST( NULL AS SIGNED ) * + - 21 / 54 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT + 10 * + + 86 + - CAST ( NULL AS INTEGER ) * + - 21 / 54 AS col2 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 73 - col1 >= NULL
----

query I rowsort
SELECT ALL - col2 + - + col0 AS col1 FROM tab1
----
-144
-147
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3375
SELECT DISTINCT - + COUNT( * ) + - COUNT( * ) * CAST( + CAST( - 61 AS DECIMAL ) AS SIGNED ) AS col1 FROM tab0 cor0
----
180

skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT - + COUNT ( * ) + - COUNT ( * ) * CAST ( + CAST ( - 61 AS REAL ) AS INTEGER ) AS col1 FROM tab0 cor0
----
180

query I rowsort
SELECT col1 + col0 + - + 10 * + col0 * - 56 FROM tab1 cor0
----
28625
47690
51098

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3377
SELECT 81 + + + CAST( 72 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3377
SELECT 81 + + + CAST ( 72 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 53 * - col2 + - col2 * - - ( - col0 ) + + col2 FROM tab2
----
2300
4720
7482

query I rowsort
SELECT - ( ( + col0 ) ) AS col0 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + 8 + col2 FROM tab2
----
31
48
66

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 8 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + + 59 + - col0 FROM tab1 AS cor0
----
-26
-32
8

query I rowsort
SELECT DISTINCT 44 + + - col1 FROM tab0 AS cor0
----
-37
23
43

query I rowsort
SELECT ALL + - 19 * - + 63 - + col1 FROM tab2 AS cor0
----
1120
1130
1146

onlyif mysql # DIV for integer division: 
query I rowsort label-3385
SELECT DISTINCT - - 34 DIV 11 * - + ( - + col2 ) AS col0 FROM tab1 cor0
----
177
204
288

skipif mysql # not compatible
query I rowsort label-3385
SELECT DISTINCT - - 34 / 11 * - + ( - + col2 ) AS col0 FROM tab1 cor0
----
177
204
288

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3386
SELECT ALL 62 DIV COUNT( * ) FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL 62 / COUNT ( * ) FROM tab0
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 84 AS col1, col0 * 12 col0 FROM tab0
----
84
1044
84
1164
84
180

query I rowsort
SELECT col2 FROM tab0 WHERE NOT ( + col2 ) = + ( + + 3 )
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 25 + 86, col0 col0 FROM tab2 WHERE NOT + ( + + col0 ) + - col0 * + col0 * col1 BETWEEN 33 + col2 AND NULL
----
111
46
111
64
111
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, col0 * + + col1 * - col0 + + 72 AS col2 FROM tab1
----
14
-36342
47
-389135
5
-36053

onlyif mysql # aggregate syntax: 
query II rowsort label-3391
SELECT - COUNT( * ), + COUNT( * ) * - COUNT( * ) col1 FROM tab1
----
-3
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3391
SELECT - COUNT ( * ), + COUNT ( * ) * - COUNT ( * ) col1 FROM tab1
----
-3
-9

query I rowsort
SELECT ALL - 42 + - - 36 AS col0 FROM tab0 cor0
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT DISTINCT - COUNT( * ) * 37 AS col2 FROM tab2 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-3393
SELECT DISTINCT - COUNT ( * ) * 37 AS col2 FROM tab2 AS cor0
----
-111

query I rowsort
SELECT DISTINCT + ( + - col2 ) + + 78 + + col0 + col1 FROM tab2 cor0
----
152
162
179

query II rowsort
SELECT ALL col0 AS col2, 76 * - + col2 * - col1 * 68 * col1 FROM tab1 AS cor0
----
51
97241088
85
7622800
91
776295616

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3396
SELECT + 97 DIV - CAST( col1 AS SIGNED ) + - 71 + - - col1 AS col0 FROM tab1 AS cor0
----
-26
-63
-85

skipif mysql # not compatible
query I rowsort label-3396
SELECT + 97 / - CAST ( col1 AS INTEGER ) + - 71 + - - col1 AS col0 FROM tab1 AS cor0
----
-26
-63
-85

query II rowsort
SELECT ALL - col2, + col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT ALL - COUNT( * ) AS col2 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3398
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
0

query I rowsort
SELECT - 2 + col0 * - 16 + + col2 * + + col1 AS col2 FROM tab0
----
-1184
-1455
3565

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3400
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + col2, 3, - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-3400
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + col2, 3, - CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT * FROM tab0 WHERE + + 15 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3402
SELECT ALL * FROM tab0 WHERE NOT + col0 * - col1 + ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3402
SELECT ALL * FROM tab0 WHERE NOT + col0 * - col1 + ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3403
SELECT - 79 DIV + col1 + col0 AS col2 FROM tab1
----
46
70
90

skipif mysql # not compatible
query I rowsort label-3403
SELECT - 79 / + col1 + col0 AS col2 FROM tab1
----
46
70
90

query I rowsort
SELECT 56 + + - col0 AS col2 FROM tab1
----
-29
-35
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3405
SELECT ALL + 6 DIV - col1 + col0 col2 FROM tab0
----
15
87
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3405
SELECT ALL + 6 / - col1 + col0 col2 FROM tab0
----
15
87
91

query I rowsort
SELECT ALL + 18 + - + col2 AS col1 FROM tab1 AS cor0
----
-41
-50
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3407
SELECT - ( - + 17 ) FROM tab0 AS cor0 WHERE NULL BETWEEN 69 AND - CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3407
SELECT - ( - + 17 ) FROM tab0 AS cor0 WHERE NULL BETWEEN 69 AND - CAST ( col1 AS INTEGER )
----

query I rowsort
SELECT + - col1 * + + col1 AS col2 FROM tab0 cor0
----
-1
-441
-6561

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IS NOT NULL AND ( NOT NULL IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( + col1 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3411
SELECT DISTINCT + COUNT( * ) AS col0, 45 + - + 7 FROM tab1 AS cor0
----
3
38

skipif mysql # not compatible
query II rowsort label-3411
SELECT DISTINCT + COUNT ( * ) AS col0, 45 + - + 7 FROM tab1 AS cor0
----
3
38

query I rowsort
SELECT - - col1 FROM tab1 AS cor0 WHERE NOT + ( - col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 AND + + ( + + 59 ) + - 85
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 93, - ( + 33 ) * col1 col0 FROM tab1 AS cor0
----
-93
-1551
-93
-165
-93
-462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3415
SELECT + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3415
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 93 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3417
SELECT - CAST( + - col2 AS SIGNED ) AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3417
SELECT - CAST ( + - col2 AS INTEGER ) AS col0 FROM tab2
----
23
40
58

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 >= - 50
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3419
SELECT col0 DIV + col0, + 22 * col0 AS col0 FROM tab0 AS cor0
----
1
1914
1
2134
1
330

skipif mysql # not compatible
query II rowsort label-3419
SELECT col0 / + col0, + 22 * col0 AS col0 FROM tab0 AS cor0
----
1
1914
1
2134
1
330

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT + ( - 27 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3421
SELECT - COUNT( * ) DIV - - 52 AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3421
SELECT - COUNT ( * ) / - - 52 AS col0 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL + ( - - col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT - SUM( col1 ) AS col0 FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-3423
SELECT - SUM ( col1 ) AS col0 FROM tab0 cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT ALL - 28 * MIN( + 84 ) AS col0 FROM tab1, tab0 AS cor0
----
-2352

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL - 28 * MIN ( + 84 ) AS col0 FROM tab1, tab0 AS cor0
----
-2352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3425
SELECT + - 78 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 61 - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3425
SELECT + - 78 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 61 - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT + SUM( DISTINCT - + col0 ) * - - 75 * 29 + + + 92 FROM tab2
----
-402283

skipif mysql # not compatible
query I rowsort label-3426
SELECT + SUM ( DISTINCT - + col0 ) * - - 75 * 29 + + + 92 FROM tab2
----
-402283

query I rowsort
SELECT DISTINCT + col0 + + - col1 * + 91 + - 63 + + + col2 - - 57 AS col2 FROM tab2 AS cor0
----
-4578
-5970
-6909

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT COUNT( * ) * + COUNT( * ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3429
SELECT COUNT ( * ) * + COUNT ( * ) FROM tab1 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT - + MIN( + + col2 ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3430
SELECT - + MIN ( + + col2 ) AS col2 FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3431
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 WHERE col0 BETWEEN col0 - 97 AND - 77
----

skipif mysql # not compatible
query I rowsort label-3431
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 WHERE col0 BETWEEN col0 - 97 AND - 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3432
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT - MIN( DISTINCT 93 ) FROM tab2 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-3433
SELECT - MIN ( DISTINCT 93 ) FROM tab2 cor0
----
-93

query II rowsort
SELECT - + 83 AS col1, - col0 AS col2 FROM tab1 AS cor0
----
-83
-51
-83
-85
-83
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT - COUNT( * ) * + - 63 * + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
567

skipif mysql # not compatible
query I rowsort label-3435
SELECT - COUNT ( * ) * + - 63 * + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
567

query I rowsort
SELECT col2 * - 10 FROM tab2
----
-230
-400
-580

query I rowsort
SELECT col1 + - col2 + + 46 * + 70 AS col0 FROM tab0
----
3122
3231
3254

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT ALL 59 - + COUNT( * ) col0 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3438
SELECT ALL 59 - + COUNT ( * ) col0 FROM tab1 AS cor0
----
56

query I rowsort
SELECT ALL 54 - + 48 + col0 FROM tab0 AS cor0
----
103
21
93

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3440
SELECT * FROM tab0 WHERE NOT - col0 + + 64 NOT IN ( - col1, CAST( - col1 AS DECIMAL ) + 95 )
----

skipif mysql # not compatible
query III rowsort label-3440
SELECT * FROM tab0 WHERE NOT - col0 + + 64 NOT IN ( - col1, CAST ( - col1 AS REAL ) + 95 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3441
SELECT - ( + 12 ) / + + 55 - + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3441
SELECT - ( + 12 ) / + + 55 - + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 col0 FROM tab1 AS cor0
----
73

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 71 < NULL
----

query II rowsort
SELECT 43, - col2 * col1 AS col2 FROM tab0
----
43
-210
43
-3807
43
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3445
SELECT DISTINCT - 2 DIV - col1 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-3445
SELECT DISTINCT - 2 / - col1 FROM tab0
----
0
2

query II rowsort
SELECT DISTINCT col2, + col1 AS col2 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3447
SELECT DISTINCT 2 DIV + col0 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT 2 / + col0 AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3448
SELECT COUNT( - CAST( NULL AS SIGNED ) ) * + - 9 + + + 85 * - 97 AS col2 FROM tab2 AS cor0
----
-8245

skipif mysql # not compatible
query I rowsort label-3448
SELECT COUNT ( - CAST ( NULL AS INTEGER ) ) * + - 9 + + + 85 * - 97 AS col2 FROM tab2 AS cor0
----
-8245

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3449
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 col2 FROM tab0 cor0
----
28

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 10 ) NOT IN ( col1 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3452
SELECT ALL + CAST( NULL AS DECIMAL ) - COUNT( * ) AS col2 FROM tab0 WHERE - col2 IN ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL + CAST ( NULL AS REAL ) - COUNT ( * ) AS col2 FROM tab0 WHERE - col2 IN ( - col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT 39 + COUNT( * ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-3453
SELECT 39 + COUNT ( * ) FROM tab1
----
42

query I rowsort
SELECT 76 + col1 AS col2 FROM tab2
----
127
143
153

query I rowsort
SELECT col1 + col1 * - 23 AS col1 FROM tab1
----
-1034
-110
-308

query I rowsort
SELECT DISTINCT + col0 * + 47 FROM tab1
----
2397
3995
4277

query I rowsort
SELECT 33 + 37 FROM tab1 WHERE NOT col1 IN ( - 6 )
----
70
70
70

query III rowsort
SELECT * FROM tab2 WHERE - col1 <= ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE ( col2 * - 77 - col1 ) NOT BETWEEN + 35 AND - col0 * ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * - 32 FROM tab2
----
-1280
-1856
-736

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3461
SELECT ALL * FROM tab2 WHERE CAST( NULL AS DECIMAL ) IN ( + col2 + col2 / - col2 )
----

skipif mysql # not compatible
query III rowsort label-3461
SELECT ALL * FROM tab2 WHERE CAST ( NULL AS REAL ) IN ( + col2 + col2 / - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT ALL MIN( ALL + col0 ) + 10 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL MIN ( ALL + col0 ) + 10 FROM tab2
----
56

query I rowsort
SELECT ALL - ( col0 ) AS col2 FROM tab0 WHERE NULL > + col2
----

query I rowsort
SELECT - 28 * col2 FROM tab1
----
-1652
-1904
-2688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3465
SELECT - CAST( NULL AS SIGNED ) * + 12 FROM tab2 WHERE ( 60 ) IN ( col0 * - CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3465
SELECT - CAST ( NULL AS INTEGER ) * + 12 FROM tab2 WHERE ( 60 ) IN ( col0 * - CAST ( col1 AS INTEGER ) )
----

query I rowsort
SELECT col2 * + 98 AS col1 FROM tab1
----
5782
6664
9408

query I rowsort
SELECT ALL 61 * 36 + - 31 FROM tab0
----
2165
2165
2165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT AVG ( DISTINCT - 57 ) col1 FROM tab2 WHERE NOT ( + 90 ) IS NOT NULL
----
NULL

query I rowsort
SELECT col2 * col1 - + col0 * + col1 FROM tab2
----
-1139
-1173
-1848

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN + col0 + - 92 AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col0 ) IN ( + col0 * col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3472
SELECT col1 DIV - col1 + - col2 AS col1 FROM tab2
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-3472
SELECT col1 / - col1 + - col2 AS col1 FROM tab2
----
-24
-41
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT - 52 * - SUM( col0 ) FROM tab0
----
10348

skipif mysql # not compatible
query I rowsort label-3473
SELECT - 52 * - SUM ( col0 ) FROM tab0
----
10348

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT ALL MAX( + 8 ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL MAX ( + 8 ) FROM tab0
----
8

query I rowsort
SELECT ALL col0 * - col1 + + 19 AS col2 FROM tab2
----
-2327
-4909
-5006

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( 41 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT DISTINCT 32 * ( + COUNT( * ) ) AS col1 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-3477
SELECT DISTINCT 32 * ( + COUNT ( * ) ) AS col1 FROM tab2
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab0 WHERE NOT - col1 / + col0 + col0 BETWEEN + col0 + + col0 AND + 83 + - 39
----
15
87
97

query I rowsort
SELECT ALL - 38 * 14 FROM tab1
----
-532
-532
-532

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 2 + 59 IS NULL
----

query I rowsort
SELECT ALL + 48 * col1 FROM tab1 AS cor0
----
2256
240
672

query I rowsort
SELECT DISTINCT col1 + 64 FROM tab0 AS cor0
----
145
65
85

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 AS col0 FROM tab2 cor0 WHERE ( NULL ) >= ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT ALL + 41 - + SUM( - col1 + col2 ) FROM tab1 AS cor0
----
-116

skipif mysql # not compatible
query I rowsort label-3485
SELECT ALL + 41 - + SUM ( - col1 + col2 ) FROM tab1 AS cor0
----
-116

query I rowsort
SELECT + col1 - + col0 * col1 FROM tab2 AS cor0
----
-2295
-4851
-4958

query I rowsort
SELECT ALL - col2 - 98 AS col1 FROM tab1 AS cor0
----
-157
-166
-194

query I rowsort
SELECT DISTINCT + 27 AS col1 FROM tab1 cor0 CROSS JOIN tab0
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3489
SELECT ALL col2 DIV 61 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL col2 / 61 AS col1 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3490
SELECT * FROM tab2 WHERE NOT + col2 * + 82 + - col1 / CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3490
SELECT * FROM tab2 WHERE NOT + col2 * + 82 + - col1 / CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT - 77 * + MIN( - 20 ) FROM tab1 cor0
----
1540

skipif mysql # not compatible
query I rowsort label-3491
SELECT - 77 * + MIN ( - 20 ) FROM tab1 cor0
----
1540

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT ( - col1 * col0 ) <= ( - col0 + 41 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 col0 FROM tab2 AS cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT + + 70 * - COUNT( * ) AS col1 FROM tab1 cor0
----
-210

skipif mysql # not compatible
query I rowsort label-3494
SELECT + + 70 * - COUNT ( * ) AS col1 FROM tab1 cor0
----
-210

query I rowsort
SELECT ALL - 10 * 26 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-260
-260
-260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3496
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE col2 + + CAST( - 91 + - 81 AS SIGNED ) NOT IN ( - 73 )
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE col2 + + CAST ( - 91 + - 81 AS INTEGER ) NOT IN ( - 73 )
----
23
40
58

query I rowsort
SELECT DISTINCT - ( col2 ) + - col1 * 34 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1757
-2336
-2658

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT ALL - COUNT( * ) * 76 AS col1 FROM tab1 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL - COUNT ( * ) * 76 AS col1 FROM tab1 AS cor0
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT + - SUM( DISTINCT col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3499
SELECT + - SUM ( DISTINCT col2 ) FROM tab0 AS cor0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-3500
SELECT - 75 DIV - 41 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3500
SELECT - 75 / - 41 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT 21 * - - 67 * 36 AS col2 FROM tab0
----
50652
50652
50652

onlyif mysql # DIV for integer division: 
query I rowsort label-3502
SELECT ALL - ( col0 ) DIV + col2 AS col2 FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL - ( col0 ) / + col2 AS col2 FROM tab0
----
-8
0
0

query I rowsort
SELECT DISTINCT - col1 * + - 72 * - 70 AS col2 FROM tab0
----
-105840
-408240
-5040

query I rowsort
SELECT ALL - 42 * - col0 AS col1 FROM tab2
----
1932
2688
3150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3505
SELECT ALL ( - col1 ) * - col0 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL ( - col1 ) * - col0 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3506
SELECT DISTINCT - COUNT( * ) DIV - - 26 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT - COUNT ( * ) / - - 26 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3507
SELECT DISTINCT col0 * col1 + CAST( NULL AS SIGNED ) * ( + 99 ) AS col1 FROM tab0 WHERE NOT ( - col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3507
SELECT DISTINCT col0 * col1 + CAST ( NULL AS INTEGER ) * ( + 99 ) AS col1 FROM tab0 WHERE NOT ( - col1 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT ALL MIN( ALL - - col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL MIN ( ALL - - col2 ) AS col1 FROM tab0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3509
SELECT + col1 DIV ( - 72 ) FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3509
SELECT + col1 / ( - 72 ) FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - 50 * + col2 FROM tab2 cor0
----
-1150
-2000
-2900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3511
SELECT ALL + 69 AS col0 FROM tab0 AS cor0 WHERE NOT col1 + CAST( NULL AS SIGNED ) * col2 > col1
----

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL + 69 AS col0 FROM tab0 AS cor0 WHERE NOT col1 + CAST ( NULL AS INTEGER ) * col2 > col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + col1 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT 87 * col1 * col1 FROM tab0 AS cor0
----
38367
570807
87

query I rowsort
SELECT ( + 82 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3515
SELECT DISTINCT + 19 DIV - COUNT( * ) AS col1 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-3515
SELECT DISTINCT + 19 / - COUNT ( * ) AS col1 FROM tab2
----
-6

query I rowsort
SELECT ALL - col2 + ( - - col0 ) * 92 AS col0 FROM tab0 AS cor0
----
1333
7994
8825

onlyif mysql # aggregate syntax: 
query II rowsort label-3517
SELECT DISTINCT COUNT( * ) AS col1, 52 + - - 22 + + 69 AS col0 FROM tab2 AS cor0
----
3
143

skipif mysql # not compatible
query II rowsort label-3517
SELECT DISTINCT COUNT ( * ) AS col1, 52 + - - 22 + + 69 AS col0 FROM tab2 AS cor0
----
3
143

query I rowsort
SELECT ALL + 47 + - col1 FROM tab2 AS cor0
----
-20
-30
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-3519
SELECT ALL + COUNT( * ), - 77 AS col1 FROM tab1 AS cor0
----
3
-77

skipif mysql # not compatible
query II rowsort label-3519
SELECT ALL + COUNT ( * ), - 77 AS col1 FROM tab1 AS cor0
----
3
-77

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE col1 <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3521
SELECT - 28 AS col1, - CAST( NULL AS SIGNED ) + - - col1 + col0 AS col2 FROM tab2 AS cor0
----
-28
NULL
-28
NULL
-28
NULL

skipif mysql # not compatible
query II rowsort label-3521
SELECT - 28 AS col1, - CAST ( NULL AS INTEGER ) + - - col1 + col0 AS col2 FROM tab2 AS cor0
----
-28
NULL
-28
NULL
-28
NULL

query I rowsort
SELECT - + ( 6 ) FROM tab2 AS cor0
----
-6
-6
-6

query I rowsort
SELECT + col0 * - 2 FROM tab2 AS cor0
----
-128
-150
-92

query I rowsort
SELECT 38 * 64 AS col2 FROM tab2
----
2432
2432
2432

onlyif mysql # DIV for integer division: 
query II rowsort label-3525
SELECT ALL - col1 DIV - - col2 AS col0, - 23 + + col2 AS col2 FROM tab2
----
-1
17
-1
35
-2
0

skipif mysql # not compatible
query II rowsort label-3525
SELECT ALL - col1 / - - col2 AS col0, - 23 + + col2 AS col2 FROM tab2
----
-1
17
-1
35
-2
0

query I rowsort
SELECT + col2 * - col0 * 33 + - col0 - + col0 * 90 FROM tab0
----
-24630
-325726
-36627

query I rowsort
SELECT ALL - ( + 64 ) FROM tab0
----
-64
-64
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3528
SELECT CAST( + col1 AS SIGNED ) * - col0 + + col0 + col1 AS col0 FROM tab2
----
-2249
-4787
-4883

skipif mysql # not compatible
query I rowsort label-3528
SELECT CAST ( + col1 AS INTEGER ) * - col0 + + col0 + col1 AS col0 FROM tab2
----
-2249
-4787
-4883

query I rowsort
SELECT ALL - col0 + col0 AS col0 FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN ( - + col2 + - ( col0 ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT ALL - 52 + + COUNT( DISTINCT + + col1 ) AS col2 FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL - 52 + + COUNT ( DISTINCT + + col1 ) AS col2 FROM tab1 AS cor0
----
-49

query I rowsort
SELECT DISTINCT + col2 - + + 6 FROM tab0 AS cor0
----
4
41
93

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 61 * - col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * + col2 AND + col0 + + col2 / + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3534
SELECT COUNT( * ) DIV + 82 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3534
SELECT COUNT ( * ) / + 82 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT 11 * COUNT( * ) AS col0 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-3535
SELECT 11 * COUNT ( * ) AS col0 FROM tab0
----
33

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 19 + + 88 ) < ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 BETWEEN + - 27 AND - + 66 + + + col1 * - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 0 col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3539
SELECT DISTINCT + col0 * + 90 FROM tab1 AS cor0 WHERE NOT ( - col2 ) BETWEEN col0 / + 1 + col2 * + CAST( NULL AS SIGNED ) AND ( 29 )
----

skipif mysql # not compatible
query I rowsort label-3539
SELECT DISTINCT + col0 * + 90 FROM tab1 AS cor0 WHERE NOT ( - col2 ) BETWEEN col0 / + 1 + col2 * + CAST ( NULL AS INTEGER ) AND ( 29 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT ALL + + 22 * + + MIN( ALL + + ( - + col0 ) ) FROM tab0 AS cor0
----
-2134

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL + + 22 * + + MIN ( ALL + + ( - + col0 ) ) FROM tab0 AS cor0
----
-2134

query I rowsort
SELECT DISTINCT + + col0 * + + 35 * 27 AS col0 FROM tab0 AS cor0
----
14175
82215
91665

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 83 / - col2 + 16 = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3543
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - + col1 <> - col2 - - col2
----

skipif mysql # not compatible
query III rowsort label-3543
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - + col1 <> - col2 - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT COUNT( ALL 23 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3544
SELECT COUNT ( ALL 23 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3545
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - 62 * CAST( NULL AS SIGNED ) * - 94 + - col1 + 55 AND col1 * 80 + col1
----

skipif mysql # not compatible
query III rowsort label-3545
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - 62 * CAST ( NULL AS INTEGER ) * - 94 + - col1 + 55 AND col1 * 80 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT - + COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3546
SELECT - + COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + - col0 * - + 71, + col0 )
----

query I rowsort
SELECT - 8 * + - col2 + + + col2 AS col0 FROM tab2
----
207
360
522

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3549
SELECT DISTINCT - 59 AS col2, CAST( + + 52 AS SIGNED ) + col1 FROM tab0
----
-59
133
-59
53
-59
73

skipif mysql # not compatible
query II rowsort label-3549
SELECT DISTINCT - 59 AS col2, CAST ( + + 52 AS INTEGER ) + col1 FROM tab0
----
-59
133
-59
53
-59
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3550
SELECT DISTINCT col0 + col2 * ( + 10 ) * CAST( NULL AS SIGNED ) * + - col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT col0 + col2 * ( + 10 ) * CAST ( NULL AS INTEGER ) * + - col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3551
SELECT - col2 * + col1 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3551
SELECT - col2 * + col1 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 - + col0 AS col0 FROM tab2 WHERE ( + col0 ) < 31 * - + col1 - - 48
----

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT - col2 > ( - col2 )
----
-23
-40
-58

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> ( - 71 * - + 80 )
----

query I rowsort
SELECT DISTINCT - ( + 11 ) AS col1 FROM tab0 AS cor0
----
-11

query I rowsort
SELECT + col2 FROM tab1 WHERE NULL IN ( + - col1 )
----

query I rowsort
SELECT - 70 * + + col1 + + 61 AS col2 FROM tab1 AS cor0
----
-289
-3229
-919

query I rowsort
SELECT 60 * + 94 - + col0 / + col1 AS col1 FROM tab2 AS cor0 WHERE ( + 85 ) + + - 80 + col0 * - + col1 BETWEEN col0 AND ( 17 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT DISTINCT - 79 + + SUM( DISTINCT - col1 ) * + 9 FROM tab1 cor0
----
-673

skipif mysql # not compatible
query I rowsort label-3559
SELECT DISTINCT - 79 + + SUM ( DISTINCT - col1 ) * + 9 FROM tab1 cor0
----
-673

query I rowsort
SELECT DISTINCT - - col2 + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT + + col1 * col0 * - col1 IS NOT NULL )
----
116
46
80

onlyif mysql # DIV for integer division: 
query I rowsort label-3561
SELECT DISTINCT + col2 + col1 * - + 48 DIV 6 AS col0 FROM tab0 AS cor0
----
-158
-601
91

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT + col2 + col1 * - + 48 / 6 AS col0 FROM tab0 AS cor0
----
-158
-601
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( col2 ) + col1, - col1 col0 FROM tab2 AS cor0
----
28
-51
37
-77
9
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3563
SELECT + col1 * 77 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3563
SELECT + col1 * 77 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 11 * + col0 AS col2 FROM tab2 WHERE + 83 * + - col1 + 38 IS NOT NULL
----
506
704
825

onlyif mysql # aggregate syntax: 
query II rowsort label-3565
SELECT DISTINCT - COUNT( + col0 ) - + COUNT( * ), - 53 AS col0 FROM tab1
----
-6
-53

skipif mysql # not compatible
query II rowsort label-3565
SELECT DISTINCT - COUNT ( + col0 ) - + COUNT ( * ), - 53 AS col0 FROM tab1
----
-6
-53

query II rowsort
SELECT DISTINCT + col1, - col0 + 74 FROM tab0
----
1
-23
21
-13
81
59

query I rowsort
SELECT + col0 * - 59 * - + col1 * + col0 AS col2 FROM tab1
----
2131375
2148426
22963213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3568
SELECT + ( + CAST( NULL AS SIGNED ) ) FROM tab2 WHERE + 35 / + 51 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3568
SELECT + ( + CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE + 35 / + 51 IS NULL
----

query I rowsort
SELECT + 62 * col1 FROM tab2
----
3162
4154
4774

query III rowsort
SELECT * FROM tab1 WHERE NULL >= col2 * 18 * + - 88
----

query I rowsort
SELECT + 80 * - ( - col1 ) FROM tab1
----
1120
3760
400

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT ALL COUNT( ALL - col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL COUNT ( ALL - col0 ) AS col2 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 45 col1, - col2 * - ( + ( - col2 ) ) AS col0 FROM tab1
----
45
-3481
45
-4624
45
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT + + MIN( ALL col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3574
SELECT + + MIN ( ALL col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 87 col2, col2 * - col1 AS col2 FROM tab0 AS cor0
----
87
-210
87
-3807
87
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT + MAX( DISTINCT - 19 ) FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-3576
SELECT + MAX ( DISTINCT - 19 ) FROM tab0
----
-19

query I rowsort
SELECT ALL + - 12 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
50

query I rowsort
SELECT + col0 * + + col0 AS col1 FROM tab0 cor0
----
225
7569
9409

query I rowsort
SELECT + 18 * + 30 AS col0 FROM tab1 AS cor0
----
540
540
540

query I rowsort
SELECT + 23 * + 82 FROM tab1 AS cor0
----
1886
1886
1886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 91 col2 FROM tab1 cor0
----
-91
-91
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3583
SELECT + CAST( 50 AS SIGNED ) FROM tab1
----
50
50
50

skipif mysql # not compatible
query I rowsort label-3583
SELECT + CAST ( 50 AS INTEGER ) FROM tab1
----
50
50
50

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + col0 + 41 + + - ( - col1 ) / - - 36 * + 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT DISTINCT COUNT( * ) + 83 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-3585
SELECT DISTINCT COUNT ( * ) + 83 FROM tab2
----
86

query I rowsort
SELECT - + 71 + col1 AS col1 FROM tab0 AS cor0
----
-50
-70
10

query II rowsort
SELECT - col1 + - col0 + + + col2 AS col2, + 5 FROM tab0 AS cor0
----
-49
5
-98
5
1
5

query I rowsort
SELECT + col0 * - - 94 * - 62 + - + col0 FROM tab2 AS cor0
----
-268134
-373056
-437175

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT DISTINCT MAX( - 59 ) FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3589
SELECT DISTINCT MAX ( - 59 ) FROM tab2 AS cor0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3590
SELECT - ( - 54 ) + + ( - ( - CAST( COUNT( * ) AS SIGNED ) ) ) col0 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3590
SELECT - ( - 54 ) + + ( - ( - CAST ( COUNT ( * ) AS INTEGER ) ) ) col0 FROM tab0 AS cor0
----
57

query II rowsort
SELECT ALL col2 + - + col0 AS col2, col1 AS col1 FROM tab2
----
-17
67
-23
51
-24
77

query II rowsort
SELECT 0 AS col2, + 54 FROM tab1
----
0
54
0
54
0
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3593
SELECT ALL CAST( NULL AS SIGNED ) + - 36 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3593
SELECT ALL CAST ( NULL AS INTEGER ) + - 36 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3594
SELECT + 6 / ( - col1 ) - + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE ( - ( col0 ) ) <= + col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3594
SELECT + 6 / ( - col1 ) - + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE ( - ( col0 ) ) <= + col2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT ALL + COUNT( * ) * COUNT( * ) + + ( + COUNT( DISTINCT col1 ) ) + - 57 AS col1 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-3595
SELECT ALL + COUNT ( * ) * COUNT ( * ) + + ( + COUNT ( DISTINCT col1 ) ) + - 57 AS col1 FROM tab2 AS cor0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-3596
SELECT + - col1 DIV + - col2 - - - col2 FROM tab2 AS cor0
----
-21
-39
-57

skipif mysql # not compatible
query I rowsort label-3596
SELECT + - col1 / + - col2 - - - col2 FROM tab2 AS cor0
----
-21
-39
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3597
SELECT + MIN( DISTINCT + - CAST( + col2 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3597
SELECT + MIN ( DISTINCT + - CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT ALL - 78 - + col1 AS col1 FROM tab0 AS cor0
----
-159
-79
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 - 7 * + ( - col0 ) col1 FROM tab0 AS cor0
----
120
696
776

query I rowsort
SELECT ALL + 38 + col0 AS col0 FROM tab1 AS cor0
----
123
129
89

query I rowsort
SELECT DISTINCT 0 + + col0 AS col1 FROM tab1 cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3602
SELECT ALL - - ( col1 ) AS col0 FROM tab1 WHERE NOT + CAST( - ( + col0 ) AS SIGNED ) IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL - - ( col1 ) AS col0 FROM tab1 WHERE NOT + CAST ( - ( + col0 ) AS INTEGER ) IS NULL
----
14
47
5

query I rowsort
SELECT 2 * col1 * 20 AS col1 FROM tab0
----
3240
40
840

query I rowsort
SELECT + 99 * - ( - + col2 ) FROM tab1
----
5841
6732
9504

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 < + - 63
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 77 * col2 FROM tab2
----
1771
3080
4466

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT + ( 9 ) * - COUNT( * ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-3607
SELECT + ( 9 ) * - COUNT ( * ) FROM tab2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT DISTINCT 26 * - COUNT( * ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-3608
SELECT DISTINCT 26 * - COUNT ( * ) FROM tab2
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3609
SELECT ALL COUNT( * ) DIV + + 80 AS col0, COUNT( * ) FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-3609
SELECT ALL COUNT ( * ) / + + 80 AS col0, COUNT ( * ) FROM tab0 AS cor0
----
0
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3610
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 BETWEEN col0 AND + col2 + + - CAST( - - col1 AS SIGNED ) + + 71 + - 63
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-3610
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 BETWEEN col0 AND + col2 + + - CAST ( - - col1 AS INTEGER ) + + 71 + - 63
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT + ( + + col2 ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT ( - + col1 ) FROM tab0 AS cor0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 61, col2 col1 FROM tab1
----
61
59
61
68
61
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 * + col2 ) IS NOT NULL
----

query I rowsort
SELECT + - ( col2 ) * + col1 * + - col0 + + 33 AS col0 FROM tab0 AS cor0
----
18303
57138
9636

query I rowsort
SELECT DISTINCT + + 12 + + col0 FROM tab2 AS cor0
----
58
76
87

onlyif mysql # DIV for integer division: 
query I rowsort label-3617
SELECT 50 * col1 DIV + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT - 35 * ( col1 ) + - + col2 IS NULL
----
0
105
86

skipif mysql # not compatible
query I rowsort label-3617
SELECT 50 * col1 / + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT - 35 * ( col1 ) + - + col2 IS NULL
----
0
105
86

query I rowsort
SELECT DISTINCT + ( - 81 ) AS col0 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ( col2 ) + - 3 + + col2 + - - col2 + - - 81 * col1 * + 37 AS col0 FROM tab2
----
152913
200970
230886

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT + 36 + COUNT( * ) + - COUNT( * ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-3620
SELECT + 36 + COUNT ( * ) + - COUNT ( * ) FROM tab1
----
36

query III rowsort
SELECT * FROM tab1 WHERE - 48 * + + col1 BETWEEN col1 - col2 AND - + ( + col0 )
----

query I rowsort
SELECT ALL col0 / + - col0 / + col1 + 30 AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND + 32 + + + ( - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( 61 ) AND col2 * 98
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3624
SELECT + col1 AS col1 FROM tab2 WHERE + col1 + + CAST( NULL AS SIGNED ) + + 87 + - - col1 * + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3624
SELECT + col1 AS col1 FROM tab2 WHERE + col1 + + CAST ( NULL AS INTEGER ) + + 87 + - - col1 * + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * - col1 + - + col2 * - - ( col1 ) * + col2 FROM tab0 AS cor0
----
-177714
-273
-9704

query I rowsort
SELECT ALL - 26 AS col0 FROM tab2 AS cor0 WHERE NOT NULL = col1
----

query I rowsort
SELECT + 26 * 35 + col2 AS col1 FROM tab0 AS cor0
----
1009
920
957

onlyif mysql # aggregate syntax: 
query II rowsort label-3628
SELECT DISTINCT COUNT( * ) AS col2, + MAX( DISTINCT col1 ) AS col1 FROM tab0
----
3
81

skipif mysql # not compatible
query II rowsort label-3628
SELECT DISTINCT COUNT ( * ) AS col2, + MAX ( DISTINCT col1 ) AS col1 FROM tab0
----
3
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col1 * + col1 * + 72 * - col0 * col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 86 * + - 87 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT - - ( + SUM( + + col2 ) ) + - 78 col1 FROM tab0 cor0
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3631
SELECT - - ( + SUM ( + + col2 ) ) + - 78 col1 FROM tab0 cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT - + COUNT( * ) + + 49 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-3632
SELECT - + COUNT ( * ) + + 49 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
144

query I rowsort
SELECT + + col0 * - - col2 + - 9 AS col1 FROM tab0 AS cor0
----
696
861
9594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3634
SELECT DISTINCT - + col2 - + col1 * + CAST( + 33 AS SIGNED ) AS col1 FROM tab1 cor0
----
-1619
-224
-558

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT - + col2 - + col1 * + CAST ( + 33 AS INTEGER ) AS col1 FROM tab1 cor0
----
-1619
-224
-558

onlyif mysql # aggregate syntax: 
query II rowsort label-3635
SELECT ALL - 69 AS col2, COUNT( * ) FROM tab1 AS cor0
----
-69
3

skipif mysql # not compatible
query II rowsort label-3635
SELECT ALL - 69 AS col2, COUNT ( * ) FROM tab1 AS cor0
----
-69
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT + MIN( 3 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3636
SELECT + MIN ( 3 ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3637
SELECT - COUNT( * ), 99 col1 FROM tab1
----
-3
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3637
SELECT - COUNT ( * ), 99 col1 FROM tab1
----
-3
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT SUM( - col2 ) * COUNT( * ) AS col1 FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-3638
SELECT SUM ( - col2 ) * COUNT ( * ) AS col1 FROM tab1
----
-669

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3639
SELECT ALL col2 FROM tab1 WHERE NOT ( + CAST( - col0 AS DECIMAL ) ) NOT BETWEEN NULL AND + col0
----

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL col2 FROM tab1 WHERE NOT ( + CAST ( - col0 AS REAL ) ) NOT BETWEEN NULL AND + col0
----

query II rowsort
SELECT col2 AS col0, + col1 AS col0 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT ALL 8 * 5 * - col0 AS col0 FROM tab0
----
-3480
-3880
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT COUNT( * ) * - + MAX( - 87 ) AS col0 FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-3642
SELECT COUNT ( * ) * - + MAX ( - 87 ) AS col0 FROM tab2
----
261

query I rowsort
SELECT ALL 74 * + + col0 FROM tab0
----
1110
6438
7178

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT DISTINCT SUM( col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT SUM ( col0 ) AS col1 FROM tab1 AS cor0
----
227

onlyif mysql # DIV for integer division: 
query I rowsort label-3645
SELECT - col0 DIV col1 + - col2 * ( + - col0 ) FROM tab2 AS cor0
----
1058
2560
4349

skipif mysql # not compatible
query I rowsort label-3645
SELECT - col0 / col1 + - col2 * ( + - col0 ) FROM tab2 AS cor0
----
1058
2560
4349

query I rowsort
SELECT + 76 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT + col0 * - ( - col1 ) FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT - MIN( - 9 ) * - COUNT( * ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3648
SELECT - MIN ( - 9 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-27

query I rowsort
SELECT + + col0 * - ( + col2 ) + - col1 FROM tab0 AS cor0
----
-786
-891
-9604

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 = - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3651
SELECT ALL * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-3651
SELECT ALL * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE ( NOT + 25 < 61 )
----

query II rowsort
SELECT DISTINCT 25, + 99 FROM tab1 WHERE ( NOT col1 + + 92 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT ALL + MIN( ALL + + col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL + MIN ( ALL + + col1 ) FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 84 col2 FROM tab2
----
135
151
161

query I rowsort
SELECT 99 + col1 * + - 87 FROM tab1 AS cor0
----
-1119
-336
-3990

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT DISTINCT + 62 * - COUNT( * ) + 31 col1 FROM tab1 AS cor0
----
-155

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3657
SELECT DISTINCT + 62 * - COUNT ( * ) + 31 col1 FROM tab1 AS cor0
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT DISTINCT + + SUM( - col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3658
SELECT DISTINCT + + SUM ( - col0 ) AS col2 FROM tab2 AS cor0
----
-185

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col2 BETWEEN - col1 AND col1 + + col0 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 + + col0 * - - col1 AS col0 FROM tab2 cor0
----
2323
4888
4967

query I rowsort
SELECT ALL 95 FROM tab2 WHERE NOT + 13 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT ALL - SUM( DISTINCT - col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL - SUM ( DISTINCT - col2 ) AS col2 FROM tab0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3663
SELECT + 51 - ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3663
SELECT + 51 - ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3664
SELECT COUNT( * ) - + 78, - 41 + + + COUNT( * ) AS col1 FROM tab2
----
-75
-38

skipif mysql # not compatible
query II rowsort label-3664
SELECT COUNT ( * ) - + 78, - 41 + + + COUNT ( * ) AS col1 FROM tab2
----
-75
-38

query I rowsort
SELECT + 74 - + - col2 + + 79 FROM tab1 AS cor0
----
212
221
249

query I rowsort
SELECT DISTINCT + 58 AS col0 FROM tab2 AS cor0
----
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 IN ( + - 74 * + col0 + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3668
SELECT DISTINCT + col0 * + 34 * + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3668
SELECT DISTINCT + col0 * + 34 * + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + col0, col2 + - - 72 * + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 * col2 * + col0 col0 FROM tab1
----
-1479425
-19776848
-6580224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3671
SELECT + col0 AS col2 FROM tab1 WHERE NOT - + col1 BETWEEN + - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3671
SELECT + col0 AS col2 FROM tab1 WHERE NOT - + col1 BETWEEN + - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT ALL MAX( DISTINCT + + col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL MAX ( DISTINCT + + col2 ) AS col0 FROM tab1
----
96

query I rowsort
SELECT ALL ( 11 ) AS col0 FROM tab1
----
11
11
11

query I rowsort
SELECT col2 * ( 75 ) FROM tab1
----
4425
5100
7200

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT DISTINCT + - 69 * MIN( - - col0 ) * - ( + 35 ) FROM tab0 AS cor0
----
36225

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT + - 69 * MIN ( - - col0 ) * - ( + 35 ) FROM tab0 AS cor0
----
36225

onlyif mysql # DIV for integer division: 
query II rowsort label-3677
SELECT - 90 DIV + - col0 col2, - col0 AS col0 FROM tab2
----
1
-46
1
-64
1
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3677
SELECT - 90 / + - col0 col2, - col0 AS col0 FROM tab2
----
1
-46
1
-64
1
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-3678
SELECT DISTINCT - 66 DIV + 48 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT - 66 / + 48 FROM tab1
----
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE + 53 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-3680
SELECT DISTINCT 87, COUNT( * ) col1 FROM tab1
----
87
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3680
SELECT DISTINCT 87, COUNT ( * ) col1 FROM tab1
----
87
3

query I rowsort
SELECT ALL + col0 * + 23 FROM tab0 AS cor0
----
2001
2231
345

query I rowsort
SELECT + - 82 FROM tab2 AS cor0 WHERE 62 >= col0
----
-82

query I rowsort
SELECT ALL col1 * + col0 + 89 AS col2 FROM tab0 cor0
----
1304
186
1916

query I rowsort
SELECT DISTINCT - + col1 - - 7 FROM tab0 AS cor0 WHERE NOT + 58 IS NULL
----
-14
-74
6

onlyif mysql # aggregate syntax: 
query II rowsort label-3685
SELECT DISTINCT + 40 * - + 28, COUNT( col0 ) AS col2 FROM tab2 AS cor0
----
-1120
3

skipif mysql # not compatible
query II rowsort label-3685
SELECT DISTINCT + 40 * - + 28, COUNT ( col0 ) AS col2 FROM tab2 AS cor0
----
-1120
3

query II rowsort
SELECT ALL col0 AS col2, col2 AS col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query I rowsort
SELECT + col1 * + 61 * - col1 FROM tab1 AS cor0 WHERE col0 BETWEEN NULL AND ( - ( + col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3688
SELECT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) IN ( + - col0 + 45 + - 11, + col2, + + col2, col2, + 74, - - col2 )
----

skipif mysql # not compatible
query III rowsort label-3688
SELECT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IN ( + - col0 + 45 + - 11, + col2, + + col2, col2, + 74, - - col2 )
----

query I rowsort
SELECT DISTINCT 12 * - 24 * col0 AS col0 FROM tab0 AS cor0
----
-25056
-27936
-4320

query I rowsort
SELECT - + col2 FROM tab0 WHERE NULL BETWEEN + 38 + 57 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - col0 ) + + + col1 col2, + col0 AS col1 FROM tab0
----
108
87
96
15
98
97

query I rowsort
SELECT DISTINCT - col1 * - - ( - 30 ) + - + col1 FROM tab2
----
1479
1943
2233

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT ALL SUM( + + col2 ) * + - 23 + - 24 AS col2 FROM tab2
----
-2807

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL SUM ( + + col2 ) * + - 23 + - 24 AS col2 FROM tab2
----
-2807

onlyif mysql # DIV for integer division: 
query II rowsort label-3694
SELECT ALL col2 DIV + 87 AS col2, 22 AS col1 FROM tab2
----
0
22
0
22
0
22

skipif mysql # not compatible
query II rowsort label-3694
SELECT ALL col2 / + 87 AS col2, 22 AS col1 FROM tab2
----
0
22
0
22
0
22

onlyif mysql # DIV for integer division: 
query I rowsort label-3695
SELECT ALL col2 - - col1 DIV - col1 FROM tab2
----
22
39
57

skipif mysql # not compatible
query I rowsort label-3695
SELECT ALL col2 - - col1 / - col1 FROM tab2
----
22
39
57

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 13 <= ( + col0 + + + col2 * ( + col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 * col0 * + col2 FROM tab1 AS cor0 WHERE col0 <> - 3
----
-295885
-420784
-470016

query I rowsort
SELECT DISTINCT + 15 - + col2 - - col1 FROM tab0 cor0
----
-83
26
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3699
SELECT ( col2 ) AS col0, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-3699
SELECT ( col2 ) AS col0, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT + MIN( col2 ) - 81 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3700
SELECT + MIN ( col2 ) - 81 FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3701
SELECT ALL + col0 / col0 * + CAST( NULL AS SIGNED ) - - + 0 * + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL + col0 / col0 * + CAST ( NULL AS INTEGER ) - - + 0 * + col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT + col2, - col1 * - col1 AS col1 FROM tab1 cor0
----
59
25
68
2209
96
196

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT MIN( DISTINCT ( + ( + ( col0 ) ) ) ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3703
SELECT MIN ( DISTINCT ( + ( + ( col0 ) ) ) ) AS col2 FROM tab0 AS cor0
----
15

query II rowsort
SELECT 76, col0 / + col0 + + 65 + col0 FROM tab0 cor0 WHERE NOT - col0 <> NULL
----

query I rowsort
SELECT + 90 + - col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT DISTINCT ( - 36 ) * 60 - + COUNT( * ) AS col1 FROM tab1
----
-2163

skipif mysql # not compatible
query I rowsort label-3706
SELECT DISTINCT ( - 36 ) * 60 - + COUNT ( * ) AS col1 FROM tab1
----
-2163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3707
SELECT ALL - - col2 FROM tab0 WHERE NOT NULL <> - + col1 * - CAST( NULL AS SIGNED ) * + - 15
----

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL - - col2 FROM tab0 WHERE NOT NULL <> - + col1 * - CAST ( NULL AS INTEGER ) * + - 15
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * - + ( + 29 ) * - - col0 BETWEEN col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 35 * - col2 FROM tab0
----
-1645
-3465
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT ALL + MAX( DISTINCT + - col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL + MAX ( DISTINCT + - col0 ) AS col1 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT - 86 FROM tab0 AS cor0 WHERE NOT + 52 = col1
----
-86
-86
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3712
SELECT DISTINCT + ( - CAST( ( + - col1 ) AS SIGNED ) ) * col1 + - + 85 AS col0 FROM tab1 AS cor0
----
-60
111
2124

skipif mysql # not compatible
query I rowsort label-3712
SELECT DISTINCT + ( - CAST ( ( + - col1 ) AS INTEGER ) ) * col1 + - + 85 AS col0 FROM tab1 AS cor0
----
-60
111
2124

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE - col2 NOT IN ( + col2, col0 * - + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-3713
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE - col2 NOT IN ( + col2, col0 * - + col1 )
----
3

query I rowsort
SELECT col2 + col2 * + col0 AS col0 FROM tab0
----
752
880
9702

query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab2 AS cor0 WHERE + 22 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - 80 FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-80

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3717
SELECT 91 * + CAST( NULL AS DECIMAL ) - ( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3717
SELECT 91 * + CAST ( NULL AS REAL ) - ( + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3718
SELECT ALL - 26 * + col1 DIV ( + col1 ) + + CAST( - ( - col0 ) AS SIGNED ) + + col1 FROM tab2 AS cor0
----
115
116
71

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL - 26 * + col1 / ( + col1 ) + + CAST ( - ( - col0 ) AS INTEGER ) + + col1 FROM tab2 AS cor0
----
115
116
71

query I rowsort
SELECT + col1 * + - col0 AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT - SUM( ALL + 18 ) FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-3720
SELECT - SUM ( ALL + 18 ) FROM tab0 AS cor0
----
-54

query I rowsort
SELECT - ( - 18 ) * - col0 AS col1 FROM tab1 AS cor0
----
-1530
-1638
-918

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT ALL 29 * - - MAX( DISTINCT - - col2 ) FROM tab0 AS cor0
----
2871

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL 29 * - - MAX ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
2871

onlyif mysql # DIV for integer division: 
query I rowsort label-3723
SELECT ALL + col2 DIV - ( + 50 ) FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL + col2 / - ( + 50 ) FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col0 + - + col2 AS col0 FROM tab0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3725
SELECT ALL - CAST( NULL AS SIGNED ) col0, col0 AS col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3725
SELECT ALL - CAST ( NULL AS INTEGER ) col0, col0 AS col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT + col0 + + 77 - - - col1 AS col2 FROM tab1
----
114
121
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3727
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3728
SELECT - - col2 + + + CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
118
136
192

skipif mysql # not compatible
query I rowsort label-3728
SELECT - - col2 + + + CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3729
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) + + SUM( + + 42 ) + ( + AVG ( DISTINCT + + 73 ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3729
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) + + SUM ( + + 42 ) + ( + AVG ( DISTINCT + + 73 ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 45 + 10 FROM tab2 AS cor0
----
55

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 64 * + - col1 * + - 57 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT DISTINCT MAX( 13 ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT MAX ( 13 ) FROM tab1
----
13

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 41 > - ( + + 18 ) + - col1 + - + col0
----

query I rowsort
SELECT + col1 * - 48 FROM tab2 AS cor0
----
-2448
-3216
-3696

onlyif mysql # DIV for integer division: 
query I rowsort label-3735
SELECT - - col1 DIV + + 61 FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3735
SELECT - - col1 / + + 61 FROM tab2 cor0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3736
SELECT - - 84 DIV + 27 AS col2 FROM tab2 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-3736
SELECT - - 84 / + 27 AS col2 FROM tab2 AS cor0
----
3
3
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3737
SELECT MIN( ALL + col1 ) DIV 2 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-3737
SELECT MIN ( ALL + col1 ) / 2 FROM tab2 AS cor0
----
25

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3738
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( + col2 AS DECIMAL ) + + + 23 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3738
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( + col2 AS REAL ) + + + 23 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( - ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + 85 * + col1 AS col0 FROM tab1 AS cor0 WHERE 45 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 * + col1 col1 FROM tab1
----
-1078
-3619
-385

query I rowsort
SELECT + col1 * - 84 + + - 86 - - 47 FROM tab0
----
-123
-1803
-6843

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3743
SELECT col0 + + col2 - - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3743
SELECT col0 + + col2 - - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 32 + col1 AS col0 FROM tab1
----
37
46
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT + 94 * + 53 + - + COUNT( * ) AS col2 FROM tab0 WHERE NOT + 77 - + - 37 BETWEEN + ( col1 ) AND - col2
----
4979

skipif mysql # not compatible
query I rowsort label-3745
SELECT + 94 * + 53 + - + COUNT ( * ) AS col2 FROM tab0 WHERE NOT + 77 - + - 37 BETWEEN + ( col1 ) AND - col2
----
4979

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3746
SELECT - + col0 AS col0 FROM tab1 cor0 WHERE NOT NULL BETWEEN col0 * - - col0 - - - col0 * col0 AND - col0 - - + CAST( NULL AS SIGNED ) * - col2
----

skipif mysql # not compatible
query I rowsort label-3746
SELECT - + col0 AS col0 FROM tab1 cor0 WHERE NOT NULL BETWEEN col0 * - - col0 - - - col0 * col0 AND - col0 - - + CAST ( NULL AS INTEGER ) * - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 36 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 99 + - - ( + - 75 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col1 AS col2 FROM tab2 WHERE + + 96 + - + ( - col0 ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3750
SELECT 29 DIV col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3750
SELECT 29 / col0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT DISTINCT - 42 + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-33

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT - 42 + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-33

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT DISTINCT - + 76 + COUNT( * ) + - 3 AS col2 FROM tab1 cor0
----
-76

skipif mysql # not compatible
query I rowsort label-3754
SELECT DISTINCT - + 76 + COUNT ( * ) + - 3 AS col2 FROM tab1 cor0
----
-76

query I rowsort
SELECT ALL + col0 - - - 3 FROM tab0 AS cor0
----
12
84
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3756
SELECT ( + col2 ) * CAST( NULL AS SIGNED ) + + + 84 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3756
SELECT ( + col2 ) * CAST ( NULL AS INTEGER ) + + + 84 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 24 * + - 52 * 48 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3758
SELECT ALL + 87 AS col0, - CAST( - col1 AS SIGNED ) FROM tab2
----
87
51
87
67
87
77

skipif mysql # not compatible
query II rowsort label-3758
SELECT ALL + 87 AS col0, - CAST ( - col1 AS INTEGER ) FROM tab2
----
87
51
87
67
87
77

query I rowsort
SELECT ALL - 34 * + col2 * col1 FROM tab1
----
-10030
-108664
-45696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3760
SELECT + COUNT( * ) DIV - - COUNT( * ) col2 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3760
SELECT + COUNT ( * ) / - - COUNT ( * ) col2 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3761
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - CAST( NULL AS SIGNED ) * + col2 * 73 + + col0
----

skipif mysql # not compatible
query III rowsort label-3761
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER ) * + col2 * 73 + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 65 * - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + 71 + + + ( col0 ) AS col2 FROM tab1 AS cor0
----
173
241
253

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) IN ( - + ( + col0 ) + col1 - - + col2, - col1 + 89 / - col2, + 90 + + col2 * - col1, + 84, - + col2, 49 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 64 - - col0 col1 FROM tab0 AS cor0
----
151
161
79

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + + + col2 + + col1 IS NULL
----

query I rowsort
SELECT 10 * - 15 * + col0 FROM tab2
----
-11250
-6900
-9600

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 74 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3768
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 74 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col0 BETWEEN NULL AND - - col0 * + col2 + - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3770
SELECT ALL - + col0 / - + 73 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3770
SELECT ALL - + col0 / - + 73 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3771
SELECT ALL - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT 52 <> col2
----

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 52 <> col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3772
SELECT - + col2 DIV col2 + - 81 + + 29 FROM tab2 cor0
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-3772
SELECT - + col2 / col2 + - 81 + + 29 FROM tab2 cor0
----
-53
-53
-53

query II rowsort
SELECT - col1, + col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT DISTINCT - 42 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3775
SELECT DISTINCT + + CAST( NULL AS SIGNED ), + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3775
SELECT DISTINCT + + CAST ( NULL AS INTEGER ), + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3776
SELECT CAST( + 42 AS SIGNED ) * col1 FROM tab1 cor0 WHERE NOT 38 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3776
SELECT CAST ( + 42 AS INTEGER ) * col1 FROM tab1 cor0 WHERE NOT 38 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT + - COUNT( * ) * + - ( - - 34 ) FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-3777
SELECT + - COUNT ( * ) * + - ( - - 34 ) FROM tab2 AS cor0
----
102

query I rowsort
SELECT + ( 78 ) AS col0 FROM tab0 AS cor0
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3779
SELECT + col2 * col2 DIV col0 + - ( CAST( - + 48 AS SIGNED ) ) FROM tab1 AS cor0
----
228
88
98

skipif mysql # not compatible
query I rowsort label-3779
SELECT + col2 * col2 / col0 + - ( CAST ( - + 48 AS INTEGER ) ) FROM tab1 AS cor0
----
228
88
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT - COUNT( ALL + col2 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3780
SELECT - COUNT ( ALL + col2 ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT DISTINCT MIN( ALL - col2 ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3781
SELECT DISTINCT MIN ( ALL - col2 ) AS col0 FROM tab2
----
-58

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col0 * col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * - - 22 FROM tab0
----
-1782
-22
-462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) col1 FROM tab0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL - 65 + 68 AS col2 FROM tab2
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT DISTINCT COUNT( ALL + 30 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3786
SELECT DISTINCT COUNT ( ALL + 30 ) col2 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 18 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 17 col0 FROM tab0
----
17
17
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3789
SELECT DISTINCT - - col1 * - + col1 * 31 - col2 + col2 + CAST( col2 AS SIGNED ) * - - col0 - col1 + col1 AS col1, 15 AS col0 FROM tab2 AS cor0
----
-134809
15
-181239
15
-79573
15

skipif mysql # not compatible
query II rowsort label-3789
SELECT DISTINCT - - col1 * - + col1 * 31 - col2 + col2 + CAST ( col2 AS INTEGER ) * - - col0 - col1 + col1 AS col1, 15 AS col0 FROM tab2 AS cor0
----
-134809
15
-181239
15
-79573
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3790
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT + 23 + + 86 AS col2 FROM tab2 AS cor0
----
109
109
109

query I rowsort
SELECT + 37 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 + + 68 * - col2 - + 38 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3794
SELECT ALL col0 + - - col2 DIV 56 * + - ( - col2 ) FROM tab1 AS cor0
----
144
147
159

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL col0 + - - col2 / 56 * + - ( - col2 ) FROM tab1 AS cor0
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3795
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 9 / + CAST( NULL AS SIGNED ) IN ( 57 * - 65 - col1, - col0, - 71 * + 30 )
----

skipif mysql # not compatible
query III rowsort label-3795
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 9 / + CAST ( NULL AS INTEGER ) IN ( 57 * - 65 - col1, - col0, - 71 * + 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT - COUNT( * ) * + 26 AS col2 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-3796
SELECT - COUNT ( * ) * + 26 AS col2 FROM tab0 AS cor0
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3797
SELECT - CAST( + SUM( col2 ) AS SIGNED ) FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3797
SELECT - CAST ( + SUM ( col2 ) AS INTEGER ) FROM tab1 cor0
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3798
SELECT DISTINCT + 3 + col2 - CAST( NULL AS SIGNED ) / 66 - + + 55 * + 12 + - col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3798
SELECT DISTINCT + 3 + col2 - CAST ( NULL AS INTEGER ) / 66 - + + 55 * + 12 + - col2 AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE 93 + + - col1 + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3800
SELECT - - col0 - CAST( NULL AS SIGNED ) * - 91 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT - - col0 - CAST ( NULL AS INTEGER ) * - 91 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3801
SELECT - 4 DIV - col2 - + 63 col1 FROM tab2 cor0
----
-63
-63
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3801
SELECT - 4 / - col2 - + 63 col1 FROM tab2 cor0
----
-63
-63
-63

query II rowsort
SELECT DISTINCT - col2 * col2 - + 1 AS col2, ( - 4 ) AS col1 FROM tab1 AS cor0
----
-3482
-4
-4625
-4
-9217
-4

query II rowsort
SELECT ALL + 6 - - 84 AS col2, - 57 * - + col0 AS col1 FROM tab1
----
90
2907
90
4845
90
5187

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT MAX( col0 ) + - 92 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-3804
SELECT MAX ( col0 ) + - 92 FROM tab0
----
5

query II rowsort
SELECT col0 + + col0, col0 * + + col1 AS col1 FROM tab2
----
128
4928
150
5025
92
2346

query II rowsort
SELECT DISTINCT 80 * + + 52, + col1 FROM tab1
----
4160
14
4160
47
4160
5

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT ( col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3808
SELECT 0 * - CAST( ( - - col2 ) AS SIGNED ) AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3808
SELECT 0 * - CAST ( ( - - col2 ) AS INTEGER ) AS col0 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3809
SELECT DISTINCT - 3 DIV + + col2 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3809
SELECT DISTINCT - 3 / + + col2 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT ALL - COUNT( * ) * - + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3810
SELECT ALL - COUNT ( * ) * - + COUNT ( * ) FROM tab0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3811
SELECT DISTINCT + 1 DIV - col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3811
SELECT DISTINCT + 1 / - col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 95 * - col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + + col0 AS col0, 68 AS col2 FROM tab0 AS cor0
----
15
68
87
68
97
68

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT DISTINCT - MAX( + 8 ) FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT - MAX ( + 8 ) FROM tab2 AS cor0
----
-8

query II rowsort
SELECT DISTINCT + 59 AS col0, + col1 FROM tab2 AS cor0
----
59
51
59
67
59
77

query I rowsort
SELECT DISTINCT + 1 * + + col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT + col0 + - 39 AS col2 FROM tab2
----
25
36
7

query II rowsort
SELECT ALL 17 * 54, + col2 FROM tab2
----
918
23
918
40
918
58

query I rowsort
SELECT ALL 21 * 9 + col2 AS col1 FROM tab1
----
248
257
285

query II rowsort
SELECT DISTINCT + 4 * - col1 AS col2, col2 AS col1 FROM tab1
----
-188
68
-20
59
-56
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3822
SELECT + col1 DIV + col1 + + + 63 FROM tab0
----
64
64
64

skipif mysql # not compatible
query I rowsort label-3822
SELECT + col1 / + col1 + + + 63 FROM tab0
----
64
64
64

query I rowsort
SELECT DISTINCT 98 + col1 AS col0 FROM tab2
----
149
165
175

query I rowsort
SELECT 14 + 70 * - col2 FROM tab1
----
-4116
-4746
-6706

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT DISTINCT MIN( - - col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3825
SELECT DISTINCT MIN ( - - col2 ) FROM tab0
----
10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( - col0 - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT ALL + SUM( ALL + - col0 ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL + SUM ( ALL + - col0 ) AS col0 FROM tab1 AS cor0
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3828
SELECT - 18 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3828
SELECT - 18 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + - 74 FROM tab2 AS cor0
----
-16
-34
-51

query I rowsort
SELECT - 48 + + 73 + ( - 71 ) AS col0 FROM tab1 AS cor0
----
-46
-46
-46

query I rowsort
SELECT ALL + - col0 + - 33 * 81 FROM tab2 cor0
----
-2719
-2737
-2748

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT DISTINCT - 27 + - MIN( - 77 ) AS col1 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-3832
SELECT DISTINCT - 27 + - MIN ( - 77 ) AS col1 FROM tab1 AS cor0
----
50

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col1 / - + col0 ) >= - ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + - 58 + - 10 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT ALL + + 80 - + ( + - MAX( - 77 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3836
SELECT ALL + + 80 - + ( + - MAX ( - 77 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT DISTINCT + COUNT( * ) - - 75 FROM tab1 WHERE NOT + col0 <> NULL
----
75

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT + COUNT ( * ) - - 75 FROM tab1 WHERE NOT + col0 <> NULL
----
75

query I rowsort
SELECT DISTINCT col1 * + col2 * + col1 - - + col1 FROM tab1
----
1480
150259
18830

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT DISTINCT + 91 * - COUNT( * ) FROM tab0 WHERE NOT - + ( - - 10 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT + 91 * - COUNT ( * ) FROM tab0 WHERE NOT - + ( - - 10 ) IS NOT NULL
----
0

query II rowsort
SELECT + col2, - ( + col0 ) AS col1 FROM tab1
----
59
-85
68
-91
96
-51

query III rowsort
SELECT * FROM tab1 WHERE NOT 50 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3842
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT + - CAST( - 21 AS SIGNED ) NOT IN ( 15 + + + col0, - 46, + - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3842
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT + - CAST ( - 21 AS INTEGER ) NOT IN ( 15 + + + col0, - 46, + - col1 )
----
0

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT - 36 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT DISTINCT SUM( ALL + - 44 ) FROM tab2
----
-132

skipif mysql # not compatible
query I rowsort label-3844
SELECT DISTINCT SUM ( ALL + - 44 ) FROM tab2
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3845
SELECT ALL - col2 * + col1 FROM tab2 WHERE - 91 IS NOT NULL OR NOT NULL IN ( + col2 * 10 * + col0 / - 87, 88, - + col2, CAST( + + 29 AS SIGNED ) * + - col1 )
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-3845
SELECT ALL - col2 * + col1 FROM tab2 WHERE - 91 IS NOT NULL OR NOT NULL IN ( + col2 * 10 * + col0 / - 87, 88, - + col2, CAST ( + + 29 AS INTEGER ) * + - col1 )
----
-1173
-3080
-3886

query II rowsort
SELECT DISTINCT 12, + col1 FROM tab2 AS cor0
----
12
51
12
67
12
77

query II rowsort
SELECT col0 AS col1, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3848
SELECT ALL - - ( + col1 ) * CAST( - + 82 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1722
-6642
-82

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL - - ( + col1 ) * CAST ( - + 82 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1722
-6642
-82

query I rowsort
SELECT DISTINCT 44 * + + col2 + - col2 FROM tab1 AS cor0
----
2537
2924
4128

query I rowsort
SELECT ALL - 22 + - col2 * col0 FROM tab1 AS cor0
----
-4918
-5037
-6210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 72 * - 84 col0 FROM tab0 AS cor0
----
-6048
-6048
-6048

query I rowsort
SELECT DISTINCT col1 * col0 * ( - 70 ) AS col1 FROM tab0 AS cor0
----
-127890
-6790
-85050

onlyif mysql # DIV for integer division: 
query I rowsort label-3853
SELECT col2 DIV - col0 + + 65 FROM tab0 AS cor0
----
62
64
65

skipif mysql # not compatible
query I rowsort label-3853
SELECT col2 / - col0 + + 65 FROM tab0 AS cor0
----
62
64
65

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - 37
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3855
SELECT + 29 / + CAST( NULL AS SIGNED ) - col2 + - + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3855
SELECT + 29 / + CAST ( NULL AS INTEGER ) - col2 + - + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) IN ( col0, 95, - col1 )
----

query I rowsort
SELECT - ( - col2 ) * + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-163840
-326250
-48668

query II rowsort
SELECT ALL col2 + - ( + col1 ) AS col1, col0 - - col1 + + col2 * + col2 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-28
626
-37
1741
-9
3506

query I rowsort
SELECT 14 * - col1 AS col1 FROM tab1 AS cor0
----
-196
-658
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3860
SELECT CAST( NULL AS SIGNED ) * - - 28 * - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3860
SELECT CAST ( NULL AS INTEGER ) * - - 28 * - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col2 * - 1 AS col1 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab1 WHERE - ( col0 ) + - - 73 IN ( - 23, col1, 69, + + col1 )
----

query I rowsort
SELECT - 71 AS col1 FROM tab2 WHERE - + col0 IS NOT NULL
----
-71
-71
-71

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - ( + 23 ) + - col2 * col0 IS NULL
----

query I rowsort
SELECT + - col2 + 38 * 78 AS col1 FROM tab2 AS cor0
----
2906
2924
2941

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT - - COUNT( * ) + 6 AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3866
SELECT - - COUNT ( * ) + 6 AS col2 FROM tab0 AS cor0
----
9

query II rowsort
SELECT ALL - col1, 20 * - - 59 * + col2 AS col1 FROM tab1
----
-14
113280
-47
80240
-5
69620

onlyif mysql # DIV for integer division: 
query I rowsort label-3868
SELECT DISTINCT - col1 DIV col1 * + col2 AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3868
SELECT DISTINCT - col1 / col1 * + col2 AS col0 FROM tab1
----
-59
-68
-96

query II rowsort
SELECT ALL col2 * + + col0 + + col0 * + col0 AS col1, col0 AS col0 FROM tab1
----
12240
85
14469
91
7497
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3870
SELECT DISTINCT - 78 DIV + + col0 + col1 FROM tab1 AS cor0
----
13
47
5

skipif mysql # not compatible
query I rowsort label-3870
SELECT DISTINCT - 78 / + + col0 + col1 FROM tab1 AS cor0
----
13
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT DISTINCT ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3871
SELECT DISTINCT ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 WHERE NULL <= NULL
----
0

query I rowsort
SELECT col0 - - 18 FROM tab2 AS cor0
----
64
82
93

query I rowsort
SELECT + - 59 - col1 AS col2 FROM tab2 AS cor0
----
-110
-126
-136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - col2 col1 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT col2 - + 69 FROM tab1 AS cor0
----
-1
-10
27

query II rowsort
SELECT ALL - col1 + + col2 AS col1, - col2 AS col1 FROM tab1 AS cor0
----
21
-68
54
-59
82
-96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 + + col1 BETWEEN NULL AND - 37
----

query I rowsort
SELECT - - 75 FROM tab0 cor0 WHERE NOT - col2 IS NULL
----
75
75
75

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * - 18 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT ALL ( COUNT( ALL + col0 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL ( COUNT ( ALL + col0 ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT - MAX( - - 8 ) FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-3881
SELECT - MAX ( - - 8 ) FROM tab2
----
-8

query I rowsort
SELECT ALL ( ( col1 ) ) AS col2 FROM tab2
----
51
67
77

query III rowsort
SELECT * FROM tab1 WHERE NOT + 65 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT ALL SUM( 64 ) FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL SUM ( 64 ) FROM tab1
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3885
SELECT CAST( + 51 AS SIGNED ) AS col0 FROM tab0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-3885
SELECT CAST ( + 51 AS INTEGER ) AS col0 FROM tab0
----
51
51
51

query II rowsort
SELECT + col0 AS col0, - 37 AS col2 FROM tab1
----
51
-37
85
-37
91
-37

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( col1, col1, 37 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = - 64 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3889
SELECT - col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 66 * - col1 AND col1 * - CAST( NULL AS SIGNED ) * + 40
----

skipif mysql # not compatible
query I rowsort label-3889
SELECT - col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 66 * - col1 AND col1 * - CAST ( NULL AS INTEGER ) * + 40
----

query I rowsort
SELECT ALL - - col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT DISTINCT 50 * - COUNT( * ) + COUNT( * ) col2 FROM tab2 AS cor0
----
-147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3891
SELECT DISTINCT 50 * - COUNT ( * ) + COUNT ( * ) col2 FROM tab2 AS cor0
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT ALL + MIN( + col1 ) col1 FROM tab1 cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3892
SELECT ALL + MIN ( + col1 ) col1 FROM tab1 cor0
----
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= col0 * - + 40 * + - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3894
SELECT - 30 * - + COUNT( * ) - COUNT( * ) DIV COUNT( * ) * + + COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
87

skipif mysql # not compatible
query I rowsort label-3894
SELECT - 30 * - + COUNT ( * ) - COUNT ( * ) / COUNT ( * ) * + + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3895
SELECT DISTINCT - ( + CAST( + - COUNT( DISTINCT + col0 ) AS SIGNED ) ) * + + 1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT - ( + CAST ( + - COUNT ( DISTINCT + col0 ) AS INTEGER ) ) * + + 1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - - col2 * + ( ( + + col1 ) ) FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT DISTINCT SUM( ALL + ( + + col0 ) ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3897
SELECT DISTINCT SUM ( ALL + ( + + col0 ) ) AS col2 FROM tab1
----
227

query I rowsort
SELECT ( col2 ) + + - 66 FROM tab2
----
-26
-43
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT + 71 + SUM( ALL 95 ) FROM tab2
----
356

skipif mysql # not compatible
query I rowsort label-3899
SELECT + 71 + SUM ( ALL 95 ) FROM tab2
----
356

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 24 + + - 95 + - col1 - - col2 * - col0 col0, 31 FROM tab1
----
-4981
31
-5091
31
-6306
31

query I rowsort
SELECT ( - + col2 ) * - col1 AS col2 FROM tab0
----
210
3807
99

query I rowsort
SELECT - ( + 17 ) FROM tab2
----
-17
-17
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + + col2 ) + - col0 col0 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3904
SELECT ALL + col0 * CAST( NULL AS SIGNED ) * - + col0 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-3904
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) * - + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3905
SELECT DISTINCT 17 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT DISTINCT 17 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT + col0 * col1 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3907
SELECT ALL - 87 DIV - COUNT( * ) FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-3907
SELECT ALL - 87 / - COUNT ( * ) FROM tab0 AS cor0
----
29

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT - 84 IS NOT NULL
----

query II rowsort
SELECT - 2 AS col1, 58 FROM tab2
----
-2
58
-2
58
-2
58

query I rowsort
SELECT 46 * - + col1 FROM tab2
----
-2346
-3082
-3542

query I rowsort
SELECT + ( + - 61 ) FROM tab2
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT DISTINCT - COUNT( * ) + ( + 25 ) AS col1 FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-3912
SELECT DISTINCT - COUNT ( * ) + ( + 25 ) AS col1 FROM tab2
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-3913
SELECT + MAX( 94 ) AS col1, COUNT( * ) FROM tab2 AS cor0
----
94
3

skipif mysql # not compatible
query II rowsort label-3913
SELECT + MAX ( 94 ) AS col1, COUNT ( * ) FROM tab2 AS cor0
----
94
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col0 * + + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3914
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col0 * + + col1 IS NULL
----
0

query I rowsort
SELECT - col0 * + 28 AS col2 FROM tab0 AS cor0
----
-2436
-2716
-420

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 4 * col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + col2 * 58 - - 4 * + col2 FROM tab1 AS cor0
----
3658
4216
5952

query I rowsort
SELECT - col2 * + - col0 AS col0 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT - col0 * ( + - col0 ) AS col2 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT - col1 - - + col2 FROM tab1
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT 27 + + COUNT( * ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-3922
SELECT 27 + + COUNT ( * ) FROM tab0
----
30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3923
SELECT ALL + col0 + + + col1 + + - CAST( - col0 AS SIGNED ) DIV 16 FROM tab0
----
104
113
96

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL + col0 + + + col1 + + - CAST ( - col0 AS INTEGER ) / 16 FROM tab0
----
104
113
96

query I rowsort
SELECT DISTINCT - + 78 - + 52 * + ( 19 ) AS col0 FROM tab1 AS cor0
----
-1066

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT 0 * - COUNT( * ) + COUNT( ALL col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3926
SELECT 0 * - COUNT ( * ) + COUNT ( ALL col1 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3927
SELECT DISTINCT - 41 - - col1 + + 88 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT - 41 - - col1 + + 88 + + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3928
SELECT ALL 38 DIV COUNT( * ) col1 FROM tab1
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3928
SELECT ALL 38 / COUNT ( * ) col1 FROM tab1
----
12

query I rowsort
SELECT - 88 FROM tab1 WHERE ( NULL ) IS NULL
----
-88
-88
-88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3930
SELECT ALL 21 DIV CAST( - col2 AS SIGNED ) col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3930
SELECT ALL 21 / CAST ( - col2 AS INTEGER ) col2 FROM tab1
----
0
0
0

query I rowsort
SELECT 80 AS col0 FROM tab2 WHERE col0 / + col2 NOT IN ( + col2 - - 15 * col0 )
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT 31 + COUNT( * ) AS col0 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-3932
SELECT 31 + COUNT ( * ) AS col0 FROM tab1
----
34

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * + col0 NOT BETWEEN - col1 AND col2
----

query I rowsort
SELECT 69 + + col1 FROM tab2
----
120
136
146

query I rowsort
SELECT 80 * col1 + + col1 FROM tab2
----
4131
5427
6237

query I rowsort
SELECT DISTINCT 62 + + col0 AS col0 FROM tab1
----
113
147
153

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 WHERE ( + 23 ) IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - 69 + - 24 AS col0 FROM tab2
----
-93

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 * col2 NOT BETWEEN col1 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 25 + col1 * + 71 AS col0 FROM tab2
----
3596
4732
5442

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 70 ) = ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - col1 * + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3943
SELECT DISTINCT 72 * - COUNT( * ) FROM tab2 WHERE NOT ( NULL ) IN ( CAST( col1 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT 72 * - COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) IN ( CAST ( col1 AS INTEGER ) )
----
0

query I rowsort
SELECT - ( ( - col1 ) ) - - 75 AS col0 FROM tab0
----
156
76
96

query I rowsort
SELECT DISTINCT 56 FROM tab1 WHERE NOT + col0 IS NULL
----
56

query III rowsort
SELECT * FROM tab1 WHERE ( col0 ) < - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT COUNT( + col0 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3947
SELECT COUNT ( + col0 ) col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT DISTINCT SUM( 64 ) AS col0 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-3948
SELECT DISTINCT SUM ( 64 ) AS col0 FROM tab2
----
192

query III rowsort
SELECT * FROM tab0 WHERE + 73 NOT IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT - SUM( col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-3950
SELECT - SUM ( col2 ) FROM tab2
----
-121

query I rowsort
SELECT 33 * + col1 + + 56 FROM tab2
----
1739
2267
2597

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3952
SELECT DISTINCT - CAST( + col2 AS SIGNED ) AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 48 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 63 ) NOT BETWEEN ( col0 ) / col1 + - 28 AND + 42
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( NULL ) AND 10 + col1
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 / col1 IS NULL
----

query I rowsort
SELECT DISTINCT 19 * + col2 + col1 * ( ( + 51 ) + ( + 49 ) ) AS col2 FROM tab2
----
5537
7802
8460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3958
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( CAST( - col2 AS SIGNED ) ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3958
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( CAST ( - col2 AS INTEGER ) ) IS NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 90 * + 46 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT ALL - MIN( ALL - col0 ) AS col1 FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL - MIN ( ALL - col0 ) AS col1 FROM tab0 cor0
----
97

query I rowsort
SELECT - - col2 * col2 + 5 AS col0 FROM tab0 cor0
----
105
2214
9806

query I rowsort
SELECT + col2 + 94 FROM tab1 AS cor0
----
153
162
190

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 ) NOT IN ( - 94 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 col1 FROM tab0
----
57

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 60 ) BETWEEN col0 * - 36 AND + col0 - - 22
----
15
81
47

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 0 / col0 <= col1
----

query I rowsort
SELECT + 32 * + 29 FROM tab0
----
928
928
928

query I rowsort
SELECT ALL + ( - col2 ) + 13 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3969
SELECT * FROM tab1 WHERE ( - CAST( NULL AS DECIMAL ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3969
SELECT * FROM tab1 WHERE ( - CAST ( NULL AS REAL ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE - 28 * col1 <= - col2 * + col2
----
15
81
47
87
21
10

query I rowsort
SELECT 31 AS col2 FROM tab0 WHERE col2 IS NOT NULL
----
31
31
31

query I rowsort
SELECT DISTINCT - 32 + col1 FROM tab0 AS cor0
----
-11
-31
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3973
SELECT + CAST( NULL AS SIGNED ) - - + 54 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3973
SELECT + CAST ( NULL AS INTEGER ) - - + 54 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN col1 AND + 13 / col2 + + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3975
SELECT CAST( COUNT( * ) AS SIGNED ) FROM tab1 WHERE NOT 33 / + 7 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3975
SELECT CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 WHERE NOT 33 / + 7 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT ALL COUNT( * ) * - + 52 FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL COUNT ( * ) * - + 52 FROM tab1
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3977
SELECT ALL + AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL + AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - + col0 AS col1, col0 AS col2 FROM tab1 cor0
----
-51
51
-85
85
-91
91

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 AS cor0 WHERE 36 NOT IN ( + - col1 * + 57 )
----
-15
-87
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3980
SELECT ALL * FROM tab2 AS cor0 WHERE col0 < + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3980
SELECT ALL * FROM tab2 AS cor0 WHERE col0 < + CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL + - 58 AS col2 FROM tab0 AS cor0
----
-58
-58
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3983
SELECT - 38 / + + AVG ( ALL + - col0 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3983
SELECT - 38 / + + AVG ( ALL + - col0 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT 71, + 70 AS col2 FROM tab1 AS cor0
----
71
70
71
70
71
70

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 34 < ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 NOT IN ( + ( - col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-3987
SELECT SUM( + - col2 ), COUNT( * ) col0 FROM tab0
----
-156
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3987
SELECT SUM ( + - col2 ), COUNT ( * ) col0 FROM tab0
----
-156
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT ALL + COUNT( * ) * + 82 AS col2 FROM tab2
----
246

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL + COUNT ( * ) * + 82 AS col2 FROM tab2
----
246

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 57 * + - col2 + 77 * - 68 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT DISTINCT 58 * - COUNT( * ) AS col2 FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT 58 * - COUNT ( * ) AS col2 FROM tab2
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3991
SELECT + 94 col0 FROM tab2 WHERE NOT + + CAST( + - 60 AS SIGNED ) NOT BETWEEN col0 AND + col0 * + col0 - + col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3991
SELECT + 94 col0 FROM tab2 WHERE NOT + + CAST ( + - 60 AS INTEGER ) NOT BETWEEN col0 AND + col0 * + col0 - + col1
----

query I rowsort
SELECT DISTINCT - 17 + - col1 AS col2 FROM tab1
----
-22
-31
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT ALL 76 + COUNT( * ) AS col2 FROM tab1 WHERE ( + - col2 * + col2 ) NOT BETWEEN + 24 * - col1 AND NULL
----
79

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL 76 + COUNT ( * ) AS col2 FROM tab1 WHERE ( + - col2 * + col2 ) NOT BETWEEN + 24 * - col1 AND NULL
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3994
SELECT ALL - SUM( 60 ) DIV + + COUNT( * ) AS col0 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-3994
SELECT ALL - SUM ( 60 ) / + + COUNT ( * ) AS col0 FROM tab1
----
-60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - col1 + + - col1 - 21 AND - 4 * 96
----

query I rowsort
SELECT DISTINCT + - 89 AS col0 FROM tab2 AS cor0
----
-89

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( 37 * col0 * + - col1 / + col1 ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3998
SELECT DISTINCT - + col0 DIV - col2 + - ( - 72 ) FROM tab2 AS cor0
----
73
74

skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT - + col0 / - col2 + - ( - 72 ) FROM tab2 AS cor0
----
73
74

query I rowsort
SELECT DISTINCT - ( + 69 ) FROM tab0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT ALL MAX( DISTINCT col1 ) AS col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( + 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL MAX ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( + 37 )
----
NULL

query I rowsort
SELECT DISTINCT - 75 * - 4 AS col1 FROM tab0 cor0 WHERE NULL IN ( + 95 )
----

query I rowsort
SELECT ALL + + col0 + + - col2 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT DISTINCT col0 + col0 - - + col0 FROM tab2 AS cor0
----
138
192
225

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 > + 67
----
51
14
96
91
47
68

query II rowsort
SELECT ALL col0 * col0 + - col1, ( - + col0 ) AS col2 FROM tab2 AS cor0
----
2065
-46
4019
-64
5558
-75

query I rowsort
SELECT + 57 * + + 98 * - 47 * + 18 * col2 AS col2 FROM tab0 cor0
----
-222110532
-467849844
-47257560

query I rowsort
SELECT ALL ( - - col1 ) AS col0 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) >= ( ( + - 93 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4009
SELECT ALL - col1 + col2 + - col1 + - 58 + - - col0 DIV col0 * col1 FROM tab1 AS cor0
----
-37
-4
24

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL - col1 + col2 + - col1 + - 58 + - - col0 / col0 * col1 FROM tab1 AS cor0
----
-37
-4
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4010
SELECT DISTINCT - col1 col0 FROM tab1 AS cor0 WHERE - col0 + - CAST( + - 93 AS SIGNED ) NOT BETWEEN NULL AND ( - - 99 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4010
SELECT DISTINCT - col1 col0 FROM tab1 AS cor0 WHERE - col0 + - CAST ( + - 93 AS INTEGER ) NOT BETWEEN NULL AND ( - - 99 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4011
SELECT DISTINCT + 65 DIV + + 28 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-4011
SELECT DISTINCT + 65 / + + 28 FROM tab2 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4012
SELECT - - col2 - 23 + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
173
39
74

skipif mysql # not compatible
query I rowsort label-4012
SELECT - - col2 - 23 + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
173
39
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT ALL - SUM( + + col1 ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL - SUM ( + + col1 ) AS col1 FROM tab0 AS cor0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4014
SELECT ALL 19 / CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT - - 84 NOT BETWEEN + - 99 AND + - CAST( - 32 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL 19 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT - - 84 NOT BETWEEN + - 99 AND + - CAST ( - 32 AS INTEGER )
----

query I rowsort
SELECT col1 + ( - 29 ) AS col1 FROM tab2
----
22
38
48

query I rowsort
SELECT - col2 + + 84 FROM tab0
----
-15
37
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT + ( ( - COUNT( * ) ) ) + - COUNT( DISTINCT + - 1 ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-4017
SELECT + ( ( - COUNT ( * ) ) ) + - COUNT ( DISTINCT + - 1 ) FROM tab0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT - ( COUNT( * ) ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4018
SELECT - ( COUNT ( * ) ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IS NULL OR NOT NULL IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT DISTINCT + COUNT( + 85 ) * - COUNT( DISTINCT 15 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT + COUNT ( + 85 ) * - COUNT ( DISTINCT 15 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT DISTINCT + + COUNT( * ) col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4021
SELECT DISTINCT + + COUNT ( * ) col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 61 ) IS NOT NULL
----

query I rowsort
SELECT - 12 * + + col2 * - 89 + - + col2 AS col1 FROM tab1 AS cor0
----
102432
62953
72556

query I rowsort
SELECT DISTINCT + 86 * + - col0 AS col2 FROM tab1 AS cor0
----
-4386
-7310
-7826

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + - 74 NOT BETWEEN + - col2 AND NULL )
----

query I rowsort
SELECT DISTINCT - 93 AS col1 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN col0 AND ( NULL )
----

query I rowsort
SELECT - 28 AS col1 FROM tab1 cor0
----
-28
-28
-28

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( ( - ( col2 ) * col1 + col2 * col2 IS NOT NULL ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 + - + col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 85 AS col1 FROM tab2 cor0
----
85
85
85

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( col2 * + + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4033
SELECT ALL - MIN( + col0 ) DIV 90 FROM tab2 WHERE - + col2 + + col0 < + 37
----
0

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL - MIN ( + col0 ) / 90 FROM tab2 WHERE - + col2 + + col0 < + 37
----
0

query II rowsort
SELECT - 42, + col0 AS col2 FROM tab0
----
-42
15
-42
87
-42
97

query I rowsort
SELECT DISTINCT + ( 24 ) AS col2 FROM tab0 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT ALL + 51 + - COUNT( * ) FROM tab0 cor0
----
48

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL + 51 + - COUNT ( * ) FROM tab0 cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT DISTINCT COUNT( + col2 ) + - 85 AS col2 FROM tab1 AS cor0 WHERE NOT col1 >= + ( - - col2 ) * + + 24 * - col0 * - 65 * - - col1
----
-82

skipif mysql # not compatible
query I rowsort label-4037
SELECT DISTINCT COUNT ( + col2 ) + - 85 AS col2 FROM tab1 AS cor0 WHERE NOT col1 >= + ( - - col2 ) * + + 24 * - col0 * - 65 * - - col1
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4038
SELECT ALL - COUNT( * ) * - + 86 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL - COUNT ( * ) * - + 86 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4039
SELECT DISTINCT - - ( + col0 ) DIV - col0 AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT - - ( + col0 ) / - col0 AS col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + col2 + - 26 AS col0 FROM tab1
----
33
42
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4041
SELECT DISTINCT col1 * + col2 FROM tab2 WHERE NOT ( NOT NULL IN ( 30 * CAST( - 43 AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-4041
SELECT DISTINCT col1 * + col2 FROM tab2 WHERE NOT ( NOT NULL IN ( 30 * CAST ( - 43 AS INTEGER ) ) )
----

query I rowsort
SELECT - ( 38 ) FROM tab0
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT ( + COUNT( DISTINCT - col1 ) ) + + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4043
SELECT ( + COUNT ( DISTINCT - col1 ) ) + + COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT + 58 FROM tab1 WHERE ( NOT col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT 55 + + + COUNT( + 99 ) FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4045
SELECT 55 + + + COUNT ( + 99 ) FROM tab0 AS cor0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4046
SELECT + + SUM( ALL - col1 ) FROM tab0 cor0 WHERE - CAST( NULL AS SIGNED ) > - col2 + - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4046
SELECT + + SUM ( ALL - col1 ) FROM tab0 cor0 WHERE - CAST ( NULL AS INTEGER ) > - col2 + - + col2
----
NULL

query I rowsort
SELECT DISTINCT - col2 + + 13 + - 65 AS col0 FROM tab2 AS cor0
----
-110
-75
-92

query I rowsort
SELECT ALL - col2 / + col0 / - - col0 * - 79 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + col1
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 cor0 WHERE col1 BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT DISTINCT + SUM( ALL - - col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-4050
SELECT DISTINCT + SUM ( ALL - - col0 ) FROM tab0
----
199

query I rowsort
SELECT + col1 * - - col2 AS col2 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT 98 * + COUNT( * ) AS col0 FROM tab2
----
294

skipif mysql # not compatible
query I rowsort label-4052
SELECT 98 * + COUNT ( * ) AS col0 FROM tab2
----
294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4053
SELECT COUNT( * ) * - ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4053
SELECT COUNT ( * ) * - ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 BETWEEN NULL AND - + col2 / + 34
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4055
SELECT ALL - COUNT( * ) DIV - 12 + 70 * COUNT( * ) FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-4055
SELECT ALL - COUNT ( * ) / - 12 + 70 * COUNT ( * ) FROM tab1
----
210

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * 16 > - ( + - 16 )
----

query II rowsort
SELECT - col0, 99 + + - col0 * col1 AS col2 FROM tab1
----
-51
-615
-85
-326
-91
-4178

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT - MAX( - 19 ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-4058
SELECT - MAX ( - 19 ) FROM tab0
----
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col1, col1 col2 FROM tab2
----
-51
51
-67
67
-77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 96 / - 68 - - 93, - 64 col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col2 AND + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT DISTINCT + ( - MAX( - + 83 ) ) FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT + ( - MAX ( - + 83 ) ) FROM tab0 AS cor0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4062
SELECT + col0 * - CAST( - ( + col0 ) AS SIGNED ) FROM tab0 AS cor0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-4062
SELECT + col0 * - CAST ( - ( + col0 ) AS INTEGER ) FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT ALL ( + 20 ) AS col0 FROM tab1 cor0
----
20
20
20

query II rowsort
SELECT DISTINCT + col1 AS col2, - col1 AS col2 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT DISTINCT 7 * 46 * - 19 * COUNT( * ) FROM tab0 AS cor0
----
-18354

skipif mysql # not compatible
query I rowsort label-4065
SELECT DISTINCT 7 * 46 * - 19 * COUNT ( * ) FROM tab0 AS cor0
----
-18354

query I rowsort
SELECT DISTINCT - 79 AS col1 FROM tab2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT ALL + COUNT( ALL + - col0 ) + COUNT( DISTINCT 55 ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL + COUNT ( ALL + - col0 ) + COUNT ( DISTINCT 55 ) FROM tab0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4068
SELECT DISTINCT col0 - + + col0, - CAST( NULL AS SIGNED ) FROM tab2 WHERE ( NULL IS NOT NULL )
----

skipif mysql # not compatible
query II rowsort label-4068
SELECT DISTINCT col0 - + + col0, - CAST ( NULL AS INTEGER ) FROM tab2 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NULL IN ( - - col0 + + col1 )
----

query I rowsort
SELECT + 59 + - - col0 AS col1 FROM tab1 cor0
----
110
144
150

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4071
SELECT col2 * - CAST( - CAST( + 10 AS DECIMAL ) AS SIGNED ) * + CAST( NULL AS SIGNED ) + - 9 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4071
SELECT col2 * - CAST ( - CAST ( + 10 AS REAL ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) + - 9 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4072
SELECT - CAST( - col1 AS SIGNED ) + + + 14 FROM tab0 AS cor0
----
15
35
95

skipif mysql # not compatible
query I rowsort label-4072
SELECT - CAST ( - col1 AS INTEGER ) + + + 14 FROM tab0 AS cor0
----
15
35
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4073
SELECT ALL 29 - + CAST( + - col2 AS SIGNED ) FROM tab1 AS cor0
----
125
88
97

skipif mysql # not compatible
query I rowsort label-4073
SELECT ALL 29 - + CAST ( + - col2 AS INTEGER ) FROM tab1 AS cor0
----
125
88
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4074
SELECT ALL - + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL - + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - 86 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-4076
SELECT ( 21 ) DIV + ( + - col0 ) FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4076
SELECT ( 21 ) / + ( + - col0 ) FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT SUM( DISTINCT 34 ) FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-4077
SELECT SUM ( DISTINCT 34 ) FROM tab2 AS cor0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4078
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT - CAST( NULL AS SIGNED ) * + col0 IS NULL )
----

skipif mysql # not compatible
query III rowsort label-4078
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT - CAST ( NULL AS INTEGER ) * + col0 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4079
SELECT - col2 - + col0 + - col1 + + - 24 - + + col0 DIV + 6 AS col1 FROM tab1 AS cor0
----
-187
-193
-245

skipif mysql # not compatible
query I rowsort label-4079
SELECT - col2 - + col0 + - col1 + + - 24 - + + col0 / + 6 AS col1 FROM tab1 AS cor0
----
-187
-193
-245

query I rowsort
SELECT DISTINCT - col2 - + 85 AS col1 FROM tab0 AS cor0
----
-132
-184
-95

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 BETWEEN - col0 AND - + 2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4083
SELECT DISTINCT 50, COUNT( * ) * - + CAST( NULL AS SIGNED ) - - + AVG ( DISTINCT - + col2 ) * - + CAST( + COUNT( * ) AS SIGNED ) col2 FROM tab1 AS cor0 WHERE NOT + 50 IS NULL
----
50
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4083
SELECT DISTINCT 50, COUNT ( * ) * - + CAST ( NULL AS INTEGER ) - - + AVG ( DISTINCT - + col2 ) * - + CAST ( + COUNT ( * ) AS INTEGER ) col2 FROM tab1 AS cor0 WHERE NOT + 50 IS NULL
----
50
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT ALL - - COUNT( * ) * - COUNT( ALL + - col2 ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL - - COUNT ( * ) * - COUNT ( ALL + - col2 ) FROM tab1 cor0
----
-9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col0 <> - col1 * 13 * + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4086
SELECT CAST( + ( - 13 ) AS SIGNED ) * + + col1 + - - 21 FROM tab1
----
-161
-44
-590

skipif mysql # not compatible
query I rowsort label-4086
SELECT CAST ( + ( - 13 ) AS INTEGER ) * + + col1 + - - 21 FROM tab1
----
-161
-44
-590

query I rowsort
SELECT - + 19 FROM tab2 AS cor0 WHERE NOT 31 * - col1 * - 60 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> ( - col2 + 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT ALL - + SUM( + col2 ) FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4089
SELECT ALL - + SUM ( + col2 ) FROM tab2 cor0
----
-121

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + - 24 - + col1 / - 8 + + ( - 70 )
----

query I rowsort
SELECT ALL - - col2 * + - col1 * + col2 AS col2 FROM tab2 AS cor0
----
-123200
-225388
-26979

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT COUNT( col1 ) * + 30 AS col1 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-4092
SELECT COUNT ( col1 ) * + 30 AS col1 FROM tab2 AS cor0
----
90

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 41 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT ALL - + 93 * + COUNT( * ) + - - MAX( - col2 ) FROM tab2 AS cor0 WHERE NOT + 28 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4094
SELECT ALL - + 93 * + COUNT ( * ) + - - MAX ( - col2 ) FROM tab2 AS cor0 WHERE NOT + 28 >= NULL
----
NULL

query I rowsort
SELECT ALL + + 76 AS col1 FROM tab1 cor0
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 + col0 col2 FROM tab1
----
126
132
92

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 BETWEEN NULL AND ( - 72 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( + 66 ) FROM tab0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT + COUNT( * ) + - ( COUNT( * ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4099
SELECT + COUNT ( * ) + - ( COUNT ( * ) ) AS col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + + col1 + 57 col2 FROM tab1
----
151
67
85

query I rowsort
SELECT ALL + col2 + - + ( - col2 ) FROM tab1
----
118
136
192

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 * - 61 + + - 60 - - 13 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT DISTINCT - MAX( ALL + + 97 ) + COUNT( * ) AS col2 FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-4103
SELECT DISTINCT - MAX ( ALL + + 97 ) + COUNT ( * ) AS col2 FROM tab0
----
-94

query II rowsort
SELECT col0 AS col1, + 30 AS col1 FROM tab0
----
15
30
87
30
97
30

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 77 + - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - col2 + - 97 AS col2 FROM tab1 AS cor0
----
-1
-29
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT - ( COUNT( * ) ) * - + 93 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4107
SELECT - ( COUNT ( * ) ) * - + 93 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
279

query I rowsort
SELECT DISTINCT 26 * col2 * - col1 * + + 9 FROM tab0
----
-23166
-49140
-890838

query I rowsort
SELECT - ( 87 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE + 96 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - + col2 * col0 - - col2 col2 FROM tab1 AS cor0
----
-249600
-426216
-563040

query I rowsort
SELECT - col2 * + + col2 * - + 44 FROM tab1 AS cor0
----
153164
203456
405504

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT DISTINCT SUM( DISTINCT + col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4113
SELECT DISTINCT SUM ( DISTINCT + col1 ) AS col0 FROM tab2
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4114
SELECT - 12 * - ( - - CAST( + col0 AS SIGNED ) ) AS col0 FROM tab2
----
552
768
900

skipif mysql # not compatible
query I rowsort label-4114
SELECT - 12 * - ( - - CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab2
----
552
768
900

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT + COUNT( * ) * - 45 FROM tab2
----
-135

skipif mysql # not compatible
query I rowsort label-4115
SELECT + COUNT ( * ) * - 45 FROM tab2
----
-135

query I rowsort
SELECT ALL col1 * 33 AS col2 FROM tab0
----
2673
33
693

onlyif mysql # DIV for integer division: 
query I rowsort label-4117
SELECT ALL + col2 DIV 51 * + - ( 22 ) FROM tab2
----
-22
0
0

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL + col2 / 51 * + - ( 22 ) FROM tab2
----
-22
0
0

query II rowsort
SELECT - - 83 AS col2, col2 FROM tab0 cor0
----
83
10
83
47
83
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col1, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT DISTINCT + SUM( ALL - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4120
SELECT DISTINCT + SUM ( ALL - col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4121
SELECT COUNT( * ) DIV - - 32 * + 55 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4121
SELECT COUNT ( * ) / - - 32 * + 55 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - + col0 * - col1 * 86 AS col1 FROM tab1 AS cor0
----
36550
367822
61404

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT DISTINCT - SUM( ALL + col2 ) AS col1 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-4123
SELECT DISTINCT - SUM ( ALL + col2 ) AS col1 FROM tab0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4124
SELECT 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-4124
SELECT col0 + + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT ALL - COUNT( * ) FROM tab1 WHERE + col0 + + + col0 + col1 * - col1 * - 63 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4125
SELECT ALL - COUNT ( * ) FROM tab1 WHERE + col0 + + + col0 + col1 * - col1 * - 63 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4126
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - + CAST( NULL AS SIGNED ) + + col1 AND 43 * - col0
----

skipif mysql # not compatible
query III rowsort label-4126
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - + CAST ( NULL AS INTEGER ) + + col1 AND 43 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4127
SELECT ALL + + col0 DIV - + col2 + col1 - + col2 FROM tab0 cor0
----
-98
3
34

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL + + col0 / - + col2 + col1 - + col2 FROM tab0 cor0
----
-98
3
34

query II rowsort
SELECT + col1 * col2 AS col1, 70 AS col1 FROM tab0 AS cor0
----
210
70
3807
70
99
70

query I rowsort
SELECT DISTINCT + col1 * - + col2 AS col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-4130
SELECT ALL col0 DIV col2 + + + col2 FROM tab1 AS cor0
----
60
69
96

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL col0 / col2 + + + col2 FROM tab1 AS cor0
----
60
69
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4131
SELECT ALL - CAST( - - col1 AS SIGNED ) AS col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL - CAST ( - - col1 AS INTEGER ) AS col2 FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4132
SELECT DISTINCT COUNT( * ) * + - CAST( ( + CAST( NULL AS SIGNED ) ) AS DECIMAL ) FROM tab0 WHERE - 89 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4132
SELECT DISTINCT COUNT ( * ) * + - CAST ( ( + CAST ( NULL AS INTEGER ) ) AS REAL ) FROM tab0 WHERE - 89 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4133
SELECT DISTINCT * FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4133
SELECT DISTINCT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT + 24 + COUNT( * ) AS col1 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-4134
SELECT + 24 + COUNT ( * ) AS col1 FROM tab0
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 14 * - col2 * - col0 col2 FROM tab2
----
-2293760
-4567500
-681352

query I rowsort
SELECT col0 * + col0 + + - col0 + + - 84 AS col1 FROM tab2 cor0
----
1986
3948
5466

query II rowsort
SELECT ALL - col0, 39 * - + 99 AS col0 FROM tab1 AS cor0
----
-51
-3861
-85
-3861
-91
-3861

query I rowsort
SELECT + + col0 * + col1 + + - 31 AS col2 FROM tab2 cor0
----
2315
4897
4994

query II rowsort
SELECT 84, + col1 FROM tab0 AS cor0
----
84
1
84
21
84
81

query I rowsort
SELECT DISTINCT col1 * - 41 AS col2 FROM tab2 AS cor0
----
-2091
-2747
-3157

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 <= 75
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= - 69
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND - - 20 * col1 * - col1 - - 75
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 <= - - 38
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col1 * + col1 AS col1, col1 * + col2 AS col0 FROM tab0
----
1
99
441
210
6561
3807

query I rowsort
SELECT ALL + col1 * + 30 FROM tab0
----
2430
30
630

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 50 + + - col0 IS NOT NULL
----

query I rowsort
SELECT 90 * - 75 * + - col1 AS col2 FROM tab1
----
317250
33750
94500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4149
SELECT - CAST( col0 AS SIGNED ) * - col2 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-4149
SELECT - CAST ( col0 AS INTEGER ) * - col2 FROM tab0
----
705
870
9603

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL > col2 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NOT + col1 <= col2 )
----
97
1
99

query I rowsort
SELECT DISTINCT 28 * + col1 AS col1 FROM tab0
----
2268
28
588

query I rowsort
SELECT DISTINCT - col0 + + + 95 AS col1 FROM tab0
----
-2
8
80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 NOT BETWEEN + col1 AND NULL
----
46
51
23
64
77
40

query I rowsort
SELECT DISTINCT - col2 + 0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 92 + + - 61 col1 FROM tab1 AS cor0
----
-153
-153
-153

query I rowsort
SELECT ALL + 2 + col0 AS col0 FROM tab0 cor0
----
17
89
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 IS NULL AND NOT - col2 * - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4159
SELECT ALL + 55 + 64 + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT col1 + - + CAST( + 53 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL + 55 + 64 + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT col1 + - + CAST ( + 53 AS INTEGER ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4160
SELECT DISTINCT + col1 * 20 + - 61 - col0 DIV col0 AS col0 FROM tab0 AS cor0
----
-42
1558
358

skipif mysql # not compatible
query I rowsort label-4160
SELECT DISTINCT + col1 * 20 + - 61 - col0 / col0 AS col0 FROM tab0 AS cor0
----
-42
1558
358

query III rowsort
SELECT * FROM tab2 WHERE + + col2 NOT IN ( + col2 * 64, 34 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * 51 + - + 88 * + - col1 FROM tab0
----
-4961
1338
4731

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - 53 ), col2 + + 92 col1 FROM tab2
----
-53
115
-53
132
-53
150

query I rowsort
SELECT + col1 + + 89 + - 95 FROM tab2
----
45
61
71

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - col0, + 45 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4166
SELECT - CAST( NULL AS SIGNED ) FROM tab0 WHERE ( col0 + - col2 IS NOT NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4166
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE ( col0 + - col2 IS NOT NULL )
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE + + col1 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT ALL + 78 + + - col1 * col1 FROM tab1 AS cor0
----
-118
-2131
53

query I rowsort
SELECT ALL - ( 94 ) FROM tab1 AS cor0
----
-94
-94
-94

query I rowsort
SELECT 4 - + - 53 AS col2 FROM tab1 AS cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT + 66 + + COUNT( * ) FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-4171
SELECT + 66 + + COUNT ( * ) FROM tab0
----
69

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4172
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST( + col2 AS DECIMAL ) AND + - col1
----

skipif mysql # not compatible
query III rowsort label-4172
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST ( + col2 AS REAL ) AND + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4173
SELECT DISTINCT - CAST( - + col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4173
SELECT DISTINCT - CAST ( - + col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT DISTINCT - SUM( 51 ) AS col2 FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-4174
SELECT DISTINCT - SUM ( 51 ) AS col2 FROM tab0 AS cor0
----
-153

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 61 = col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( + - col0 ) * - col1 FROM tab2
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col2 ) col0 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL - col1 * + 75 AS col1 FROM tab2
----
-3825
-5025
-5775

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 61 <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-4180
SELECT ALL + 55, - 56 DIV + col2 AS col2 FROM tab0
----
55
-1
55
-5
55
0

skipif mysql # not compatible
query II rowsort label-4180
SELECT ALL + 55, - 56 / + col2 AS col2 FROM tab0
----
55
-1
55
-5
55
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4181
SELECT DISTINCT + COUNT( ALL - - col2 ) col2, COUNT( * ) * + 94 FROM tab0
----
3
282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4181
SELECT DISTINCT + COUNT ( ALL - - col2 ) col2, COUNT ( * ) * + 94 FROM tab0
----
3
282

query II rowsort
SELECT ALL col0 AS col1, - col0 FROM tab2
----
46
-46
64
-64
75
-75

query II rowsort
SELECT DISTINCT - 29 AS col1, + 2 * col2 FROM tab2
----
-29
116
-29
46
-29
80

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < col2 * - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 50 < + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT DISTINCT + COUNT( * ) * - 32 + + ( - - 76 ) AS col2 FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT + COUNT ( * ) * - 32 + + ( - - 76 ) AS col2 FROM tab1 AS cor0
----
-20

query II rowsort
SELECT col1, + col1 FROM tab2 AS cor0 WHERE NOT - 70 <> + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT COUNT( * ) + + 72 * 83 FROM tab2 cor0
----
5979

skipif mysql # not compatible
query I rowsort label-4188
SELECT COUNT ( * ) + + 72 * 83 FROM tab2 cor0
----
5979

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT ( NULL IS NOT NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4191
SELECT ALL - + 27 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL - + 27 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query II rowsort label-4192
SELECT DISTINCT - ( + 71 ) * - - ( + ( - COUNT( * ) ) ) AS col1, COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
639
9

skipif mysql # not compatible
query II rowsort label-4192
SELECT DISTINCT - ( + 71 ) * - - ( + ( - COUNT ( * ) ) ) AS col1, COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
639
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * - - col0 / + - 58 <> NULL
----

query I rowsort
SELECT ALL col2 + 7 AS col1 FROM tab2 AS cor0
----
30
47
65

query I rowsort
SELECT + 6 AS col0 FROM tab0 cor0
----
6
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 * + col1 col1 FROM tab0 AS cor0
----
308367
4410
99

query I rowsort
SELECT + - col2 * + col0 * + col1 * - col2 AS col2 FROM tab0 AS cor0
----
182700
2683935
950697

query II rowsort
SELECT DISTINCT + col2 * col1 AS col0, 93 AS col1 FROM tab2 AS cor0
----
1173
93
3080
93
3886
93

onlyif mysql # DIV for integer division: 
query II rowsort label-4199
SELECT ALL + col1 DIV - col0 AS col1, col2 AS col0 FROM tab1 AS cor0
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-4199
SELECT ALL + col1 / - col0 AS col1, col2 AS col0 FROM tab1 AS cor0
----
0
59
0
68
0
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4200
SELECT * FROM tab2 AS cor0 WHERE ( - 40 ) IN ( 35 * 67, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4200
SELECT * FROM tab2 AS cor0 WHERE ( - 40 ) IN ( 35 * 67, CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col1 + + - col0 AS col0 FROM tab0
----
-66
-96
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4202
SELECT DISTINCT CAST( - + col0 AS SIGNED ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4202
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL + 84 + - + 74 - - col1 + - + col0 * - col1 AS col0 FROM tab0
----
108
1306
1858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 + + 24 col1 FROM tab0 cor0
----
80
80
80

query I rowsort
SELECT + + col1 + + 85 AS col0 FROM tab2 AS cor0
----
136
152
162

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT + ( SUM( DISTINCT 48 ) ) AS col2 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-4207
SELECT + ( SUM ( DISTINCT 48 ) ) AS col2 FROM tab1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT DISTINCT MIN( - 62 ) FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-4208
SELECT DISTINCT MIN ( - 62 ) FROM tab0
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4209
SELECT CAST( + + MIN( DISTINCT col1 ) AS SIGNED ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4209
SELECT CAST ( + + MIN ( DISTINCT col1 ) AS INTEGER ) AS col1 FROM tab2
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4210
SELECT COUNT( * ) / - 8 * - CAST( NULL AS SIGNED ) + + - COUNT( * ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4210
SELECT COUNT ( * ) / - 8 * - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 * + + 40 FROM tab1 AS cor0
----
2040
3400
3640

onlyif mysql # DIV for integer division: 
query I rowsort label-4212
SELECT DISTINCT - + 65 DIV - 24 AS col2 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-4212
SELECT DISTINCT - + 65 / - 24 AS col2 FROM tab0 AS cor0
----
2

query I rowsort
SELECT ALL + ( + - col1 ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 < 33 + - + 3
----
64
77
40
75
67
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + + col2 ) col1 FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT 49 * - - ( - col1 ), - col0 AS col2 FROM tab2
----
-2499
-46
-3283
-75
-3773
-64

query I rowsort
SELECT ALL + + col1 FROM tab2 WHERE - 18 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT ALL MAX( DISTINCT - + col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL MAX ( DISTINCT - + col0 ) FROM tab0
----
-15

query I rowsort
SELECT DISTINCT - ( + - 2 ) + - 6 AS col0 FROM tab0
----
-4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 * - 41 * - col2 = NULL
----

query I rowsort
SELECT DISTINCT + ( - col2 ) * + col1 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 43 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT - MIN( + - col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4224
SELECT - MIN ( + - col0 ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL + 2 AS col1 FROM tab2 cor0
----
2
2
2

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 / + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4227
SELECT DISTINCT col1, 43 - - col0 * + 54 / CAST( NULL AS SIGNED ) + + col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-4227
SELECT DISTINCT col1, 43 - - col0 * + 54 / CAST ( NULL AS INTEGER ) + + col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

query II rowsort
SELECT ALL + col0, + 85 FROM tab0
----
15
85
87
85
97
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT DISTINCT + MIN( - col0 ) + - 59 FROM tab1
----
-150

skipif mysql # not compatible
query I rowsort label-4229
SELECT DISTINCT + MIN ( - col0 ) + - 59 FROM tab1
----
-150

query I rowsort
SELECT 74 + - 20 FROM tab1
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 + - col0 col2 FROM tab0
----
-45
-95
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT + COUNT( * ) FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-4232
SELECT + COUNT ( * ) FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND + col1
----
0

query I rowsort
SELECT DISTINCT + col2 + + col0 + - 83 AS col0 FROM tab0 AS cor0
----
-21
113
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT COUNT( * ) + + - 41 FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-4234
SELECT COUNT ( * ) + + - 41 FROM tab1 AS cor0
----
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 62 + col1 col0 FROM tab0 cor0
----
143
63
83

query I rowsort
SELECT DISTINCT + col1 + - - col1 AS col1 FROM tab2 AS cor0
----
102
134
154

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col1 * - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT ( + ( - 4 ) ) AS col1 FROM tab1 AS cor0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4239
SELECT ALL + - 63 AS col0, - CAST( + col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
-63
-1
-63
-21
-63
-81

skipif mysql # not compatible
query II rowsort label-4239
SELECT ALL + - 63 AS col0, - CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
-63
-1
-63
-21
-63
-81

query I rowsort
SELECT DISTINCT col1 * - 98 FROM tab1 AS cor0 WHERE ( NULL < - col0 - + col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 12 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, col1 AS col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query II rowsort
SELECT DISTINCT - + col0, + col2 AS col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * col2 - + 69 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4245
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) * - 20 > + + col0
----

skipif mysql # not compatible
query I rowsort label-4245
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) * - 20 > + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT DISTINCT MIN( ALL + ( + 89 ) ) col1 FROM tab2
----
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4246
SELECT DISTINCT MIN ( ALL + ( + 89 ) ) col1 FROM tab2
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4247
SELECT DISTINCT * FROM tab1 WHERE NOT + - CAST( + col2 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4247
SELECT DISTINCT * FROM tab1 WHERE NOT + - CAST ( + col2 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col1 > 44
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4249
SELECT DISTINCT + 64 DIV + col2 + + 38 FROM tab1
----
38
39

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT + 64 / + col2 + + 38 FROM tab1
----
38
39

query I rowsort
SELECT DISTINCT - 29 * col0 AS col2 FROM tab2
----
-1334
-1856
-2175

query I rowsort
SELECT DISTINCT - 29 * + col0 * + col2 * - 39 FROM tab2 AS cor0
----
1196598
2895360
4919850

query I rowsort
SELECT DISTINCT - 97 FROM tab1 AS cor0 WHERE - 13 IS NOT NULL
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT DISTINCT + SUM( DISTINCT - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT + SUM ( DISTINCT - col1 ) FROM tab0
----
-103

query II rowsort
SELECT ALL col2 AS col0, col2 AS col2 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT - - COUNT( * ) * + 43 AS col2 FROM tab2 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4255
SELECT - - COUNT ( * ) * + 43 AS col2 FROM tab2 WHERE NOT NULL > NULL
----
0

query I rowsort
SELECT ALL col2 * col1 * - - ( 50 ) FROM tab1
----
14750
159800
67200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4257
SELECT ALL + ( + 28 ) DIV + 63 * + SUM( + col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL + ( + 28 ) / + 63 * + SUM ( + col0 ) FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4258
SELECT ALL - col2 * - - 78 + - col0 AS col0, + CAST( NULL AS SIGNED ) * + + col2 AS col0 FROM tab2 AS cor0
----
-1840
NULL
-3184
NULL
-4599
NULL

skipif mysql # not compatible
query II rowsort label-4258
SELECT ALL - col2 * - - 78 + - col0 AS col0, + CAST ( NULL AS INTEGER ) * + + col2 AS col0 FROM tab2 AS cor0
----
-1840
NULL
-3184
NULL
-4599
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT - - ( MAX( ALL + col0 ) ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4259
SELECT - - ( MAX ( ALL + col0 ) ) AS col0 FROM tab0 AS cor0
----
97

query II rowsort
SELECT ALL - 54 AS col1, - col0 - col1 AS col2 FROM tab1 AS cor0
----
-54
-138
-54
-65
-54
-90

query I rowsort
SELECT - - ( + - col2 ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL - 89 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT DISTINCT + 17 * + COUNT( * ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT + 17 * + COUNT ( * ) FROM tab0
----
51

query III rowsort
SELECT * FROM tab1 WHERE NOT + 16 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - - 59 AS col1 FROM tab1
----
2773
295
826

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= - col0 * col0
----

query I rowsort
SELECT ALL - col2 * + 23 * - col2 / 72 AS col1 FROM tab1 WHERE NULL IN ( - col1 + col2, 60, - col0 / col2 )
----

query II rowsort
SELECT ALL - 96 + + - col1 AS col1, 7 FROM tab1
----
-101
7
-110
7
-143
7

query I rowsort
SELECT + - 72 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-72
-72
-72

query I rowsort
SELECT DISTINCT - - 62 + 4 FROM tab1 AS cor0
----
66

query I rowsort
SELECT + 1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 44 IS NULL
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4272
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 + col0 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4272
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 + col0 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - ( + + col2 ) AS col2 FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 AS cor0 WHERE col2 - - col0 IS NOT NULL
----
1
21
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 + + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 58 - + 31 AS col2 FROM tab0 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT DISTINCT - COUNT( * ) + 37 * + 66 FROM tab2 AS cor0
----
2439

skipif mysql # not compatible
query I rowsort label-4277
SELECT DISTINCT - COUNT ( * ) + 37 * + 66 FROM tab2 AS cor0
----
2439

query I rowsort
SELECT ALL + + ( + col1 ) - + - col1 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT - + col2 * - + 16 * - 12 + - col0 + + col1 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
-11144
-4411
-7667

query III rowsort
SELECT * FROM tab1 WHERE NULL <> - 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT ALL + 96 - COUNT( * ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL + 96 - COUNT ( * ) FROM tab0
----
93

query I rowsort
SELECT ALL col2 * - col0 * - col1 AS col0 FROM tab1
----
25075
290836
68544

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT ( - COUNT( * ) ) AS col2 FROM tab1 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4283
SELECT ( - COUNT ( * ) ) AS col2 FROM tab1 WHERE NULL > NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT - col0 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 * col0 col1 FROM tab0
----
4872
5432
840

onlyif mysql # DIV for integer division: 
query I rowsort label-4286
SELECT - 4 DIV + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4286
SELECT - 4 / + col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4287
SELECT - 2, + MAX( + col1 ) AS col0 FROM tab2 AS cor0
----
-2
77

skipif mysql # not compatible
query II rowsort label-4287
SELECT - 2, + MAX ( + col1 ) AS col0 FROM tab2 AS cor0
----
-2
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + + 71 BETWEEN - col2 AND 54
----

query I rowsort
SELECT - ( - col0 ) * 89 AS col0 FROM tab2 WHERE NOT NULL > - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4290
SELECT ALL 89 DIV - col0 AS col1 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL 89 / - col0 AS col1 FROM tab0
----
-1
-5
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 * col0 col1 FROM tab2
----
1656
2304
2700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 90 * + col2 col2 FROM tab1
----
5310
6120
8640

query II rowsort
SELECT - ( - ( - - 27 ) ) AS col0, 38 * - ( - - 35 ) FROM tab1 AS cor0
----
27
-1330
27
-1330
27
-1330

query I rowsort
SELECT DISTINCT + 2 + + 2 FROM tab0 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT ALL + MAX( ALL + - col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4295
SELECT ALL + MAX ( ALL + - col1 ) FROM tab1 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 col2 FROM tab0 AS cor0
----
-74

query I rowsort
SELECT DISTINCT col1 * + - 66 * + col1 FROM tab2 AS cor0
----
-171666
-296274
-391314

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT DISTINCT + 63 * - COUNT( * ) FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-4298
SELECT DISTINCT + 63 * - COUNT ( * ) FROM tab2
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT - 75 + MAX( + col2 ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-4299
SELECT - 75 + MAX ( + col2 ) FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT - + COUNT( * ) col1 FROM tab0 WHERE - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4300
SELECT - + COUNT ( * ) col1 FROM tab0 WHERE - col1 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT DISTINCT - 80 + - COUNT( * ) FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT - 80 + - COUNT ( * ) FROM tab0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT ALL COUNT( * ) + - COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL 33 FROM tab0 WHERE NULL BETWEEN - - col0 / + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT MAX( + col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4304
SELECT MAX ( + col1 ) AS col2 FROM tab0
----
81

query III rowsort
SELECT * FROM tab1 WHERE - - col0 * - - 74 * col2 - + + col0 + + col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4306
SELECT * FROM tab2 AS cor0 WHERE - CAST( NULL AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query III rowsort label-4306
SELECT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS REAL ) = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4307
SELECT 18 - 98 col1, - 37 + + COUNT( * ) FROM tab0
----
-80
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4307
SELECT 18 - 98 col1, - 37 + + COUNT ( * ) FROM tab0
----
-80
-34

query I rowsort
SELECT - 63 * + col1 + col1 FROM tab2
----
-3162
-4154
-4774

query I rowsort
SELECT DISTINCT 44 + + col1 AS col2 FROM tab1 AS cor0
----
49
58
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 90 ) + col2 col2 FROM tab1 AS cor0
----
149
158
186

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 80 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4312
SELECT ALL + col1 DIV col1 - col2 FROM tab0 AS cor0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL + col1 / col1 - col2 FROM tab0 AS cor0
----
-46
-9
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT ALL - ( COUNT( DISTINCT col0 ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL - ( COUNT ( DISTINCT col0 ) ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + 4 AS col1 FROM tab2 AS cor0 WHERE NULL = + 45 - - - col2 * - ( col0 )
----

query I rowsort
SELECT - ( + + ( + + col0 ) ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL - col2 - - + ( + + 36 ) AS col2 FROM tab2 AS cor0
----
-22
-4
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4317
SELECT CAST( - col0 AS SIGNED ) * + + ( - 6 ) FROM tab1
----
306
510
546

skipif mysql # not compatible
query I rowsort label-4317
SELECT CAST ( - col0 AS INTEGER ) * + + ( - 6 ) FROM tab1
----
306
510
546

query I rowsort
SELECT 81 * col1 FROM tab1
----
1134
3807
405

query I rowsort
SELECT ALL ( 93 ) AS col0 FROM tab2
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT + COUNT( ALL + col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4320
SELECT + COUNT ( ALL + col2 ) AS col1 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 33 + - - 44 - 70 > NULL
----

query I rowsort
SELECT DISTINCT + ( - 21 ) FROM tab2 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT DISTINCT + SUM( + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT + SUM ( + col1 ) FROM tab0 AS cor0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4324
SELECT ALL - MIN( 37 ) * CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL - MIN ( 37 ) * CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-4325
SELECT + 63 AS col1, + 56 * + COUNT( * ) col0, 67 FROM tab1 AS cor0
----
63
168
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-4325
SELECT + 63 AS col1, + 56 * + COUNT ( * ) col0, 67 FROM tab1 AS cor0
----
63
168
67

query I rowsort
SELECT DISTINCT + col0 * + col2 + - col2 - col1 * - col0 AS col0 FROM tab1 AS cor0
----
10397
5381
5514

query I rowsort
SELECT DISTINCT - 66 * + + col1 - - - col2 FROM tab2 AS cor0
----
-3389
-4480
-5122

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT DISTINCT MAX( DISTINCT 45 ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-4328
SELECT DISTINCT MAX ( DISTINCT 45 ) FROM tab2
----
45

query I rowsort
SELECT DISTINCT + 41 * col2 FROM tab1
----
2419
2788
3936

query I rowsort
SELECT DISTINCT col0 * + col1 + + col1 FROM tab2
----
2397
5005
5092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4331
SELECT ALL CAST( - MIN( 67 ) AS SIGNED ) FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-4331
SELECT ALL CAST ( - MIN ( 67 ) AS INTEGER ) FROM tab1 AS cor0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT ALL + COUNT( + col1 ) * + 15 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL + COUNT ( + col1 ) * + 15 FROM tab2 AS cor0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4333
SELECT ALL COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab0
----
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( ( NULL ) IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * - + col0 AS col2, + col1 col0 FROM tab1
----
-4896
14
-5015
5
-6188
47

query I rowsort
SELECT ALL - 29 FROM tab0 WHERE + col2 IS NOT NULL
----
-29
-29
-29

query I rowsort
SELECT DISTINCT - + 97 + col2 - - + ( + - 86 ) FROM tab1 AS cor0
----
-115
-124
-87

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 8 = - + ( col1 )
----

query I rowsort
SELECT DISTINCT - + ( + col1 ) + + col0 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT 80 + + + col2 * - + col2 * + col1 FROM tab0 AS cor0
----
-178849
-2020
-9721

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4341
SELECT - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT - col2 * 33 AS col1 FROM tab0
----
-1551
-3267
-330

query II rowsort
SELECT DISTINCT - col1 AS col1, - ( - col2 ) + - col1 * col0 AS col0 FROM tab2
----
-51
-2323
-67
-4967
-77
-4888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4344
SELECT + COUNT( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4344
SELECT + COUNT ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT + - MIN( - col2 ) AS col2 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4345
SELECT + - MIN ( - col2 ) AS col2 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT ALL + COUNT( * ) + COUNT( * ) * - ( + COUNT( * ) ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4346
SELECT ALL + COUNT ( * ) + COUNT ( * ) * - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT ALL 16 - + 64 AS col0 FROM tab2 AS cor0
----
-48
-48
-48

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) < - 66 + + - col0
----

query I rowsort
SELECT ALL 61 + + 28 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 WHERE ( NOT 56 BETWEEN + ( - - col2 ) - - col2 AND - col2 )
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4351
SELECT DISTINCT + 7 - - col0 * + CAST( - col0 AS SIGNED ) * 40 FROM tab1 AS cor0
----
-104033
-288993
-331233

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT + 7 - - col0 * + CAST ( - col0 AS INTEGER ) * 40 FROM tab1 AS cor0
----
-104033
-288993
-331233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4352
SELECT + + COUNT( * ) - + CAST( + + 4 AS SIGNED ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4352
SELECT + + COUNT ( * ) - + CAST ( + + 4 AS INTEGER ) FROM tab2 AS cor0
----
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4354
SELECT ALL + CAST( NULL AS DECIMAL ) AS col0, 15 + + - CAST( - ( - - col2 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
38
NULL
55
NULL
73

skipif mysql # not compatible
query II rowsort label-4354
SELECT ALL + CAST ( NULL AS REAL ) AS col0, 15 + + - CAST ( - ( - - col2 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
38
NULL
55
NULL
73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4355
SELECT - - col0 FROM tab2 WHERE NOT - - CAST( NULL AS DECIMAL ) + col0 IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4355
SELECT - - col0 FROM tab2 WHERE NOT - - CAST ( NULL AS REAL ) + col0 IS NOT NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4356
SELECT ( - col0 ) DIV + col0 * + col2 DIV + col2 + + - 49 col0 FROM tab1
----
-50
-50
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4356
SELECT ( - col0 ) / + col0 * + col2 / + col2 + + - 49 col0 FROM tab1
----
-50
-50
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-4357
SELECT ( - col0 ) DIV + + col2 AS col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4357
SELECT ( - col0 ) / + + col2 AS col2 FROM tab2
----
-1
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4358
SELECT + col1 DIV ( + col1 ) FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4358
SELECT + col1 / ( + col1 ) FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 29 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT ( + + ( - col2 ) ) AS col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL + col1 + + - 22 + + col2 AS col0 FROM tab2 AS cor0
----
103
52
95

query II rowsort
SELECT + - 47 AS col0, 61 FROM tab0 AS cor0
----
-47
61
-47
61
-47
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 0 * col2 col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 + col1 - + col0 * + - col0 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4366
SELECT ALL - CAST( - + MAX( col1 ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL - CAST ( - + MAX ( col1 ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4367
SELECT ALL col2 DIV + 13 AS col1 FROM tab2 AS cor0 WHERE NOT + 89 IS NULL
----
1
3
4

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL col2 / + 13 AS col1 FROM tab2 AS cor0 WHERE NOT + 89 IS NULL
----
1
3
4

query I rowsort
SELECT DISTINCT + 67 * - col1 AS col2 FROM tab1
----
-3149
-335
-938

query III rowsort
SELECT * FROM tab0 WHERE - 56 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT ALL - 85 + - ( COUNT( - + col1 ) ) FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-4370
SELECT ALL - 85 + - ( COUNT ( - + col1 ) ) FROM tab2
----
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab0 WHERE NULL <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4373
SELECT col0 AS col1, - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-4373
SELECT col0 AS col1, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

query III rowsort
SELECT * FROM tab2 WHERE + - 48 = - col2
----

query II rowsort
SELECT - col2 AS col2, - col2 AS col0 FROM tab0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4376
SELECT DISTINCT 63 DIV col0 + - 69 FROM tab0
----
-65
-69

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT 63 / col0 + - 69 FROM tab0
----
-65
-69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - ( + col2 ) AND + 35 * + + ( ( + col1 ) ) * + col0 + + 1 + + col2
----

query II rowsort
SELECT + col2, + col0 AS col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query I rowsort
SELECT 36 FROM tab2 AS cor0 WHERE + 12 * + - ( - + ( col0 ) ) NOT IN ( + + 30 + - col1 * + col2 )
----
36
36
36

query I rowsort
SELECT DISTINCT + 83 + col1 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + - col1 > - - col2
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE + 16 IS NULL
----

query I rowsort
SELECT ALL col0 * - 17 - 35 - + - col0 + + col1 * + col1 FROM tab0 AS cor0
----
-1586
-986
6286

query I rowsort
SELECT DISTINCT - 29 FROM tab2 AS cor0 WHERE col1 * - + col0 + - 30 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 ) BETWEEN 20 AND + 21 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT + COUNT( + col2 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4386
SELECT + COUNT ( + col2 ) col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + 41 * 41 FROM tab0
----
1681
1681
1681

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT ALL - ( + COUNT( * ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4388
SELECT ALL - ( + COUNT ( * ) ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 ) BETWEEN col0 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE NOT - col2 - - col1 <= 97 + - - col1
----

query II rowsort
SELECT + col0, + 21 + col1 AS col1 FROM tab2 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT + COUNT( * ) * 15 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-4392
SELECT + COUNT ( * ) * 15 FROM tab0
----
45

query III rowsort
SELECT * FROM tab1 WHERE + col0 > ( NULL )
----

query I rowsort
SELECT ALL - col1 + + 33 FROM tab1
----
-14
19
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + ( + 55 ) col2 FROM tab0
----
-4785
-5335
-825

query III rowsort
SELECT * FROM tab1 WHERE col0 * col0 BETWEEN NULL AND col1 - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT SUM( col1 ) * + 20 + - 10 FROM tab1
----
1310

skipif mysql # not compatible
query I rowsort label-4397
SELECT SUM ( col1 ) * + 20 + - 10 FROM tab1
----
1310

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4398
SELECT DISTINCT * FROM tab0 WHERE CAST( col1 AS SIGNED ) / col2 + - col0 <> NULL
----

skipif mysql # not compatible
query III rowsort label-4398
SELECT DISTINCT * FROM tab0 WHERE CAST ( col1 AS INTEGER ) / col2 + - col0 <> NULL
----

query I rowsort
SELECT col0 * 25 AS col1 FROM tab0
----
2175
2425
375

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT ( + SUM( ALL col0 ) ) + COUNT( * ) FROM tab2
----
188

skipif mysql # not compatible
query I rowsort label-4400
SELECT ( + SUM ( ALL col0 ) ) + COUNT ( * ) FROM tab2
----
188

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE + col2 IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT col2 * 64 FROM tab1
----
3776
4352
6144

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT IN ( + 18 * 0 )
----

query I rowsort
SELECT 6 * - ( - 21 ) + + col0 FROM tab0
----
141
213
223

query I rowsort
SELECT 37 * + col1 + + 9 FROM tab1
----
1748
194
527

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col0 FROM tab1
----
90
90
90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 * col0 + col1 / col2 ) = ( NULL )
----

query I rowsort
SELECT ALL col1 * 67 FROM tab1
----
3149
335
938

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT ALL - MIN( col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL - MIN ( col1 ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT DISTINCT + MIN( + 62 ) AS col2 FROM tab0 WHERE NOT + 10 BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4410
SELECT DISTINCT + MIN ( + 62 ) AS col2 FROM tab0 WHERE NOT + 10 BETWEEN ( NULL ) AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT - COUNT( ALL - col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4411
SELECT - COUNT ( ALL - col1 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4412
SELECT - CAST( NULL AS SIGNED ) col2 FROM tab0 WHERE NOT ( col1 * + col0 ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4412
SELECT - CAST ( NULL AS INTEGER ) col2 FROM tab0 WHERE NOT ( col1 * + col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 47 * + col0 + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4414
SELECT - 12 DIV + COUNT( * ) + - 38 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-4414
SELECT - 12 / + COUNT ( * ) + - 38 FROM tab2
----
-42

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 61 * - 73 + - 7 AS col2 FROM tab0 WHERE + 27 / ( + col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col2 ) <= ( - col1 * + col1 )
----
97
1
99

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 0 * 14 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4420
SELECT col0 + - CAST( 86 AS SIGNED ) FROM tab2
----
-11
-22
-40

skipif mysql # not compatible
query I rowsort label-4420
SELECT col0 + - CAST ( 86 AS INTEGER ) FROM tab2
----
-11
-22
-40

query I rowsort
SELECT DISTINCT + col2 * - 75 FROM tab2
----
-1725
-3000
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT DISTINCT + 8 * - COUNT( * ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT + 8 * - COUNT ( * ) FROM tab1
----
-24

query I rowsort
SELECT 68 - col0 FROM tab0
----
-19
-29
53

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4424
SELECT DISTINCT CAST( col2 AS DECIMAL ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4424
SELECT DISTINCT CAST ( col2 AS REAL ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT SUM( 18 ) + 29 FROM tab2 cor0
----
83

skipif mysql # not compatible
query I rowsort label-4425
SELECT SUM ( 18 ) + 29 FROM tab2 cor0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4426
SELECT ALL + col2 + - 36 DIV ( 87 ) AS col1 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4426
SELECT ALL + col2 + - 36 / ( 87 ) AS col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4427
SELECT DISTINCT ( col0 ) / + col1 + + CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE NULL > 15 / 41
----

skipif mysql # not compatible
query I rowsort label-4427
SELECT DISTINCT ( col0 ) / + col1 + + CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE NULL > 15 / 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT + COUNT( * ) + 62 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-4428
SELECT + COUNT ( * ) + 62 FROM tab1 AS cor0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4429
SELECT - col0 * - col0 + col1 DIV col2 FROM tab2 AS cor0
----
2118
4097
5626

skipif mysql # not compatible
query I rowsort label-4429
SELECT - col0 * - col0 + col1 / col2 FROM tab2 AS cor0
----
2118
4097
5626

query III rowsort
SELECT * FROM tab0 WHERE NULL <= - 28 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT ALL 22 * COUNT( * ) AS col1 FROM tab0 WHERE col1 * + col2 IS NOT NULL
----
66

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL 22 * COUNT ( * ) AS col1 FROM tab0 WHERE col1 * + col2 IS NOT NULL
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4432
SELECT - col0 * CAST( + col2 + + col0 AS SIGNED ) col2 FROM tab0 AS cor0
----
-19012
-8439
-930

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4432
SELECT - col0 * CAST ( + col2 + + col0 AS INTEGER ) col2 FROM tab0 AS cor0
----
-19012
-8439
-930

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4433
SELECT DISTINCT CAST( - ( 3 ) AS DECIMAL ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 < NULL
----

skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT CAST ( - ( 3 ) AS REAL ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( 60 ) * - 37 ) < NULL
----

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT 81 * + col0 IS NULL
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * 65 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT DISTINCT COUNT( * ) * - + SUM( DISTINCT + 66 ) AS col2 FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-4438
SELECT DISTINCT COUNT ( * ) * - + SUM ( DISTINCT + 66 ) AS col2 FROM tab1
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-4439
SELECT ALL - 85 DIV + col1 AS col0 FROM tab0
----
-1
-4
-85

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL - 85 / + col1 AS col0 FROM tab0
----
-1
-4
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4440
SELECT DISTINCT CAST( + col2 AS SIGNED ) * col1 FROM tab0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-4440
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * col1 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT ( + - MIN( col2 ) ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-4441
SELECT ( + - MIN ( col2 ) ) AS col0 FROM tab2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4442
SELECT ALL ( + CAST( col0 AS SIGNED ) ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL ( + CAST ( col0 AS INTEGER ) ) FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4443
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4443
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4444
SELECT * FROM tab0 WHERE NOT 60 / col1 + ( col1 ) < col0 - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4444
SELECT * FROM tab0 WHERE NOT 60 / col1 + ( col1 ) < col0 - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( col2 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 96 * + col2 FROM tab1 cor0
----
-5664
-6528
-9216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4447
SELECT - COUNT( ALL + 91 ) DIV + 86 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4447
SELECT - COUNT ( ALL + 91 ) / + 86 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN col1 AND ( 14 + - 82 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 10 / 31 = ( col0 + + 36 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT DISTINCT MAX( DISTINCT col0 ) * - COUNT( * ) FROM tab1 AS cor0 WHERE - col1 * - col2 * - 15 >= - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-4451
SELECT DISTINCT MAX ( DISTINCT col0 ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE - col1 * - col2 * - 15 >= - 14
----
NULL

query I rowsort
SELECT ALL - - 64 + col0 AS col2 FROM tab2 AS cor0
----
110
128
139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 73 ) + + ( - 57 ) * - 76 col0 FROM tab2 AS cor0
----
4405
4405
4405

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT DISTINCT - + COUNT( * ) col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4454
SELECT DISTINCT - + COUNT ( * ) col0 FROM tab0 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1 * col2 )
----

query I rowsort
SELECT col2 / 0 + + 4 * 51 AS col2 FROM tab2 AS cor0 WHERE ( col2 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 = + + col0 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 39 + - - ( - col0 ) FROM tab2 AS cor0
----
-103
-114
-85

query I rowsort
SELECT + col1 + + 89 * col0 AS col0 FROM tab0 cor0
----
1416
7764
8634

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT 54 * - ( COUNT( * ) ) FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-4460
SELECT 54 * - ( COUNT ( * ) ) FROM tab0
----
-162

query I rowsort
SELECT col2 * + ( + col1 ) * + 23 FROM tab1
----
30912
6785
73508

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT COUNT( * ) * + COUNT( * ) col2 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4462
SELECT COUNT ( * ) * + COUNT ( * ) col2 FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4463
SELECT * FROM tab1 WHERE + 67 > ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4463
SELECT * FROM tab1 WHERE + 67 > ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4464
SELECT + 56 * - 66 AS col0, col1 DIV - + col0 - col1 AS col1 FROM tab2
----
-3696
-52
-3696
-67
-3696
-78

skipif mysql # not compatible
query II rowsort label-4464
SELECT + 56 * - 66 AS col0, col1 / - + col0 - col1 AS col1 FROM tab2
----
-3696
-52
-3696
-67
-3696
-78

query I rowsort
SELECT ALL + col0 * 27 + + col1 AS col1 FROM tab2 WHERE NOT - 90 * + 1 * ( col1 ) NOT BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 91 col2 FROM tab1
----
-4641
-7735
-8281

query II rowsort
SELECT DISTINCT - + col0 + - col2, - col1 AS col0 FROM tab0 AS cor0
----
-196
-1
-62
-81
-97
-21

query II rowsort
SELECT ALL - col0 + - 84, - 91 + + 20 AS col0 FROM tab2 AS cor0
----
-130
-71
-148
-71
-159
-71

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col1 ) IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT DISTINCT + COUNT( * ) + + 10 FROM tab0 cor0
----
13

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT + COUNT ( * ) + + 10 FROM tab0 cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT - SUM( + - 74 ) FROM tab0 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-4471
SELECT - SUM ( + - 74 ) FROM tab0 AS cor0
----
222

query II rowsort
SELECT DISTINCT + 66 * col0 AS col2, 32 AS col2 FROM tab2 AS cor0
----
3036
32
4224
32
4950
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4473
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) * 51 * + COUNT( 3 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4473
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) * 51 * + COUNT ( 3 ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 82 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT DISTINCT + col2 * - - 31 AS col0 FROM tab1
----
1829
2108
2976

query I rowsort
SELECT - 49 * + - col1 AS col2 FROM tab1 AS cor0
----
2303
245
686

query I rowsort
SELECT ALL + + col2 * - 81 * + + col1 * - + col1 AS col2 FROM tab1 AS cor0
----
119475
12167172
1524096

query II rowsort
SELECT col0 AS col0, + col2 AS col1 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT ALL col1 * - col0 * + 65 AS col1 FROM tab2
----
-152490
-320320
-326625

query I rowsort
SELECT ALL - col1 * + + 55 FROM tab2
----
-2805
-3685
-4235

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + col1 * + 28 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL > ( - 81 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT DISTINCT 14 * - + COUNT( * ) AS col2 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-4483
SELECT DISTINCT 14 * - + COUNT ( * ) AS col2 FROM tab0
----
-42

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - 50 * - 47 + - col1 FROM tab1 AS cor0
----
-2355
-2364
-2397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4486
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4486
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT - 70 * + + 83 AS col1 FROM tab1 cor0
----
-5810
-5810
-5810

query II rowsort
SELECT ALL + col0, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT DISTINCT - + SUM( DISTINCT - + col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT - + SUM ( DISTINCT - + col0 ) AS col0 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT 8 + + - COUNT( * ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4490
SELECT 8 + + - COUNT ( * ) FROM tab1 AS cor0
----
5

query III rowsort
SELECT * FROM tab2 WHERE - col0 NOT BETWEEN - col0 / + col1 AND + + 59
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4492
SELECT - - CAST( NULL AS SIGNED ) + col1 FROM tab0 WHERE + col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4492
SELECT - - CAST ( NULL AS INTEGER ) + col1 FROM tab0 WHERE + col0 IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * 58 + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT - MIN( - col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4494
SELECT - MIN ( - col1 ) AS col2 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT ALL - - 42 + + + 2 * + SUM( DISTINCT 51 ) col2 FROM tab2 AS cor0
----
144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4495
SELECT ALL - - 42 + + + 2 * + SUM ( DISTINCT 51 ) col2 FROM tab2 AS cor0
----
144

query I rowsort
SELECT DISTINCT col2 + col1 FROM tab1 cor0 WHERE NOT ( + col1 NOT IN ( - + ( - 31 ) ) )
----

query I rowsort
SELECT + ( col2 ) * - - col2 + + 10 + - + 55 * - col0 AS col0 FROM tab2 AS cor0
----
3069
5130
7499

onlyif mysql # DIV for integer division: 
query II rowsort label-4498
SELECT ALL col1 - - ( col2 ) AS col2, - col0 DIV + ( + 4 ) FROM tab0 AS cor0
----
100
-24
128
-3
31
-21

skipif mysql # not compatible
query II rowsort label-4498
SELECT ALL col1 - - ( col2 ) AS col2, - col0 / + ( + 4 ) FROM tab0 AS cor0
----
100
-24
128
-3
31
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-4499
SELECT + SUM( DISTINCT + col0 ) - 41, - 39 AS col1 FROM tab0 AS cor0
----
158
-39

skipif mysql # not compatible
query II rowsort label-4499
SELECT + SUM ( DISTINCT + col0 ) - 41, - 39 AS col1 FROM tab0 AS cor0
----
158
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 45 - + + 58, - ( + + col2 ) col1 FROM tab1 AS cor0
----
-13
-59
-13
-68
-13
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 * + col2 < - col1 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + 83 FROM tab0
----
-14
-4
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4503
SELECT ALL + COUNT( * ) AS col1, 89 col0 FROM tab1
----
3
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4503
SELECT ALL + COUNT ( * ) AS col1, 89 col0 FROM tab1
----
3
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4504
SELECT - ( - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) ) + + SUM( + - col2 ) + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4504
SELECT - ( - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) + + SUM ( + - col2 ) + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL + ( - + 77 ) AS col1 FROM tab2
----
-77
-77
-77

query I rowsort
SELECT ALL - 95 / col2 FROM tab2 WHERE NOT 97 = NULL
----

query I rowsort
SELECT DISTINCT col2 + - + 54 FROM tab1
----
14
42
5

query I rowsort
SELECT - 28 FROM tab1 cor0
----
-28
-28
-28

query II rowsort
SELECT ALL - + col0 AS col2, - col0 AS col0 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT 18 NOT BETWEEN ( - + 9 + - col1 + - + col1 + - col0 * 60 - col0 ) AND ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT - MAX( - ( col1 ) ) * - 56 + SUM( ALL + - col1 ) * - MIN( DISTINCT col0 ) AS col0 FROM tab1 cor0
----
3086

skipif mysql # not compatible
query I rowsort label-4512
SELECT - MAX ( - ( col1 ) ) * - 56 + SUM ( ALL + - col1 ) * - MIN ( DISTINCT col0 ) AS col0 FROM tab1 cor0
----
3086

onlyif mysql # DIV for integer division: 
query I rowsort label-4513
SELECT ALL 98 * - - col1 + + 59 + + + col2 + col1 * - col2 * col2 DIV + ( + ( col2 ) ) - col2 FROM tab2 AS cor0
----
2739
3884
4525

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL 98 * - - col1 + + 59 + + + col2 + col1 * - col2 * col2 / + ( + ( col2 ) ) - col2 FROM tab2 AS cor0
----
2739
3884
4525

query I rowsort
SELECT DISTINCT - - col0 * + 75 * - 97 AS col0 FROM tab2 AS cor0
----
-334650
-465600
-545625

query I rowsort
SELECT ALL - col1 * + 42 AS col0 FROM tab1 AS cor0
----
-1974
-210
-588

onlyif mysql # aggregate syntax: 
query II rowsort label-4516
SELECT ALL - 15 * COUNT( * ) AS col0, - 63 * MIN( + - col0 ) AS col1 FROM tab2 cor0
----
-45
4725

skipif mysql # not compatible
query II rowsort label-4516
SELECT ALL - 15 * COUNT ( * ) AS col0, - 63 * MIN ( + - col0 ) AS col1 FROM tab2 cor0
----
-45
4725

query I rowsort
SELECT ALL + col0 * col2 FROM tab1 AS cor0 WHERE col2 > + 96
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4518
SELECT DISTINCT 30 DIV - 75 + + + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT 30 / - 75 + + + COUNT ( * ) FROM tab0
----
3

query I rowsort
SELECT ALL - 90 * + col0 * + - 37 AS col2 FROM tab0 cor0
----
289710
323010
49950

query I rowsort
SELECT DISTINCT - 87 AS col2 FROM tab0 AS cor0 WHERE NOT ( - ( 82 ) ) <= + col1
----

query I rowsort
SELECT ( 69 ) AS col0 FROM tab1 AS cor0
----
69
69
69

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( - + 45 ) IS NULL
----

query I rowsort
SELECT DISTINCT 83 + 61 AS col1 FROM tab2
----
144

query I rowsort
SELECT ALL col1 + - 36 AS col0 FROM tab1 AS cor0
----
-22
-31
11

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 = - + col0 / + col2 - + col2
----

query II rowsort
SELECT DISTINCT col2 + + 57, 81 * col1 AS col2 FROM tab2 AS cor0
----
115
5427
80
4131
97
6237

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 / + + 4 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4528
SELECT + ( + 77 ) AS col2 FROM tab1 cor0 WHERE ( NULL ) BETWEEN 73 * 17 + + - col0 AND + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4528
SELECT + ( + 77 ) AS col2 FROM tab1 cor0 WHERE ( NULL ) BETWEEN 73 * 17 + + - col0 AND + - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL - col1, 10 AS col2 FROM tab0 AS cor0
----
-1
10
-21
10
-81
10

query II rowsort
SELECT col1, + col1 AS col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT ALL 29 - + + ( - - col1 ) + + 19 * + col2 FROM tab0
----
1909
198
841

query I rowsort
SELECT ( 20 ) - + + col0 FROM tab2
----
-26
-44
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT + COUNT( - 67 ) * + 81 * + 72 * 69 AS col1 FROM tab2
----
1207224

skipif mysql # not compatible
query I rowsort label-4533
SELECT + COUNT ( - 67 ) * + 81 * + 72 * 69 AS col1 FROM tab2
----
1207224

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4534
SELECT DISTINCT * FROM tab2 WHERE + col0 * - 76 * - col2 * + 63 + + 94 * - col0 / + CAST( NULL AS SIGNED ) BETWEEN NULL AND 68
----

skipif mysql # not compatible
query III rowsort label-4534
SELECT DISTINCT * FROM tab2 WHERE + col0 * - 76 * - col2 * + 63 + + 94 * - col0 / + CAST ( NULL AS INTEGER ) BETWEEN NULL AND 68
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + col1 * - ( col1 ) + + col1 FROM tab0 AS cor0
----
-420
-6480
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT DISTINCT + COUNT( * ) * + + ( - COUNT( * ) ) * 45 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4537
SELECT DISTINCT + COUNT ( * ) * + + ( - COUNT ( * ) ) * 45 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT + 95 * COUNT( * ) FROM tab1 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-4538
SELECT + 95 * COUNT ( * ) FROM tab1 AS cor0
----
285

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, - 10 + + - 72 + + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT - 79 IS NULL
----
51
-68
85
-77
91
-35

query I rowsort
SELECT DISTINCT - col1 * ( 82 ) FROM tab1 AS cor0
----
-1148
-3854
-410

query I rowsort
SELECT + + ( - 33 ) AS col2 FROM tab0 AS cor0
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT - 16 * - SUM( DISTINCT - 32 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4542
SELECT - 16 * - SUM ( DISTINCT - 32 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4543
SELECT col0 DIV - 59 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4543
SELECT col0 / - 59 FROM tab2
----
-1
-1
0

query I rowsort
SELECT DISTINCT + col2 * + col0 + + col1 + + col1 FROM tab2
----
1160
2714
4484

onlyif mysql # DIV for integer division: 
query I rowsort label-4545
SELECT + 96 DIV + col0 + + 90 FROM tab2
----
91
91
92

skipif mysql # not compatible
query I rowsort label-4545
SELECT + 96 / + col0 + + 90 FROM tab2
----
91
91
92

query I rowsort
SELECT DISTINCT - + 28 + + col1 AS col0 FROM tab1 AS cor0
----
-14
-23
19

query I rowsort
SELECT + + ( + col1 ) + - col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT DISTINCT MAX( 26 ) * - ( - COUNT( DISTINCT col0 ) ) AS col0 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT MAX ( 26 ) * - ( - COUNT ( DISTINCT col0 ) ) AS col0 FROM tab1 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT DISTINCT MAX( - 59 ) FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT MAX ( - 59 ) FROM tab0
----
-59

query I rowsort
SELECT DISTINCT - ( - - 72 ) AS col2 FROM tab2
----
-72

query I rowsort
SELECT ALL - ( - 37 ) + - - 49 FROM tab1
----
86
86
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4552
SELECT DISTINCT CAST( + - AVG ( + 84 ) AS SIGNED ) FROM tab0, tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT CAST ( + - AVG ( + 84 ) AS INTEGER ) FROM tab0, tab1 AS cor0
----
-84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 77 - col0 + - col0 * - col2 NOT BETWEEN + 79 + - 69 AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col1 + + 20 + - col1 AS col0, 49 AS col2 FROM tab2 AS cor0
----
20
49
20
49
20
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4555
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE + col1 * col2 NOT BETWEEN - col1 + col1 + + - col1 + col2 * + + col1 AND + - col1 - + col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4555
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE + col1 * col2 NOT BETWEEN - col1 + col1 + + - col1 + col2 * + + col1 AND + - col1 - + col2
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 * col2 FROM tab0 AS cor0 WHERE + ( col1 ) IS NOT NULL
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4557
SELECT + CAST( 3 AS SIGNED ) - 31 FROM tab0 AS cor0
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-4557
SELECT + CAST ( 3 AS INTEGER ) - 31 FROM tab0 AS cor0
----
-28
-28
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 0 - + ( - col0 ) - + - 20 * + 7 * col2 col1 FROM tab2 cor0
----
3266
5664
8195

onlyif mysql # DIV for integer division: 
query I rowsort label-4559
SELECT DISTINCT + col0 - + 73 + col1 DIV - + col1 col2 FROM tab2 AS cor0
----
-10
-28
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4559
SELECT DISTINCT + col0 - + 73 + col1 / - + col1 col2 FROM tab2 AS cor0
----
-10
-28
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * 19 * - - 36 - + col1 FROM tab2 AS cor0
----
31413
43699
51233

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 ) / 11 + - 98 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * + 85 FROM tab2
----
-1955
-3400
-4930

query I rowsort
SELECT 56 * col1 AS col2 FROM tab2
----
2856
3752
4312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4566
SELECT DISTINCT - CAST( NULL AS SIGNED ), + COUNT( DISTINCT - col0 ) - - MAX( + col2 ) DIV - + SUM( ALL - col1 ) AS col0 FROM tab1
----
NULL
4

skipif mysql # not compatible
query II rowsort label-4566
SELECT DISTINCT - CAST ( NULL AS INTEGER ), + COUNT ( DISTINCT - col0 ) - - MAX ( + col2 ) / - + SUM ( ALL - col1 ) AS col0 FROM tab1
----
NULL
4

query II rowsort
SELECT DISTINCT + 79, col1 FROM tab1 AS cor0
----
79
14
79
47
79
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4568
SELECT DISTINCT - col0 DIV + + ( - col1 ) AS col0 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-4568
SELECT DISTINCT - col0 / + + ( - col1 ) AS col0 FROM tab1 AS cor0
----
1
17
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4569
SELECT + ( + + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT + ( + + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT ALL + COUNT( * ) * - ( 27 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL + COUNT ( * ) * - ( 27 ) AS col0 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT COUNT( - col0 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4571
SELECT COUNT ( - col0 ) col2 FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 84 - + + col1 + col0 * + + col1 + col0 * - col0 * col1 + + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4573
SELECT CAST( - 21 AS SIGNED ) + - col0 FROM tab1 cor0
----
-106
-112
-72

skipif mysql # not compatible
query I rowsort label-4573
SELECT CAST ( - 21 AS INTEGER ) + - col0 FROM tab1 cor0
----
-106
-112
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT DISTINCT + - ( - COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4574
SELECT DISTINCT + - ( - COUNT ( * ) ) FROM tab1 cor0
----
3

query I rowsort
SELECT + - col0 * - col2 + + col2 + + col1 FROM tab1 AS cor0
----
5006
5079
6303

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 42 BETWEEN ( + 2 * - - 67 ) AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4577
SELECT + COUNT( * ) FROM tab2 WHERE ( NOT ( ( NOT CAST( NULL AS SIGNED ) IS NOT NULL ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-4577
SELECT + COUNT ( * ) FROM tab2 WHERE ( NOT ( ( NOT CAST ( NULL AS INTEGER ) IS NOT NULL ) ) )
----
0

query I rowsort
SELECT 14 + col0 FROM tab1
----
105
65
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 39 IS NULL
----

query II rowsort
SELECT 82 AS col1, - col2 * + 60 AS col2 FROM tab2
----
82
-1380
82
-2400
82
-3480

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT COUNT( * ) col2 FROM tab0 AS cor0 WHERE - col2 BETWEEN - col0 AND + col0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4581
SELECT COUNT ( * ) col2 FROM tab0 AS cor0 WHERE - col2 BETWEEN - col0 AND + col0
----
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE 22 * + col2 + + + col0 / col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT COUNT( ALL - + col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4583
SELECT COUNT ( ALL - + col1 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT ALL - SUM( col0 ) col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4584
SELECT ALL - SUM ( col0 ) col2 FROM tab0 AS cor0
----
-199

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + - 63 <> - + 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT ALL COUNT( * ) col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4586
SELECT ALL COUNT ( * ) col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + + col0 col0 FROM tab2
----
17
23
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4588
SELECT ALL CAST( - + col0 AS SIGNED ) * + - 96 AS col2 FROM tab0 AS cor0
----
1440
8352
9312

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL CAST ( - + col0 AS INTEGER ) * + - 96 AS col2 FROM tab0 AS cor0
----
1440
8352
9312

query I rowsort
SELECT DISTINCT + col0 - + + 52 AS col1 FROM tab2 AS cor0
----
-6
12
23

query I rowsort
SELECT + 71 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT DISTINCT - COUNT( ALL + col2 ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4591
SELECT DISTINCT - COUNT ( ALL + col2 ) AS col1 FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL 10 AS col2 FROM tab1 AS cor0 WHERE NULL < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 28 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0, 32 + col0 - + col2 * - ( - 18 ) AS col2 FROM tab2
----
46
-336
64
-624
75
-937

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT 5 * + COUNT( * ) * + 47 FROM tab1
----
705

skipif mysql # not compatible
query I rowsort label-4595
SELECT 5 * + COUNT ( * ) * + 47 FROM tab1
----
705

query I rowsort
SELECT DISTINCT col2 * + col0 * - col1 AS col1 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # DIV for integer division: 
query I rowsort label-4597
SELECT DISTINCT col0 DIV + 73 AS col1 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-4597
SELECT DISTINCT col0 / + 73 AS col1 FROM tab0
----
0
1

query I rowsort
SELECT 46 * + + col2 FROM tab0
----
2162
4554
460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4599
SELECT DISTINCT CAST( 70 AS SIGNED ) * + 57 col1 FROM tab1
----
3990

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4599
SELECT DISTINCT CAST ( 70 AS INTEGER ) * + 57 col1 FROM tab1
----
3990

onlyif mysql # DIV for integer division: 
query I rowsort label-4600
SELECT ALL - 70 DIV + col1 AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL - 70 / + col1 AS col0 FROM tab2
----
-1
-1
0

query I rowsort
SELECT ALL 76 * - 20 FROM tab0
----
-1520
-1520
-1520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4602
SELECT CAST( NULL AS SIGNED ) * MAX( ALL - - col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4602
SELECT CAST ( NULL AS INTEGER ) * MAX ( ALL - - col1 ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 70 FROM tab2 WHERE NOT NULL IN ( + col2, col0 * col0 + + 19 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + col2 col2 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4606
SELECT * FROM tab2 WHERE NOT + + col1 IN ( - 23, ( - - col1 ) + - 57 / - 13, + 44, - 58 * CAST( + col0 AS SIGNED ) / + col1 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4606
SELECT * FROM tab2 WHERE NOT + + col1 IN ( - 23, ( - - col1 ) + - 57 / - 13, + 44, - 58 * CAST ( + col0 AS INTEGER ) / + col1 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + + ( col0 ) ) * 87 * + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + + 89 AS col2 FROM tab0 AS cor0
----
89
89
89

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE NOT ( col1 * - + 98 * col0 * - 93 IS NULL )
----
-15
-87
-97

query I rowsort
SELECT DISTINCT 89 * - 22 AS col2 FROM tab2
----
-1958

onlyif mysql # aggregate syntax: 
query II rowsort label-4611
SELECT DISTINCT 52 AS col1, SUM( DISTINCT + 98 ) FROM tab0, tab1 AS cor0
----
52
98

skipif mysql # not compatible
query II rowsort label-4611
SELECT DISTINCT 52 AS col1, SUM ( DISTINCT + 98 ) FROM tab0, tab1 AS cor0
----
52
98

query I rowsort
SELECT - 23 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT DISTINCT + col1 * + col2 * + 11 * col1 FROM tab2
----
2608760
2863982
658053

query I rowsort
SELECT col2 * - + 68 FROM tab0 AS cor0
----
-3196
-6732
-680

query I rowsort
SELECT - - 97 * - col0 * - + col0 FROM tab0 cor0
----
21825
734193
912673

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + col2 * + 18 - + col1 > - + col0 + + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 21 col0, 93 * + col0 FROM tab2 cor0
----
21
4278
21
5952
21
6975

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 cor0 WHERE NOT NULL < col0
----

query I rowsort
SELECT + - col0 * - 12 * + 90 FROM tab0 AS cor0
----
104760
16200
93960

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 = + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 35 * + col1 AS col2 FROM tab2 AS cor0
----
-1785
-2345
-2695

query II rowsort
SELECT + col1, + col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT ALL 98 + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + 50
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4625
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + - CAST( 64 AS SIGNED ) AND ( - 33 )
----

skipif mysql # not compatible
query III rowsort label-4625
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + - CAST ( 64 AS INTEGER ) AND ( - 33 )
----

query I rowsort
SELECT DISTINCT - col2 + + 85 * + col1 * - col0 + - col0 AS col2 FROM tab0
----
-103337
-155392
-8441

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4627
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) - + 71 < col1 + - + col2 * + + CAST( NULL AS SIGNED ) + - - 79
----

skipif mysql # not compatible
query III rowsort label-4627
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) - + 71 < col1 + - + col2 * + + CAST ( NULL AS INTEGER ) + - - 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT + COUNT( * ) * + - COUNT( * ) + + COUNT( - - col1 ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4628
SELECT + COUNT ( * ) * + - COUNT ( * ) + + COUNT ( - - col1 ) FROM tab0 cor0
----
-6

query III rowsort
SELECT * FROM tab0 WHERE - 50 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 52 - + 76 AS col0 FROM tab2
----
-128
-128
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT DISTINCT - - 35 * COUNT( ALL col2 ) AS col0 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT - - 35 * COUNT ( ALL col2 ) AS col0 FROM tab1 AS cor0
----
105

query II rowsort
SELECT ALL + + 22 AS col2, + col0 AS col1 FROM tab2 AS cor0
----
22
46
22
64
22
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4633
SELECT ( col0 ) DIV col1 AS col2 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-4633
SELECT ( col0 ) / col1 AS col2 FROM tab0 AS cor0
----
0
4
97

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT col2 + - col2 * + col0 BETWEEN col2 * + - col1 * - - col2 AND NULL
----

query II rowsort
SELECT DISTINCT + - col2 AS col2, + col1 AS col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 IN ( + 47 * col2, - col1 )
----

query I rowsort
SELECT DISTINCT + - 6 * - col0 FROM tab0 AS cor0
----
522
582
90

query II rowsort
SELECT 74 * - col2 AS col2, + 66 AS col0 FROM tab1
----
-4366
66
-5032
66
-7104
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT ALL COUNT( + col1 ) * - + 74 FROM tab2
----
-222

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL COUNT ( + col1 ) * - + 74 FROM tab2
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT ( 11 ) * COUNT( * ) - - 49 AS col2 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-4640
SELECT ( 11 ) * COUNT ( * ) - - 49 AS col2 FROM tab1
----
82

query I rowsort
SELECT ALL + col2 * - col1 * - - 64 FROM tab2 WHERE ( NULL <> col2 + + + 56 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - - 28 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4643
SELECT ALL - col1 * + + col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL - col1 * + + col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 AS col1 FROM tab0 cor0 WHERE NOT NULL < - ( + ( - col0 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4645
SELECT DISTINCT COUNT( * ) * - 49, + 39 AS col1 FROM tab0 cor0
----
-147
39

skipif mysql # not compatible
query II rowsort label-4645
SELECT DISTINCT COUNT ( * ) * - 49, + 39 AS col1 FROM tab0 cor0
----
-147
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4646
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
NULL

query I rowsort
SELECT - col0 + col1 FROM tab0 WHERE NOT - 45 NOT IN ( - - 16, col1 / col2 - + col1 * - col1 + - col1, + 74 / - ( - col1 ) + 69 + - col0 + - + col1 * - col1 + - - 45 )
----

query I rowsort
SELECT 91 * + + col0 FROM tab2
----
4186
5824
6825

query III rowsort
SELECT * FROM tab1 WHERE + 84 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - col1 + + - 0 * + - 11 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4651
SELECT + col1 * - col0 + + col1 + + col0 DIV + + col0 col2 FROM tab1 AS cor0
----
-419
-4229
-699

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4651
SELECT + col1 * - col0 + + col1 + + col0 / + + col0 col2 FROM tab1 AS cor0
----
-419
-4229
-699

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT ALL + 10 + - + COUNT( * ) AS col2 FROM tab2 cor0
----
7

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL + 10 + - + COUNT ( * ) AS col2 FROM tab2 cor0
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 2 + + col1 col1 FROM tab1 WHERE 85 + 90 BETWEEN col2 AND + col2 * + + col1
----
-113
-178
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 col2 FROM tab2 WHERE NOT NULL > + - 59 * col0 + + col2
----

query II rowsort
SELECT DISTINCT col2, 94 * + - 4 AS col0 FROM tab2
----
23
-376
40
-376
58
-376

query I rowsort
SELECT + 72 * - col1 FROM tab1
----
-1008
-3384
-360

query I rowsort
SELECT DISTINCT 33 AS col2 FROM tab0 WHERE - + col0 * + col2 IS NOT NULL
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4658
SELECT - COUNT( * ) DIV COUNT( * ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4658
SELECT - COUNT ( * ) / COUNT ( * ) AS col2 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT + col2 / col2 + col1 AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT - - MAX( ALL - - col2 ) FROM tab1 WHERE NULL IS NULL
----
96

skipif mysql # not compatible
query I rowsort label-4660
SELECT - - MAX ( ALL - - col2 ) FROM tab1 WHERE NULL IS NULL
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT ALL + COUNT( DISTINCT + 15 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL + COUNT ( DISTINCT + 15 ) AS col2 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4662
SELECT ALL col1 * - + col0 * + - col0 + - col0 * + CAST( NULL AS SIGNED ) - 4 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4662
SELECT ALL col1 * - + col0 * + - col0 + - col0 * + CAST ( NULL AS INTEGER ) - 4 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT + COUNT( * ) + - 49 FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4663
SELECT + COUNT ( * ) + - 49 FROM tab0 AS cor0
----
-46

query I rowsort
SELECT ALL - ( - - ( + 61 ) ) FROM tab0 AS cor0
----
-61
-61
-61

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( NULL ) NOT IN ( col1, col2, - col0 * - col1 * + 24 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - 81 + + col0 <= + col1 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT DISTINCT - + ( + COUNT( ALL + col1 ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4668
SELECT DISTINCT - + ( + COUNT ( ALL + col1 ) ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT ( - MAX( - col2 ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4669
SELECT ( - MAX ( - col2 ) ) FROM tab0 AS cor0
----
10

query II rowsort
SELECT 48, + 80 AS col0 FROM tab0
----
48
80
48
80
48
80

query I rowsort
SELECT ALL + 49 * col1 AS col1 FROM tab1
----
2303
245
686

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT - MAX( + col0 ) * SUM( col2 ) + - 28 AS col0 FROM tab1
----
-20321

skipif mysql # not compatible
query I rowsort label-4672
SELECT - MAX ( + col0 ) * SUM ( col2 ) + - 28 AS col0 FROM tab1
----
-20321

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4673
SELECT DISTINCT + + col1 - + ( - CAST( NULL AS SIGNED ) ) + - + col2 + col1 * + col1 FROM tab2 WHERE NULL <= + 7
----

skipif mysql # not compatible
query I rowsort label-4673
SELECT DISTINCT + + col1 - + ( - CAST ( NULL AS INTEGER ) ) + - + col2 + col1 * + col1 FROM tab2 WHERE NULL <= + 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT ALL COUNT( * ) * + COUNT( * ) * - 39 AS col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL COUNT ( * ) * + COUNT ( * ) * - 39 AS col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

query I rowsort
SELECT - 24 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-24
-24
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4676
SELECT + 35 * + ( CAST( NULL AS SIGNED ) ) / - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4676
SELECT + 35 * + ( CAST ( NULL AS INTEGER ) ) / - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4677
SELECT DISTINCT + ( + SUM( DISTINCT - col1 ) ) AS col2, + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-103
3

skipif mysql # not compatible
query II rowsort label-4677
SELECT DISTINCT + ( + SUM ( DISTINCT - col1 ) ) AS col2, + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-103
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT - ( - - 3 ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4678
SELECT - ( - - 3 ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT + COUNT( DISTINCT + 45 ) + + 50 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4679
SELECT + COUNT ( DISTINCT + 45 ) + + 50 FROM tab2 AS cor0
----
51

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 LEFT JOIN tab2 AS cor1 ON NOT + 73 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4681
SELECT ALL - COUNT( * ) / - 80 * CAST( NULL AS SIGNED ) + 56 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL - COUNT ( * ) / - 80 * CAST ( NULL AS INTEGER ) + 56 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT DISTINCT - + COUNT( * ) FROM tab1 AS cor0 WHERE col1 <> col2
----
-3

skipif mysql # not compatible
query I rowsort label-4682
SELECT DISTINCT - + COUNT ( * ) FROM tab1 AS cor0 WHERE col1 <> col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4683
SELECT - - SUM( ALL - col1 ) * + 18 AS col0 FROM tab1 cor0 WHERE 10 * - - col2 * + CAST( - col1 AS SIGNED ) * + col2 > + 78 * + 26 * col2 + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4683
SELECT - - SUM ( ALL - col1 ) * + 18 AS col0 FROM tab1 cor0 WHERE 10 * - - col2 * + CAST ( - col1 AS INTEGER ) * + col2 > + 78 * + 26 * col2 + - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT ALL + 42 + COUNT( * ) col0 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4684
SELECT ALL + 42 + COUNT ( * ) col0 FROM tab1 AS cor0
----
45

query II rowsort
SELECT + col0 * + ( - col2 ) - - ( - 57 ) + + col0 + ( - + 15 ) * - col2 AS col0, col2 + 94 FROM tab0 AS cor0
----
-42
141
-690
104
-8078
193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4686
SELECT - MIN( ALL + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4686
SELECT - MIN ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 24 + - ( col0 ) FROM tab2 AS cor0
----
-70
-88
-99

query I rowsort
SELECT ALL - - ( + ( - col1 ) ) FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT - ( col0 ) - + + col0 AS col2 FROM tab0 AS cor0
----
-174
-194
-30

query I rowsort
SELECT + col0 + + col2 AS col1 FROM tab1 cor0 WHERE - col2 * col2 - - - col2 / + col0 + + + col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4691
SELECT ALL - - COUNT( * ) - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL > - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL - - COUNT ( * ) - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL > - 33
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE col0 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col1 <> NULL
----

query I rowsort
SELECT + 32 * + col1 * + 55 AS col0 FROM tab2 AS cor0
----
117920
135520
89760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4695
SELECT DISTINCT + + col1 + - col2 - + col2 + + col0 / + + 22 * + CAST( NULL AS SIGNED ) * 58 * 24 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4695
SELECT DISTINCT + + col1 + - col2 - + col2 + + col0 / + + 22 * + CAST ( NULL AS INTEGER ) * 58 * 24 AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 * + col2 - + col1 * col0 + + - 50 + - 93 * ( + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT + COUNT( * ) FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4697
SELECT + COUNT ( * ) FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
9

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 4 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4699
SELECT COUNT( * ) * COUNT( * ) AS col0, - COUNT( * ) AS col0 FROM tab1
----
9
-3

skipif mysql # not compatible
query II rowsort label-4699
SELECT COUNT ( * ) * COUNT ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab1
----
9
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4700
SELECT DISTINCT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4700
SELECT DISTINCT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT ALL COUNT( * ) col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4701
SELECT ALL COUNT ( * ) col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4702
SELECT DISTINCT + CAST( + + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4703
SELECT - 82 DIV + ( + + CAST( col2 AS SIGNED ) ) FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4703
SELECT - 82 / + ( + + CAST ( col2 AS INTEGER ) ) FROM tab2 AS cor0
----
-1
-2
-3

query I rowsort
SELECT + + 4 * - - 30 AS col2 FROM tab0 AS cor0
----
120
120
120

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col1, 91 AS col0 FROM tab1 AS cor0
----
14
91
47
91
5
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 < 22
----

query II rowsort
SELECT + col1 + - - col0 * - col1 AS col1, ( - - col1 ) FROM tab0
----
-1134
81
-1806
21
-96
1

query I rowsort
SELECT DISTINCT + col2 + col1 - + col1 AS col0 FROM tab0
----
10
47
99

query I rowsort
SELECT - col1 * + + 54 * + col2 * - - ( col2 ) AS col1 FROM tab1
----
-11735712
-6967296
-939870

onlyif mysql # DIV for integer division: 
query II rowsort label-4711
SELECT ALL + 88 + col2 DIV + col0 AS col0, col0 AS col2 FROM tab2
----
88
46
88
64
88
75

skipif mysql # not compatible
query II rowsort label-4711
SELECT ALL + 88 + col2 / + col0 AS col0, col0 AS col2 FROM tab2
----
88
46
88
64
88
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4712
SELECT ALL - 69 * + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4712
SELECT ALL - 69 * + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4713
SELECT DISTINCT + ( + COUNT( * ) ) FROM tab1 WHERE NOT NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4713
SELECT DISTINCT + ( + COUNT ( * ) ) FROM tab1 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT MAX( ALL - col1 ) * + SUM( ALL 72 ) FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-4714
SELECT MAX ( ALL - col1 ) * + SUM ( ALL 72 ) FROM tab0
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT DISTINCT - + SUM( DISTINCT - 63 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
63

skipif mysql # not compatible
query I rowsort label-4715
SELECT DISTINCT - + SUM ( DISTINCT - 63 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4716
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2, tab2 AS cor0
----
9

query I rowsort
SELECT 72 * ( + - 40 ) + col2 * col0 * col1 * + col0 FROM tab2
----
12612800
21855870
2479188

query I rowsort
SELECT + 62 * - 75 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fd454a468d44602962b694deb4b5db38

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT ALL col0, 19 AS col2 FROM tab2 cor0
----
46
19
64
19
75
19

onlyif mysql # DIV for integer division: 
query I rowsort label-4721
SELECT DISTINCT - col0 - + + 32 DIV - 74 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4721
SELECT DISTINCT - col0 - + + 32 / - 74 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + - ( + col2 ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT + 18 * - - 42 * 16 AS col2 FROM tab0
----
12096
12096
12096

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT - COUNT( ALL - 69 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4724
SELECT - COUNT ( ALL - 69 ) AS col0 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4725
SELECT col0 DIV + 44 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4725
SELECT col0 / + 44 FROM tab0
----
0
1
2

query I rowsort
SELECT ALL - 81 * - col1 * - + col2 AS col0 FROM tab0
----
-17010
-308367
-8019

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT DISTINCT COUNT( DISTINCT + col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4727
SELECT DISTINCT COUNT ( DISTINCT + col2 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT + col2 + col2 * col1 + 93 + col2 AS col1 FROM tab1
----
1629
3425
506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4729
SELECT 78 - - 50 * + 54 * + + CAST( NULL AS SIGNED ) + + 63 / + 74 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4729
SELECT 78 - - 50 * + 54 * + + CAST ( NULL AS INTEGER ) + + 63 / + 74 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4730
SELECT - col0 - + + CAST( NULL AS SIGNED ) + + 19 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4730
SELECT - col0 - + + CAST ( NULL AS INTEGER ) + + 19 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 25 col2 FROM tab1 AS cor0
----
25
25
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4732
SELECT DISTINCT - col0 DIV - - col1 - + 73 AS col0 FROM tab2 AS cor0
----
-73
-74

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT - col0 / - - col1 - + 73 AS col0 FROM tab2 AS cor0
----
-73
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT + ( - SUM( ALL + - 35 ) ) col1 FROM tab2
----
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4733
SELECT + ( - SUM ( ALL + - 35 ) ) col1 FROM tab2
----
105

query I rowsort
SELECT col1 * 20 FROM tab0
----
1620
20
420

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT ALL + MAX( DISTINCT + + 28 ) FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL + MAX ( DISTINCT + + 28 ) FROM tab0 AS cor0
----
28

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 59 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT DISTINCT MAX( ALL + 35 ) AS col1 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT MAX ( ALL + 35 ) AS col1 FROM tab0 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT + + COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4738
SELECT + + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT COUNT( 94 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4739
SELECT COUNT ( 94 ) AS col1 FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT col1 - - col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4741
SELECT - COUNT( * ) col1 FROM tab2 WHERE NOT 85 BETWEEN ( + 1 * - col1 ) AND col1 * CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4741
SELECT - COUNT ( * ) col1 FROM tab2 WHERE NOT 85 BETWEEN ( + 1 * - col1 ) AND col1 * CAST ( NULL AS INTEGER )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> - col2 * + 23
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4743
SELECT ALL col2 AS col2, + CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-4743
SELECT ALL col2 AS col2, + CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab2
----
23
NULL
40
NULL
58
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 16 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT 15 + + SUM( - ( 73 ) ) - 48 AS col2 FROM tab2 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-4745
SELECT 15 + + SUM ( - ( 73 ) ) - 48 AS col2 FROM tab2 AS cor0
----
-252

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4746
SELECT CAST( NULL AS DECIMAL ) + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4746
SELECT CAST ( NULL AS REAL ) + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 * + + col1 <> - + col0
----

query I rowsort
SELECT DISTINCT + - col2 * - + col2 FROM tab2 WHERE NOT NULL < - col0 - + 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT DISTINCT + 76 + - + 3 * + SUM( DISTINCT - col1 ) + 87 AS col1 FROM tab2
----
748

skipif mysql # not compatible
query I rowsort label-4749
SELECT DISTINCT + 76 + - + 3 * + SUM ( DISTINCT - col1 ) + 87 AS col1 FROM tab2
----
748

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4750
SELECT ALL * FROM tab1 WHERE - CAST( NULL AS SIGNED ) NOT BETWEEN + col1 - - col2 AND + + 33 + - 2 * + 93 + + col2 * - col2 * - col2
----

skipif mysql # not compatible
query III rowsort label-4750
SELECT ALL * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEEN + col1 - - col2 AND + + 33 + - 2 * + 93 + + col2 * - col2 * - col2
----

query II rowsort
SELECT DISTINCT - 88 + + + col1, col0 AS col1 FROM tab0 AS cor0
----
-67
87
-7
15
-87
97

query I rowsort
SELECT ALL - col0 * + 62 + + col1 AS col0 FROM tab0 AS cor0
----
-5373
-6013
-849

query I rowsort
SELECT DISTINCT + col1 * - - col2 - - col2 FROM tab2 AS cor0
----
1196
3120
3944

onlyif mysql # DIV for integer division: 
query I rowsort label-4754
SELECT ALL - ( col0 ) DIV + col2 - + col0 FROM tab2 AS cor0
----
-48
-65
-76

skipif mysql # not compatible
query I rowsort label-4754
SELECT ALL - ( col0 ) / + col2 - + col0 FROM tab2 AS cor0
----
-48
-65
-76

query I rowsort
SELECT 4 * + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 54 - + 26 - + + 16 AS col1 FROM tab0
----
-96
-96
-96

query I rowsort
SELECT ALL col1 * + - 30 * + col1 AS col0 FROM tab2
----
-134670
-177870
-78030

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + ( + 33 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4759
SELECT ALL + 27 - - ( - COUNT( * ) ), + 6 AS col0 FROM tab1
----
24
6

skipif mysql # not compatible
query II rowsort label-4759
SELECT ALL + 27 - - ( - COUNT ( * ) ), + 6 AS col0 FROM tab1
----
24
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 48 * - col1 col2 FROM tab1
----
-2256
-240
-672

onlyif mysql # DIV for integer division: 
query I rowsort label-4761
SELECT col2 DIV + - col0 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4761
SELECT col2 / + - col0 AS col0 FROM tab1
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4762
SELECT DISTINCT col2 * - - CAST( + + 41 AS SIGNED ) * 20 + col2 col1 FROM tab2
----
18883
32840
47618

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4762
SELECT DISTINCT col2 * - - CAST ( + + 41 AS INTEGER ) * 20 + col2 col1 FROM tab2
----
18883
32840
47618

query I rowsort
SELECT + 5 AS col2 FROM tab1 cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT ALL + SUM( DISTINCT 8 ) AS col2 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL + SUM ( DISTINCT 8 ) AS col2 FROM tab1 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT DISTINCT + SUM( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT + SUM ( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
66

query I rowsort
SELECT ALL - col0 * - col0 * + col0 + - - col0 AS col2 FROM tab1 AS cor0
----
132702
614210
753662

query I rowsort
SELECT DISTINCT - ( - + 52 ) AS col2 FROM tab0 AS cor0
----
52

query II rowsort
SELECT ALL + col1, - col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL AND col1 NOT IN ( - col1, + col1, - col0, - col1, col0, + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT + col0 * + 74 AS col1 FROM tab1
----
3774
6290
6734

query I rowsort
SELECT - 67 * - + 8 AS col0 FROM tab1
----
536
536
536

query I rowsort
SELECT - - col2 * col2 + - + 37 FROM tab2 AS cor0
----
1563
3327
492

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT ALL + COUNT( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL + COUNT ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 col2 FROM tab2 AS cor0
----
93
93
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4776
SELECT + - 10 DIV col1 * + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4776
SELECT + - 10 / col1 * + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT ALL + COUNT( + 16 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL + COUNT ( + 16 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4778
SELECT DISTINCT - - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4778
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE + + col2 BETWEEN col2 AND + - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4780
SELECT ALL MIN( ALL - col1 ) + + CAST( - COUNT( * ) AS SIGNED ) FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL MIN ( ALL - col1 ) + + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2
----
-80

query II rowsort
SELECT 89 * 19 * + col0 AS col2, 55 AS col0 FROM tab1
----
143735
55
153881
55
86241
55

query I rowsort
SELECT ALL + col0 * + col0 + 56 AS col0 FROM tab1
----
2657
7281
8337

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4783
SELECT + COUNT( * ) FROM tab0 WHERE col2 / col2 + + CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4783
SELECT + COUNT ( * ) FROM tab0 WHERE col2 / col2 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4784
SELECT DISTINCT - + ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4784
SELECT DISTINCT - + ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 80 + - - 28 FROM tab1 AS cor0
----
108

query I rowsort
SELECT ALL - col1 FROM tab0 cor0 WHERE NOT NULL <> + col0
----

query I rowsort
SELECT ALL - + col1 + + 60 FROM tab2 AS cor0
----
-17
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 42 - - 80 + + - col1 + + - 28 * + 54, + col1 col0 FROM tab1 AS cor0
----
-1479
5
-1488
14
-1521
47

query I rowsort
SELECT ALL - col0 + col1 AS col1 FROM tab0 WHERE NOT + + col1 * col0 + + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE 79 IS NOT NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - col1 + 48 + - col2 col0 FROM tab0 AS cor0
----
-49
163
80

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT DISTINCT - - COUNT( * ) + + - 25 FROM tab0 cor0
----
-22

skipif mysql # not compatible
query I rowsort label-4793
SELECT DISTINCT - - COUNT ( * ) + + - 25 FROM tab0 cor0
----
-22

query I rowsort
SELECT ALL - col2 - + + 5 FROM tab2 AS cor0
----
-28
-45
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT DISTINCT COUNT( + - col0 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT COUNT ( + - col0 ) FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4796
SELECT ALL - col1 * col2 AS col1, col1 + + col0 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
-210
NULL
-3807
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-4796
SELECT ALL - col1 * col2 AS col1, col1 + + col0 + + CAST ( NULL AS REAL ) AS col1 FROM tab0
----
-210
NULL
-3807
NULL
-99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT ALL COUNT( * ) * - + MAX( ALL 36 ) * - + 81 col2 FROM tab0
----
8748

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4797
SELECT ALL COUNT ( * ) * - + MAX ( ALL 36 ) * - + 81 col2 FROM tab0
----
8748

query I rowsort
SELECT DISTINCT col0 * - 79 AS col2 FROM tab2
----
-3634
-5056
-5925

query I rowsort
SELECT ALL + - 10 * col1 FROM tab1 AS cor0
----
-140
-470
-50

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT 80 + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4802
SELECT ALL - 50, + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-50
3

skipif mysql # not compatible
query II rowsort label-4802
SELECT ALL - 50, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-50
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT DISTINCT - + MAX( ALL 21 ) AS col2 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT - + MAX ( ALL 21 ) AS col2 FROM tab0 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT + SUM( ALL - col1 ) * + - 24 AS col2 FROM tab0 AS cor0
----
2472

skipif mysql # not compatible
query I rowsort label-4804
SELECT + SUM ( ALL - col1 ) * + - 24 AS col2 FROM tab0 AS cor0
----
2472

query II rowsort
SELECT col2, - col0 AS col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

query I rowsort
SELECT + col1 * 63 FROM tab1 AS cor0
----
2961
315
882

query I rowsort
SELECT DISTINCT - col0 * - 34 AS col1 FROM tab1 AS cor0
----
1734
2890
3094

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT ALL + COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4809
SELECT - 29 * 55 * + - col2 + - col0 + + ( col0 ) * - - 4 / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT - 29 * 55 * + - col2 + - col0 + + ( col0 ) * - - 4 / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT DISTINCT + COUNT( - ( col2 ) ) AS col0 FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4810
SELECT DISTINCT + COUNT ( - ( col2 ) ) AS col0 FROM tab0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT + 16 + - - ( col2 ) AS col1 FROM tab0
----
115
26
63

query I rowsort
SELECT + + ( - col1 ) * - col2 + - + col2 * + - col1 + 9 + + col0 * + col0 FROM tab2 AS cor0
----
10265
13406
4471

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 69 * + + 43 / col0 IS NULL
----

query I rowsort
SELECT ALL col2 + col0 - + col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT + - 97 FROM tab0 AS cor0 WHERE NULL <> 37
----

query I rowsort
SELECT - 26 * + col1 * 56 FROM tab1 AS cor0
----
-20384
-68432
-7280

query I rowsort
SELECT - ( + col1 ) + + + ( + col0 ) FROM tab0 WHERE ( - col2 * + + col1 NOT BETWEEN col2 + + + col2 AND + - col0 * ( + col1 ) )
----
-66
66
96

query I rowsort
SELECT ALL + 30 + 37 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT + ( 66 ) - + ( - col2 ) AS col0 FROM tab0 AS cor0
----
113
165
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4820
SELECT - 22 * + + CAST( NULL AS SIGNED ) - + + col0 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4820
SELECT - 22 * + + CAST ( NULL AS INTEGER ) - + + col0 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 - + + col2 + col1 FROM tab0 AS cor0
----
-10
-47
-99

query II rowsort
SELECT DISTINCT - 11 * + col1 + - col1 * - col2 * - col1 AS col0, col2 * - - ( + 87 ) AS col2 FROM tab2 AS cor0
----
-238007
3480
-261099
5046
-60384
2001

query I rowsort
SELECT - col2 * + - 16 + - col0 AS col2 FROM tab1 AS cor0
----
1485
859
997

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT + MIN( ALL - 19 ) FROM tab1 cor0
----
-19

skipif mysql # not compatible
query I rowsort label-4824
SELECT + MIN ( ALL - 19 ) FROM tab1 cor0
----
-19

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 5 * + + 21 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT ALL + MAX( DISTINCT col2 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-4826
SELECT ALL + MAX ( DISTINCT col2 ) AS col1 FROM tab2
----
58

query III rowsort
SELECT * FROM tab1 WHERE NOT - 73 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT DISTINCT COUNT( - 91 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT COUNT ( - 91 ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4829
SELECT - CAST( col2 AS SIGNED ) * ( + 24 ) + 90 FROM tab0 AS cor0
----
-1038
-150
-2286

skipif mysql # not compatible
query I rowsort label-4829
SELECT - CAST ( col2 AS INTEGER ) * ( + 24 ) + 90 FROM tab0 AS cor0
----
-1038
-150
-2286

query I rowsort
SELECT DISTINCT - ( + + 33 ) FROM tab0 AS cor0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4831
SELECT ALL - COUNT( * ) * + + CAST( NULL AS SIGNED ) col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4831
SELECT ALL - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT + MAX( - ( - ( col0 ) ) ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-4832
SELECT + MAX ( - ( - ( col0 ) ) ) AS col1 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT - SUM( + col0 ) * - COUNT( * ) AS col0 FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-4833
SELECT - SUM ( + col0 ) * - COUNT ( * ) AS col0 FROM tab1
----
681

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4834
SELECT ALL - CAST( NULL AS DECIMAL ) * col1 * + col0 * + 16 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL - CAST ( NULL AS REAL ) * col1 * + col0 * + 16 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 85 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT MIN( + 24 ) + - COUNT( * ) col1 FROM tab1 cor0
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4836
SELECT MIN ( + 24 ) + - COUNT ( * ) col1 FROM tab1 cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT ALL + + 91 + COUNT( * ) * - 51 * - ( 22 ) FROM tab1 AS cor0
----
3457

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL + + 91 + COUNT ( * ) * - 51 * - ( 22 ) FROM tab1 AS cor0
----
3457

query I rowsort
SELECT + col2 + + - 99 AS col0 FROM tab2 AS cor0
----
-41
-59
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4839
SELECT + - CAST( - + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE ( - col0 * - - col1 ) IS NULL AND NOT + - col2 + - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4839
SELECT + - CAST ( - + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE ( - col0 * - - col1 ) IS NULL AND NOT + - col2 + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT col0 * + - 63 IS NULL
----
14
47
5

query II rowsort
SELECT DISTINCT col2 * col1 AS col2, 13 + col1 + + 59 FROM tab2 AS cor0
----
1173
123
3080
149
3886
139

query I rowsort
SELECT + - col2 + + col2 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * + ( 39 ) FROM tab1
----
-1989
-3315
-3549

query II rowsort
SELECT DISTINCT col1 AS col0, 49 * + ( - 70 ) + + - col1 * - + 12 FROM tab0
----
1
-3418
21
-3178
81
-2458

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, 73 + + - col1 AS col1 FROM tab2
----
-51
22
-67
6
-77
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4846
SELECT - CAST( 47 AS SIGNED ) col2 FROM tab1
----
-47
-47
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4846
SELECT - CAST ( 47 AS INTEGER ) col2 FROM tab1
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT MIN( + 11 ) * ( - MIN( - + 30 ) ) FROM tab2
----
330

skipif mysql # not compatible
query I rowsort label-4847
SELECT MIN ( + 11 ) * ( - MIN ( - + 30 ) ) FROM tab2
----
330

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 24 - + 83 = + 0 * + - 49
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4849
SELECT DISTINCT + CAST( - col1 AS SIGNED ) AS col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) AS col2 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT - - 11 - + COUNT( * ) FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-4850
SELECT - - 11 - + COUNT ( * ) FROM tab0 AS cor0
----
8

query I rowsort
SELECT ALL - 2 - + col1 FROM tab1 cor0
----
-16
-49
-7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 ) + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 27 AS col2 FROM tab2 AS cor0
----
27

query I rowsort
SELECT DISTINCT - 58 + col0 * col0 FROM tab1
----
2543
7167
8223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 52 + col1 col0 FROM tab2 WHERE + ( - col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT 87 FROM tab1 WHERE ( col2 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4857
SELECT - COUNT( - col0 ) * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4857
SELECT - COUNT ( - col0 ) * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NOT ( - ( + col1 ) * - col0 ) BETWEEN NULL AND 65
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 48 * + col1 + col0 ) IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NOT 72 <= ( - col2 + + 86 * + 64 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4861
SELECT DISTINCT CAST( ( - 21 ) AS SIGNED ) AS col2 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-4861
SELECT DISTINCT CAST ( ( - 21 ) AS INTEGER ) AS col2 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 + + col1 * + col0 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * + col1 + col2 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
2277
292
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4864
SELECT ALL CAST( + MIN( - col0 ) AS SIGNED ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL CAST ( + MIN ( - col0 ) AS INTEGER ) AS col0 FROM tab0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4865
SELECT CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4865
SELECT CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - 6 * 47 FROM tab0
----
-292
-329
-381

query I rowsort
SELECT ( 69 ) + col2 FROM tab0
----
116
168
79

query I rowsort
SELECT - col2 FROM tab2 WHERE col2 + 33 = ( 33 )
----

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT NULL = - 66
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( + ( col0 ) ) AND ( - col0 )
----

query I rowsort
SELECT ( col2 ) * + col2 + 39 AS col1 FROM tab1
----
3520
4663
9255

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 75 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 / + col0 AS col1 FROM tab1 WHERE - 77 + ( - col0 ) <= NULL
----

query I rowsort
SELECT DISTINCT 58 + 89 FROM tab1
----
147

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 BETWEEN NULL AND - col2 * ( col1 / + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4876
SELECT - CAST( + col1 AS SIGNED ) DIV - 58 - col0 FROM tab0
----
-14
-87
-97

skipif mysql # not compatible
query I rowsort label-4876
SELECT - CAST ( + col1 AS INTEGER ) / - 58 - col0 FROM tab0
----
-14
-87
-97

query I rowsort
SELECT + 24 FROM tab0 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT 8 * col1 FROM tab1 AS cor0
----
112
376
40

query I rowsort
SELECT + 19 * + 7 FROM tab2 AS cor0
----
133
133
133

query I rowsort
SELECT - 85 * col0 FROM tab0 AS cor0
----
-1275
-7395
-8245

query I rowsort
SELECT col0 * - 54 + col2 FROM tab2 AS cor0
----
-2461
-3416
-3992

query I rowsort
SELECT - col0 * col1 + + col2 AS col2 FROM tab0 AS cor0
----
-1168
-1817
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * - 58 NOT IN ( col0 )
----

query I rowsort
SELECT + col1 * col2 FROM tab2 WHERE - col0 / col1 >= NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE ( 86 + 76 ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT DISTINCT 41 + + 6 FROM tab0 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT COUNT( * ) col2 FROM tab1 AS cor0 WHERE + col2 IN ( + col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4887
SELECT COUNT ( * ) col2 FROM tab1 AS cor0 WHERE + col2 IN ( + col1 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4888
SELECT ALL + col1 DIV col0 + col1 AS col1 FROM tab0 cor0
----
1
21
86

skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL + col1 / col0 + col1 AS col1 FROM tab0 cor0
----
1
21
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT DISTINCT + 49 * COUNT( * ) FROM tab1 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-4889
SELECT DISTINCT + 49 * COUNT ( * ) FROM tab1 AS cor0
----
147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4890
SELECT DISTINCT + 91 DIV - COUNT( * ) + 45 DIV + MAX( 62 ) AS col2 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4890
SELECT DISTINCT + 91 / - COUNT ( * ) + 45 / + MAX ( 62 ) AS col2 FROM tab2 AS cor0
----
-30

query I rowsort
SELECT ALL 3 FROM tab1 AS cor0 WHERE + col1 <= col0
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4892
SELECT - + col1 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4892
SELECT - + col1 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 79 + 72 AS col2 FROM tab1 AS cor0
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT - COUNT( * ) * 28 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4894
SELECT - COUNT ( * ) * 28 FROM tab0 AS cor0
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4895
SELECT + - COUNT( * ) DIV 28 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4895
SELECT + - COUNT ( * ) / 28 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT ALL COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( 80 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( 80 ) IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( 57 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - col1 ) col2 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT ALL MAX( DISTINCT - - col2 ) col0 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4899
SELECT ALL MAX ( DISTINCT - - col2 ) col0 FROM tab2
----
58

query I rowsort
SELECT col1 * - col1 + + col0 AS col2 FROM tab1
----
-145
-2118
60

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT NULL BETWEEN ( - col0 * col0 ) AND ( NULL )
----

query I rowsort
SELECT ALL + col2 + + col2 - + col0 * col0 AS col0 FROM tab0
----
-131
-7549
-9211

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4903
SELECT DISTINCT col2 FROM tab0 WHERE NOT + col1 >= - CAST( NULL AS DECIMAL ) - - col0
----

skipif mysql # not compatible
query I rowsort label-4903
SELECT DISTINCT col2 FROM tab0 WHERE NOT + col1 >= - CAST ( NULL AS REAL ) - - col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 41 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 + - 57 * - col0 col2 FROM tab1
----
3054
4989
5346

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT ( COUNT( * ) ) + 59 FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-4907
SELECT ( COUNT ( * ) ) + 59 FROM tab2 AS cor0
----
62

query I rowsort
SELECT ALL + 24 - - col1 FROM tab2 AS cor0
----
101
75
91

query I rowsort
SELECT DISTINCT ( - col2 ) * + col0 + col1 FROM tab0 AS cor0
----
-624
-849
-9602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4910
SELECT + + CAST( MIN( + col1 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4910
SELECT + + CAST ( MIN ( + col1 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT DISTINCT + ( 45 ) - - SUM( - col0 ) col0 FROM tab1 AS cor0
----
-182

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4911
SELECT DISTINCT + ( 45 ) - - SUM ( - col0 ) col0 FROM tab1 AS cor0
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT SUM( DISTINCT 0 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4912
SELECT SUM ( DISTINCT 0 ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 - - col1 + 75 FROM tab0
----
-21
141
9

query I rowsort
SELECT col2 * - + 13 FROM tab1
----
-1248
-767
-884

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4915
SELECT * FROM tab2 WHERE NOT ( ( + CAST( NULL AS DECIMAL ) ) + + col1 ) NOT IN ( col0 )
----

skipif mysql # not compatible
query III rowsort label-4915
SELECT * FROM tab2 WHERE NOT ( ( + CAST ( NULL AS REAL ) ) + + col1 ) NOT IN ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4916
SELECT + col2 DIV + 40 AS col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4916
SELECT + col2 / + 40 AS col2 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query II rowsort label-4917
SELECT - 32, 65 - - SUM( - 23 ) AS col0 FROM tab1 AS cor0
----
-32
-4

skipif mysql # not compatible
query II rowsort label-4917
SELECT - 32, 65 - - SUM ( - 23 ) AS col0 FROM tab1 AS cor0
----
-32
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 59 col0 FROM tab2 AS cor0
----
59

query II rowsort
SELECT + + 5 AS col0, - col1 AS col1 FROM tab0 cor0
----
5
-1
5
-21
5
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4920
SELECT ALL - - CAST( + 61 AS SIGNED ) FROM tab1 AS cor0
----
61
61
61

skipif mysql # not compatible
query I rowsort label-4920
SELECT ALL - - CAST ( + 61 AS INTEGER ) FROM tab1 AS cor0
----
61
61
61

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 44 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 / 83 FROM tab1 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4924
SELECT * FROM tab0 WHERE NOT - - col1 - + col0 * + ( + CAST( - 19 AS SIGNED ) + + col0 ) > NULL
----

skipif mysql # not compatible
query III rowsort label-4924
SELECT * FROM tab0 WHERE NOT - - col1 - + col0 * + ( + CAST ( - 19 AS INTEGER ) + + col0 ) > NULL
----

query II rowsort
SELECT col2 * col2 AS col2, ( 4 ) * - 80 + col0 FROM tab1
----
3481
-235
4624
-229
9216
-269

query III rowsort
SELECT * FROM tab2 WHERE NOT 75 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4927
SELECT ALL + 48 DIV + - 87 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4927
SELECT ALL + 48 / + - 87 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4928
SELECT DISTINCT - 99 * + COUNT( col2 ) + - + 87 DIV 94 FROM tab1 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-4928
SELECT DISTINCT - 99 * + COUNT ( col2 ) + - + 87 / 94 FROM tab1 AS cor0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT ALL - MIN( ALL + 10 ) AS col2 FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL - MIN ( ALL + 10 ) AS col2 FROM tab2 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT DISTINCT + COUNT( * ) * + + 36 AS col1 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT + COUNT ( * ) * + + 36 AS col1 FROM tab2
----
108

query III rowsort
SELECT * FROM tab2 WHERE NULL > + + col0 + - 92
----

query III rowsort
SELECT * FROM tab1 WHERE + - col0 BETWEEN - col1 AND + 37
----

query I rowsort
SELECT + 61 + + ( col0 ) AS col2 FROM tab2
----
107
125
136

query I rowsort
SELECT - 43 + - 4 AS col0 FROM tab0 cor0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT + - COUNT( * ) + + 2 - 2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4935
SELECT + - COUNT ( * ) + + 2 - 2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 <> ( + + col2 - + - col2 / + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 - - - 21 AS col0 FROM tab2 AS cor0
----
19
2
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND 35
----
0

skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND 35
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT ALL - SUM( ALL + col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL - SUM ( ALL + col0 ) FROM tab1 AS cor0
----
-227

query III rowsort
SELECT * FROM tab0 WHERE ( NOT 19 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 34 * col0 * - 92 FROM tab1
----
-159528
-265880
-284648

query I rowsort
SELECT ALL col2 + - - col0 AS col1 FROM tab2
----
104
133
69

query II rowsort
SELECT 63 * - col0, col1 FROM tab0
----
-5481
21
-6111
1
-945
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col2 IS NOT NULL )
----

query I rowsort
SELECT col2 * - 38 FROM tab1
----
-2242
-2584
-3648

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT ALL + ( - COUNT( * ) ) * + COUNT( * ) + + 64 AS col2 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL + ( - COUNT ( * ) ) * + COUNT ( * ) + + 64 AS col2 FROM tab1
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 14 ) * - - 58 col1 FROM tab0
----
-812
-812
-812

query II rowsort
SELECT - col0 - + col0 AS col1, 78 AS col1 FROM tab1 WHERE NULL IS NULL
----
-102
78
-170
78
-182
78

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 68 = + col2 + 62 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( - 0 ) FROM tab1
----
0

query II rowsort
SELECT ALL - col1 + col2 AS col2, - col2 AS col0 FROM tab0
----
-11
-10
-34
-47
98
-99

query I rowsort
SELECT 12 - + - col0 FROM tab1
----
103
63
97

query I rowsort
SELECT DISTINCT + + 95 + + 12 FROM tab1 cor0
----
107

query II rowsort
SELECT DISTINCT - - col2 - 22 AS col0, col1 FROM tab0 AS cor0
----
-12
21
25
81
77
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 * + col2 col1 FROM tab2 AS cor0
----
-102400
-24334
-252300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 25, + ( + col1 ) col2 FROM tab2 AS cor0
----
-25
51
-25
67
-25
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4957
SELECT ALL col2 / + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL col2 / + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - AVG ( 38 ) FROM tab0 AS cor0 WHERE NOT ( NOT + col2 + + + col2 * - + ( + col0 ) + + col2 IS NULL )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4959
SELECT + CAST( NULL AS DECIMAL ) AS col1, 83 * 84 FROM tab1 AS cor0 WHERE NOT ( NOT col0 IS NULL )
----

skipif mysql # not compatible
query II rowsort label-4959
SELECT + CAST ( NULL AS REAL ) AS col1, 83 * 84 FROM tab1 AS cor0 WHERE NOT ( NOT col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT ALL + SUM( DISTINCT col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4960
SELECT ALL + SUM ( DISTINCT col1 ) FROM tab0 AS cor0
----
103

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL NOT BETWEEN ( NULL ) AND - 71 + col1 )
----

query I rowsort
SELECT 19 AS col1 FROM tab0 cor0
----
19
19
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4963
SELECT - 10 / + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4963
SELECT - 10 / + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 27 AS col0 FROM tab1 cor0
----
27
27
27

query I rowsort
SELECT DISTINCT - + col2 * - - col2 + + 93 FROM tab2 AS cor0
----
-1507
-3271
-436

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT DISTINCT + SUM( DISTINCT - col0 ) * - 42 AS col1 FROM tab0 AS cor0
----
8358

skipif mysql # not compatible
query I rowsort label-4966
SELECT DISTINCT + SUM ( DISTINCT - col0 ) * - 42 AS col1 FROM tab0 AS cor0
----
8358

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT - ( + col2 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4968
SELECT COUNT( * ) AS col0, + CAST( NULL AS SIGNED ) FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4968
SELECT COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) FROM tab2
----
3
NULL

query I rowsort
SELECT ALL 58 * - ( + col0 ) FROM tab0
----
-5046
-5626
-870

query I rowsort
SELECT DISTINCT 6 * + col0 AS col0 FROM tab1
----
306
510
546

query I rowsort
SELECT ALL - col0 * 33 FROM tab0
----
-2871
-3201
-495

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 / + + col0 - - + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4973
SELECT CAST( NULL AS SIGNED ) * - + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4973
SELECT CAST ( NULL AS INTEGER ) * - + col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 * + col0 < col2 * - - ( + 20 )
----
15
81
47
87
21
10

query I rowsort
SELECT ALL + - 60 + - col2 + - 70 * 58 * + 63 * - 46 AS col0 FROM tab0 AS cor0 WHERE NOT col0 + - + 8 + - + col0 IS NOT NULL
----

query I rowsort
SELECT + 52 + - 27 FROM tab2 AS cor0
----
25
25
25

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1 )
----

query I rowsort
SELECT - - 16 + - col2 * - col2 FROM tab1 AS cor0
----
3497
4640
9232

query I rowsort
SELECT + col1 + + 36 - col2 / + col0 + col0 FROM tab0 WHERE NULL IN ( + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE - 16 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL BETWEEN ( col2 ) AND ( + ( - + col2 ) ) / - + 88 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4982
SELECT ALL * FROM tab1 WHERE + - col0 * + col1 NOT BETWEEN - CAST( NULL AS SIGNED ) AND ( + col1 + - col1 )
----

skipif mysql # not compatible
query III rowsort label-4982
SELECT ALL * FROM tab1 WHERE + - col0 * + col1 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND ( + col1 + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4983
SELECT DISTINCT ( - + 14 ) + - col2 - + col1 DIV + col1 FROM tab0
----
-114
-25
-62

skipif mysql # not compatible
query I rowsort label-4983
SELECT DISTINCT ( - + 14 ) + - col2 - + col1 / + col1 FROM tab0
----
-114
-25
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + 39 ) + + 22 col0 FROM tab2 AS cor0
----
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab2 AS cor0 WHERE - col1 * col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4987
SELECT ALL + col0 * + col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL + col0 * + col2 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 - col0 + - 55 FROM tab2 AS cor0
----
-55
-55
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 40 - + col1 col0, col1 FROM tab1 AS cor0
----
-7
47
26
14
35
5

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) = + col0
----

query I rowsort
SELECT - 21 * - col1 + col1 - + col1 AS col2 FROM tab2 AS cor0
----
1071
1407
1617

query I rowsort
SELECT DISTINCT - 47 * + col1 + - 43 + - col2 * - ( + 51 ) + col1 + 95 + - - col1 FROM tab0 AS cor0
----
-1196
-383
5056

query I rowsort
SELECT ALL - - 5 AS col1 FROM tab2 AS cor0
----
5
5
5

query I rowsort
SELECT ALL col1 - ( 49 ) FROM tab0 cor0
----
-28
-48
32

query I rowsort
SELECT col2 FROM tab1 WHERE - col1 NOT BETWEEN col2 * col0 AND NULL
----
59
68
96

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 3 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 * col1 FROM tab2 WHERE - col1 NOT BETWEEN + col0 AND ( + 28 )
----
2601
4489
5929

query III rowsort
SELECT * FROM tab2 WHERE + - col0 BETWEEN NULL AND + col2
----

query I rowsort
SELECT - col0 FROM tab0 WHERE + col2 IS NULL
----

query I rowsort
SELECT 50 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
50
50
50

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > + col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN NULL AND - + 86 / col0 * + - 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT - COUNT( col2 ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5003
SELECT - COUNT ( col2 ) AS col1 FROM tab1 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 60 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5005
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT - SUM( 24 ) AS col2 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-5006
SELECT - SUM ( 24 ) AS col2 FROM tab2
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5007
SELECT + + COUNT( * ) / 48 + + MIN( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5007
SELECT + + COUNT ( * ) / 48 + + MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL ( 93 ), col0 FROM tab1 AS cor0
----
93
51
93
85
93
91

query II rowsort
SELECT col2, + col1 AS col1 FROM tab1 cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT 53 * + MIN( + col1 ) FROM tab2 AS cor0
----
2703

skipif mysql # not compatible
query I rowsort label-5010
SELECT 53 * + MIN ( + col1 ) FROM tab2 AS cor0
----
2703

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5011
SELECT DISTINCT * FROM tab0 WHERE - col1 + - ( col2 ) + CAST( - - col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5011
SELECT DISTINCT * FROM tab0 WHERE - col1 + - ( col2 ) + CAST ( - - col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 77 + - 85 * - 62 * + 75 * + col2 / + - col1 AS col0, 93 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT DISTINCT + COUNT( * ) * MIN( + - col1 ) * - 89 col0 FROM tab2
----
20559

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5013
SELECT DISTINCT + COUNT ( * ) * MIN ( + - col1 ) * - 89 col0 FROM tab2
----
20559

query III rowsort
SELECT * FROM tab2 WHERE NOT 75 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT SUM( + 92 ) AS col1 FROM tab2
----
276

skipif mysql # not compatible
query I rowsort label-5015
SELECT SUM ( + 92 ) AS col1 FROM tab2
----
276

query I rowsort
SELECT ALL 15 + - 79 FROM tab1
----
-64
-64
-64

query I rowsort
SELECT DISTINCT + col0 + + + ( col1 ) FROM tab0
----
108
96
98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 + + col2 IS NULL
----

query I rowsort
SELECT + 48 * ( - - 88 ) * - + col2 AS col1 FROM tab1
----
-249216
-287232
-405504

query I rowsort
SELECT ALL col2 + - col2 * - 57 AS col0 FROM tab2 AS cor0
----
1334
2320
3364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5021
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT 28 * col1 FROM tab2 AS cor0
----
1428
1876
2156

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 IS NULL AND NOT ( NULL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT - - MIN( - - 15 ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5024
SELECT - - MIN ( - - 15 ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5025
SELECT ALL + col2 * + CAST( 55 AS SIGNED ) + + col2 AS col1, - 31 AS col0 FROM tab1
----
3304
-31
3808
-31
5376
-31

skipif mysql # not compatible
query II rowsort label-5025
SELECT ALL + col2 * + CAST ( 55 AS INTEGER ) + + col2 AS col1, - 31 AS col0 FROM tab1
----
3304
-31
3808
-31
5376
-31

query III rowsort
SELECT * FROM tab2 WHERE + - 70 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-196
-62
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - + col1 * - col0 - 8
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + - col0 + + col1 - 45 col0 FROM tab1 AS cor0
----
140
34
50

query I rowsort
SELECT DISTINCT - col2 * + col2 * - + ( + col1 ) + - col1 AS col0 FROM tab1 AS cor0
----
129010
17400
217281

onlyif mysql # aggregate syntax: 
query II rowsort label-5031
SELECT 58 AS col1, + 86 * + ( + COUNT( * ) ) FROM tab0 AS cor0
----
58
258

skipif mysql # not compatible
query II rowsort label-5031
SELECT 58 AS col1, + 86 * + ( + COUNT ( * ) ) FROM tab0 AS cor0
----
58
258

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5032
SELECT DISTINCT - col2 - col0 - - 68 AS col2, + col0 * + CAST( - col2 AS SIGNED ) col2 FROM tab0 AS cor0
----
-128
-9603
-29
-870
6
-705

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5032
SELECT DISTINCT - col2 - col0 - - 68 AS col2, + col0 * + CAST ( - col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
-128
-9603
-29
-870
6
-705

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5033
SELECT DISTINCT - COUNT( * ) DIV + - 57 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5033
SELECT DISTINCT - COUNT ( * ) / + - 57 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5034
SELECT col2 DIV + col2 AS col1, - col0 DIV 48 AS col0 FROM tab1
----
1
-1
1
-1
1
-1

skipif mysql # not compatible
query II rowsort label-5034
SELECT col2 / + col2 AS col1, - col0 / 48 AS col0 FROM tab1
----
1
-1
1
-1
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT + 79 * - + 89 - + + COUNT( * ) FROM tab1
----
-7034

skipif mysql # not compatible
query I rowsort label-5035
SELECT + 79 * - + 89 - + + COUNT ( * ) FROM tab1
----
-7034

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT DISTINCT COUNT( DISTINCT 22 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5036
SELECT DISTINCT COUNT ( DISTINCT 22 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT + COUNT( * ) * + - ( + + 96 ) FROM tab0
----
-288

skipif mysql # not compatible
query I rowsort label-5037
SELECT + COUNT ( * ) * + - ( + + 96 ) FROM tab0
----
-288

query I rowsort
SELECT + col1 * - col0 + 65 FROM tab2 cor0
----
-2281
-4863
-4960

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5039
SELECT * FROM tab0 WHERE NOT ( NOT ( NOT + CAST( NULL AS SIGNED ) IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5039
SELECT * FROM tab0 WHERE NOT ( NOT ( NOT + CAST ( NULL AS INTEGER ) IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 54 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 31 * - col0 < + - col2 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + 60 AS col1 FROM tab1 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT + ( + + COUNT( * ) ) * + 75 FROM tab0 cor0
----
225

skipif mysql # not compatible
query I rowsort label-5043
SELECT + ( + + COUNT ( * ) ) * + 75 FROM tab0 cor0
----
225

query I rowsort
SELECT ALL + - col0 * - + 71 AS col1 FROM tab0 AS cor0
----
1065
6177
6887

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5045
SELECT DISTINCT - MAX( ALL - CAST( + CAST( + col2 AS SIGNED ) AS SIGNED ) ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5045
SELECT DISTINCT - MAX ( ALL - CAST ( + CAST ( + col2 AS INTEGER ) AS INTEGER ) ) FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT DISTINCT COUNT( ALL - ( + ( - col0 ) ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5046
SELECT DISTINCT COUNT ( ALL - ( + ( - col0 ) ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5047
SELECT - col1 * - + CAST( NULL AS SIGNED ) * - 48 * - - ( + col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5047
SELECT - col1 * - + CAST ( NULL AS INTEGER ) * - 48 * - - ( + col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( 32 ) FROM tab2 AS cor0
----
-32
-32
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-5049
SELECT col0 DIV - 76 AS col1 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5049
SELECT col0 / - 76 AS col1 FROM tab0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT DISTINCT COUNT( * ) * 61 AS col0 FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-5050
SELECT DISTINCT COUNT ( * ) * 61 AS col0 FROM tab1
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT DISTINCT 80 + + SUM( - 85 ) AS col2 FROM tab0
----
-175

skipif mysql # not compatible
query I rowsort label-5051
SELECT DISTINCT 80 + + SUM ( - 85 ) AS col2 FROM tab0
----
-175

query I rowsort
SELECT DISTINCT + col1 + - col1 + - col1 AS col0 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT ALL + 50 + + MIN( DISTINCT col1 ) FROM tab2
----
101

skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL + 50 + + MIN ( DISTINCT col1 ) FROM tab2
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5054
SELECT + 31 + - AVG ( ALL + - CAST( NULL AS SIGNED ) ) - MAX( ALL - col1 ) + + + COUNT( * ) * + 64 * - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5054
SELECT + 31 + - AVG ( ALL + - CAST ( NULL AS INTEGER ) ) - MAX ( ALL - col1 ) + + + COUNT ( * ) * + 64 * - COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5055
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT ALL + + SUM( DISTINCT - col2 ) + - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-5056
SELECT ALL + + SUM ( DISTINCT - col2 ) + - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5057
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col2 + + col1 <> + 44 * - CAST( NULL AS SIGNED ) - - + col0 - + + col2
----
0

skipif mysql # not compatible
query I rowsort label-5057
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col2 + + col1 <> + 44 * - CAST ( NULL AS INTEGER ) - - + col0 - + + col2
----
0

query I rowsort
SELECT DISTINCT col1 + + + 28 AS col0 FROM tab2 AS cor0 WHERE NOT col2 * + - col0 IS NULL
----
105
79
95

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 66 IS NULL
----

query I rowsort
SELECT ALL - + 73 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT 7 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT col2 - + + col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( - col1 ) AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5064
SELECT col2 DIV - + col2 - - 71 AS col1 FROM tab0 AS cor0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-5064
SELECT col2 / - + col2 - - 71 AS col1 FROM tab0 AS cor0
----
70
70
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5065
SELECT - COUNT( * ) - + - MAX( - CAST( - + col1 AS SIGNED ) ) FROM tab1 cor0
----
44

skipif mysql # not compatible
query I rowsort label-5065
SELECT - COUNT ( * ) - + - MAX ( - CAST ( - + col1 AS INTEGER ) ) FROM tab1 cor0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5066
SELECT DISTINCT CAST( col1 AS SIGNED ) - + col0 FROM tab0 AS cor0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT CAST ( col1 AS INTEGER ) - + col0 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT ALL + - col1 + col1 + + - 16 FROM tab1 AS cor0
----
-16
-16
-16

query I rowsort
SELECT ALL - 85 - - ( - 90 ) * - - col1 FROM tab2 AS cor0
----
-4675
-6115
-7015

query I rowsort
SELECT + + col0 * - col0 * - col2 - - col2 - + col1 * - col1 AS col0 FROM tab0 AS cor0
----
17183
76141
931591

query I rowsort
SELECT DISTINCT + + col1 + 35 FROM tab0 AS cor0
----
116
36
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5071
SELECT + + col1 + col2 * - + CAST( + - 25 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1256
2476
271

skipif mysql # not compatible
query I rowsort label-5071
SELECT + + col1 + col2 * - + CAST ( + - 25 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1256
2476
271

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT DISTINCT MAX( + + 81 ) col0 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5072
SELECT DISTINCT MAX ( + + 81 ) col0 FROM tab1 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT ALL + + MAX( + col2 ) col1 FROM tab2 AS cor0 WHERE NULL > 48
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5073
SELECT ALL + + MAX ( + col2 ) col1 FROM tab2 AS cor0 WHERE NULL > 48
----
NULL

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT ( - col2 * + + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5075
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0
----
9

query III rowsort
SELECT ALL * FROM tab0 WHERE - 55 / - + 29 + + + col0 / 47 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5077
SELECT * FROM tab2 WHERE NOT NULL >= - CAST( col2 AS SIGNED ) * + ( + + 50 )
----

skipif mysql # not compatible
query III rowsort label-5077
SELECT * FROM tab2 WHERE NOT NULL >= - CAST ( col2 AS INTEGER ) * + ( + + 50 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5078
SELECT + col0 * + CAST( col1 AS SIGNED ) FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-5078
SELECT + col0 * + CAST ( col1 AS INTEGER ) FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5079
SELECT + CAST( NULL AS DECIMAL ) * - - col1 * + 91 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5079
SELECT + CAST ( NULL AS REAL ) * - - col1 * + 91 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT DISTINCT SUM( + - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT SUM ( + - col1 ) FROM tab1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-5081
SELECT - col0 DIV col0 * + col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5081
SELECT - col0 / col0 * + col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE - - col0 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + 30 )
----

query I rowsort
SELECT col1 * - col1 * + 86 * - col1 AS col0 FROM tab1
----
10750
235984
8928778

query I rowsort
SELECT ALL + col1 * - - col2 + + 74 AS col0 FROM tab1 AS cor0
----
1418
3270
369

query I rowsort
SELECT DISTINCT col2 + - 27 AS col1 FROM tab0 AS cor0
----
-17
20
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT ALL + COUNT( * ) * + 59 + + + 45 AS col2 FROM tab0 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL + COUNT ( * ) * + 59 + + + 45 AS col2 FROM tab0 AS cor0
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT ALL COUNT( DISTINCT - 3 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL COUNT ( DISTINCT - 3 ) FROM tab2
----
1

query I rowsort
SELECT ALL + col2 + + 97 FROM tab1
----
156
165
193

query III rowsort
SELECT * FROM tab0 WHERE ( - 96 ) = NULL
----

query II rowsort
SELECT 28, col1 AS col0 FROM tab2
----
28
51
28
67
28
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT ALL MIN( DISTINCT + + 42 ) FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL MIN ( DISTINCT + + 42 ) FROM tab0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5093
SELECT col1, CAST( - + col2 AS SIGNED ) FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

skipif mysql # not compatible
query II rowsort label-5093
SELECT col1, CAST ( - + col2 AS INTEGER ) FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

query II rowsort
SELECT DISTINCT + col2 + - col2 * + + 14, ( + col2 ) FROM tab1 AS cor0
----
-1248
96
-767
59
-884
68

query II rowsort
SELECT DISTINCT col1 AS col2, col0 FROM tab0 cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT ALL + MAX( - 12 ) col2 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5096
SELECT ALL + MAX ( - 12 ) col2 FROM tab1 AS cor0
----
-12

query I rowsort
SELECT + 21 * + col1 + col0 FROM tab1
----
1078
190
345

query I rowsort
SELECT DISTINCT + 73 AS col2 FROM tab1, tab0 cor0
----
73

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT - col0 * - 17 * + + 32 + 5 AS col1 FROM tab2 cor0
----
25029
34821
40805

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5101
SELECT ALL + + CAST( - 11 AS SIGNED ) FROM tab1 AS cor0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL + + CAST ( - 11 AS INTEGER ) FROM tab1 AS cor0
----
-11
-11
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col1, 49 col2 FROM tab0 cor0
----
1
49
21
49
81
49

query II rowsort
SELECT + col1, + col1 * - 39 FROM tab2 AS cor0
----
51
-1989
67
-2613
77
-3003

query I rowsort
SELECT - - 95 * + - col1 AS col0 FROM tab2 AS cor0
----
-4845
-6365
-7315

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT + MAX( ALL + col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5105
SELECT + MAX ( ALL + col0 ) FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5106
SELECT + ( - 64 ) AS col2, + col2 * - CAST( + + col1 AS SIGNED ) col2 FROM tab2
----
-64
-1173
-64
-3080
-64
-3886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5106
SELECT + ( - 64 ) AS col2, + col2 * - CAST ( + + col1 AS INTEGER ) col2 FROM tab2
----
-64
-1173
-64
-3080
-64
-3886

query II rowsort
SELECT - 80 * - + 55 AS col2, - col0 FROM tab2
----
4400
-46
4400
-64
4400
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5108
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT NULL <> col0 + + 12 * + CAST( NULL AS SIGNED ) + - col1
----

skipif mysql # not compatible
query I rowsort label-5108
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT NULL <> col0 + + 12 * + CAST ( NULL AS INTEGER ) + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > - col0
----

query II rowsort
SELECT + col0 * - col1 AS col1, + col2 AS col0 FROM tab2
----
-2346
23
-4928
40
-5025
58

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE NOT + col2 IS NULL
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + + col2 / col1 ) >= 7
----
51
14
96
91
47
68

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 / col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5114
SELECT - 61 DIV - col0, col0 * + 7 AS col2 FROM tab0 AS cor0
----
0
609
0
679
4
105

skipif mysql # not compatible
query II rowsort label-5114
SELECT - 61 / - col0, col0 * + 7 AS col2 FROM tab0 AS cor0
----
0
609
0
679
4
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5115
SELECT DISTINCT + + COUNT( * ) + - 76 - COUNT( ALL - col2 ) DIV - 70 col1 FROM tab2 AS cor0
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5115
SELECT DISTINCT + + COUNT ( * ) + - 76 - COUNT ( ALL - col2 ) / - 70 col1 FROM tab2 AS cor0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT DISTINCT - + SUM( DISTINCT 87 ) + ( + 86 ) AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5116
SELECT DISTINCT - + SUM ( DISTINCT 87 ) + ( + 86 ) AS col1 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT - + 1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL ( - 40 ) FROM tab0 AS cor0
----
-40
-40
-40

query II rowsort
SELECT + col2 AS col0, col1 * + col2 AS col0 FROM tab2 AS cor0
----
23
1173
40
3080
58
3886

query II rowsort
SELECT DISTINCT + col0 AS col2, + col1 AS col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT - 84 + + - MAX( DISTINCT 22 ) FROM tab2
----
-106

skipif mysql # not compatible
query I rowsort label-5121
SELECT - 84 + + - MAX ( DISTINCT 22 ) FROM tab2
----
-106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 33 + - ( + 4 ) - - - col0 col0, + col0 + + + col2 AS col0 FROM tab0
----
-124
97
-134
196
-52
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( + + col1 ) col1, - 63 FROM tab0
----
-1
-63
-21
-63
-81
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT ALL ( - + 90 ) * - COUNT( + 53 ) + ( + 68 ) FROM tab1
----
338

skipif mysql # not compatible
query I rowsort label-5124
SELECT ALL ( - + 90 ) * - COUNT ( + 53 ) + ( + 68 ) FROM tab1
----
338

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL < NULL )
----

query I rowsort
SELECT ( + 57 ) * 49 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
2793
2793
2793

query I rowsort
SELECT ALL - - 0 + - 21 FROM tab2 cor0
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT DISTINCT 5 - - 56 + COUNT( * ) FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-5128
SELECT DISTINCT 5 - - 56 + COUNT ( * ) FROM tab1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT ALL COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

query II rowsort
SELECT col1, + 22 FROM tab2 AS cor0
----
51
22
67
22
77
22

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 > + col1
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT + COUNT( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5132
SELECT + COUNT ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 60 col0, - col0 AS col1 FROM tab1 AS cor0
----
60
-51
60
-85
60
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT MAX( - 25 ) * + 40 FROM tab0
----
-1000

skipif mysql # not compatible
query I rowsort label-5134
SELECT MAX ( - 25 ) * + 40 FROM tab0
----
-1000

query I rowsort
SELECT DISTINCT + col0 * 48 AS col1 FROM tab1
----
2448
4080
4368

query I rowsort
SELECT ALL + col1 * ( + - col2 ) FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5137
SELECT ALL * FROM tab2 WHERE NOT + - CAST( - col1 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5137
SELECT ALL * FROM tab2 WHERE NOT + - CAST ( - col1 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col1 AS col0, - col0 FROM tab2
----
-51
-46
-67
-75
-77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT - 63 * - + SUM( - 17 ) FROM tab0
----
-3213

skipif mysql # not compatible
query I rowsort label-5139
SELECT - 63 * - + SUM ( - 17 ) FROM tab0
----
-3213

query II rowsort
SELECT col2 AS col1, col2 * 89 FROM tab1 AS cor0
----
59
5251
68
6052
96
8544

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5141
SELECT + + 76 DIV - CAST( - - col0 AS SIGNED ) FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5141
SELECT + + 76 / - CAST ( - - col0 AS INTEGER ) FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT - + 1 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT ALL MAX( 53 ) col1 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5143
SELECT ALL MAX ( 53 ) col1 FROM tab1 AS cor0
----
53

query I rowsort
SELECT - col2 * - ( - col0 ) * - - col0 FROM tab2
----
-163840
-326250
-48668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5145
SELECT ALL - col2 + + - 57 + - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5145
SELECT ALL - col2 + + - 57 + - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT DISTINCT SUM( - - col1 ) + SUM( - col1 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5146
SELECT DISTINCT SUM ( - - col1 ) + SUM ( - col1 ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - + col0 + + 42 FROM tab0 AS cor0
----
-45
-55
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5148
SELECT ALL - CAST( + col2 AS SIGNED ) * - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL - CAST ( + col2 AS INTEGER ) * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 88 * col0 AS col1, + col0 AS col1 FROM tab1 AS cor0
----
4488
51
7480
85
8008
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5150
SELECT DISTINCT - col0 + - + CAST( - - ( + 71 ) AS SIGNED ) FROM tab2 cor0
----
-117
-135
-146

skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT - col0 + - + CAST ( - - ( + 71 ) AS INTEGER ) FROM tab2 cor0
----
-117
-135
-146

query I rowsort
SELECT - col2 * + - col1 FROM tab0 AS cor0 WHERE 57 + - 51 <> + - 21
----
210
3807
99

query I rowsort
SELECT ALL - + 23 * - col0 + col1 - - col2 FROM tab0 cor0
----
2032
2331
473

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT + COUNT( + - 3 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5153
SELECT + COUNT ( + - 3 ) col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5154
SELECT ALL + CAST( - col2 AS SIGNED ) FROM tab0 WHERE NOT NULL <> CAST( NULL AS SIGNED ) + col2
----

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL + CAST ( - col2 AS INTEGER ) FROM tab0 WHERE NOT NULL <> CAST ( NULL AS INTEGER ) + col2
----

query I rowsort
SELECT 62 * - 54 FROM tab0
----
-3348
-3348
-3348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5156
SELECT - CAST( SUM( DISTINCT + 65 ) AS SIGNED ) AS col0 FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-5156
SELECT - CAST ( SUM ( DISTINCT + 65 ) AS INTEGER ) AS col0 FROM tab0
----
-65

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE + col0 IN ( - 20 + + col1 + + col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5158
SELECT CAST( NULL AS DECIMAL ) * + col1 - - col0 * + col1 / - - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5158
SELECT CAST ( NULL AS REAL ) * + col1 - - col0 * + col1 / - - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5159
SELECT ALL + col1 - 66 + col2 DIV col1 * + col2 FROM tab2 cor0
----
-15
1
11

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL + col1 - 66 + col2 / col1 * + col2 FROM tab2 cor0
----
-15
1
11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5160
SELECT * FROM tab0 AS cor0 WHERE + CAST( - - 86 AS SIGNED ) BETWEEN - col1 AND + + 43
----

skipif mysql # not compatible
query III rowsort label-5160
SELECT * FROM tab0 AS cor0 WHERE + CAST ( - - 86 AS INTEGER ) BETWEEN - col1 AND + + 43
----

query II rowsort
SELECT ALL - 26, - col0 AS col1 FROM tab0 AS cor0
----
-26
-15
-26
-87
-26
-97

query I rowsort
SELECT 38 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # aggregate syntax: 
query II rowsort label-5163
SELECT ALL - COUNT( * ), ( COUNT( * ) ) AS col1 FROM tab1 WHERE NOT + + col0 IN ( 33 )
----
-3
3

skipif mysql # not compatible
query II rowsort label-5163
SELECT ALL - COUNT ( * ), ( COUNT ( * ) ) AS col1 FROM tab1 WHERE NOT + + col0 IN ( 33 )
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT DISTINCT - COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5164
SELECT DISTINCT - COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL - ( + ( + + col1 ) ) FROM tab2 AS cor0
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 87 col1 FROM tab1 AS cor0
----
-87

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 24 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT + COUNT( + 57 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5168
SELECT + COUNT ( + 57 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + 67 * - 18 + 52 FROM tab2 AS cor0
----
-1154
-1154
-1154

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 1 + - 13 + + 6 * + col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5171
SELECT ALL + 12 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5171
SELECT ALL + 12 / - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL ( + - col0 ) AS col1 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + ( 68 ) AS col2 FROM tab2 AS cor0
----
68

query I rowsort
SELECT - ( + col1 ) + - col1 * - col0 AS col0 FROM tab1 AS cor0
----
420
4230
700

query I rowsort
SELECT ALL - col0 * + + 71 AS col1 FROM tab0 AS cor0
----
-1065
-6177
-6887

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5176
SELECT ALL + 86 DIV - - MAX( ALL col0 ) AS col2 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5176
SELECT ALL + 86 / - - MAX ( ALL col0 ) AS col2 FROM tab2 cor0
----
1

query III rowsort
SELECT ALL * FROM tab0 WHERE + 0 < NULL
----

query I rowsort
SELECT + 82 * - + col1 + - col2 * - col1 * + - col1 FROM tab1 AS cor0
----
-154066
-1885
-19964

query I rowsort
SELECT ALL 52 + + 91 + - 1 + + col1 * - col0 FROM tab0 cor0
----
-1073
-1685
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT - SUM( DISTINCT + + 90 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5180
SELECT - SUM ( DISTINCT + + 90 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT + COUNT( * ) * + MIN( + col1 ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-5181
SELECT + COUNT ( * ) * + MIN ( + col1 ) FROM tab2 AS cor0
----
153

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col1 AND - ( + + col2 ) * col0 / col2 - col1
----

query I rowsort
SELECT DISTINCT - col0 - + col2 * - 6 FROM tab2 AS cor0
----
176
273
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT - + 46 - + COUNT( ALL + col2 ) FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-5184
SELECT - + 46 - + COUNT ( ALL + col2 ) FROM tab2 AS cor0
----
-49

query I rowsort
SELECT + 8 * + - 53 - - - 1 + col0 * + col2 + col2 - - + col2 + 48 AS col0 FROM tab0 AS cor0
----
422
513
9424

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 <> NULL
----

query I rowsort
SELECT ALL - + col0 * col1 * - ( + + col1 ) + + 56 AS col2 FROM tab1 AS cor0
----
10052
201075
2181

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL - col0 * - - col1 - + + col2 AS col2 FROM tab1 AS cor0
----
-4345
-484
-810

query I rowsort
SELECT ( ( + ( 82 ) ) ) + + ( + + 67 ) + + - 37 * + 31 FROM tab2
----
-998
-998
-998

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT DISTINCT + MIN( ALL 8 ) AS col0 FROM tab0 WHERE NOT NULL = col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT + MIN ( ALL 8 ) AS col0 FROM tab0 WHERE NOT NULL = col0
----
NULL

query II rowsort
SELECT 85 + - + col1, + col0 AS col0 FROM tab2
----
18
75
34
46
8
64

query I rowsort
SELECT DISTINCT 78 + + col0 AS col1 FROM tab1
----
129
163
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5194
SELECT ALL + CAST( + AVG ( + 3 ) AS SIGNED ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5194
SELECT ALL + CAST ( + AVG ( + 3 ) AS INTEGER ) col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT DISTINCT + MIN( ALL 80 ) AS col0 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-5195
SELECT DISTINCT + MIN ( ALL 80 ) AS col0 FROM tab1
----
80

query I rowsort
SELECT - 11 + + col2 FROM tab1
----
48
57
85

query II rowsort
SELECT DISTINCT + - 2 - 17, - col2 AS col0 FROM tab0 AS cor0
----
-19
-10
-19
-47
-19
-99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 46 + + col0 / - ( - - col0 ) + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 col0 FROM tab2 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT + - SUM( - col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5200
SELECT + - SUM ( - col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5201
SELECT col0 / + - 9 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5201
SELECT col0 / + - 9 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 69 + - - 35 FROM tab0
----
104

query II rowsort
SELECT - col2 * + col2, + col0 AS col0 FROM tab1
----
-3481
85
-4624
91
-9216
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + col0 ) col0 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5205
SELECT DISTINCT 16 + + CAST( - col1 AS SIGNED ) col1 FROM tab2
----
-35
-51
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5205
SELECT DISTINCT 16 + + CAST ( - col1 AS INTEGER ) col1 FROM tab2
----
-35
-51
-61

query I rowsort
SELECT DISTINCT - col1 * - + 86 FROM tab2 cor0
----
4386
5762
6622

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5208
SELECT DISTINCT - CAST( + 64 AS SIGNED ) * - + MIN( CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5208
SELECT DISTINCT - CAST ( + 64 AS INTEGER ) * - + MIN ( CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col1 + + 89 AS col1 FROM tab2 AS cor0
----
12
22
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + - 75 col2 FROM tab0 AS cor0 WHERE ( + col2 ) <= + col0
----
-54

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 26 < - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL IN ( ( - - col0 ), - 54, + col1, 23 )
----

query I rowsort
SELECT + col1 * col1 + + + col0 FROM tab1 AS cor0
----
110
2300
247

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT DISTINCT + 6 * - + COUNT( * ) FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-5214
SELECT DISTINCT + 6 * - + COUNT ( * ) FROM tab0
----
-18

query I rowsort
SELECT + 70 - col0 AS col1 FROM tab2
----
-5
24
6

query I rowsort
SELECT + 10 * + 75 - col2 FROM tab1
----
654
682
691

query I rowsort
SELECT 44 - - ( - col1 ) FROM tab0
----
-37
23
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT ALL - MAX( ALL + + col2 ) * + 23 AS col1 FROM tab0 AS cor0
----
-2277

skipif mysql # not compatible
query I rowsort label-5218
SELECT ALL - MAX ( ALL + + col2 ) * + 23 AS col1 FROM tab0 AS cor0
----
-2277

onlyif mysql # DIV for integer division: 
query I rowsort label-5219
SELECT DISTINCT - col0 DIV - 69 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5219
SELECT DISTINCT - col0 / - 69 FROM tab2 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, col2 col1 FROM tab2 AS cor0 WHERE NOT - col1 / 97 * - ( + col0 ) / col0 * + col1 + ( + col1 ) + + 80 * + - col0 + - - 57 / 46 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT ALL + MIN( + 82 ) AS col1 FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL + MIN ( + 82 ) AS col1 FROM tab1 AS cor0
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + 70 * - col2 - + + col0 AS col1 FROM tab2 WHERE NOT NULL > + - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT - 32 * - col2 * + 36 FROM tab0 AS cor0 WHERE NOT ( NULL <> - col0 * + + col1 + + 59 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT ALL + COUNT( * ) col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5226
SELECT ALL + COUNT ( * ) col1 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5227
SELECT - 56 DIV MIN( + col0 ) - - 83 * + 11 AS col1 FROM tab1 cor0
----
912

skipif mysql # not compatible
query I rowsort label-5227
SELECT - 56 / MIN ( + col0 ) - - 83 * + 11 AS col1 FROM tab1 cor0
----
912

onlyif mysql # DIV for integer division: 
query II rowsort label-5228
SELECT DISTINCT col0 DIV col0 * - col2 + + - col0 + - col0 AS col2, - col2 DIV + col0 AS col2 FROM tab0 cor0
----
-184
0
-293
-1
-77
-3

skipif mysql # not compatible
query II rowsort label-5228
SELECT DISTINCT col0 / col0 * - col2 + + - col0 + - col0 AS col2, - col2 / + col0 AS col2 FROM tab0 cor0
----
-184
0
-293
-1
-77
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT DISTINCT + + SUM( ALL + ( - 1 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT + + SUM ( ALL + ( - 1 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - - col1 FROM tab2 AS cor0 WHERE NOT ( - + col1 ) IS NOT NULL
----

query I rowsort
SELECT + + 7 AS col0 FROM tab2 cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT + COUNT( * ) * COUNT( - - ( + col0 ) ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5232
SELECT + COUNT ( * ) * COUNT ( - - ( + col0 ) ) FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT DISTINCT COUNT( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0 WHERE col0 / - ( - - 79 ) BETWEEN + 16 + - 63 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5233
SELECT DISTINCT COUNT ( DISTINCT + col1 ) AS col2 FROM tab0 AS cor0 WHERE col0 / - ( - - 79 ) BETWEEN + 16 + - 63 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT + ( + MIN( - col0 ) ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-5234
SELECT + ( + MIN ( - col0 ) ) FROM tab2
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 48 col0, - col0 + - 84 AS col2 FROM tab2
----
48
-130
48
-148
48
-159

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 WHERE - 70 + col2 IS NULL
----

query I rowsort
SELECT DISTINCT 80 + + col2 FROM tab1
----
139
148
176

query I rowsort
SELECT ALL col2 + + col2 + - 25 * + - col2 + + col1 FROM tab0
----
1350
2674
291

query I rowsort
SELECT col0 FROM tab2 WHERE - - col1 < NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( + - 4 ) IS NULL
----

query I rowsort
SELECT + + 25 + - - 71 + - + col1 * - col0 AS col1 FROM tab2 AS cor0
----
2442
5024
5121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5242
SELECT DISTINCT + col1 AS col1, col0 AS col1 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
1
97
21
87
81
15

skipif mysql # not compatible
query II rowsort label-5242
SELECT DISTINCT + col1 AS col1, col0 AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
1
97
21
87
81
15

query I rowsort
SELECT - 99 * col0 + + 51 AS col1 FROM tab0 AS cor0
----
-1434
-8562
-9552

query I rowsort
SELECT - col0 * + - 87 + - col2 AS col1 FROM tab0 AS cor0
----
1258
7559
8340

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT DISTINCT + MAX( ALL 30 ) AS col2 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-5245
SELECT DISTINCT + MAX ( ALL 30 ) AS col2 FROM tab2 AS cor0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-5246
SELECT 3 DIV + col2 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5246
SELECT 3 / + col2 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT 77 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT - - col0 - - col2 AS col1 FROM tab0 AS cor0
----
196
62
97

query II rowsort
SELECT + col1 - - col2 AS col2, 79 AS col2 FROM tab1 AS cor0
----
110
79
115
79
64
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5250
SELECT ALL - - CAST( + col2 AS SIGNED ) - - + ( - col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5250
SELECT ALL - - CAST ( + col2 AS INTEGER ) - - + ( - col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT - COUNT( ALL - 98 ) - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5251
SELECT - COUNT ( ALL - 98 ) - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-5252
SELECT + 28 + - AVG ( DISTINCT ( + 46 ) ) AS col2, + MIN( ALL - 78 ) * + COUNT( * ) - ( - + 81 ) + + MIN( + 95 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5252
SELECT + 28 + - AVG ( DISTINCT ( + 46 ) ) AS col2, + MIN ( ALL - 78 ) * + COUNT ( * ) - ( - + 81 ) + + MIN ( + 95 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 88 - + col1 col0, - col0 + + 78 + + col2 * - col0 FROM tab0 AS cor0
----
67
-879
7
-642
87
-9622

query I rowsort
SELECT DISTINCT - 96 * - 74 FROM tab1
----
7104

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5255
SELECT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) + + col0 <> NULL
----

skipif mysql # not compatible
query III rowsort label-5255
SELECT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) + + col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5256
SELECT ALL - CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab2 WHERE NOT col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL - CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab2 WHERE NOT col2 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 83 * col2 AS col0 FROM tab0
----
3901
8217
830

query I rowsort
SELECT ALL col0 * - 48 AS col1 FROM tab1
----
-2448
-4080
-4368

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5259
SELECT ALL * FROM tab0 AS cor0 WHERE 3 <= + CAST( col1 AS SIGNED )
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-5259
SELECT ALL * FROM tab0 AS cor0 WHERE 3 <= + CAST ( col1 AS INTEGER )
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5260
SELECT CAST( - + 42 AS SIGNED ) * 41 DIV ( - 9 ) AS col1 FROM tab1 cor0 WHERE NOT ( NOT - + 34 <> col1 )
----
191
191
191

skipif mysql # not compatible
query I rowsort label-5260
SELECT CAST ( - + 42 AS INTEGER ) * 41 / ( - 9 ) AS col1 FROM tab1 cor0 WHERE NOT ( NOT - + 34 <> col1 )
----
191
191
191

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( ( NOT col0 <= NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5262
SELECT COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5263
SELECT ( - CAST( NULL AS SIGNED ) ) * + COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5263
SELECT ( - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col2, col1 col0 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT + 62 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 93 IS NOT NULL
----

query I rowsort
SELECT - 24 * - ( + 31 ) * - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15624
-60264
-744

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 60 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 >= - col0
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5270
SELECT ALL - CAST( 18 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-5270
SELECT ALL - CAST ( 18 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT ALL + MIN( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL + MIN ( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN - col1 AND + col0 + 32
----

query I rowsort
SELECT ALL + 77 * + 62 AS col1 FROM tab0
----
4774
4774
4774

onlyif mysql # DIV for integer division: 
query I rowsort label-5274
SELECT col0 DIV 2 AS col0 FROM tab1
----
25
42
45

skipif mysql # not compatible
query I rowsort label-5274
SELECT col0 / 2 AS col0 FROM tab1
----
25
42
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5275
SELECT CAST( 20 AS SIGNED ) col2 FROM tab0
----
20
20
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5275
SELECT CAST ( 20 AS INTEGER ) col2 FROM tab0
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT - - COUNT( * ) * - + 27 AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5276
SELECT - - COUNT ( * ) * - + 27 AS col2 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ALL + col2 * + 39 + + + ( - col2 ) FROM tab0 AS cor0
----
1786
3762
380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5278
SELECT 23 FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5278
SELECT 23 FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL ( - 85 ) FROM tab2 AS cor0
----
-85
-85
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 36 col0 FROM tab2 AS cor0
----
103
113
87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5281
SELECT MAX( ALL col2 ) + + COUNT( * ) - - - CAST( NULL AS DECIMAL ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5281
SELECT MAX ( ALL col2 ) + + COUNT ( * ) - - - CAST ( NULL AS REAL ) col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5282
SELECT ALL * FROM tab0 WHERE - col0 + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5282
SELECT ALL * FROM tab0 WHERE - col0 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5283
SELECT + col1 + - CAST( + + col1 AS SIGNED ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5283
SELECT + col1 + - CAST ( + + col1 AS INTEGER ) AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - 10 + + col0 AS col2 FROM tab0
----
5
77
87

query II rowsort
SELECT - + 56 AS col2, - col1 + + col0 FROM tab0 cor0
----
-56
-66
-56
66
-56
96

query I rowsort
SELECT ALL - 79 + - + col0 FROM tab1 cor0
----
-130
-164
-170

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 54 IN ( + col2 )
----

query I rowsort
SELECT ALL col1 + + + col2 AS col0 FROM tab0 cor0
----
100
128
31

query II rowsort
SELECT DISTINCT - col1 * + + 94 + + + col0 * - 71 AS col0, col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 47 > NULL
----

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 AS cor0 WHERE NULL <> - col2 - + ( - + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 56 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * 52 FROM tab0
----
2444
5148
520

query I rowsort
SELECT ( + 83 ) FROM tab2
----
83
83
83

onlyif mysql # aggregate syntax: 
query II rowsort label-5295
SELECT SUM( ALL + - 42 ) AS col1, - 59 FROM tab2
----
-126
-59

skipif mysql # not compatible
query II rowsort label-5295
SELECT SUM ( ALL + - 42 ) AS col1, - 59 FROM tab2
----
-126
-59

query I rowsort
SELECT DISTINCT 29 * - 0 * + - col0 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT ALL + MIN( DISTINCT 43 ) AS col2 FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL + MIN ( DISTINCT 43 ) AS col2 FROM tab0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5298
SELECT + 18 * + 57 * - + CAST( - MAX( DISTINCT col1 ) AS SIGNED ) + 6 FROM tab2 AS cor0
----
79008

skipif mysql # not compatible
query I rowsort label-5298
SELECT + 18 * + 57 * - + CAST ( - MAX ( DISTINCT col1 ) AS INTEGER ) + 6 FROM tab2 AS cor0
----
79008

query I rowsort
SELECT DISTINCT - 87 * 11 - + + col0 AS col0 FROM tab2 AS cor0
----
-1003
-1021
-1032

onlyif mysql # aggregate syntax: 
query II rowsort label-5300
SELECT ALL + COUNT( * ) AS col1, - COUNT( * ) FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-5300
SELECT ALL + COUNT ( * ) AS col1, - COUNT ( * ) FROM tab1
----
3
-3

query I rowsort
SELECT ALL - 22 AS col2 FROM tab2 cor0 WHERE - 14 IS NOT NULL
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT ( + COUNT( * ) ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5302
SELECT ( + COUNT ( * ) ) AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT col1 * + col2 + 44 + - 3 + + col2 * - 10 FROM tab0 cor0
----
-850
151
3378

onlyif mysql # DIV for integer division: 
query I rowsort label-5304
SELECT + col1 * col0 DIV - + 40 AS col1 FROM tab1 cor0
----
-10
-106
-17

skipif mysql # not compatible
query I rowsort label-5304
SELECT + col1 * col0 / - + 40 AS col1 FROM tab1 cor0
----
-10
-106
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT ALL MAX( DISTINCT + + col0 ) * - COUNT( * ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL MAX ( DISTINCT + + col0 ) * - COUNT ( * ) FROM tab2
----
-225

query I rowsort
SELECT DISTINCT + 16 * + col1 FROM tab0
----
1296
16
336

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5307
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE col2 * + col1 + col1 * CAST( NULL AS DECIMAL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5307
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE col2 * + col1 + col1 * CAST ( NULL AS REAL ) IS NULL
----
-3

query I rowsort
SELECT col2 + - - col1 + + 97 * 71 + + 25 AS col0 FROM tab1
----
6976
7022
7027

query I rowsort
SELECT - col2 * - col0 + - col1 FROM tab1
----
4882
5010
6141

query I rowsort
SELECT DISTINCT col2 + 53 + - + col1 AS col2 FROM tab0
----
151
19
42

query I rowsort
SELECT DISTINCT col2 - + 84 * col0 FROM tab1
----
-4188
-7081
-7576

onlyif mysql # aggregate syntax: 
query II rowsort label-5312
SELECT + 44 AS col2, - MIN( + col2 ) FROM tab2 AS cor0
----
44
-23

skipif mysql # not compatible
query II rowsort label-5312
SELECT + 44 AS col2, - MIN ( + col2 ) FROM tab2 AS cor0
----
44
-23

query I rowsort
SELECT 77 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5314
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5315
SELECT ALL 77 + + col0 + - col1 DIV - col2 * + ( - + col1 ) DIV + - col1 + 35 FROM tab2 cor0
----
160
177
188

skipif mysql # not compatible
query I rowsort label-5315
SELECT ALL 77 + + col0 + - col1 / - col2 * + ( - + col1 ) / + - col1 + 35 FROM tab2 cor0
----
160
177
188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 * - - col0 * + col1 * 66 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-25322220
-305283330
-633798

query II rowsort
SELECT ALL - + col0 * - col2 * col0 AS col0, 66 + col2 FROM tab2 AS cor0
----
163840
106
326250
124
48668
89

query I rowsort
SELECT + ( + + 10 ) AS col1 FROM tab1 WHERE NOT - ( - col1 ) * + col1 BETWEEN - 65 AND - - ( - - 84 ) * - col0 + + - col2
----
10
10
10

query I rowsort
SELECT ALL + col1 * - + col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT ALL + COUNT( * ) AS col2 FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL + COUNT ( * ) AS col2 FROM tab1, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5321
SELECT - COUNT( * ) AS col1, + COUNT( * ) + + - 88 AS col0 FROM tab1
----
-3
-85

skipif mysql # not compatible
query II rowsort label-5321
SELECT - COUNT ( * ) AS col1, + COUNT ( * ) + + - 88 AS col0 FROM tab1
----
-3
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5322
SELECT ALL - CAST( - - col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL - CAST ( - - col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT col1 + 91 AS col0 FROM tab1
----
105
138
96

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( + col0 / + col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE + 32 * + col2 BETWEEN 88 * 63 AND ( + 25 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IN ( - col2 + col0 )
----

query I rowsort
SELECT DISTINCT - 9 * - 18 FROM tab0
----
162

query I rowsort
SELECT - col0 + + 64 FROM tab0
----
-23
-33
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5329
SELECT + CAST( MAX( - col1 ) AS SIGNED ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5329
SELECT + CAST ( MAX ( - col1 ) AS INTEGER ) AS col2 FROM tab0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5330
SELECT - 35 FROM tab1 WHERE CAST( NULL AS DECIMAL ) NOT BETWEEN ( col2 ) AND + col1 * - 35 + col2 / 31
----

skipif mysql # not compatible
query I rowsort label-5330
SELECT - 35 FROM tab1 WHERE CAST ( NULL AS REAL ) NOT BETWEEN ( col2 ) AND + col1 * - 35 + col2 / 31
----

query I rowsort
SELECT ( 72 ) * 85 FROM tab0
----
6120
6120
6120

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT - 51 * COUNT( * ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-5332
SELECT - 51 * COUNT ( * ) FROM tab1
----
-153

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * - ( - ( col1 ) * + 49 ) BETWEEN ( col1 * 60 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT ALL COUNT( * ) * + 53 FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL COUNT ( * ) * + 53 FROM tab2
----
159

query I rowsort
SELECT ALL + 76 AS col0 FROM tab1 WHERE - col0 BETWEEN ( + 39 ) AND + col2 - 34
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5336
SELECT 23 + 33 DIV 54 FROM tab0 WHERE NOT NULL IS NOT NULL
----
23
23
23

skipif mysql # not compatible
query I rowsort label-5336
SELECT 23 + 33 / 54 FROM tab0 WHERE NOT NULL IS NOT NULL
----
23
23
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5337
SELECT col2 * + col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5337
SELECT col2 * + col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * + col0 + col2 * - 88 AS col2 FROM tab0
----
-10
-3431
891

query I rowsort
SELECT ALL - col0 / + 13 FROM tab1 WHERE col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 ) <= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE ( - col0 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5341
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE ( - col0 ) IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab1 WHERE ( col2 ) > 27
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 0 - + col0 AS col1 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT ALL COUNT( col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL COUNT ( col2 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - 45 * + col1 AS col0 FROM tab1
----
-2115
-225
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT COUNT( ALL col1 ) - + 83 FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-5346
SELECT COUNT ( ALL col1 ) - + 83 FROM tab1
----
-80

query I rowsort
SELECT + col0 + ( + 10 ) FROM tab0
----
107
25
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5348
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5348
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT + SUM( col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-5349
SELECT + SUM ( col1 ) AS col2 FROM tab0
----
103

query I rowsort
SELECT DISTINCT ( - col1 ) * - 15 FROM tab0
----
1215
15
315

query I rowsort
SELECT ALL - 86 * + 76 FROM tab0
----
-6536
-6536
-6536

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE NOT col2 IS NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 76 * - 70 <= - 25
----

query I rowsort
SELECT DISTINCT - 72 + + col0 FROM tab2 AS cor0
----
-26
-8
3

query I rowsort
SELECT 45 - + col0 FROM tab1 AS cor0
----
-40
-46
-6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 86 * + 37 ) >= ( col1 + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 col2 FROM tab1 AS cor0 WHERE ( col2 ) < ( - col1 )
----

query I rowsort
SELECT - 63 * + col1 + + 50 FROM tab2
----
-3163
-4171
-4801

query I rowsort
SELECT ALL col0 / - col0 FROM tab1 WHERE NULL = - col1 / + 66 + + col1
----

query I rowsort
SELECT col2 + + 97 FROM tab2
----
120
137
155

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 ) NOT BETWEEN NULL AND 2
----

query I rowsort
SELECT + col0 * + col2 FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL - 84 AS col2 FROM tab0 AS cor0
----
-84
-84
-84

query I rowsort
SELECT ALL + col0 + ( + col1 + + col0 ) FROM tab2 AS cor0 WHERE + 33 IS NULL
----

query I rowsort
SELECT DISTINCT 62 / col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( + col1 * col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + col2 >= col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 26 NOT IN ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5369
SELECT ALL - col0 DIV - 23 AS col2 FROM tab1 AS cor0
----
2
3
3

skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL - col0 / - 23 AS col2 FROM tab1 AS cor0
----
2
3
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 82 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 + + col1 * col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
196
297
3822

query I rowsort
SELECT ALL ( col2 ) FROM tab1 WHERE NOT ( NULL ) = 69 OR + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5373
SELECT DISTINCT CAST( - 7 AS SIGNED ) FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-5373
SELECT DISTINCT CAST ( - 7 AS INTEGER ) FROM tab1
----
-7

query I rowsort
SELECT ALL + 76 FROM tab0 WHERE NOT ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT + 47 + - 23 FROM tab2 WHERE NOT ( col0 / col1 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5376
SELECT DISTINCT CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5376
SELECT DISTINCT CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5377
SELECT * FROM tab0 WHERE NOT + col0 + col0 NOT BETWEEN CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5377
SELECT * FROM tab0 WHERE NOT + col0 + col0 NOT BETWEEN CAST ( NULL AS INTEGER ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 <= col1 AND NOT + ( 10 ) * + 12 + - 76 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT + 63 + - ( + MAX( - col1 ) ) * - 14 AS col0 FROM tab2 AS cor0
----
-651

skipif mysql # not compatible
query I rowsort label-5379
SELECT + 63 + - ( + MAX ( - col1 ) ) * - 14 AS col0 FROM tab2 AS cor0
----
-651

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5380
SELECT DISTINCT col0 + + col1 FROM tab1 WHERE NOT 89 + - col1 NOT BETWEEN ( - 73 ) + col2 AND - CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT col0 + + col1 FROM tab1 WHERE NOT 89 + - col1 NOT BETWEEN ( - 73 ) + col2 AND - CAST ( + col1 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5381
SELECT + col2 + ( + + 27 ) + - CAST( NULL AS SIGNED ) / - 3 * - 66 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5381
SELECT + col2 + ( + + 27 ) + - CAST ( NULL AS INTEGER ) / - 3 * - 66 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - col0 ) col1 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5383
SELECT ALL * FROM tab1 WHERE NULL > CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5383
SELECT ALL * FROM tab1 WHERE NULL > CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT + col2 * - 86 AS col1 FROM tab0 WHERE NULL IN ( + + col1 * - col0 + col1 )
----

query I rowsort
SELECT DISTINCT + 53 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) >= + ( + col1 )
----

query I rowsort
SELECT ALL col1 + + 4 + col1 AS col1 FROM tab0 cor0
----
166
46
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT ALL 14 * + + MAX( DISTINCT + col0 ) FROM tab2 AS cor0
----
1050

skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL 14 * + + MAX ( DISTINCT + col0 ) FROM tab2 AS cor0
----
1050

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 97 AND 17 OR NOT ( col1 + 81 ) NOT IN ( + 49 * + col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( ( col0 ) - - col0 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5390
SELECT DISTINCT + 11 + col0 + - col0 DIV + 35 col2 FROM tab2 AS cor0
----
56
74
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5390
SELECT DISTINCT + 11 + col0 + - col0 / + 35 col2 FROM tab2 AS cor0
----
56
74
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5391
SELECT DISTINCT + col1 DIV - 48 + - col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT + col1 / - 48 + - col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - 96 + - + col2 AS col0 FROM tab2 AS cor0
----
-119
-136
-154

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 * col2 + + 21 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) IN ( - 43 / + col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 39 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT - 32 * + MAX( DISTINCT + + 56 ) AS col2 FROM tab2 AS cor0
----
-1792

skipif mysql # not compatible
query I rowsort label-5396
SELECT - 32 * + MAX ( DISTINCT + + 56 ) AS col2 FROM tab2 AS cor0
----
-1792

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5397
SELECT - MAX( ALL + ( 47 ) ) / MAX( + 16 + + col1 * CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5397
SELECT - MAX ( ALL + ( 47 ) ) / MAX ( + 16 + + col1 * CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col1 * 56 - + - col2 AS col0 FROM tab2 AS cor0
----
-2833
-3694
-4272

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col1 ) IS NOT NULL AND NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) + + 37 col1 FROM tab0
----
124
134
52

query I rowsort
SELECT DISTINCT + 91 + + col1 AS col0 FROM tab2
----
142
158
168

query I rowsort
SELECT ALL col1 * + col2 + 4 FROM tab2
----
1177
3084
3890

query I rowsort
SELECT + 14 + + col1 FROM tab1
----
19
28
61

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT NULL <> + ( 18 ) / col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col2 col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - 42 - + col1 FROM tab2 AS cor0
----
-25
-35
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT ALL + COUNT( * ) - - - 81 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL + COUNT ( * ) - - - 81 FROM tab1 AS cor0
----
-78

query I rowsort
SELECT DISTINCT col1 - + col1 FROM tab2 WHERE NOT ( 28 * + + col2 * + col2 * - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT DISTINCT SUM( - col2 ) + COUNT( * ) AS col2 FROM tab1 WHERE NOT - ( col1 ) * + col2 IS NULL
----
-220

skipif mysql # not compatible
query I rowsort label-5409
SELECT DISTINCT SUM ( - col2 ) + COUNT ( * ) AS col2 FROM tab1 WHERE NOT - ( col1 ) * + col2 IS NULL
----
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT DISTINCT 9 + + COUNT( col2 ) FROM tab2 cor0 WHERE NOT col0 + 26 IN ( ( - col2 ) )
----
12

skipif mysql # not compatible
query I rowsort label-5410
SELECT DISTINCT 9 + + COUNT ( col2 ) FROM tab2 cor0 WHERE NOT col0 + 26 IN ( ( - col2 ) )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT + SUM( ALL + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-5411
SELECT + SUM ( ALL + col0 ) FROM tab0 AS cor0
----
199

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( - 15 ) ) NOT BETWEEN NULL AND - 64
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5413
SELECT DISTINCT - 83 DIV - col2 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT - 83 / - col2 AS col1 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab2 cor0 WHERE NOT + 29 IS NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col2 * - ( col2 ) )
----

query I rowsort
SELECT DISTINCT 32 * + + col1 AS col1 FROM tab1 AS cor0 WHERE ( col0 ) IS NOT NULL
----
1504
160
448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5418
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) * + col2 NOT BETWEEN - col1 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5418
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * + col2 NOT BETWEEN - col1 AND ( NULL )
----
0

query I rowsort
SELECT - col0 * - ( + 7 ) * - col2 AS col1 FROM tab0 AS cor0 WHERE NOT 11 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT ALL + COUNT( - col0 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL + COUNT ( - col0 ) FROM tab1 cor0
----
3

query II rowsort
SELECT DISTINCT + ( 68 ), 2 AS col2 FROM tab1
----
68
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5422
SELECT ALL + + CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab0 WHERE col2 - + col1 <> + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL + + CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab0 WHERE col2 - + col1 <> + - col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5423
SELECT DISTINCT 4 AS col1, + CAST( - col2 AS SIGNED ) FROM tab0
----
4
-10
4
-47
4
-99

skipif mysql # not compatible
query II rowsort label-5423
SELECT DISTINCT 4 AS col1, + CAST ( - col2 AS INTEGER ) FROM tab0
----
4
-10
4
-47
4
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-5424
SELECT DISTINCT 38, + COUNT( * ) AS col1 FROM tab0
----
38
3

skipif mysql # not compatible
query II rowsort label-5424
SELECT DISTINCT 38, + COUNT ( * ) AS col1 FROM tab0
----
38
3

query I rowsort
SELECT ALL 85 * - + 38 AS col2 FROM tab2
----
-3230
-3230
-3230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5426
SELECT DISTINCT + 23 + - col0 FROM tab2 WHERE ( - col2 ) * + + col0 + + col0 >= + CAST( 78 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5426
SELECT DISTINCT + 23 + - col0 FROM tab2 WHERE ( - col2 ) * + + col0 + + col0 >= + CAST ( 78 AS INTEGER )
----

query II rowsort
SELECT DISTINCT 11, col0 + + + col2 * 70 AS col2 FROM tab1
----
11
4215
11
4851
11
6771

query I rowsort
SELECT ALL ( + 16 ) + - ( + + 77 ) FROM tab0
----
-61
-61
-61

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5429
SELECT * FROM tab2 WHERE NOT - - CAST( - col0 AS DECIMAL ) + - - col2 + + 20 + 75 = col0 / 6
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5429
SELECT * FROM tab2 WHERE NOT - - CAST ( - col0 AS REAL ) + - - col2 + + 20 + 75 = col0 / 6
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 32 * - col2 AS col2, 69 * - col1 AS col0 FROM tab1
----
1888
-345
2176
-3243
3072
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT DISTINCT COUNT( ALL col0 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5431
SELECT DISTINCT COUNT ( ALL col0 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5432
SELECT + COUNT( * ) / - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5432
SELECT + COUNT ( * ) / - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col1 )
----

query I rowsort
SELECT - col2 * + 38 AS col1 FROM tab1 AS cor0
----
-2242
-2584
-3648

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT + COUNT( * ) + SUM( DISTINCT + - col2 ) FROM tab2
----
-118

skipif mysql # not compatible
query I rowsort label-5436
SELECT + COUNT ( * ) + SUM ( DISTINCT + - col2 ) FROM tab2
----
-118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5437
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1 WHERE - - 67 BETWEEN 24 AND + 43 + - - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5437
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 WHERE - - 67 BETWEEN 24 AND + 43 + - - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT 29 + + + MIN( DISTINCT ( + 57 ) ) FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-5438
SELECT 29 + + + MIN ( DISTINCT ( + 57 ) ) FROM tab0 AS cor0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5439
SELECT DISTINCT CAST( 5 AS SIGNED ) * - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-235
-25
-70

skipif mysql # not compatible
query I rowsort label-5439
SELECT DISTINCT CAST ( 5 AS INTEGER ) * - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-235
-25
-70

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> + col2
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( 22 + ( col2 ) ) NOT BETWEEN NULL AND - ( - col2 ) + 53
----

query II rowsort
SELECT + 57 * - + ( - col0 ) AS col1, - col2 FROM tab1
----
2907
-96
4845
-59
5187
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT 47 * + COUNT( * ) AS col2 FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-5443
SELECT 47 * + COUNT ( * ) AS col2 FROM tab0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT SUM( DISTINCT - col2 ) col2 FROM tab2
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5444
SELECT SUM ( DISTINCT - col2 ) col2 FROM tab2
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - - col0 ) col0 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5446
SELECT * FROM tab1 WHERE ( + CAST( - col0 AS SIGNED ) ) NOT BETWEEN NULL AND ( - 38 + col2 )
----

skipif mysql # not compatible
query III rowsort label-5446
SELECT * FROM tab1 WHERE ( + CAST ( - col0 AS INTEGER ) ) NOT BETWEEN NULL AND ( - 38 + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( - + 95 ) AND + 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT 96 - + + COUNT( * ) * - COUNT( - col2 ) * + 90 FROM tab1
----
906

skipif mysql # not compatible
query I rowsort label-5448
SELECT 96 - + + COUNT ( * ) * - COUNT ( - col2 ) * + 90 FROM tab1
----
906

query I rowsort
SELECT ALL + 93 * + ( 45 ) + + col2 - col2 FROM tab0
----
4185
4185
4185

query I rowsort
SELECT ALL - ( 42 ) + - + col1 FROM tab1 AS cor0
----
-47
-56
-89

query I rowsort
SELECT ALL + 65 * 52 + + col0 * col1 * col2 FROM tab1 cor0
----
28455
294216
71924

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT ALL MIN( - 76 ) FROM tab2 cor0
----
-76

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL MIN ( - 76 ) FROM tab2 cor0
----
-76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + 99 / + col2 * col2 + - col0 * - ( - + 36 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 + col0 col0 FROM tab2 AS cor0 WHERE ( 39 * col1 + - col0 - - - 0 / - + 64 * - 37 + + + col2 + - col2 ) = col0 + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 col0 FROM tab1 cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT - - COUNT( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-5456
SELECT - - COUNT ( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT DISTINCT - col0 * - col2 * + col0 FROM tab0
----
10575
75690
931491

query I rowsort
SELECT ALL + col0 * + + 60 FROM tab2
----
2760
3840
4500

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5459
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + - CAST( NULL AS SIGNED ) - + col2 )
----

skipif mysql # not compatible
query III rowsort label-5459
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + - CAST ( NULL AS INTEGER ) - + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5460
SELECT ALL - CAST( NULL AS SIGNED ) * + col0 * + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL - CAST ( NULL AS INTEGER ) * + col0 * + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IN ( col2, 28 )
----
0

skipif mysql # not compatible
query I rowsort label-5461
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IN ( col2, 28 )
----
0

query I rowsort
SELECT - col2 + + 37 + col2 AS col2 FROM tab2 AS cor0 WHERE NOT - 16 - ( + col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 92 col2 FROM tab2 AS cor0
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT - 69 * + + 18 + - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-1239

skipif mysql # not compatible
query I rowsort label-5465
SELECT - 69 * + + 18 + - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-1239

onlyif mysql # aggregate syntax: 
query II rowsort label-5466
SELECT DISTINCT + MIN( ALL - col2 ) AS col1, 80 AS col1 FROM tab0 cor0
----
-99
80

skipif mysql # not compatible
query II rowsort label-5466
SELECT DISTINCT + MIN ( ALL - col2 ) AS col1, 80 AS col1 FROM tab0 cor0
----
-99
80

query I rowsort
SELECT - col2 * - + 32 FROM tab0
----
1504
3168
320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5468
SELECT ALL + MAX( - 32 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL + MAX ( - 32 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query II rowsort
SELECT + col1 + + - 69 AS col0, - col2 AS col1 FROM tab0 WHERE NOT NULL <= + 86
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( - 63 / - 40 ) AND NULL
----

query I rowsort
SELECT ALL + col2 * + 84 FROM tab0
----
3948
8316
840

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col0 + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5473
SELECT - - 91 FROM tab0 WHERE NOT - - CAST( - 8 AS SIGNED ) * + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5473
SELECT - - 91 FROM tab0 WHERE NOT - - CAST ( - 8 AS INTEGER ) * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT ALL - SUM( col1 ) + - - SUM( ALL - ( + + col1 ) ) FROM tab2
----
-390

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL - SUM ( col1 ) + - - SUM ( ALL - ( + + col1 ) ) FROM tab2
----
-390

query II rowsort
SELECT - 7 * - + ( - col2 ) AS col2, col0 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-161
46
-280
64
-406
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT DISTINCT - COUNT( * ) + - 2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5476
SELECT DISTINCT - COUNT ( * ) + - 2 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT - col1 + - - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 + - col2 FROM tab1 AS cor0 WHERE - 59 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5479
SELECT + col0 * CAST( - col0 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
-2167
-4173
-5692

skipif mysql # not compatible
query I rowsort label-5479
SELECT + col0 * CAST ( - col0 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-2167
-4173
-5692

query III rowsort
SELECT * FROM tab1 WHERE + 90 BETWEEN - col2 * - 83 + + col0 AND NULL
----

query I rowsort
SELECT ALL col2 * + ( ( 28 ) ) * - 10 + - col1 FROM tab0
----
-13241
-27721
-2821

query I rowsort
SELECT DISTINCT + col2 + - col1 + - col0 AS col1 FROM tab2
----
-101
-74
-84

query I rowsort
SELECT ALL + 71 + + 53 AS col0 FROM tab2 AS cor0
----
124
124
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5484
SELECT CAST( NULL AS SIGNED ) * COUNT( - col0 ) - AVG ( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5484
SELECT CAST ( NULL AS INTEGER ) * COUNT ( - col0 ) - AVG ( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col2 + + + 10 * + 74 * + col1 + + col0 AS col1 FROM tab1 AS cor0
----
10315
34803
3726

query I rowsort
SELECT DISTINCT + ( + - col2 ) + + - col0 AS col2 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT - col1 + + col0 + + 86 AS col1 FROM tab2 AS cor0
----
73
81
94

query I rowsort
SELECT + col2 + + + col0 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT - + 29 + 9 AS col1 FROM tab2 AS cor0
----
-20
-20
-20

query I rowsort
SELECT DISTINCT + col1 - 93 AS col1 FROM tab2 AS cor0
----
-16
-26
-42

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 10 + + 38 >= NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT 19 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( 61 ) BETWEEN col0 AND + 6 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT COUNT( DISTINCT - 79 ) * 64 col0 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5494
SELECT COUNT ( DISTINCT - 79 ) * 64 col0 FROM tab0 AS cor0
----
64

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 >= NULL
----

query I rowsort
SELECT 41 * - - col0 AS col1 FROM tab2
----
1886
2624
3075

query I rowsort
SELECT + 79 * col2 AS col1 FROM tab0 AS cor0
----
3713
7821
790

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5498
SELECT ALL + - ( + - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL + - ( + - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT + 84 * COUNT( * ) FROM tab0 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-5499
SELECT + 84 * COUNT ( * ) FROM tab0 AS cor0
----
252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5500
SELECT DISTINCT - SUM( ALL - CAST( 92 AS SIGNED ) ) + + + 11 col1 FROM tab0 AS cor0 WHERE NOT + col1 * + + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5500
SELECT DISTINCT - SUM ( ALL - CAST ( 92 AS INTEGER ) ) + + + 11 col1 FROM tab0 AS cor0 WHERE NOT + col1 * + + col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5501
SELECT ALL + - MAX( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5501
SELECT ALL + - MAX ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col0 * - 39 + - + col2 AS col2 FROM tab0 AS cor0
----
3383
3684
538

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5503
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) BETWEEN col2 * + 37 / + col2 / - - col1 / + col1 + + - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5503
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) BETWEEN col2 * + 37 / + col2 / - - col1 / + col1 + + - col1 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - col0 NOT BETWEEN - 85 AND - - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= col0
----

query I rowsort
SELECT + col1 + - col2 + 68 * 4 * col1 FROM tab0 AS cor0
----
174
22066
5723

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5507
SELECT + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
0

query I rowsort
SELECT ( + 0 ) AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - col2 * col0 * + - 76 FROM tab2
----
194560
330600
80408

query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab1 WHERE NULL IS NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5511
SELECT DISTINCT - ( + CAST( 25 AS SIGNED ) ) DIV - - 93 * - col0 + + + 66 + - col0 AS col2 FROM tab0
----
-21
-31
51

skipif mysql # not compatible
query I rowsort label-5511
SELECT DISTINCT - ( + CAST ( 25 AS INTEGER ) ) / - - 93 * - col0 + + + 66 + - col0 AS col2 FROM tab0
----
-21
-31
51

query III rowsort
SELECT * FROM tab2 WHERE - 78 + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 NOT BETWEEN 24 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 col2 FROM tab1
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT DISTINCT 29 + + COUNT( * ) * + - MIN( DISTINCT + col2 ) FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT 29 + + COUNT ( * ) * + - MIN ( DISTINCT + col2 ) FROM tab2 AS cor0
----
-40

query I rowsort
SELECT ( - col0 ) * + + col0 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # DIV for integer division: 
query II rowsort label-5517
SELECT DISTINCT ( - + col1 ) * - + col0 DIV col0 AS col2, - 70 * + col0 FROM tab2 cor0
----
51
-3220
67
-5250
77
-4480

skipif mysql # not compatible
query II rowsort label-5517
SELECT DISTINCT ( - + col1 ) * - + col0 / col0 AS col2, - 70 * + col0 FROM tab2 cor0
----
51
-3220
67
-5250
77
-4480

onlyif mysql # DIV for integer division: 
query I rowsort label-5518
SELECT ALL + col1 DIV 18 col2 FROM tab2 AS cor0
----
2
3
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5518
SELECT ALL + col1 / 18 col2 FROM tab2 AS cor0
----
2
3
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 AND 71 + + - col2 + - + col0 / - col0
----
0

skipif mysql # not compatible
query I rowsort label-5519
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 AND 71 + + - col2 + - + col0 / - col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 + + col0 - + ( + 56 ) col0 FROM tab1 AS cor0
----
100
60
94

query I rowsort
SELECT DISTINCT 32 - + 66 FROM tab0 cor0
----
-34

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-5523
SELECT + 89, - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 - - col2, + col2 )
----
89
0

skipif mysql # not compatible
query II rowsort label-5523
SELECT + 89, - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 - - col2, + col2 )
----
89
0

query I rowsort
SELECT col2 - + - col1 AS col2 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT COUNT( * ) * - 57 * - + COUNT( ALL + col0 ) AS col0 FROM tab1
----
513

skipif mysql # not compatible
query I rowsort label-5525
SELECT COUNT ( * ) * - 57 * - + COUNT ( ALL + col0 ) AS col0 FROM tab1
----
513

query III rowsort
SELECT * FROM tab1 WHERE NOT 97 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 24, + col2 FROM tab0
----
24
10
24
47
24
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5528
SELECT ALL * FROM tab0 WHERE NOT NULL < col1 * + CAST( NULL AS SIGNED ) + col1
----

skipif mysql # not compatible
query III rowsort label-5528
SELECT ALL * FROM tab0 WHERE NOT NULL < col1 * + CAST ( NULL AS INTEGER ) + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT SUM( - - col0 ) * + COUNT( * ) FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-5529
SELECT SUM ( - - col0 ) * + COUNT ( * ) FROM tab2
----
555

query I rowsort
SELECT DISTINCT ( + 50 ) AS col2 FROM tab1
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col1 col1 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - col2 IS NULL )
----

query II rowsort
SELECT DISTINCT - 0 AS col2, col1 * - col1 AS col2 FROM tab0 AS cor0
----
0
-1
0
-441
0
-6561

query I rowsort
SELECT DISTINCT - col0 * - + 8 * - + col2 FROM tab0
----
-5640
-6960
-76824

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT - 53 * + SUM( ALL + 19 ) FROM tab1 AS cor0
----
-3021

skipif mysql # not compatible
query I rowsort label-5536
SELECT - 53 * + SUM ( ALL + 19 ) FROM tab1 AS cor0
----
-3021

query I rowsort
SELECT ALL - col2 * + 27 + - col1 - + 98 + + + col1 FROM tab1 AS cor0
----
-1691
-1934
-2690

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 AS cor0 WHERE NOT 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5539
SELECT ALL - COUNT( * ) * + 88 DIV - 80 AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL - COUNT ( * ) * + 88 / - 80 AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 12 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + 47 AS col0 FROM tab1 AS cor0
----
47
47
47

query II rowsort
SELECT DISTINCT - col1 * 51, + col1 AS col0 FROM tab1 AS cor0
----
-2397
47
-255
5
-714
14

query I rowsort
SELECT DISTINCT col2 + + - col1 + - + col1 - col1 + - - 74 * 77 FROM tab0
----
5502
5645
5794

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( + - col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5545
SELECT 10 DIV - col0 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5545
SELECT 10 / - col0 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col2 + + col1 + - col2 + 99 + 59 FROM tab0
----
159
179
239

query I rowsort
SELECT 89 + col1 AS col1 FROM tab2
----
140
156
166

query II rowsort
SELECT col0 + + 24 + col0 AS col0, col2 AS col0 FROM tab0 AS cor0
----
198
10
218
99
54
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5549
SELECT ALL 73 DIV - - col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL 73 / - - col2 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5550
SELECT col1 AS col1, CAST( NULL AS SIGNED ) / + - col2 * col0 + - 7 * + + 35 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-5550
SELECT col1 AS col1, CAST ( NULL AS INTEGER ) / + - col2 * col0 + - 7 * + + 35 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT - - ( col0 ) * 12 FROM tab0 AS cor0
----
1044
1164
180

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5553
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT DISTINCT + + COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT + + COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5555
SELECT - col1 + + 81 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5555
SELECT - col1 + + 81 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5556
SELECT DISTINCT + 44 DIV + + 32 - - - SUM( + col1 ) + - - COUNT( * ) * MIN( DISTINCT - CAST( - + col0 AS SIGNED ) ) FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT + 44 / + + 32 - - - SUM ( + col1 ) + - - COUNT ( * ) * MIN ( DISTINCT - CAST ( - + col0 AS INTEGER ) ) FROM tab2 AS cor0
----
-56

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - - 41 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5558
SELECT DISTINCT - + ( - - COUNT( * ) ) DIV - - MAX( DISTINCT + col2 ) + COUNT( DISTINCT + 11 ) FROM tab0 cor0 WHERE col0 - + CAST( NULL AS SIGNED ) IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-5558
SELECT DISTINCT - + ( - - COUNT ( * ) ) / - - MAX ( DISTINCT + col2 ) + COUNT ( DISTINCT + 11 ) FROM tab0 cor0 WHERE col0 - + CAST ( NULL AS INTEGER ) IS NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT ALL COUNT( - 14 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL COUNT ( - 14 ) AS col0 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 + + 55 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT MIN( - 43 ) AS col1 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-5561
SELECT MIN ( - 43 ) AS col1 FROM tab2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT DISTINCT - - MIN( DISTINCT col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT - - MIN ( DISTINCT col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT ( - ( + + 24 ) ) AS col2 FROM tab0 AS cor0
----
-24
-24
-24

query I rowsort
SELECT DISTINCT + 51 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT DISTINCT SUM( + 83 ) FROM tab1 WHERE NULL NOT BETWEEN + + col0 AND + col0 * + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-5565
SELECT DISTINCT SUM ( + 83 ) FROM tab1 WHERE NULL NOT BETWEEN + + col0 AND + col0 * + 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT DISTINCT COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5567
SELECT DISTINCT 65, COUNT( ALL - col0 ) - + 15 + COUNT( * ) col1 FROM tab0
----
65
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5567
SELECT DISTINCT 65, COUNT ( ALL - col0 ) - + 15 + COUNT ( * ) col1 FROM tab0
----
65
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT + COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5568
SELECT + COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE - + col1 + - col0 + col1 * - col0 <= + col1
----
1
21
81

query I rowsort
SELECT ALL + - col2 + + col1 + - + 78 * 51 AS col1 FROM tab0 AS cor0
----
-3944
-3967
-4076

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = col2 * + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - - 40 col1 FROM tab1 cor0
----
45
54
87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col0 * - col2 * - - 74 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5574
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + - 53 + - 61 + - - 87 * 1 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + - 53 + - 61 + - - 87 * 1 AS col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + 25 AS col0, col0 AS col2 FROM tab2 AS cor0
----
25
46
25
64
25
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT ALL SUM( col1 ) col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5576
SELECT ALL SUM ( col1 ) col1 FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5577
SELECT DISTINCT + + col1 * CAST( + ( - ( + + col0 ) ) AS SIGNED ) * col2 * + 20 + - col0 FROM tab0 cor0
----
-1142115
-192157
-365487

skipif mysql # not compatible
query I rowsort label-5577
SELECT DISTINCT + + col1 * CAST ( + ( - ( + + col0 ) ) AS INTEGER ) * col2 * + 20 + - col0 FROM tab0 cor0
----
-1142115
-192157
-365487

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT DISTINCT + ( - + MAX( ALL - - ( + - col0 ) ) ) FROM tab1 WHERE NULL BETWEEN - col1 AND - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5578
SELECT DISTINCT + ( - + MAX ( ALL - - ( + - col0 ) ) ) FROM tab1 WHERE NULL BETWEEN - col1 AND - col1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col0 + + 74 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5580
SELECT 79 DIV - + col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-5580
SELECT 79 / - + col0 FROM tab0
----
-5
0
0

query III rowsort
SELECT * FROM tab2 WHERE + col0 - col2 / + col2 < NULL
----

query I rowsort
SELECT + 57 + + + col0 * - 96 AS col2 FROM tab0 AS cor0
----
-1383
-8295
-9255

query I rowsort
SELECT ALL 14 * + + ( + 86 ) * + 49 + 52 - col0 FROM tab1 AS cor0
----
58957
58963
58997

query I rowsort
SELECT + col1 + 37 AS col2 FROM tab1
----
42
51
84

query I rowsort
SELECT DISTINCT - 27 * - + col0 * + + 99 * - - col2 * col1 + - col1 * col1 AS col1 FROM tab2
----
144227133
526895831
779041361

onlyif mysql # DIV for integer division: 
query I rowsort label-5586
SELECT DISTINCT ( - - col2 ) * col0 DIV ( - col1 ) FROM tab2 AS cor0
----
-20
-33
-64

skipif mysql # not compatible
query I rowsort label-5586
SELECT DISTINCT ( - - col2 ) * col0 / ( - col1 ) FROM tab2 AS cor0
----
-20
-33
-64

query I rowsort
SELECT ALL + col2 * - 44 FROM tab1 cor0
----
-2596
-2992
-4224

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5588
SELECT DISTINCT + 76 / - col1 / - CAST( NULL AS DECIMAL ) AS col2, col0 AS col1 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-5588
SELECT DISTINCT + 76 / - col1 / - CAST ( NULL AS REAL ) AS col2, col0 AS col1 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5589
SELECT - 27 DIV 32 * + col2 DIV - col0 * + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5589
SELECT - 27 / 32 * + col2 / - col0 * + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 69 AS col0, - col2 col2 FROM tab0 cor0
----
69
-10
69
-47
69
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 65 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 col2 FROM tab2 AS cor0
----
-32
-32
-32

query I rowsort
SELECT - 3 * 63 * - col1 FROM tab1
----
2646
8883
945

query I rowsort
SELECT ALL col2 * + + col2 AS col1 FROM tab0
----
100
2209
9801

query I rowsort
SELECT ALL col0 * col0 * + 9 FROM tab2
----
19044
36864
50625

query I rowsort
SELECT ALL 57 * col2 * col0 FROM tab2
----
145920
247950
60306

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5597
SELECT DISTINCT COUNT( * ) DIV + 80 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5597
SELECT DISTINCT COUNT ( * ) / + 80 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT DISTINCT + MAX( - col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5598
SELECT DISTINCT + MAX ( - col0 ) FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT + AVG ( - + 40 ) * COUNT( * ) + + COUNT( + col1 ) - + 39 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5599
SELECT + AVG ( - + 40 ) * COUNT ( * ) + + COUNT ( + col1 ) - + 39 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 22 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * - col1 + - col0 AS col1 FROM tab0 AS cor0
----
-196
-297
-3822

query I rowsort
SELECT DISTINCT + 43 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
43

query II rowsort
SELECT col2, - col1 + + col1 AS col0 FROM tab0 cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL + col1 + col1 + - - col0 AS col2 FROM tab1 AS cor0
----
185
79
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT - MIN( ALL + 18 ) AS col1 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-5605
SELECT - MIN ( ALL + 18 ) AS col1 FROM tab0 AS cor0
----
-18

query I rowsort
SELECT DISTINCT col0 + - col1 * + 27 AS col1 FROM tab1 AS cor0 WHERE NOT 93 <= col2
----
-1178
-50

query I rowsort
SELECT - 91 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-91
-91
-91

query II rowsort
SELECT - col0 + + col0 * + col2, - col1 AS col1 FROM tab1 AS cor0
----
4845
-14
4930
-5
6097
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5609
SELECT - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5609
SELECT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5610
SELECT ( + col1 ) + col0 - col2 + col1 * + + CAST( + + col1 AS SIGNED ) AS col2 FROM tab1
----
165
2279
56

skipif mysql # not compatible
query I rowsort label-5610
SELECT ( + col1 ) + col0 - col2 + col1 * + + CAST ( + + col1 AS INTEGER ) AS col2 FROM tab1
----
165
2279
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5611
SELECT DISTINCT 91 + - 80 - + ( + - 40 ) * + ( - CAST( - - 64 AS SIGNED ) ) FROM tab2
----
-2549

skipif mysql # not compatible
query I rowsort label-5611
SELECT DISTINCT 91 + - 80 - + ( + - 40 ) * + ( - CAST ( - - 64 AS INTEGER ) ) FROM tab2
----
-2549

query III rowsort
SELECT * FROM tab0 WHERE + - 88 < - 37
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 / col1 * 58 + - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 + + - col1 + + col2 AS col0 FROM tab2 cor0
----
-5
3
49

query I rowsort
SELECT DISTINCT col1 * col1 FROM tab2 cor0 WHERE NULL IS NULL
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT DISTINCT + 3 * + 27 * - COUNT( * ) FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-5616
SELECT DISTINCT + 3 * + 27 * - COUNT ( * ) FROM tab0
----
-243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5617
SELECT col1 AS col1 FROM tab2 WHERE NOT ( NULL > ( + CAST( + 33 AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-5617
SELECT col1 AS col1 FROM tab2 WHERE NOT ( NULL > ( + CAST ( + 33 AS INTEGER ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5618
SELECT 86 DIV - ( col2 ) AS col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5618
SELECT 86 / - ( col2 ) AS col0 FROM tab1
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT + COUNT( + - 21 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5619
SELECT + COUNT ( + - 21 ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5620
SELECT + + COUNT( * ) * + COUNT( * ) col0, MAX( ALL - 3 ) FROM tab0 cor0
----
9
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5620
SELECT + + COUNT ( * ) * + COUNT ( * ) col0, MAX ( ALL - 3 ) FROM tab0 cor0
----
9
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( + col2, col1, - ( + - col0 ) * - col2, 15, - col1, - col2, + + col1 / + 95 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5622
SELECT + 3 DIV col2 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5622
SELECT + 3 / col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT col0 AS col2, 62 FROM tab2
----
46
62
64
62
75
62

query I rowsort
SELECT ALL 88 * - col2 FROM tab1
----
-5192
-5984
-8448

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN ( col1 ) AND - 65
----

query I rowsort
SELECT ALL 15 * - col1 AS col0 FROM tab0
----
-1215
-15
-315

query II rowsort
SELECT ALL 83 AS col2, col1 AS col0 FROM tab2
----
83
51
83
67
83
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5628
SELECT DISTINCT - 30 DIV - MAX( DISTINCT 85 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5628
SELECT DISTINCT - 30 / - MAX ( DISTINCT 85 ) FROM tab0
----
0

query I rowsort
SELECT ALL 81 + +