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 + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
128
86
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 * + col2 + col1 col1 FROM tab2 AS cor0
----
-1323
-1963
-754

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

query II rowsort
SELECT ALL 20 * + - ( col0 ) AS col2, - col2 * - 6 FROM tab1 AS cor0
----
-1020
576
-1700
354
-1820
408

query II rowsort
SELECT ALL col1 * - + col1 + + col2, col0 FROM tab1 AS cor0
----
-100
51
-2141
91
34
85

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

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

query I rowsort
SELECT + col1 + + col1 + - col2 AS col0 FROM tab2
----
114
76
79

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5638
SELECT ALL + + CAST( - + 29 AS SIGNED ) + - 88 FROM tab1 AS cor0
----
-117
-117
-117

skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL + + CAST ( - + 29 AS INTEGER ) + - 88 FROM tab1 AS cor0
----
-117
-117
-117

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 < col0
----
15
81
47

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5645
SELECT ALL col1 + CAST( 44 AS SIGNED ) AS col0 FROM tab0
----
125
45
65

skipif mysql # not compatible
query I rowsort label-5645
SELECT ALL col1 + CAST ( 44 AS INTEGER ) AS col0 FROM tab0
----
125
45
65

onlyif mysql # DIV for integer division: 
query I rowsort label-5646
SELECT col2 DIV + col0 - col2 + + - col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-125
-31
-99

skipif mysql # not compatible
query I rowsort label-5646
SELECT col2 / + col0 - col2 + + - col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-125
-31
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = + 87
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5648
SELECT ALL + - col1 - 80 DIV 70, - col2 AS col1 FROM tab1 cor0
----
-15
-96
-48
-68
-6
-59

skipif mysql # not compatible
query II rowsort label-5648
SELECT ALL + - col1 - 80 / 70, - col2 AS col1 FROM tab1 cor0
----
-15
-96
-48
-68
-6
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT DISTINCT 26 - - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-5649
SELECT DISTINCT 26 - - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5650
SELECT DISTINCT 6 * - + col1 * + col1 * - - CAST( + + col2 AS SIGNED ) FROM tab2
----
-1422960
-1562172
-358938

skipif mysql # not compatible
query I rowsort label-5650
SELECT DISTINCT 6 * - + col1 * + col1 * - - CAST ( + + col2 AS INTEGER ) FROM tab2
----
-1422960
-1562172
-358938

query I rowsort
SELECT - col0 + - 85 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-136
-170
-176

query I rowsort
SELECT DISTINCT 79 * col0 FROM tab0
----
1185
6873
7663

query II rowsort
SELECT DISTINCT - 73, col0 AS col0 FROM tab1 AS cor0
----
-73
51
-73
85
-73
91

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

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

query I rowsort
SELECT - col2 * + - 8 FROM tab1 cor0
----
472
544
768

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5659
SELECT ALL - col2 * col1 * CAST( + + ( + + 53 ) AS SIGNED ) + - col0 - + - col1 + - col0 FROM tab1 AS cor0
----
-15800
-169523
-71320

skipif mysql # not compatible
query I rowsort label-5659
SELECT ALL - col2 * col1 * CAST ( + + ( + + 53 ) AS INTEGER ) + - col0 - + - col1 + - col0 FROM tab1 AS cor0
----
-15800
-169523
-71320

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

query I rowsort
SELECT ALL + 97 * - 70 FROM tab0
----
-6790
-6790
-6790

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT + - COUNT( * ) * - COUNT( * ) * + 53 - COUNT( * ) * + COUNT( * ) + - - SUM( ALL + 20 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5663
SELECT + - COUNT ( * ) * - COUNT ( * ) * + 53 - COUNT ( * ) * + COUNT ( * ) + - - SUM ( ALL + 20 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - ( ( + 23 ) ) * - - col2 AS col1 FROM tab1
----
-1357
-1564
-2208

onlyif mysql # DIV for integer division: 
query I rowsort label-5665
SELECT DISTINCT + 37 DIV ( 41 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5665
SELECT DISTINCT + 37 / ( 41 ) AS col2 FROM tab1
----
0

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

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT - 36 + - - col0 IS NULL
----
1
21
81

query I rowsort
SELECT - col1 + + 8 + - col2 FROM tab1 AS cor0
----
-102
-107
-56

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5670
SELECT DISTINCT + CAST( - MIN( - col0 ) AS SIGNED ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5670
SELECT DISTINCT + CAST ( - MIN ( - col0 ) AS INTEGER ) FROM tab1
----
91

query I rowsort
SELECT + 87 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT ALL col0 + - + 11 FROM tab2
----
35
53
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT + - SUM( ALL col1 ) - COUNT( * ) + - + 24 AS col2 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-5674
SELECT + - SUM ( ALL col1 ) - COUNT ( * ) + - + 24 AS col2 FROM tab1 AS cor0
----
-93

query I rowsort
SELECT + col2 - + + 65 FROM tab0 AS cor0
----
-18
-55
34

onlyif mysql # DIV for integer division: 
query I rowsort label-5676
SELECT col2 - - + col2 DIV - col0 FROM tab1 AS cor0
----
59
68
95

skipif mysql # not compatible
query I rowsort label-5676
SELECT col2 - - + col2 / - col0 FROM tab1 AS cor0
----
59
68
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT + COUNT( * ) - 24 AS col2 FROM tab2 cor0
----
-21

skipif mysql # not compatible
query I rowsort label-5677
SELECT + COUNT ( * ) - 24 AS col2 FROM tab2 cor0
----
-21

query I rowsort
SELECT col1 * - + 82 - + + ( - col1 ) + + + 23 - col0 FROM tab0 AS cor0
----
-155
-1765
-6553

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 85 * - 92 NOT BETWEEN + - col0 + col2 AND + 16 + + 58
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 49 + - 73 AS col0 FROM tab1
----
-24
-24
-24

query III rowsort
SELECT * FROM tab0 WHERE + col2 * + - 19 - - + 6 * - + 98 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * - col1 + - col2 FROM tab0
----
-198
-220
-3854

query I rowsort
SELECT - col2 + - 63 * col2 - - - col0 + col1 AS col0 FROM tab1
----
-3856
-4396
-6181

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5686
SELECT ALL - + 65 + + col1 DIV col2 FROM tab2 AS cor0
----
-63
-64
-64

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL - + 65 + + col1 / col2 FROM tab2 AS cor0
----
-63
-64
-64

query I rowsort
SELECT DISTINCT - - col2 - - 47 AS col1 FROM tab0 AS cor0
----
146
57
94

onlyif mysql # DIV for integer division: 
query I rowsort label-5688
SELECT - 9 DIV col1 * col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5688
SELECT - 9 / col1 * col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5689
SELECT DISTINCT - SUM( col0 ) AS col0, - COUNT( * ) + - 19 AS col0 FROM tab1 AS cor0
----
-227
-22

skipif mysql # not compatible
query II rowsort label-5689
SELECT DISTINCT - SUM ( col0 ) AS col0, - COUNT ( * ) + - 19 AS col0 FROM tab1 AS cor0
----
-227
-22

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

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

query I rowsort
SELECT ( - 7 ) AS col0 FROM tab1 AS cor0
----
-7
-7
-7

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

skipif mysql # not compatible
query II rowsort label-5692
SELECT + ( + 84 ) * + CAST ( NULL AS INTEGER ), col1 AS col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

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

skipif mysql # not compatible
query II rowsort label-5693
SELECT 23 AS col1, - COUNT ( * ) FROM tab2 AS cor0
----
23
-3

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

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

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

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

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

query I rowsort
SELECT + col1 * + 78 FROM tab0 AS cor0
----
1638
6318
78

query I rowsort
SELECT ALL - col2 * - 39 + + 42 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5700
SELECT DISTINCT + COUNT( * ) col1, 80 FROM tab0
----
3
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5700
SELECT DISTINCT + COUNT ( * ) col1, 80 FROM tab0
----
3
80

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

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

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

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

query II rowsort
SELECT ALL + 35 + + col2 AS col1, 44 FROM tab2
----
58
44
75
44
93
44

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT 45 * - SUM( DISTINCT - - col1 ) + - 47 AS col2 FROM tab2
----
-8822

skipif mysql # not compatible
query I rowsort label-5707
SELECT 45 * - SUM ( DISTINCT - - col1 ) + - 47 AS col2 FROM tab2
----
-8822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5708
SELECT ALL 80 + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT - - col0 + + - col2 - - 12 FROM tab2 cor0
----
29
35
36

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5712
SELECT DISTINCT - 37 - CAST( col2 AS SIGNED ) AS col0 FROM tab2 cor0
----
-60
-77
-95

skipif mysql # not compatible
query I rowsort label-5712
SELECT DISTINCT - 37 - CAST ( col2 AS INTEGER ) AS col0 FROM tab2 cor0
----
-60
-77
-95

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 88 * - - col1 >= NULL
----

query I rowsort
SELECT 4 - - - 89 AS col1 FROM tab2
----
-85
-85
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5715
SELECT DISTINCT CAST( - SUM( DISTINCT col1 ) AS SIGNED ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-5715
SELECT DISTINCT CAST ( - SUM ( DISTINCT col1 ) AS INTEGER ) FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query II rowsort label-5716
SELECT 9 * - ( - + COUNT( * ) ), COUNT( * ) - + + COUNT( * ) col2 FROM tab1
----
27
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5716
SELECT 9 * - ( - + COUNT ( * ) ), COUNT ( * ) - + + COUNT ( * ) col2 FROM tab1
----
27
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5717
SELECT 53 DIV + COUNT( * ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-5717
SELECT 53 / + COUNT ( * ) FROM tab0
----
17

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 41 > - - 58
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

query I rowsort
SELECT ALL - ( 12 ) FROM tab0
----
-12
-12
-12

query I rowsort
SELECT DISTINCT - 47 AS col2 FROM tab2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5724
SELECT + COUNT( - 52 ) + ( 11 ) AS col1 FROM tab2 cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
14

skipif mysql # not compatible
query I rowsort label-5724
SELECT + COUNT ( - 52 ) + ( 11 ) AS col1 FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5725
SELECT - - ( - col2 ) DIV 84 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5725
SELECT - - ( - col2 ) / 84 AS col0 FROM tab0 AS cor0
----
-1
0
0

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

query I rowsort
SELECT col2 * + ( + 90 ) FROM tab2
----
2070
3600
5220

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT - MAX( ALL - - 14 ) FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-5728
SELECT - MAX ( ALL - - 14 ) FROM tab1
----
-14

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

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

query I rowsort
SELECT ALL + 63 + + 3 FROM tab1
----
66
66
66

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE - - col1 <= - + 88
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5734
SELECT - col2 - - - col2 DIV - + 30 AS col2 FROM tab2
----
-23
-39
-57

skipif mysql # not compatible
query I rowsort label-5734
SELECT - col2 - - - col2 / - + 30 AS col2 FROM tab2
----
-23
-39
-57

query I rowsort
SELECT DISTINCT + 57 + - - ( col1 ) AS col2 FROM tab0
----
138
58
78

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5737
SELECT DISTINCT - + col2 / + CAST( NULL AS SIGNED ) * - - col2 - - + col1 + + - col2 * - col2, - col2 + - 79 AS col2 FROM tab1 AS cor0
----
NULL
-138
NULL
-147
NULL
-175

skipif mysql # not compatible
query II rowsort label-5737
SELECT DISTINCT - + col2 / + CAST ( NULL AS INTEGER ) * - - col2 - - + col1 + + - col2 * - col2, - col2 + - 79 AS col2 FROM tab1 AS cor0
----
NULL
-138
NULL
-147
NULL
-175

query I rowsort
SELECT 96 + 0 + - ( + 92 ) FROM tab2 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT ALL MIN( - 1 ) - COUNT( * ) FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-5739
SELECT ALL MIN ( - 1 ) - COUNT ( * ) FROM tab0 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE - 81 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5740
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE - 81 IS NULL
----
0

query I rowsort
SELECT + col0 + - - col0 - - col0 * - 44 * + col2 FROM tab2 cor0
----
-112512
-191250
-46460

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

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT ( col0 < col0 )
----
1
21
81

query I rowsort
SELECT ALL col0 * + 73 AS col2 FROM tab0
----
1095
6351
7081

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5746
SELECT ALL AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab0, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5746
SELECT ALL AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0, tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5747
SELECT col1 DIV + - ( + col2 ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5747
SELECT col1 / + - ( + col2 ) AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - col1 * + col2 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
-1173
-3080
-3886

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

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

query II rowsort
SELECT - - col2 * + + 15 AS col0, col2 AS col1 FROM tab0 cor0
----
1485
99
150
10
705
47

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5754
SELECT ALL 81 DIV - - COUNT( * ) AS col0 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL 81 / - - COUNT ( * ) AS col0 FROM tab2
----
27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT ( MAX( DISTINCT col2 ) ) col1 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5756
SELECT ( MAX ( DISTINCT col2 ) ) col1 FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5757
SELECT DISTINCT + ( + + CAST( col0 AS SIGNED ) ), col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

skipif mysql # not compatible
query II rowsort label-5757
SELECT DISTINCT + ( + + CAST ( col0 AS INTEGER ) ), col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col1, + ( + col1 ) AS col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT col1 + + - 26 AS col1 FROM tab2 cor0
----
25
41
51

query II rowsort
SELECT DISTINCT 89, - 26 - col1 AS col2 FROM tab0 AS cor0
----
89
-107
89
-27
89
-47

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

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

query I rowsort
SELECT ALL - 2 * + col2 FROM tab0
----
-198
-20
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5765
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5765
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5766
SELECT CAST( NULL AS SIGNED ) - + - 56 AS col2 FROM tab1 WHERE + + 80 < NULL
----

skipif mysql # not compatible
query I rowsort label-5766
SELECT CAST ( NULL AS INTEGER ) - + - 56 AS col2 FROM tab1 WHERE + + 80 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT DISTINCT + SUM( - col1 ) + + 58 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5767
SELECT DISTINCT + SUM ( - col1 ) + + 58 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

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

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

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

query II rowsort
SELECT ALL 1 + - - col1 * 18 * 29 + + - col1, 87 - - col0 AS col0 FROM tab2
----
26572
133
34908
162
40118
151

query I rowsort
SELECT - col2 + - - col0 * + 8 FROM tab2
----
345
472
542

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( + 94 + + 26 ) IS NULL
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT - ( + 10 ) + + col0 + - 92 FROM tab2 AS cor0
----
-27
-38
-56

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

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

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

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

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

query I rowsort
SELECT DISTINCT 87 * + 75 FROM tab1
----
6525

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5786
SELECT DISTINCT - col0 DIV + + CAST( + col1 AS SIGNED ) FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-5786
SELECT DISTINCT - col0 / + + CAST ( + col1 AS INTEGER ) FROM tab0
----
-4
-97
0

query I rowsort
SELECT DISTINCT - - 66 FROM tab2 WHERE NOT + - col1 IS NULL
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-5788
SELECT ALL - 2 AS col0, - SUM( + - 83 ) AS col2 FROM tab1 AS cor0
----
-2
249

skipif mysql # not compatible
query II rowsort label-5788
SELECT ALL - 2 AS col0, - SUM ( + - 83 ) AS col2 FROM tab1 AS cor0
----
-2
249

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

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

query II rowsort
SELECT - col2, 73 * - - col1 AS col2 FROM tab1 AS cor0
----
-59
365
-68
3431
-96
1022

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT - MIN( ALL - - col0 ) FROM tab1 WHERE NOT + + ( 28 ) * col2 * col1 BETWEEN + + col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5792
SELECT - MIN ( ALL - - col0 ) FROM tab1 WHERE NOT + + ( 28 ) * col2 * col1 BETWEEN + + col0 AND NULL
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5794
SELECT DISTINCT col0 + + CAST( + col1 AS SIGNED ) + - 0 * - 58 FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT col0 + + CAST ( + col1 AS INTEGER ) + - 0 * - 58 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT - + col2 * + 46 * + 2 FROM tab1 AS cor0
----
-5428
-6256
-8832

query I rowsort
SELECT ALL col2 - + 51 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

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

query I rowsort
SELECT ALL - 85 * - 1 * col1 FROM tab2 AS cor0
----
4335
5695
6545

query I rowsort
SELECT + 59 + 32 AS col0 FROM tab2
----
91
91
91

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

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

skipif mysql # not compatible
query I rowsort label-5801
SELECT COUNT ( * ) FROM tab0 WHERE - col1 - - + col2 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT ALL - SUM( - - col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL - SUM ( - - col0 ) AS col1 FROM tab2 AS cor0
----
-185

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT - 1, 96 AS col1 FROM tab1 AS cor0
----
-1
96

query I rowsort
SELECT DISTINCT + ( + col1 ) * - col2 * col1 - - 28 AS col2 FROM tab1 AS cor0
----
-1447
-150184
-18788

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 20 * col1 ) > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5810
SELECT CAST( - 38 AS SIGNED ) DIV 67 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5810
SELECT CAST ( - 38 AS INTEGER ) / 67 AS col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5811
SELECT 20 DIV - col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5811
SELECT 20 / - col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5812
SELECT 57 DIV COUNT( * ) AS col1 FROM tab0
----
19

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 29 col1 FROM tab0
----
-2349
-29
-609

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

query III rowsort
SELECT * FROM tab1 WHERE ( + 7 * 60 + 80 ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5816
SELECT - col2 DIV 82 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5816
SELECT - col2 / 82 AS col1 FROM tab0
----
-1
0
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5819
SELECT - 70 DIV + 51 + - 54 AS col0 FROM tab1
----
-55
-55
-55

skipif mysql # not compatible
query I rowsort label-5819
SELECT - 70 / + 51 + - 54 AS col0 FROM tab1
----
-55
-55
-55

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 * 96 <= + col2 / - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5821
SELECT + col1 * ( CAST( + 62 AS SIGNED ) ) + 34 FROM tab1 WHERE NOT NULL BETWEEN ( - 35 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-5821
SELECT + col1 * ( CAST ( + 62 AS INTEGER ) ) + 34 FROM tab1 WHERE NOT NULL BETWEEN ( - 35 ) AND NULL
----

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5828
SELECT + COUNT( * ) + - MIN( 33 ) DIV COUNT( * ) AS col2 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-5828
SELECT + COUNT ( * ) + - MIN ( 33 ) / COUNT ( * ) AS col2 FROM tab1
----
-8

query I rowsort
SELECT 22 - 96 FROM tab2
----
-74
-74
-74

query I rowsort
SELECT ALL - 55 - - col2 FROM tab1
----
13
4
41

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

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

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

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

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

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

query I rowsort
SELECT ALL col0 + 49 FROM tab2
----
113
124
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5836
SELECT + CAST( col0 AS SIGNED ) + 18 FROM tab0 cor0
----
105
115
33

skipif mysql # not compatible
query I rowsort label-5836
SELECT + CAST ( col0 AS INTEGER ) + 18 FROM tab0 cor0
----
105
115
33

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5841
SELECT * FROM tab2 AS cor0 WHERE ( col2 - + CAST( - col1 AS SIGNED ) ) = col2
----

skipif mysql # not compatible
query III rowsort label-5841
SELECT * FROM tab2 AS cor0 WHERE ( col2 - + CAST ( - col1 AS INTEGER ) ) = col2
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN col0 AND + col2
----
85
91

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

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

query I rowsort
SELECT ALL col1 * 19 FROM tab1 AS cor0
----
266
893
95

query III rowsort
SELECT * FROM tab2 WHERE + col0 / col0 NOT IN ( 71 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5847
SELECT DISTINCT ( - col0 ) * - col0 + col1 DIV col1 FROM tab2
----
2117
4097
5626

skipif mysql # not compatible
query I rowsort label-5847
SELECT DISTINCT ( - col0 ) * - col0 + col1 / col1 FROM tab2
----
2117
4097
5626

query I rowsort
SELECT col2 + + col2 * + 17 AS col2 FROM tab2 WHERE + col2 / col1 + + col2 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-5849
SELECT + COUNT ( * ) * + + 25 FROM tab0
----
75

query I rowsort
SELECT 81 + - col1 FROM tab1 WHERE NULL IS NULL
----
34
67
76

query I rowsort
SELECT + col1 * + 74 AS col2 FROM tab2
----
3774
4958
5698

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5852
SELECT ALL - 66 DIV MAX( DISTINCT + 18 ) + 89 col2 FROM tab0
----
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5852
SELECT ALL - 66 / MAX ( DISTINCT + 18 ) + 89 col2 FROM tab0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT - COUNT( * ) FROM tab1 WHERE ( 71 ) <> + col1
----
-3

skipif mysql # not compatible
query I rowsort label-5853
SELECT - COUNT ( * ) FROM tab1 WHERE ( 71 ) <> + col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT + 41 - + + 86 * + MIN( - col0 ) FROM tab1
----
7867

skipif mysql # not compatible
query I rowsort label-5854
SELECT + 41 - + + 86 * + MIN ( - col0 ) FROM tab1
----
7867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 - 33 + + col2 * + col1 col0 FROM tab2 AS cor0
----
1089
2970
3786

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT DISTINCT + - 88 - + + COUNT( col2 ) FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5857
SELECT DISTINCT + - 88 - + + COUNT ( col2 ) FROM tab0 AS cor0
----
-91

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5859
SELECT ALL - COUNT( * ) - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL - COUNT ( * ) - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 * col0 AS col1 FROM tab1 WHERE NOT - - col2 IS NULL
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT ALL SUM( DISTINCT - col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL SUM ( DISTINCT - col1 ) AS col0 FROM tab2
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 * + col2 col2 FROM tab1
----
2419
2788
3936

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

query I rowsort
SELECT - 7 * - 88 AS col2 FROM tab1
----
616
616
616

query II rowsort
SELECT ALL col2 AS col2, col0 + col2 AS col2 FROM tab0 cor0
----
10
97
47
62
99
196

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 NOT IN ( 3 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 = NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5871
SELECT - SUM( ALL - ( CAST( + - col2 AS SIGNED ) ) ) col0 FROM tab0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5871
SELECT - SUM ( ALL - ( CAST ( + - col2 AS INTEGER ) ) ) col0 FROM tab0
----
-156

query I rowsort
SELECT ALL 81 * - col2 * - - col1 FROM tab1
----
-108864
-23895
-258876

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

query III rowsort
SELECT * FROM tab2 WHERE NOT 68 + - - col1 / ( 9 ) < + 10
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT DISTINCT - ( + ( COUNT( * ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5875
SELECT DISTINCT - ( + ( COUNT ( * ) ) ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT IN ( - col2 + 48 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5876
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT IN ( - col2 + 48 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT DISTINCT - COUNT( col2 ) FROM tab0 AS cor0 WHERE NOT ( ( + - 84 * ( + col1 ) + col2 * col1 ) IN ( col1 * col2 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-5877
SELECT DISTINCT - COUNT ( col2 ) FROM tab0 AS cor0 WHERE NOT ( ( + - 84 * ( + col1 ) + col2 * col1 ) IN ( col1 * col2 ) )
----
-3

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

query I rowsort
SELECT DISTINCT + - col1 * + col1 + + col1 FROM tab2 AS cor0
----
-2550
-4422
-5852

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5883
SELECT + + 10 + - 11 AS col1, COUNT( col1 ) AS col2 FROM tab0 AS cor0
----
-1
3

skipif mysql # not compatible
query II rowsort label-5883
SELECT + + 10 + - 11 AS col1, COUNT ( col1 ) AS col2 FROM tab0 AS cor0
----
-1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5884
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5884
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

query I rowsort
SELECT + - ( + 50 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT MIN( 91 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5886
SELECT MIN ( 91 ) AS col2 FROM tab1
----
91

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

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

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

query I rowsort
SELECT DISTINCT + - 98 + 4 + - col1 * - + 28 AS col0 FROM tab1 AS cor0
----
1222
298
46

query I rowsort
SELECT DISTINCT - 19 + - - col0 FROM tab1 AS cor0
----
32
66
72

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

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

query I rowsort
SELECT DISTINCT + + col0 + 72 AS col1 FROM tab0 AS cor0
----
159
169
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5893
SELECT + CAST( NULL AS SIGNED ) + 82 / + + 45 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5893
SELECT + CAST ( NULL AS INTEGER ) + 82 / + + 45 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5894
SELECT DISTINCT col2 DIV - - col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5894
SELECT DISTINCT col2 / - - col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT 21 * + - col0 * col1 - + col1 AS col0 FROM tab2 AS cor0
----
-103565
-105592
-49317

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5898
SELECT col1 DIV - - ( - CAST( - ( + col2 ) AS SIGNED ) ) * 14 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5898
SELECT col1 / - - ( - CAST ( - ( + col2 ) AS INTEGER ) ) * 14 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 NOT IN ( col0, col1 * col1 )
----

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

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT + - SUM ( + + 24 ) - - 21 FROM tab1 cor0
----
-51

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5901
SELECT ALL + SUM ( + col1 ) col2 FROM tab2 AS cor0
----
195

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5905
SELECT + 64 col2, + CAST( NULL AS SIGNED ) - + + 26 * COUNT( col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT NULL >= ( - 88 ) )
----
64
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5905
SELECT + 64 col2, + CAST ( NULL AS INTEGER ) - + + 26 * COUNT ( col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT NULL >= ( - 88 ) )
----
64
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5906
SELECT + col1 DIV + 35 AS col1 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5906
SELECT + col1 / + 35 AS col1 FROM tab2 AS cor0
----
1
1
2

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5908
SELECT DISTINCT 87 DIV 24 + + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5908
SELECT DISTINCT 87 / 24 + + COUNT ( * ) FROM tab0 AS cor0
----
6

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

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

query I rowsort
SELECT DISTINCT - 74 * - ( - col1 ) * - 87 FROM tab2 AS cor0 WHERE + col0 <= col1
----
328338
495726

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT - - 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-5911
SELECT - - SUM ( - col1 ) col1 FROM tab1 AS cor0
----
-66

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

query I rowsort
SELECT + - 99 FROM tab2 cor0
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT ALL + - ( MIN( - col2 ) ) FROM tab0 WHERE - 71 IS NOT NULL
----
99

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL + - ( MIN ( - col2 ) ) FROM tab0 WHERE - 71 IS NOT NULL
----
99

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

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

skipif mysql # not compatible
query I rowsort label-5916
SELECT ALL MIN ( ALL + ( - col2 ) ) FROM tab1
----
-96

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5918
SELECT ( - 36 ) FROM tab2 WHERE NOT + CAST( + col2 AS SIGNED ) + - - col1 + - 65 <= NULL
----

skipif mysql # not compatible
query I rowsort label-5918
SELECT ( - 36 ) FROM tab2 WHERE NOT + CAST ( + col2 AS INTEGER ) + - - col1 + - 65 <= NULL
----

query II rowsort
SELECT DISTINCT + col0, - col2 FROM tab0
----
15
-47
87
-10
97
-99

query II rowsort
SELECT col1 AS col1, + col0 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT - col2 * + 21 FROM tab2
----
-1218
-483
-840

query I rowsort
SELECT col0 + - + col2 * + col0 AS col0 FROM tab1
----
-4845
-4930
-6097

query I rowsort
SELECT ALL + + col0 - + 71 FROM tab0 AS cor0
----
-56
16
26

query I rowsort
SELECT DISTINCT + col1 + - col2 - - + 68 AS col2 FROM tab0 AS cor0
----
-30
102
79

query I rowsort
SELECT ALL col0 / + ( + 12 ) + - col1 FROM tab2 AS cor0 WHERE - col2 + col1 * - 2 > ( NULL )
----

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

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

query I rowsort
SELECT DISTINCT - col0 - - 31 FROM tab1 AS cor0
----
-20
-54
-60

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col0 FROM tab2 WHERE NOT - col1 + - col0 + + 95 <> - col0 * + 73
----

query I rowsort
SELECT ALL + 93 * + - col1 FROM tab2
----
-4743
-6231
-7161

query I rowsort
SELECT DISTINCT - col2 + - 87 FROM tab1
----
-146
-155
-183

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5932
SELECT * FROM tab2 WHERE col0 / + 5 * + col1 - - CAST( NULL AS SIGNED ) NOT IN ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-5932
SELECT * FROM tab2 WHERE col0 / + 5 * + col1 - - CAST ( NULL AS INTEGER ) NOT IN ( + col1 )
----

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
1
21
81

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 19 <> NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5940
SELECT - COUNT( * ) * COUNT( * ) col2, - 29 + 92 AS col1 FROM tab1
----
-9
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5940
SELECT - COUNT ( * ) * COUNT ( * ) col2, - 29 + 92 AS col1 FROM tab1
----
-9
63

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

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

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

query II rowsort
SELECT - - 71 AS col2, - col2 + 34 + - + ( col2 ) * col2 * - - col1 * - 60 - col0 AS col0 FROM tab2 cor0
----
71
13523181
71
1618705
71
7391930

query II rowsort
SELECT DISTINCT - col1 * + - col0 * - col1 + 70 * - col0 * + + col1 AS col0, col1 FROM tab1 AS cor0
----
-31875
5
-500409
47
-59976
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5945
SELECT 27 DIV - + col2 col1 FROM tab0
----
-2
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5945
SELECT 27 / - + col2 col1 FROM tab0
----
-2
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT DISTINCT MAX( ALL - col2 ) + + SUM( col2 ) + + - SUM( + col0 ) FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-5947
SELECT DISTINCT MAX ( ALL - col2 ) + + SUM ( col2 ) + + - SUM ( + col0 ) FROM tab2
----
-87

query I rowsort
SELECT ALL 19 + col2 FROM tab2
----
42
59
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT DISTINCT + 60 + - SUM( + - col2 ) FROM tab1
----
283

skipif mysql # not compatible
query I rowsort label-5949
SELECT DISTINCT + 60 + - SUM ( + - col2 ) FROM tab1
----
283

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

query I rowsort
SELECT ALL + - 38 FROM tab2 cor0
----
-38
-38
-38

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5953
SELECT ALL - - COUNT( - 25 ) + - - CAST( - 67 AS SIGNED ) AS col0 FROM tab0 cor0
----
-64

skipif mysql # not compatible
query I rowsort label-5953
SELECT ALL - - COUNT ( - 25 ) + - - CAST ( - 67 AS INTEGER ) AS col0 FROM tab0 cor0
----
-64

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5955
SELECT + - col2 * CAST( NULL AS SIGNED ) + col2 + - col2 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-5955
SELECT + - col2 * CAST ( NULL AS INTEGER ) + col2 + - col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - + col0 - + + 5 FROM tab2 AS cor0
----
-51
-69
-80

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( - 53 ) = + - 32
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 + 21 AS col0 FROM tab1
----
106
112
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT SUM( DISTINCT 49 ) AS col0 FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-5963
SELECT SUM ( DISTINCT 49 ) AS col0 FROM tab2 AS cor0
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5964
SELECT - - MAX( ALL - col2 ) DIV + 60 col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5964
SELECT - - MAX ( ALL - col2 ) / + 60 col2 FROM tab0 AS cor0
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - - col1 col0 FROM tab2
----
2601
4489
5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 21 * col2 col2 FROM tab0 AS cor0
----
2079
210
987

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5969
SELECT + 55 DIV - + 12 AS col0 FROM tab1 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-5969
SELECT + 55 / - + 12 AS col0 FROM tab1 AS cor0
----
-4
-4
-4

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

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

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

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

query I rowsort
SELECT ALL + 55 AS col1 FROM tab2 cor0
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5974
SELECT ( - - col0 ) + col2 + - CAST( - col0 AS SIGNED ) * col2 AS col1 FROM tab1 cor0
----
5043
5159
6347

skipif mysql # not compatible
query I rowsort label-5974
SELECT ( - - col0 ) + col2 + - CAST ( - col0 AS INTEGER ) * col2 AS col1 FROM tab1 cor0
----
5043
5159
6347

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT + 45 + - ( - MIN( DISTINCT + - col0 ) ) FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5975
SELECT + 45 + - ( - MIN ( DISTINCT + - col0 ) ) FROM tab1 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT ALL - 26 * + + COUNT( * ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-5976
SELECT ALL - 26 * + + COUNT ( * ) FROM tab2
----
-78

query I rowsort
SELECT ALL - 42 * + + col0 + + col1 * - col0 * + col0 + - ( + + col2 ) FROM tab1
----
-38652
-393097
-39754

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5979
SELECT DISTINCT + ( + 4 ) DIV + + 45 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5979
SELECT DISTINCT + ( + 4 ) / + + 45 col1 FROM tab2
----
0

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

query II rowsort
SELECT - 21 AS col2, - col0 FROM tab1
----
-21
-51
-21
-85
-21
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 col1 FROM tab1
----
-28
-28
-28

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5985
SELECT DISTINCT COUNT( * ) AS col1, COUNT( * ) + - ( 92 ) - - MIN( + - 93 ) FROM tab1
----
3
-182

skipif mysql # not compatible
query II rowsort label-5985
SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( * ) + - ( 92 ) - - MIN ( + - 93 ) FROM tab1
----
3
-182

query II rowsort
SELECT col1 AS col1, + 91 + 71 FROM tab2
----
51
162
67
162
77
162

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT COUNT( * ) * 77 * - 87 + + COUNT( * ) AS col2 FROM tab1
----
-20094

skipif mysql # not compatible
query I rowsort label-5989
SELECT COUNT ( * ) * 77 * - 87 + + COUNT ( * ) AS col2 FROM tab1
----
-20094

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5990
SELECT DISTINCT - 79 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) / - 75 IN ( col1, col0 + + - 96, 28 + 46 + + ( + 65 ) * - 98, - 11 * - + 16 )
----

skipif mysql # not compatible
query I rowsort label-5990
SELECT DISTINCT - 79 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) / - 75 IN ( col1, col0 + + - 96, 28 + 46 + + ( + 65 ) * - 98, - 11 * - + 16 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5992
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col1 - - 18 * - 11 AND - col2 - col1 - + 83 + + CAST( NULL AS SIGNED ) * + ( col1 ) / - col0
----

skipif mysql # not compatible
query III rowsort label-5992
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col1 - - 18 * - 11 AND - col2 - col1 - + 83 + + CAST ( NULL AS INTEGER ) * + ( col1 ) / - col0
----

query I rowsort
SELECT - 9 - + col0 + 85 * + col0 AS col2 FROM tab1 AS cor0
----
4275
7131
7635

query I rowsort
SELECT ( - col0 ) - + 97 AS col2 FROM tab0 AS cor0
----
-112
-184
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT DISTINCT COUNT( col0 ) - + 98 AS col0 FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-5995
SELECT DISTINCT COUNT ( col0 ) - + 98 AS col0 FROM tab2 AS cor0
----
-95

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

query I rowsort
SELECT + 21 * - col2 FROM tab2
----
-1218
-483
-840

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

skipif mysql # not compatible
query I rowsort label-5998
SELECT COUNT ( - - col1 ) FROM tab1
----
3

query I rowsort
SELECT + col2 * - - ( 75 ) FROM tab0
----
3525
7425
750

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( ( - col2 <= NULL ) ) )
----

query I rowsort
SELECT + ( + col1 ) * + ( + - col1 ) AS col2 FROM tab1
----
-196
-2209
-25

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

query I rowsort
SELECT ALL - - 98 FROM tab1 cor0
----
98
98
98

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT 37 NOT BETWEEN + - col0 AND - col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT MIN( DISTINCT - + col1 ) col0 FROM tab2 WHERE NOT + 72 + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6006
SELECT MIN ( DISTINCT - + col1 ) col0 FROM tab2 WHERE NOT + 72 + col0 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col0 * col2 NOT IN ( - col2 * + col0, - col0 * + 56 )
----

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

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

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

query I rowsort
SELECT + col1 * - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 + + col0 - + 14 + 15 AND - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT DISTINCT - - MIN( ALL + 27 ) * + COUNT( * ) FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6011
SELECT DISTINCT - - MIN ( ALL + 27 ) * + COUNT ( * ) FROM tab2 AS cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6012
SELECT DISTINCT - - col2 * col0 + - col0 DIV - col1 FROM tab1 AS cor0
----
4899
5032
6189

skipif mysql # not compatible
query I rowsort label-6012
SELECT DISTINCT - - col2 * col0 + - col0 / - col1 FROM tab1 AS cor0
----
4899
5032
6189

query II rowsort
SELECT ALL col1 * - col2 AS col2, - col0 AS col0 FROM tab2 AS cor0
----
-1173
-46
-3080
-64
-3886
-75

query I rowsort
SELECT DISTINCT + col1 * - 14 + + 24 FROM tab1 AS cor0
----
-172
-46
-634

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

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

query I rowsort
SELECT - 17 * - + 89 AS col2 FROM tab1 AS cor0
----
1513
1513
1513

onlyif mysql # DIV for integer division: 
query I rowsort label-6017
SELECT - 8 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6017
SELECT - 8 / col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT - 26 + - COUNT( * ) AS col1 FROM tab0
----
-29

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6019
SELECT DISTINCT col2 DIV - 69 AS col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6019
SELECT DISTINCT col2 / - 69 AS col0 FROM tab0
----
-1
0

query I rowsort
SELECT DISTINCT + col2 + - + col0 + + + col0 * + col2 + 9 FROM tab2
----
1044
2545
4342

query I rowsort
SELECT ( - - col2 ) + - 51 FROM tab0
----
-4
-41
48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT ALL MAX( DISTINCT + 18 ) + - - 29 + + 68 FROM tab1
----
115

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL MAX ( DISTINCT + 18 ) + - - 29 + + 68 FROM tab1
----
115

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( col0 ) / + + 9 + col1 * + col2 > NULL
----

query I rowsort
SELECT ALL - 65 + col1 AS col2 FROM tab1
----
-18
-51
-60

query II rowsort
SELECT + + 85 + ( - 15 ), + 43 AS col2 FROM tab1 AS cor0
----
70
43
70
43
70
43

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6029
SELECT COUNT( * ) + - CAST( - - 1 AS SIGNED ) FROM tab2 WHERE ( NOT 80 / col2 + 50 * + col2 >= col1 + + col2 )
----
-1

skipif mysql # not compatible
query I rowsort label-6029
SELECT COUNT ( * ) + - CAST ( - - 1 AS INTEGER ) FROM tab2 WHERE ( NOT 80 / col2 + 50 * + col2 >= col1 + + col2 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT ALL - + 44 + COUNT( * ) FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-6030
SELECT ALL - + 44 + COUNT ( * ) FROM tab0 AS cor0
----
-41

query I rowsort
SELECT DISTINCT col1 - col1 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6032
SELECT ALL + col1 DIV + 43 FROM tab0 AS cor0 WHERE NOT - 56 * + + 23 * col2 = col1 * - col0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL + col1 / + 43 FROM tab0 AS cor0 WHERE NOT - 56 * + + 23 * col2 = col1 * - col0
----
0
0
1

query I rowsort
SELECT ALL - + col0 * col1 + col0 AS col1 FROM tab0 AS cor0
----
-1200
-1740
0

query I rowsort
SELECT - 26 + col2 + + + col2 AS col0 FROM tab2 AS cor0
----
20
54
90

query I rowsort
SELECT DISTINCT - col1 * + - ( + 28 ) AS col1 FROM tab2 AS cor0
----
1428
1876
2156

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

skipif mysql # not compatible
query I rowsort label-6036
SELECT MAX ( ALL - - col2 ) FROM tab0 AS cor0
----
99

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

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

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

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

query II rowsort
SELECT ALL - col0, - ( - 62 ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-6040
SELECT ALL - MIN ( - 60 ) AS col2 FROM tab0 AS cor0
----
60

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

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

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

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL + MIN ( DISTINCT - col2 ) FROM tab0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6044
SELECT + 38 * + 81 AS col0, - CAST( - col1 AS SIGNED ) FROM tab1
----
3078
14
3078
47
3078
5

skipif mysql # not compatible
query II rowsort label-6044
SELECT + 38 * + 81 AS col0, - CAST ( - col1 AS INTEGER ) FROM tab1
----
3078
14
3078
47
3078
5

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

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

skipif mysql # not compatible
query I rowsort label-6046
SELECT + MIN ( col1 ) FROM tab0
----
1

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

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

query I rowsort
SELECT 98 + - col1 FROM tab2 AS cor0
----
21
31
47

query I rowsort
SELECT DISTINCT col1 + ( 63 ) FROM tab0 AS cor0
----
144
64
84

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

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

query I rowsort
SELECT ALL - 62 * 62 + - 71 * + col2 FROM tab1 AS cor0
----
-10660
-8033
-8672

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

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

query I rowsort
SELECT + col1 + + - col2 FROM tab0 cor0
----
-98
11
34

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

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

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

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

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

query I rowsort
SELECT 2 - + - col0 FROM tab1 cor0
----
53
87
93

query II rowsort
SELECT DISTINCT col2, 35 FROM tab2
----
23
35
40
35
58
35

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

skipif mysql # not compatible
query I rowsort label-6061
SELECT 72 * + COUNT ( * ) FROM tab0
----
216

query I rowsort
SELECT ALL 12 * - 1 AS col0 FROM tab2 AS cor0
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT DISTINCT + - 70 * - + COUNT( * ) AS col1 FROM tab1 cor0
----
210

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT + - 70 * - + COUNT ( * ) AS col1 FROM tab1 cor0
----
210

onlyif mysql # DIV for integer division: 
query I rowsort label-6064
SELECT ALL - col2 DIV - - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL - col2 / - - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - 2 AS col1 FROM tab0 AS cor0 WHERE ( - + col0 <= - + 95 / - - col2 + col0 + - col1 * + col0 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT DISTINCT SUM( - + 99 ) AS col1 FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-6066
SELECT DISTINCT SUM ( - + 99 ) AS col1 FROM tab0 AS cor0
----
-297

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

skipif mysql # not compatible
query I rowsort label-6067
SELECT ALL col1 / + + col1 FROM tab0 cor0
----
1
1
1

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

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

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

query I rowsort
SELECT - col0 * - + 17 FROM tab2 AS cor0
----
1088
1275
782

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

query I rowsort
SELECT - col2 * 84 * + 15 FROM tab1
----
-120960
-74340
-85680

query I rowsort
SELECT + col1 * 83 FROM tab2
----
4233
5561
6391

query II rowsort
SELECT col1, - ( - - col0 ) + + - 84 * col2 FROM tab1
----
14
-8115
47
-5803
5
-5041

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * + 36 AS col2, 53 col1 FROM tab0
----
-1692
53
-3564
53
-360
53

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 27 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

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

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6085
SELECT DISTINCT col2 FROM tab0 cor0 WHERE NOT col2 * CAST( NULL AS DECIMAL ) / + + col1 = NULL
----

skipif mysql # not compatible
query I rowsort label-6085
SELECT DISTINCT col2 FROM tab0 cor0 WHERE NOT col2 * CAST ( NULL AS REAL ) / + + col1 = NULL
----

query II rowsort
SELECT 59 + col1 AS col1, + col0 * + 43 FROM tab2 cor0
----
110
1978
126
3225
136
2752

query I rowsort
SELECT - - col1 * + col1 * - - col1 + - + col1 FROM tab0 AS cor0
----
0
531360
9240

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

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

query I rowsort
SELECT + col1 + - 40 FROM tab1
----
-26
-35
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6090
SELECT ALL * FROM tab1 WHERE - - CAST( NULL AS SIGNED ) * 33 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6090
SELECT ALL * FROM tab1 WHERE - - CAST ( NULL AS INTEGER ) * 33 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 <> 77
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 80 + - 34 AS col2 FROM tab2 AS cor0
----
46

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 48 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 - + 21 FROM tab0 AS cor0
----
-108
-118
-36

query I rowsort
SELECT DISTINCT - + 5 - + - col2 FROM tab2 AS cor0
----
18
35
53

query I rowsort
SELECT ALL col1 - + 2 AS col1 FROM tab2 AS cor0
----
49
65
75

onlyif mysql # DIV for integer division: 
query II rowsort label-6097
SELECT + col2 - + - col1 AS col1, + col1 * + col1 * ( + col1 ) + + - col2 + col2 DIV - ( col1 ) - + col1 AS col2 FROM tab2
----
117
456416
125
300638
74
132577

skipif mysql # not compatible
query II rowsort label-6097
SELECT + col2 - + - col1 AS col1, + col1 * + col1 * ( + col1 ) + + - col2 + col2 / - ( col1 ) - + col1 AS col2 FROM tab2
----
117
456416
125
300638
74
132577

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT ALL - 59 * + ( COUNT( * ) ) AS col0 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL - 59 * + ( COUNT ( * ) ) AS col0 FROM tab1
----
-177

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

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

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

query II rowsort
SELECT DISTINCT col2 AS col2, 19 FROM tab2
----
23
19
40
19
58
19

query I rowsort
SELECT + 37 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT ALL - MIN( DISTINCT + col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL - MIN ( DISTINCT + col2 ) FROM tab2
----
-23

query I rowsort
SELECT ( 32 ) * + + ( - + col0 ) FROM tab1
----
-1632
-2720
-2912

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

query I rowsort
SELECT 79 * - 51 * + col0 AS col0 FROM tab1
----
-205479
-342465
-366639

onlyif mysql # DIV for integer division: 
query I rowsort label-6107
SELECT ALL - - 48 DIV - - ( + col1 ) FROM tab1 AS cor0
----
1
3
9

skipif mysql # not compatible
query I rowsort label-6107
SELECT ALL - - 48 / - - ( + col1 ) FROM tab1 AS cor0
----
1
3
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT + MAX( + 83 ) FROM tab0 cor0
----
83

skipif mysql # not compatible
query I rowsort label-6108
SELECT + MAX ( + 83 ) FROM tab0 cor0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6109
SELECT ALL CAST( - + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-6109
SELECT ALL CAST ( - + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 <= - - 6
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT + 30 + + col2 * 41 FROM tab2
----
1670
2408
973

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT DISTINCT 25 + - COUNT( * ) col1 FROM tab2
----
22

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT ALL - + MAX( DISTINCT ( - col0 ) ) + - + SUM( - 17 ) FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL - + MAX ( DISTINCT ( - col0 ) ) + - + SUM ( - 17 ) FROM tab2 AS cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6115
SELECT col0 * + - col0 * + col1 + - - col0 * + 55 + - col2 + + - CAST( NULL AS SIGNED ) col0, ( - ( + 56 ) ) AS col0 FROM tab0 AS cor0
----
NULL
-56
NULL
-56
NULL
-56

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6116
SELECT + + 93 + + COUNT( * ), + 95 col0 FROM tab2 cor0
----
96
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6116
SELECT + + 93 + + COUNT ( * ), + 95 col0 FROM tab2 cor0
----
96
95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * col2 - col1 < + col2
----
97
1
99

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT DISTINCT 82 * - COUNT( * ) col1 FROM tab2
----
-246

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6120
SELECT DISTINCT 82 * - COUNT ( * ) col1 FROM tab2
----
-246

query I rowsort
SELECT DISTINCT 52 + 18 AS col2 FROM tab1
----
70

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6123
SELECT - 57 * - col2 / ( - - ( col0 ) ) * + col1 * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE 6 * - - col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6123
SELECT - 57 * - col2 / ( - - ( col0 ) ) * + col1 * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE 6 * - - col1 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6124
SELECT ALL - CAST( - col0 AS SIGNED ) - - col1 + col0 - - ( + col1 ) FROM tab1 AS cor0
----
130
180
276

skipif mysql # not compatible
query I rowsort label-6124
SELECT ALL - CAST ( - col0 AS INTEGER ) - - col1 + col0 - - ( + col1 ) FROM tab1 AS cor0
----
130
180
276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 51, - 50 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to aee61b71d5534b3eb8fd508ba120f302

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT ALL MAX( DISTINCT col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL MAX ( DISTINCT col1 ) FROM tab0 AS cor0
----
81

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

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

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

query I rowsort
SELECT ALL + 58 FROM tab1 AS cor0 WHERE NOT 30 NOT BETWEEN - - 61 AND NULL
----

query I rowsort
SELECT DISTINCT - - col2 * 55 FROM tab1 AS cor0
----
3245
3740
5280

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6134
SELECT ALL 89 DIV + - col1 col0 FROM tab2
----
-1
-1
-1

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 88 = - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6136
SELECT DISTINCT + COUNT( * ) * 95 AS col0, COUNT( * ) * + COUNT( * ) AS col2 FROM tab2
----
285
9

skipif mysql # not compatible
query II rowsort label-6136
SELECT DISTINCT + COUNT ( * ) * 95 AS col0, COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2
----
285
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6137
SELECT ALL + SUM( - col1 ) DIV + 71 AS col1 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-6137
SELECT ALL + SUM ( - col1 ) / + 71 AS col1 FROM tab2
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 * 36 col0 FROM tab0
----
2772
2772
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT ALL COUNT( * ) FROM tab2 WHERE col1 BETWEEN NULL AND col2 / col0 * col0
----
0

skipif mysql # not compatible
query I rowsort label-6139
SELECT ALL COUNT ( * ) FROM tab2 WHERE col1 BETWEEN NULL AND col2 / col0 * col0
----
0

query I rowsort
SELECT col1 * col0 + col0 + - col0 * + 33 AS col1 FROM tab0 AS cor0
----
-3007
-957
735

query I rowsort
SELECT - 68 * + 56 + + - ( - + col1 ) FROM tab1 AS cor0
----
-3761
-3794
-3803

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6144
SELECT ALL - 66 / + CAST( NULL AS DECIMAL ) * - - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL - 66 / + CAST ( NULL AS REAL ) * - - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 - 12 AS col0 FROM tab1 AS cor0
----
-103
-63
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 52 AS col0, - col0 - + - 58 col1 FROM tab0 AS cor0
----
-52
-29
-52
-39
-52
43

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

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

query I rowsort
SELECT ALL - 41 FROM tab1 WHERE NOT col2 IN ( - col0 + col2 + 21, + ( + + col0 ) + - + col0, + + 86, + + 35 )
----
-41
-41
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-6150
SELECT - col1 DIV - 15 AS col2 FROM tab2
----
3
4
5

skipif mysql # not compatible
query I rowsort label-6150
SELECT - col1 / - 15 AS col2 FROM tab2
----
3
4
5

query I rowsort
SELECT DISTINCT + 11 FROM tab2 WHERE NULL = NULL
----

query I rowsort
SELECT - 79 * col0 FROM tab0
----
-1185
-6873
-7663

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6153
SELECT + col1 * - - CAST( NULL AS DECIMAL ) * + 18 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6153
SELECT + col1 * - - CAST ( NULL AS REAL ) * + 18 AS col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col1, 35 * col1 - + col0 AS col1 FROM tab2 AS cor0
----
-51
1739
-67
2270
-77
2631

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

query I rowsort
SELECT + 49 * 16 + + 80 FROM tab1 AS cor0
----
864
864
864

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6157
SELECT 6 DIV + - COUNT( * ) AS col1 FROM tab0 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-6157
SELECT 6 / + - COUNT ( * ) AS col1 FROM tab0 cor0
----
-2

query II rowsort
SELECT ( - - ( + ( - col0 ) ) ) * - col0 * + col2 * 97 AS col1, col2 + + + col0 FROM tab1 AS cor0
----
24220512
147
41348675
144
54621476
159

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT + SUM( ALL + 30 ) FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-6159
SELECT + SUM ( ALL + 30 ) FROM tab1 AS cor0
----
90

query I rowsort
SELECT ALL - 53 * 98 AS col0 FROM tab2 AS cor0
----
-5194
-5194
-5194

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT - 10 * - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-6161
SELECT - 10 * - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
30

query I rowsort
SELECT DISTINCT col0 * + 81 * 90 AS col2 FROM tab1
----
371790
619650
663390

query II rowsort
SELECT ALL + 64, + 75 * + col2 AS col2 FROM tab0
----
64
3525
64
7425
64
750

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6164
SELECT DISTINCT + col1 + - - CAST( + - col0 AS SIGNED ) AS col2, col1 FROM tab2
----
-8
67
13
77
5
51

skipif mysql # not compatible
query II rowsort label-6164
SELECT DISTINCT + col1 + - - CAST ( + - col0 AS INTEGER ) AS col2, col1 FROM tab2
----
-8
67
13
77
5
51

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 ) IN ( col1, + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6166
SELECT + CAST( - - 99 AS SIGNED ) AS col0 FROM tab2
----
99
99
99

skipif mysql # not compatible
query I rowsort label-6166
SELECT + CAST ( - - 99 AS INTEGER ) AS col0 FROM tab2
----
99
99
99

query I rowsort
SELECT + ( - + 89 ) AS col0 FROM tab0 AS cor0
----
-89
-89
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab2 WHERE NOT col2 * - ( + + col2 ) IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT COUNT( * ) FROM tab1, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-6169
SELECT COUNT ( * ) FROM tab1, tab2 cor0
----
9

query I rowsort
SELECT ALL - 30 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query II rowsort
SELECT DISTINCT - ( - col0 ) + ( col2 ), + 63 * col2 + + col1 - col0 AS col2 FROM tab0 AS cor0
----
196
6141
62
3027
97
564

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > - 98 + 6
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT ALL - COUNT( * ) * + 1 + - 33 FROM tab2 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-6175
SELECT ALL - COUNT ( * ) * + 1 + - 33 FROM tab2 cor0
----
-36

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6177
SELECT + col1 DIV - col0 - - + 24 * - col2 + + - col2 FROM tab2
----
-1001
-1450
-576

skipif mysql # not compatible
query I rowsort label-6177
SELECT + col1 / - col0 - - + 24 * - col2 + + - col2 FROM tab2
----
-1001
-1450
-576

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( - col2 ) * - - 44 + + - ( - col2 ) <= + 97 + + 14 * col0 * col1 AND NULL IS NULL
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT ALL + 21 + + + COUNT( * ) FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-6179
SELECT ALL + 21 + + + COUNT ( * ) FROM tab1
----
24

query I rowsort
SELECT DISTINCT + 27 * + + col2 * + col1 FROM tab1
----
36288
7965
86292

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT + - MAX( - col1 ) FROM tab2 WHERE NOT col2 * - + ( + - col2 ) < 46
----
51

skipif mysql # not compatible
query I rowsort label-6181
SELECT + - MAX ( - col1 ) FROM tab2 WHERE NOT col2 * - + ( + - col2 ) < 46
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 51 col0 FROM tab0
----
-1071
-4131
-51

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT NULL < ( - + col1 )
----

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 <> - col2 * 24 / 68 + col1
----

query I rowsort
SELECT DISTINCT - col2 * 90 AS col1 FROM tab1 AS cor0
----
-5310
-6120
-8640

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

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

query I rowsort
SELECT ALL + - col0 * - - 84 AS col2 FROM tab1 AS cor0
----
-4284
-7140
-7644

query I rowsort
SELECT DISTINCT + ( + + 11 ) FROM tab2
----
11

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

query I rowsort
SELECT 72 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, + 27 col1 FROM tab0 WHERE NOT col1 > NULL
----

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

onlyif mysql # aggregate syntax: 
query III rowsort label-6195
SELECT DISTINCT 2 AS col0, 42 AS col2, ( - SUM( DISTINCT + - 29 ) ) FROM tab0 AS cor0
----
2
42
29

skipif mysql # not compatible
query III rowsort label-6195
SELECT DISTINCT 2 AS col0, 42 AS col2, ( - SUM ( DISTINCT + - 29 ) ) FROM tab0 AS cor0
----
2
42
29

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + col1, col1 + + 96 )
----

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

query I rowsort
SELECT ALL 4 * + col2 AS col1 FROM tab1 AS cor0
----
236
272
384

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

query I rowsort
SELECT + 79 * - col2 * + col1 AS col1 FROM tab0 cor0
----
-16590
-300753
-7821

query I rowsort
SELECT ALL + col1 * 74 * - - col0 FROM tab1 AS cor0
----
31450
316498
52836

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

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

query I rowsort
SELECT DISTINCT - 21 + + ( + col2 ) AS col0 FROM tab1
----
38
47
75

query I rowsort
SELECT - 44 * - col1 + + col0 FROM tab1
----
2159
305
667

onlyif mysql # DIV for integer division: 
query I rowsort label-6205
SELECT DISTINCT - col1 DIV 90 + + 5 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-6205
SELECT DISTINCT - col1 / 90 + + 5 FROM tab0
----
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT + col2 <= + col1 )
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6207
SELECT ALL col0 + - col2 * + - CAST( 42 AS SIGNED ) AS col0 FROM tab2
----
1012
1744
2511

skipif mysql # not compatible
query I rowsort label-6207
SELECT ALL col0 + - col2 * + - CAST ( 42 AS INTEGER ) AS col0 FROM tab2
----
1012
1744
2511

query I rowsort
SELECT + col1 + + + col0 - - 61 AS col1 FROM tab0
----
157
159
169

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT DISTINCT ( - COUNT( * ) ) + - 90 + - - 4 AS col1 FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-6209
SELECT DISTINCT ( - COUNT ( * ) ) + - 90 + - - 4 AS col1 FROM tab1
----
-89

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

query II rowsort
SELECT - - col1 + + + col1, col2 FROM tab0 AS cor0
----
162
47
2
99
42
10

query I rowsort
SELECT ALL + + 58 * - + 14 + 70 - + col0 AS col2 FROM tab1 AS cor0
----
-793
-827
-833

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6213
SELECT * FROM tab2 AS cor0 WHERE col2 IN ( + col2 * + + col0 + + 60 + + CAST( NULL AS SIGNED ) * CAST( NULL AS DECIMAL ) * - 70 * + 57, 33 + - + ( CAST( + 57 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-6213
SELECT * FROM tab2 AS cor0 WHERE col2 IN ( + col2 * + + col0 + + 60 + + CAST ( NULL AS INTEGER ) * CAST ( NULL AS REAL ) * - 70 * + 57, 33 + - + ( CAST ( + 57 AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT ALL + MIN( col2 ) col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6214
SELECT ALL + MIN ( col2 ) col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
NULL

query I rowsort
SELECT DISTINCT - col0 + - 91 AS col1 FROM tab1
----
-142
-176
-182

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6216
SELECT DISTINCT - ( CAST( - 92 AS SIGNED ) ) AS col1, 91 AS col1 FROM tab2
----
92
91

skipif mysql # not compatible
query II rowsort label-6216
SELECT DISTINCT - ( CAST ( - 92 AS INTEGER ) ) AS col1, 91 AS col1 FROM tab2
----
92
91

query I rowsort
SELECT - - 55 * - - 52 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 64ae62900c2ebd2eca089d5b81005b92

query I rowsort
SELECT col2 - - 27 FROM tab1
----
123
86
95

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

query I rowsort
SELECT ALL - - col2 - + col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 40 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT + + 62 + MIN( DISTINCT - 27 ) FROM tab2 cor0
----
35

skipif mysql # not compatible
query I rowsort label-6222
SELECT + + 62 + MIN ( DISTINCT - 27 ) FROM tab2 cor0
----
35

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

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

query I rowsort
SELECT DISTINCT + ( + + col1 ) AS col0 FROM tab1
----
14
47
5

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

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

skipif mysql # not compatible
query I rowsort label-6226
SELECT ALL col2 / + + col2 FROM tab1
----
1
1
1

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = + + ( + + 13 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6228
SELECT DISTINCT + 7 * - col0 * + 28 - + 91 DIV col2 + - col1 AS col2 FROM tab0 cor0
----
-17082
-19013
-3022

skipif mysql # not compatible
query I rowsort label-6228
SELECT DISTINCT + 7 * - col0 * + 28 - + 91 / col2 + - col1 AS col2 FROM tab0 cor0
----
-17082
-19013
-3022

onlyif mysql # DIV for integer division: 
query I rowsort label-6229
SELECT - 12 DIV - - col2 - + + 47 AS col2 FROM tab0 AS cor0
----
-47
-47
-48

skipif mysql # not compatible
query I rowsort label-6229
SELECT - 12 / - - col2 - + + 47 AS col2 FROM tab0 AS cor0
----
-47
-47
-48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT + MAX( - - col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-6231
SELECT + MAX ( - - col1 ) FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT + SUM( ALL + ( 14 ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
126

skipif mysql # not compatible
query I rowsort label-6232
SELECT + SUM ( ALL + ( 14 ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
126

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

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

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

skipif mysql # not compatible
query I rowsort label-6234
SELECT + - ( + CAST ( NULL AS INTEGER ) ) + + 52 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col1 + - col1 + 77 AS col2 FROM tab1 cor0
----
-17
49
67

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, 19 * + 13 FROM tab0
----
15
247
87
247
97
247

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT ALL + MAX( ALL + 40 ) + 10 AS col0 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-6240
SELECT ALL + MAX ( ALL + 40 ) + 10 AS col0 FROM tab1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT SUM( - 49 ) AS col2 FROM tab2
----
-147

skipif mysql # not compatible
query I rowsort label-6241
SELECT SUM ( - 49 ) AS col2 FROM tab2
----
-147

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6243
SELECT + COUNT( + + CAST( - 11 AS SIGNED ) ) FROM tab2 WHERE NULL BETWEEN NULL AND - 22 * 99 + + 24
----
0

skipif mysql # not compatible
query I rowsort label-6243
SELECT + COUNT ( + + CAST ( - 11 AS INTEGER ) ) FROM tab2 WHERE NULL BETWEEN NULL AND - 22 * 99 + + 24
----
0

query I rowsort
SELECT ALL + col0 + - ( col2 ) FROM tab1
----
-45
23
26

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

query I rowsort
SELECT - 61 * - col1 + + 66 FROM tab2 WHERE NULL > + col1 * + ( col0 ) + - col0 + + col2 + - - col2 + - 27 + - col1
----

query II rowsort
SELECT DISTINCT - col2 AS col1, + col0 + - col1 FROM tab0 cor0
----
-10
66
-47
-66
-99
96

query I rowsort
SELECT ( - + 85 ) + - - 82 * + + col0 AS col1 FROM tab1
----
4097
6885
7377

query I rowsort
SELECT DISTINCT - 55 + - 95 + - col2 * 61 FROM tab2
----
-1553
-2590
-3688

query I rowsort
SELECT ALL 64 + col0 FROM tab2
----
110
128
139

query I rowsort
SELECT + col0 * col1 * col0 FROM tab2
----
107916
315392
376875

query I rowsort
SELECT DISTINCT + - col0 * + col1 * - col2 + - col2 AS col0 FROM tab0 AS cor0
----
18260
57058
9504

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6253
SELECT ALL CAST( - 70 AS SIGNED ) - + col0 DIV - ( - col0 ) AS col2 FROM tab2 AS cor0
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-6253
SELECT ALL CAST ( - 70 AS INTEGER ) - + col0 / - ( - col0 ) AS col2 FROM tab2 AS cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT DISTINCT - SUM( - col1 ) * 43 AS col1 FROM tab2 cor0
----
8385

skipif mysql # not compatible
query I rowsort label-6254
SELECT DISTINCT - SUM ( - col1 ) * 43 AS col1 FROM tab2 cor0
----
8385

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 * - - col2 col2 FROM tab1
----
4602
5304
7488

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

query I rowsort
SELECT DISTINCT col2 * + 75 * - col1 FROM tab1
----
-100800
-22125
-239700

query I rowsort
SELECT col1 * + - 14 AS col0 FROM tab2
----
-1078
-714
-938

query II rowsort
SELECT ALL 90 AS col1, col2 - - 17 - + 99 * + 89 FROM tab2 WHERE NOT NULL IS NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-6264
SELECT ALL COUNT ( * ) * - CAST ( NULL AS REAL ) FROM tab2
----
NULL

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 9 ) IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT col1 + 89 FROM tab0
----
110
170
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 col2 FROM tab2 WHERE ( + col2 * 66 + col1 ) BETWEEN col2 AND + col1
----

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

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

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT NULL = 61
----

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

query I rowsort
SELECT + col0 + + 55 AS col2 FROM tab1
----
106
140
146

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

query I rowsort
SELECT ALL 60 * - col0 AS col2 FROM tab1
----
-3060
-5100
-5460

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT DISTINCT COUNT( * ) + 59 AS col2 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-6276
SELECT DISTINCT COUNT ( * ) + 59 AS col2 FROM tab1
----
62

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 11 * col0 ) <= ( NULL )
----

query I rowsort
SELECT + 16 AS col2 FROM tab2 WHERE NULL = 29
----

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

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

query I rowsort
SELECT + ( 99 ) * + col1 FROM tab0
----
2079
8019
99

query I rowsort
SELECT - 74 * - col2 AS col0 FROM tab1
----
4366
5032
7104

query I rowsort
SELECT DISTINCT + 56 + col0 FROM tab1
----
107
141
147

query I rowsort
SELECT - 97 * col0 FROM tab1
----
-4947
-8245
-8827

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

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

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

query I rowsort
SELECT DISTINCT ( 35 ) AS col2 FROM tab2 AS cor0 WHERE col2 * col2 + 45 > - ( + col2 )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6288
SELECT DISTINCT CAST( + 67 AS SIGNED ) * - col0 + 93 FROM tab0 AS cor0
----
-5736
-6406
-912

skipif mysql # not compatible
query I rowsort label-6288
SELECT DISTINCT CAST ( + 67 AS INTEGER ) * - col0 + 93 FROM tab0 AS cor0
----
-5736
-6406
-912

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 94 col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
153
162
190

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

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

query I rowsort
SELECT - 2 - col0 AS col1 FROM tab0
----
-17
-89
-99

query I rowsort
SELECT DISTINCT - col2 * + col2 + + col1 * + col1 FROM tab0
----
-9800
341
4352

query I rowsort
SELECT ALL + 81 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

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

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

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

query I rowsort
SELECT - col2 * 98 AS col1 FROM tab2 AS cor0
----
-2254
-3920
-5684

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

skipif mysql # not compatible
query I rowsort label-6300
SELECT 25 * + col0 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + col1 BETWEEN col1 * 30 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL IN ( - 65 )
----

query I rowsort
SELECT - 40 * 82 AS col0 FROM tab2 AS cor0
----
-3280
-3280
-3280

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

query I rowsort
SELECT DISTINCT + - col2 * + 25 AS col2 FROM tab1 cor0
----
-1475
-1700
-2400

query I rowsort
SELECT DISTINCT + col1 * 99 FROM tab1 AS cor0
----
1386
4653
495

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 13 * + 10 IN ( col2 + - col0 / col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT DISTINCT ( COUNT( * ) ) AS col2 FROM tab0 WHERE NULL > - col0
----
0

skipif mysql # not compatible
query I rowsort label-6307
SELECT DISTINCT ( COUNT ( * ) ) AS col2 FROM tab0 WHERE NULL > - col0
----
0

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 / - col1 - 45 * col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 61 * + 19 col0 FROM tab2
----
1159

query I rowsort
SELECT col0 * + - 22 FROM tab2
----
-1012
-1408
-1650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6312
SELECT + 93 * col0 AS col1 FROM tab0 WHERE NOT col2 * CAST( NULL AS SIGNED ) + + 67 / col1 NOT IN ( + CAST( col1 AS SIGNED ) + - 83 )
----

skipif mysql # not compatible
query I rowsort label-6312
SELECT + 93 * col0 AS col1 FROM tab0 WHERE NOT col2 * CAST ( NULL AS INTEGER ) + + 67 / col1 NOT IN ( + CAST ( col1 AS INTEGER ) + - 83 )
----

query I rowsort
SELECT ( + col1 ) FROM tab2 WHERE NOT NULL IS NULL OR NOT ( col1 ) IS NOT NULL
----

query I rowsort
SELECT - col0 * + - 12 FROM tab1 AS cor0
----
1020
1092
612

query I rowsort
SELECT DISTINCT col2 * + 33 FROM tab1 AS cor0
----
1947
2244
3168

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT ( col0 + 68 ) BETWEEN col0 AND 78
----
51
67
77

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 cor0 WHERE NOT ( col2 * 29 ) NOT IN ( 11 * + ( 32 ) )
----

query I rowsort
SELECT ALL + 47 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT DISTINCT MAX( + 77 ) * + MIN( - 35 + 26 ) - 3 AS col2 FROM tab1, tab1 AS cor0
----
-696

skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT MAX ( + 77 ) * + MIN ( - 35 + 26 ) - 3 AS col2 FROM tab1, tab1 AS cor0
----
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT SUM( - ( + - 67 ) ) + ( 57 ) AS col2 FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-6320
SELECT SUM ( - ( + - 67 ) ) + ( 57 ) AS col2 FROM tab0
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT DISTINCT COUNT( * ) * - 14 + + MAX( - ( col1 ) ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-6321
SELECT DISTINCT COUNT ( * ) * - 14 + + MAX ( - ( col1 ) ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT ( + col0 ) + - - col0 - - 17 FROM tab0 AS cor0
----
191
211
47

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 45 AND 27 * col2
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - ( + col2 ) + 88 ) BETWEEN ( NULL ) AND col1 / - 48
----

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND 18
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6329
SELECT DISTINCT + + ( - 64 ) DIV - col2 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-6329
SELECT DISTINCT + + ( - 64 ) / - col2 FROM tab0 AS cor0
----
0
1
6

query I rowsort
SELECT - ( 57 ) * - ( 58 ) + + col2 AS col2 FROM tab1 AS cor0
----
3365
3374
3402

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT DISTINCT ( - + SUM( DISTINCT + col0 ) ) * - 70 * + ( 24 ) FROM tab2
----
310800

skipif mysql # not compatible
query I rowsort label-6334
SELECT DISTINCT ( - + SUM ( DISTINCT + col0 ) ) * - 70 * + ( 24 ) FROM tab2
----
310800

query I rowsort
SELECT + 89 * - col0 FROM tab2 WHERE - - col0 IS NOT NULL
----
-4094
-5696
-6675

query I rowsort
SELECT DISTINCT + col0 * + 90 + + col1 FROM tab2
----
4191
5837
6817

query I rowsort
SELECT - 15 * - + col2 * + - col0 * + col2 - - col2 AS col2 FROM tab2
----
-1535960
-364987
-3784442

query I rowsort
SELECT + 63 - + ( - col2 ) AS col1 FROM tab0 AS cor0
----
110
162
73

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6340
SELECT ALL + 85 DIV + col1 + - col0 AS col2 FROM tab2 AS cor0
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-6340
SELECT ALL + 85 / + col1 + - col0 AS col2 FROM tab2 AS cor0
----
-45
-63
-74

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE 70 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6343
SELECT CAST( - 92 AS SIGNED ) FROM tab0
----
-92
-92
-92

skipif mysql # not compatible
query I rowsort label-6343
SELECT CAST ( - 92 AS INTEGER ) FROM tab0
----
-92
-92
-92

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT NULL < + col1
----

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

skipif mysql # not compatible
query I rowsort label-6345
SELECT + COUNT ( * ) * + 54 AS col2 FROM tab1
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT + SUM( ALL + - col0 ) * - COUNT( * ) + 49 FROM tab0 cor0
----
646

skipif mysql # not compatible
query I rowsort label-6346
SELECT + SUM ( ALL + - col0 ) * - COUNT ( * ) + 49 FROM tab0 cor0
----
646

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6350
SELECT DISTINCT 50 + - - 27 * - CAST( NULL AS SIGNED ) - - 0 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6350
SELECT DISTINCT 50 + - - 27 * - CAST ( NULL AS INTEGER ) - - 0 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

query II rowsort
SELECT DISTINCT + 42 AS col1, - 48 FROM tab1 AS cor0
----
42
-48

query I rowsort
SELECT ( - 30 ) + col0 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( - 39 ) NOT BETWEEN ( - ( - col0 ) ) AND - col1 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT - SUM( 50 ) col0 FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6353
SELECT - SUM ( 50 ) col0 FROM tab0 AS cor0
----
-150

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

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

skipif mysql # not compatible
query II rowsort label-6355
SELECT COUNT ( * ) AS col1, - 38 AS col0 FROM tab2
----
3
-38

query III rowsort
SELECT * FROM tab0 WHERE NOT - 35 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( 28 * + + 70 + + col0 - - 40 * col1 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query II rowsort
SELECT DISTINCT col0 AS col1, + col2 + - 59 AS col0 FROM tab1
----
51
37
85
0
91
9

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT + 51 * COUNT( * ) AS col0 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-6363
SELECT + 51 * COUNT ( * ) AS col0 FROM tab2
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT ALL COUNT( * ) + 13 FROM tab1, tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-6364
SELECT ALL COUNT ( * ) + 13 FROM tab1, tab0 AS cor0
----
22

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

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

query I rowsort
SELECT + 49 + + 26 AS col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT ALL + + 73 * + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
657

skipif mysql # not compatible
query I rowsort label-6367
SELECT ALL + + 73 * + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
657

query I rowsort
SELECT ALL + - ( - col2 ) + + col1 AS col2 FROM tab1 AS cor0
----
110
115
64

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

query I rowsort
SELECT DISTINCT - 87 * + col2 + col1 FROM tab2 cor0
----
-1950
-3403
-4979

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

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

query I rowsort
SELECT DISTINCT + 92 + - 38 + - 14 * col2 AS col1 FROM tab0 AS cor0
----
-1332
-604
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-6373
SELECT + 4 + + col1 DIV + + 71 + + col2 - col0 DIV + col1 AS col0 FROM tab0 cor0
----
10
52
6

skipif mysql # not compatible
query I rowsort label-6373
SELECT + 4 + + col1 / + + 71 + + col2 - col0 / + col1 AS col0 FROM tab0 cor0
----
10
52
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6374
SELECT DISTINCT col1 DIV + + ( + 73 ) FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6374
SELECT DISTINCT col1 / + + ( + 73 ) FROM tab2 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6375
SELECT + col1 * + - col2 + - col2 + - CAST( ( col0 ) AS SIGNED ) - + - col2 * + col0 col1 FROM tab1 AS cor0
----
2833
3405
4576

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6375
SELECT + col1 * + - col2 + - col2 + - CAST ( ( col0 ) AS INTEGER ) - + - col2 * + col0 col1 FROM tab1 AS cor0
----
2833
3405
4576

query I rowsort
SELECT 17 + + 39 + col0 - col0 AS col1 FROM tab2 AS cor0
----
56
56
56

query I rowsort
SELECT + ( - col1 ) * col1 FROM tab2 AS cor0 WHERE 65 + - + 4 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col1 + - + 10 + - col0 col2 FROM tab0 cor0
----
-105
-55
137

query I rowsort
SELECT col0 * col1 + ( - + 73 ) FROM tab0
----
1142
1754
24

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - + ( ( + 21 ) ) ) BETWEEN - 64 AND ( 52 )
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6382
SELECT ALL COUNT( * ) col1, COUNT( * ) + - 27 * COUNT( * ) * 71 FROM tab1
----
3
-5748

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

query I rowsort
SELECT 34 * - - 51 * + col0 AS col0 FROM tab1 AS cor0
----
147390
157794
88434

query II rowsort
SELECT + 81, col1 FROM tab0 AS cor0 WHERE NULL < + 77
----

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

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

query I rowsort
SELECT + col2 - - col1 AS col0 FROM tab0 cor0
----
100
128
31

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6389
SELECT ALL - col1 DIV col1 AS col1, - 87 * + 28 FROM tab1
----
-1
-2436
-1
-2436
-1
-2436

skipif mysql # not compatible
query II rowsort label-6389
SELECT ALL - col1 / col1 AS col1, - 87 * + 28 FROM tab1
----
-1
-2436
-1
-2436
-1
-2436

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

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

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

query I rowsort
SELECT DISTINCT col1 FROM tab0 cor0 WHERE NOT NULL <> col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6393
SELECT MAX( DISTINCT + col1 ) AS col2, 8 AS col2 FROM tab0 AS cor0
----
81
8

skipif mysql # not compatible
query II rowsort label-6393
SELECT MAX ( DISTINCT + col1 ) AS col2, 8 AS col2 FROM tab0 AS cor0
----
81
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT - SUM( ALL ( - col0 ) ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-6395
SELECT - SUM ( ALL ( - col0 ) ) FROM tab2 AS cor0
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-6396
SELECT - - col1 DIV + + ( + 55 ) FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6396
SELECT - - col1 / + + ( + 55 ) FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE NOT + + col0 * col0 = 14
----
-1
-21
-81

query I rowsort
SELECT + 33 * + - col1 AS col2 FROM tab2
----
-1683
-2211
-2541

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

query II rowsort
SELECT ALL - col1 + - + col0 * + - col1 AS col0, - 63 AS col0 FROM tab0
----
1134
-63
1806
-63
96
-63

query I rowsort
SELECT DISTINCT - 46 * col2 FROM tab2
----
-1058
-1840
-2668

query I rowsort
SELECT DISTINCT col2 + col1 + 74 AS col0 FROM tab2
----
148
191
199

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT + MAX( - col0 ) * COUNT( * ) + - 7 AS col1 FROM tab1 AS cor0
----
-160

skipif mysql # not compatible
query I rowsort label-6404
SELECT + MAX ( - col0 ) * COUNT ( * ) + - 7 AS col1 FROM tab1 AS cor0
----
-160

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6407
SELECT * FROM tab0 AS cor0 WHERE ( + 53 BETWEEN + CAST( NULL AS DECIMAL ) AND NULL )
----

skipif mysql # not compatible
query III rowsort label-6407
SELECT * FROM tab0 AS cor0 WHERE ( + 53 BETWEEN + CAST ( NULL AS REAL ) AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6408
SELECT + col1 * - 14 + - - 27 DIV + - ( - col0 ) FROM tab2 AS cor0
----
-1078
-714
-938

skipif mysql # not compatible
query I rowsort label-6408
SELECT + col1 * - 14 + - - 27 / + - ( - col0 ) FROM tab2 AS cor0
----
-1078
-714
-938

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 * + 8 + col1 col2 FROM tab2
----
419
435
445

query I rowsort
SELECT ALL col2 + + col2 + + col0 * col1 FROM tab1
----
4413
543
906

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT ALL - COUNT( * ) + - 39 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL - COUNT ( * ) + - 39 FROM tab1
----
-42

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

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

query I rowsort
SELECT + col1 + - 42 - - 54 * - - 24 + col1 AS col0 FROM tab0
----
1256
1296
1416

query I rowsort
SELECT 66 + + - 65 AS col1 FROM tab1
----
1
1
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 NOT IN ( + col0, - 32, col0 + 62 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 71 + - - 51 AS col1 FROM tab2 cor0
----
122
122
122

onlyif mysql # DIV for integer division: 
query II rowsort label-6417
SELECT col1 AS col1, + 66 DIV - - col2 FROM tab1 AS cor0
----
14
0
47
0
5
1

skipif mysql # not compatible
query II rowsort label-6417
SELECT col1 AS col1, + 66 / - - col2 FROM tab1 AS cor0
----
14
0
47
0
5
1

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 71 * + - col1 - - col2 AS col1 FROM tab0 AS cor0
----
1501
170
5798

query I rowsort
SELECT ALL - - 29 * - 65 - 51 FROM tab2 AS cor0
----
-1936
-1936
-1936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * - 5 * + - col2 col2, col0 AS col1 FROM tab0
----
1050
87
19035
15
495
97

query I rowsort
SELECT + col1 - + ( + + 87 ) AS col2 FROM tab1
----
-40
-73
-82

query I rowsort
SELECT + col1 - + col1 + 37 FROM tab0
----
37
37
37

query I rowsort
SELECT ALL + 51 * + col2 AS col1 FROM tab0
----
2397
5049
510

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

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

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

query II rowsort
SELECT col1 * - - 43, 99 + col1 FROM tab2 WHERE NOT + 20 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - + 52 * - col2 + + col1 + - - col2 AS col0 FROM tab0 AS cor0
----
2572
5248
551

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

query I rowsort
SELECT col1 * - col0 FROM tab2 WHERE NOT + 75 * + + 64 >= + col1
----

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

query I rowsort
SELECT + 39 * + 87 AS col1 FROM tab2
----
3393
3393
3393

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL = col2 + - - 90 * col2
----
0

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL = col2 + - - 90 * col2
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6439
SELECT DISTINCT + col0 DIV ( + col0 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6439
SELECT DISTINCT + col0 / ( + col0 ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6440
SELECT ALL + CAST( - 31 AS SIGNED ) FROM tab0 AS cor0
----
-31
-31
-31

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6442
SELECT DISTINCT + COUNT( * ) * - + COUNT( * ) AS col0, - COUNT( * ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-9
-3

skipif mysql # not compatible
query II rowsort label-6442
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) AS col0, - COUNT ( * ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-9
-3

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

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

query I rowsort
SELECT ALL col0 * + col2 + + + 58 + + ( - col0 ) AS col0 FROM tab0 AS cor0
----
748
841
9564

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT + 6 + + MAX( + + col0 ) + - + 22 AS col2 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6446
SELECT + 6 + + MAX ( + + col0 ) + - + 22 AS col2 FROM tab1 AS cor0
----
75

query I rowsort
SELECT DISTINCT - - 96 * + col0 + col2 * + ( - + col1 ) * - 44 FROM tab2 AS cor0
----
141664
178184
56028

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

query I rowsort
SELECT - 56 + + + 28 AS col2 FROM tab0 AS cor0
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT ALL COUNT( * ) - + 21 * 10 col2 FROM tab0 AS cor0
----
-207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6450
SELECT ALL COUNT ( * ) - + 21 * 10 col2 FROM tab0 AS cor0
----
-207

query I rowsort
SELECT + col2 + col2 * 52 * - col0 * + col1 - + col0 + + col1 FROM tab1 AS cor0
----
-1303921
-15123448
-3564229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + 96 col0 FROM tab0 AS cor0
----
106
143
195

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT ALL + 83 + - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL + 83 + - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT - COUNT( * ) + SUM( - 14 ) AS col1 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-6454
SELECT - COUNT ( * ) + SUM ( - 14 ) AS col1 FROM tab0 AS cor0
----
-45

query I rowsort
SELECT DISTINCT + + col2 - - 59 FROM tab1 AS cor0
----
118
127
155

onlyif mysql # DIV for integer division: 
query I rowsort label-6456
SELECT DISTINCT + 12 * col0 DIV + 29 FROM tab2
----
19
26
31

skipif mysql # not compatible
query I rowsort label-6456
SELECT DISTINCT + 12 * col0 / + 29 FROM tab2
----
19
26
31

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

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

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

skipif mysql # not compatible
query I rowsort label-6459
SELECT DISTINCT + 85 * SUM ( DISTINCT + col0 ) * COUNT ( DISTINCT + col2 ) AS col0 FROM tab1
----
57885

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 54 BETWEEN - + col2 AND - col1 * - 85
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - 35 IN ( col1, col0, col1 * - 92 + + - 14 / - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 / 78 AS col0 FROM tab1 WHERE NOT - col1 IN ( - - col2, 62, - col1 )
----

query I rowsort
SELECT DISTINCT col0 * - - 69 AS col1 FROM tab0
----
1035
6003
6693

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

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

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

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

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

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

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

query I rowsort
SELECT + 28 * col0 + + + 5 * + col0 FROM tab1 AS cor0
----
1683
2805
3003

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

query I rowsort
SELECT + + 75 * + + col2 + + 57 AS col1 FROM tab0 AS cor0
----
3582
7482
807

query I rowsort
SELECT + 56 + + - ( + + 94 ) AS col0 FROM tab0 AS cor0
----
-38
-38
-38

query II rowsort
SELECT + col1 + - col1 AS col1, + 44 AS col0 FROM tab2 AS cor0
----
0
44
0
44
0
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT DISTINCT + - COUNT( * ) * - 87 AS col1 FROM tab0 AS cor0 WHERE NOT col0 IN ( + 14, col1, + col1 / ( 32 ) + + col1, + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6475
SELECT DISTINCT + - COUNT ( * ) * - 87 AS col1 FROM tab0 AS cor0 WHERE NOT col0 IN ( + 14, col1, + col1 / ( 32 ) + + col1, + col0 )
----
0

query I rowsort
SELECT ALL + col2 * - col1 + - 49 FROM tab2 cor0
----
-1222
-3129
-3935

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6478
SELECT DISTINCT + + 50 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6478
SELECT DISTINCT + + 50 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 32 ) * col0 col0 FROM tab0
----
2784
3104
480

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

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

query I rowsort
SELECT 71 FROM tab0 WHERE 30 IS NOT NULL
----
71
71
71

query I rowsort
SELECT DISTINCT - col1 + + 71 AS col1 FROM tab2
----
-6
20
4

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

query I rowsort
SELECT DISTINCT - col1 + - col0 + col0 + - - 94 FROM tab1 AS cor0
----
47
80
89

query II rowsort
SELECT + col1 AS col1, - ( + col1 ) + - 21 FROM tab2 AS cor0
----
51
-72
67
-88
77
-98

query I rowsort
SELECT ALL - col1 * + ( - + col0 ) + - col0 + - col1 + - col1 AS col2 FROM tab0 AS cor0
----
-2
1038
1698

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 < + 76
----

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

query I rowsort
SELECT - 31 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT ALL + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6492
SELECT ALL + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT ALL MAX( ( - col2 ) ) * - - 45 - - 5 + COUNT( * ) FROM tab1 AS cor0
----
-2647

skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL MAX ( ( - col2 ) ) * - - 45 - - 5 + COUNT ( * ) FROM tab1 AS cor0
----
-2647

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

query I rowsort
SELECT ALL col2 * - col0 * - col0 + + - 49 AS col2 FROM tab1 AS cor0
----
249647
426226
563059

query I rowsort
SELECT ALL + 36 + + col2 FROM tab1 cor0
----
104
132
95

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

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

query I rowsort
SELECT DISTINCT - 97 - - col1 + + - 55 FROM tab2 cor0
----
-101
-75
-85

onlyif mysql # DIV for integer division: 
query II rowsort label-6499
SELECT - col0 DIV + - col1 - + col2 + col0, col2 AS col0 FROM tab2 AS cor0
----
18
58
23
23
24
40

skipif mysql # not compatible
query II rowsort label-6499
SELECT - col0 / + - col1 - + col2 + col0, col2 AS col0 FROM tab2 AS cor0
----
18
58
23
23
24
40

query I rowsort
SELECT DISTINCT - col1 * - 39 FROM tab1 AS cor0
----
1833
195
546

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

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

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

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

query I rowsort
SELECT 86 * + 3 FROM tab1
----
258
258
258

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

skipif mysql # not compatible
query I rowsort label-6505
SELECT COUNT ( * ) * + 25 FROM tab2
----
75

query I rowsort
SELECT - ( - 87 ) AS col1 FROM tab0 cor0
----
87
87
87

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

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

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

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

query II rowsort
SELECT DISTINCT - - col2 * + - col0 * - 70, - 80 * - col0 AS col0 FROM tab2 AS cor0
----
179200
5120
304500
6000
74060
3680

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

skipif mysql # not compatible
query I rowsort label-6510
SELECT MAX ( - ( + - col1 ) ) FROM tab2
----
77

query I rowsort
SELECT ALL - col0 * - + 19 * + + col2 FROM tab2
----
20102
48640
82650

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT ( ( ( + + 68 ) ) <= NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6513
SELECT - 51 / + col2 - + ( - col1 ) + + ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6513
SELECT - 51 / + col2 - + ( - col1 ) + + ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT ALL COUNT( * ) * 52 AS col0 FROM tab2, tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL COUNT ( * ) * 52 AS col0 FROM tab2, tab0 AS cor0
----
468

query II rowsort
SELECT - col0, + col1 * - col2 AS col0 FROM tab2
----
-46
-1173
-64
-3080
-75
-3886

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

skipif mysql # not compatible
query I rowsort label-6516
SELECT DISTINCT CAST ( + 55 AS INTEGER ) FROM tab0 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT ALL - 42 * - COUNT( * ) FROM tab2 cor0
----
126

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL - 42 * - COUNT ( * ) FROM tab2 cor0
----
126

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6518
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN CAST( + 29 AS DECIMAL ) AND + - col2
----

skipif mysql # not compatible
query III rowsort label-6518
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN CAST ( + 29 AS REAL ) AND + - col2
----

query I rowsort
SELECT DISTINCT 5 * + + col1 FROM tab2 AS cor0
----
255
335
385

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

query II rowsort
SELECT + 85 + - col2, 70 AS col2 FROM tab1 cor0
----
-11
70
17
70
26
70

query I rowsort
SELECT ALL + col0 + - 74 * - - 33 FROM tab2
----
-2367
-2378
-2396

query I rowsort
SELECT col0 + ( + 89 ) FROM tab0
----
104
176
186

query I rowsort
SELECT + 86 * - col1 + - + col0 FROM tab2
----
-4432
-5837
-6686

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT DISTINCT + 23 + - COUNT( * ) AS col1 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-6525
SELECT DISTINCT + 23 + - COUNT ( * ) AS col1 FROM tab1
----
20

query I rowsort
SELECT ALL - 40 + - 76 AS col0 FROM tab2
----
-116
-116
-116

query II rowsort
SELECT DISTINCT - col0 + + - col0 * col1, col2 AS col1 FROM tab2 AS cor0 WHERE NULL <> - 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT DISTINCT - - ( - COUNT( * ) ) + - 38 FROM tab1 cor0
----
-41

skipif mysql # not compatible
query I rowsort label-6528
SELECT DISTINCT - - ( - COUNT ( * ) ) + - 38 FROM tab1 cor0
----
-41

query I rowsort
SELECT ALL - 38 * ( - - 19 ) AS col1 FROM tab0 AS cor0
----
-722
-722
-722

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 77 col1 FROM tab2 AS cor0
----
-3927
-5159
-5929

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

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

query II rowsort
SELECT ALL - col0, col1 * + + col0 AS col2 FROM tab1 WHERE NULL IS NULL OR + 35 < + - col0
----
-51
714
-85
425
-91
4277

query I rowsort
SELECT + col1 * + 70 * + col1 * col1 AS col0 FROM tab2
----
21053410
31957310
9285570

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

query I rowsort
SELECT DISTINCT col1 + - col0 + + col2 AS col1 FROM tab0 AS cor0
----
-56
113
3

query I rowsort
SELECT DISTINCT 16 - - - col1 AS col0 FROM tab2 AS cor0
----
-35
-51
-61

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6538
SELECT - CAST ( - 83 AS INTEGER ) col0 FROM tab1 AS cor0
----
83
83
83

query II rowsort
SELECT col0, + col1 AS col0 FROM tab1 cor0
----
51
14
85
5
91
47

query II rowsort
SELECT ALL + + 6 AS col2, - col1 * - + col1 AS col2 FROM tab1 AS cor0
----
6
196
6
2209
6
25

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

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

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

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

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

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

query II rowsort
SELECT - col1 * - ( col2 ) + - col1 AS col0, - 79 AS col2 FROM tab1 AS cor0
----
1330
-79
290
-79
3149
-79

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

query I rowsort
SELECT ALL + col0 * - 34 AS col1 FROM tab1 AS cor0
----
-1734
-2890
-3094

query I rowsort
SELECT - + col1 FROM tab0 AS cor0 WHERE NULL <= 44 / - + col0
----

query I rowsort
SELECT 78 + + 84 AS col0 FROM tab1 AS cor0
----
162
162
162

query I rowsort
SELECT DISTINCT - 85 * + - col2 * + 72 + + col1 AS col0 FROM tab0 AS cor0
----
287721
605881
61221

query I rowsort
SELECT - col2 + + 51 + - col0 FROM tab1 cor0
----
-108
-93
-96

query I rowsort
SELECT DISTINCT + - col2 * - 36 - - col0 + - + 39 FROM tab0 AS cor0
----
1668
3622
408

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

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

query I rowsort
SELECT DISTINCT - 86 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-86

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

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

query III rowsort
SELECT * FROM tab1 WHERE + - col0 < - 79
----
85
5
59
91
47
68

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

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

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

query I rowsort
SELECT + ( col0 ) * - 60 - col1 AS col1 FROM tab0
----
-5241
-5821
-981

query II rowsort
SELECT DISTINCT col2 + + col0 - + - 22 * + col1 * - + ( col2 ) AS col2, + 79 FROM tab0 AS cor0
----
-1982
79
-4523
79
-83692
79

query I rowsort
SELECT ALL col1 * - - col1 - + - col1 - - 75 + - col0 FROM tab2 AS cor0
----
2681
4556
6017

onlyif mysql # DIV for integer division: 
query I rowsort label-6564
SELECT - - 95 + - + col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
92
94
95

skipif mysql # not compatible
query I rowsort label-6564
SELECT - - 95 + - + col2 / + col0 AS col1 FROM tab0 AS cor0
----
92
94
95

query I rowsort
SELECT - 18 + + 2 AS col0 FROM tab0 AS cor0
----
-16
-16
-16

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6567
SELECT ALL - CAST( - SUM( + - ( 66 ) ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL - CAST ( - SUM ( + - ( 66 ) ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT COUNT( * ) * + 63 FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-6568
SELECT COUNT ( * ) * + 63 FROM tab1
----
189

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6573
SELECT + + 55 AS col0, 67 col0 FROM tab1 WHERE NOT - CAST( - col0 AS SIGNED ) - - CAST( + + col0 AS SIGNED ) * - col0 = - 52 * + 58 + + 66
----
55
67
55
67
55
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6573
SELECT + + 55 AS col0, 67 col0 FROM tab1 WHERE NOT - CAST ( - col0 AS INTEGER ) - - CAST ( + + col0 AS INTEGER ) * - col0 = - 52 * + 58 + + 66
----
55
67
55
67
55
67

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6580
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 85 - col1 + - col0 - - - col0 / + col1 - + col2 * col0 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6580
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 85 - col1 + - col0 - - - col0 / + col1 - + col2 * col0 AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6581
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col1, col0 + + col1 AS col1 FROM tab1 AS cor0
----
NULL
138
NULL
65
NULL
90

skipif mysql # not compatible
query II rowsort label-6581
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col1, col0 + + col1 AS col1 FROM tab1 AS cor0
----
NULL
138
NULL
65
NULL
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT DISTINCT + SUM( - - 8 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
72

skipif mysql # not compatible
query I rowsort label-6582
SELECT DISTINCT + SUM ( - - 8 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6583
SELECT DISTINCT * FROM tab0 WHERE NOT + 9 * - + CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-6583
SELECT DISTINCT * FROM tab0 WHERE NOT + 9 * - + CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6584
SELECT DISTINCT 81 + + + col1 DIV + 59 FROM tab0 AS cor0
----
81
82

skipif mysql # not compatible
query I rowsort label-6584
SELECT DISTINCT 81 + + + col1 / + 59 FROM tab0 AS cor0
----
81
82

query I rowsort
SELECT ALL + + 61 + - col2 FROM tab2 AS cor0
----
21
3
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6586
SELECT DISTINCT - col1 + CAST( 30 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-17
16
25

skipif mysql # not compatible
query I rowsort label-6586
SELECT DISTINCT - col1 + CAST ( 30 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-17
16
25

query I rowsort
SELECT + col2 + 61 FROM tab0 cor0
----
108
160
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 + - - col1 col2, ( - 68 ) FROM tab1 AS cor0
----
0
-68
0
-68
0
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-6589
SELECT 74 DIV - 11 + col1 AS col1 FROM tab2 AS cor0
----
45
61
71

skipif mysql # not compatible
query I rowsort label-6589
SELECT 74 / - 11 + col1 AS col1 FROM tab2 AS cor0
----
45
61
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6590
SELECT DISTINCT 6 col2, - CAST( NULL AS SIGNED ) / 82 * - 85 AS col1 FROM tab0
----
6
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6590
SELECT DISTINCT 6 col2, - CAST ( NULL AS INTEGER ) / 82 * - 85 AS col1 FROM tab0
----
6
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6591
SELECT 93 DIV - col1 + + ( + 59 ) FROM tab2
----
58
58
58

skipif mysql # not compatible
query I rowsort label-6591
SELECT 93 / - col1 + + ( + 59 ) FROM tab2
----
58
58
58

query I rowsort
SELECT + col1 + - + col1 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE ( NOT NULL >= NULL )
----

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

skipif mysql # not compatible
query I rowsort label-6594
SELECT - + MIN ( + 47 ) AS col1 FROM tab0 AS cor0
----
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6595
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 42 * CAST( + col2 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6595
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 42 * CAST ( + col2 AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT ALL - 34 - SUM( ALL + col0 ) FROM tab2 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-6596
SELECT ALL - 34 - SUM ( ALL + col0 ) FROM tab2 AS cor0
----
-219

query I rowsort
SELECT - + 47 * + + col0 - - - 28 AS col2 FROM tab0 AS cor0
----
-4117
-4587
-733

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

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

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

skipif mysql # not compatible
query I rowsort label-6599
SELECT + - COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6600
SELECT col0 DIV col2 + - 82 AS col2 FROM tab2 AS cor0
----
-80
-81
-81

skipif mysql # not compatible
query I rowsort label-6600
SELECT col0 / col2 + - 82 AS col2 FROM tab2 AS cor0
----
-80
-81
-81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT - - MAX( ALL 87 ) * 78 AS col1 FROM tab1 AS cor0
----
6786

skipif mysql # not compatible
query I rowsort label-6602
SELECT - - MAX ( ALL 87 ) * 78 AS col1 FROM tab1 AS cor0
----
6786

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6603
SELECT + CAST( + COUNT( * ) AS SIGNED ) * MAX( ALL - 98 ) AS col2, - 8 col0 FROM tab0 cor0
----
-294
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6603
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) * MAX ( ALL - 98 ) AS col2, - 8 col0 FROM tab0 cor0
----
-294
-8

query II rowsort
SELECT + 27 AS col2, + 76 FROM tab0 AS cor0
----
27
76
27
76
27
76

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 * - col1 col2 FROM tab0
----
-2016
-7776
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6607
SELECT ALL + ( MIN( col0 ) ) DIV + COUNT( * ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-6607
SELECT ALL + ( MIN ( col0 ) ) / + COUNT ( * ) FROM tab1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT + 36 * + 47 * SUM( ALL ( - 84 ) ) FROM tab2
----
-426384

skipif mysql # not compatible
query I rowsort label-6608
SELECT + 36 * + 47 * SUM ( ALL ( - 84 ) ) FROM tab2
----
-426384

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6609
SELECT - col1 * - col2, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
1173
NULL
3080
NULL
3886
NULL

skipif mysql # not compatible
query II rowsort label-6609
SELECT - col1 * - col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
1173
NULL
3080
NULL
3886
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6610
SELECT ALL + 45 + - - CAST( - ( - + ( + col1 ) ) AS SIGNED ) col2 FROM tab1
----
50
59
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6610
SELECT ALL + 45 + - - CAST ( - ( - + ( + col1 ) ) AS INTEGER ) col2 FROM tab1
----
50
59
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6611
SELECT DISTINCT - 12 DIV COUNT( + - col1 ) FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-6611
SELECT DISTINCT - 12 / COUNT ( + - col1 ) FROM tab1
----
-4

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

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

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

query I rowsort
SELECT DISTINCT - col0 * 19 AS col2 FROM tab2
----
-1216
-1425
-874

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6618
SELECT - + ( + col2 ) DIV + - 56 + - - col1 * + 35 FROM tab2 cor0
----
1785
2346
2695

skipif mysql # not compatible
query I rowsort label-6618
SELECT - + ( + col2 ) / + - 56 + - - col1 * + 35 FROM tab2 cor0
----
1785
2346
2695

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6621
SELECT ALL + 57, + COUNT( ALL col2 ) AS col1 FROM tab1 AS cor0
----
57
3

skipif mysql # not compatible
query II rowsort label-6621
SELECT ALL + 57, + COUNT ( ALL col2 ) AS col1 FROM tab1 AS cor0
----
57
3

query II rowsort
SELECT DISTINCT + col0 * + - col2, col2 AS col2 FROM tab2
----
-1058
23
-2560
40
-4350
58

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

query I rowsort
SELECT col0 * 53 - - 52 AS col1 FROM tab0
----
4663
5193
847

query I rowsort
SELECT ( - 7 ) - - 45 FROM tab1
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT COUNT( * ) - + 42 FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-6626
SELECT COUNT ( * ) - + 42 FROM tab2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6627
SELECT DISTINCT - - CAST( + + 34 AS SIGNED ) AS col2 FROM tab0 cor0
----
34

skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT - - CAST ( + + 34 AS INTEGER ) AS col2 FROM tab0 cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT ALL COUNT( * ) * - - COUNT( DISTINCT - col1 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-6628
SELECT ALL COUNT ( * ) * - - COUNT ( DISTINCT - col1 ) FROM tab0
----
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-6630
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2
----
9

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

query II rowsort
SELECT DISTINCT + col0 AS col2, + 87 + + - col0 + + + 89 FROM tab0
----
15
161
87
89
97
79

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( ( 55 ) ) * col2 * - - col1 col2 FROM tab0 AS cor0
----
11550
209385
5445

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

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

query I rowsort
SELECT DISTINCT - col2 * - 44 AS col0 FROM tab0
----
2068
4356
440

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

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

query I rowsort
SELECT ALL col1 * + + col0 + col2 FROM tab0
----
1262
1837
196

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT DISTINCT + 84 * - + COUNT( * ) FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-6640
SELECT DISTINCT + 84 * - + COUNT ( * ) FROM tab1
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT ALL + COUNT( * ) + - COUNT( * ) FROM tab2 WHERE NOT - 54 + + col1 NOT BETWEEN - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6641
SELECT ALL + COUNT ( * ) + - COUNT ( * ) FROM tab2 WHERE NOT - 54 + + col1 NOT BETWEEN - col0 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6642
SELECT DISTINCT CAST( - col2 AS SIGNED ) + + col2 + + - col2 + - 13 DIV - ( - - col1 ) AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT CAST ( - col2 AS INTEGER ) + + col2 + + - col2 + - 13 / - ( - - col1 ) AS col2 FROM tab2
----
-23
-40
-58

query II rowsort
SELECT ALL + 89, + col0 + ( - 91 ) * - - col2 * + col1 AS col2 FROM tab0 AS cor0
----
89
-19023
89
-346422
89
-8912

query I rowsort
SELECT + col2 + - 50 + + 76 FROM tab0 AS cor0
----
125
36
73

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NULL > ( 12 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-6647
SELECT DISTINCT + COUNT ( * ) - + + 31 / - + COUNT ( * ) FROM tab2 AS cor0
----
13

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

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

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

query I rowsort
SELECT DISTINCT col0 * col1 - + 70 FROM tab0 AS cor0
----
1145
1757
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT + MIN( + col0 ) + 94 AS col1 FROM tab0 AS cor0
----
109

skipif mysql # not compatible
query I rowsort label-6651
SELECT + MIN ( + col0 ) + 94 AS col1 FROM tab0 AS cor0
----
109

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT + 15 + - COUNT( * ) col1 FROM tab0 AS cor0
----
12

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT ALL 82 - COUNT( * ) FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL 82 - COUNT ( * ) FROM tab2 AS cor0
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-6657
SELECT ALL + 45 DIV 91 * - + col2 * - - col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL + 45 / 91 * - + col2 * - - col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + + 64 FROM tab0 WHERE NOT NULL > col2 + + + 95
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - 16 col0 FROM tab1
----
101
107
67

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

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

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

skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) + + - 93 AS col1 FROM tab1
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-6662
SELECT 87 DIV - + col1 FROM tab1
----
-1
-17
-6

skipif mysql # not compatible
query I rowsort label-6662
SELECT 87 / - + col1 FROM tab1
----
-1
-17
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT DISTINCT COUNT( ALL 29 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6663
SELECT DISTINCT COUNT ( ALL 29 ) FROM tab0
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT ( + + 21 ) * + 76 * - MAX( + + col1 ) FROM tab0 cor0
----
-129276

skipif mysql # not compatible
query I rowsort label-6665
SELECT ( + + 21 ) * + 76 * - MAX ( + + col1 ) FROM tab0 cor0
----
-129276

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL > col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6667
SELECT ALL col0 col2, + CAST( NULL AS SIGNED ) * - - col1 AS col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 90 * col0 + - col1 <= - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 47 * + col2 AS col0 FROM tab0
----
2209
4653
470

query I rowsort
SELECT + ( + + col2 ) * col1 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT col2 * 24 + - - col0 FROM tab0 AS cor0
----
1143
2473
327

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * + col2, col1 + + col2 + - + 22 col0 FROM tab2 AS cor0
----
1173
52
3080
95
3886
103

query I rowsort
SELECT DISTINCT 6 * 44 FROM tab1 AS cor0
----
264

query I rowsort
SELECT + 42 FROM tab1 cor0 WHERE NOT + 28 IS NULL
----
42
42
42

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

query I rowsort
SELECT ALL + 10 * + col2 + 8 FROM tab1 WHERE NOT - + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6680
SELECT + - 67 DIV col2 * + - col1 - - col0 DIV 89 FROM tab1 WHERE NOT - col2 IS NULL
----
0
1
5

skipif mysql # not compatible
query I rowsort label-6680
SELECT + - 67 / col2 * + - col1 - - col0 / 89 FROM tab1 WHERE NOT - col2 IS NULL
----
0
1
5

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

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

query I rowsort
SELECT ALL + 68 FROM tab0 WHERE - ( + + 8 ) IS NOT NULL
----
68
68
68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT - COUNT( * ) * - 30 * + COUNT( DISTINCT + col2 ) FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-6684
SELECT - COUNT ( * ) * - 30 * + COUNT ( DISTINCT + col2 ) FROM tab0 AS cor0
----
270

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

query I rowsort
SELECT 43 + + + col0 FROM tab2 cor0
----
107
118
89

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

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

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

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

query I rowsort
SELECT col1 * - + col1 + col0 AS col0 FROM tab2
----
-2555
-4414
-5865

query II rowsort
SELECT - ( col0 ) * + - col1 + ( + col1 ) + - + col0 * + col0, col1 + - - 76 - - 93 AS col2 FROM tab1
----
-1873
183
-3957
216
-6795
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6692
SELECT + MIN( - 64 ) DIV 83 + - - 84 + + - COUNT( * ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-6692
SELECT + MIN ( - 64 ) / 83 + - - 84 + + - COUNT ( * ) FROM tab2
----
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT ( - COUNT( * ) ) col0 FROM tab1 AS cor0 WHERE - 67 <> - 91 * + - 64 * - col1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6694
SELECT ( - COUNT ( * ) ) col0 FROM tab1 AS cor0 WHERE - 67 <> - 91 * + - 64 * - col1
----
-3

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

query II rowsort
SELECT ALL col1 AS col2, + 86 + + col1 AS col1 FROM tab0 AS cor0
----
1
87
21
107
81
167

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6699
SELECT + col2 * ( + col1 ) DIV - col0 FROM tab2
----
-25
-48
-51

skipif mysql # not compatible
query I rowsort label-6699
SELECT + col2 * ( + col1 ) / - col0 FROM tab2
----
-25
-48
-51

query I rowsort
SELECT + - AVG ( DISTINCT + col2 ) AS col2 FROM tab0 WHERE NOT - 96 * + - 83 NOT BETWEEN ( + col1 ) AND + col2
----
NULL

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col1 + + 63, 91 + - col1, + col0 )
----

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

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

query II rowsort
SELECT DISTINCT col1 AS col2, - 65 * - - col1 AS col2 FROM tab2 AS cor0
----
51
-3315
67
-4355
77
-5005

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

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

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

query I rowsort
SELECT DISTINCT - ( + + 99 ) AS col0 FROM tab0 AS cor0
----
-99

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6710
SELECT + + MIN ( DISTINCT - 80 ) col1 FROM tab2 AS cor0
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-6711
SELECT + col1 DIV + 12 AS col0 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-6711
SELECT + col1 / + 12 AS col0 FROM tab1
----
0
1
3

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

query II rowsort
SELECT ALL + col2 * + col2 AS col2, - 46 FROM tab2
----
1600
-46
3364
-46
529
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-6714
SELECT col1 DIV 97 + + col1 DIV + col2 AS col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6714
SELECT col1 / 97 + + col1 / + col2 AS col0 FROM tab0
----
0
1
2

query I rowsort
SELECT + - 38 * - col2 AS col1 FROM tab0 WHERE + 16 * - col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6716
SELECT * FROM tab0 WHERE NULL NOT BETWEEN 64 * CAST( NULL AS SIGNED ) AND - - 51 * - + col2
----

skipif mysql # not compatible
query III rowsort label-6716
SELECT * FROM tab0 WHERE NULL NOT BETWEEN 64 * CAST ( NULL AS INTEGER ) AND - - 51 * - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6717
SELECT DISTINCT * FROM tab2 WHERE - - col1 > col0 + + 24 + ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6717
SELECT DISTINCT * FROM tab2 WHERE - - col1 > col0 + + 24 + ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - col0 + - - 80 - col1 AS col2 FROM tab2
----
-17
-61
-62

query I rowsort
SELECT + col2 + + + col0 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT DISTINCT - col0 * - + col0 FROM tab2 cor0
----
2116
4096
5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 43 ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6722
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2 FROM ( tab2 cor0 CROSS JOIN tab0 cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6722
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2 FROM ( tab2 cor0 CROSS JOIN tab0 cor1 )
----
NULL

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

query II rowsort
SELECT ALL + col2 AS col0, + 60 AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 57 - + 67 + + - col0 FROM tab0 AS cor0
----
-107
-25
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT - ( + MIN( DISTINCT - + col1 ) ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-6726
SELECT - ( + MIN ( DISTINCT - + col1 ) ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
50

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6729
SELECT - - 12 - - CAST( 35 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT - 29 * - col0 IS NULL
----
47
47
47

skipif mysql # not compatible
query I rowsort label-6729
SELECT - - 12 - - CAST ( 35 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT - 29 * - col0 IS NULL
----
47
47
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT ALL + COUNT( * ) * SUM( - 27 ) * - - 20 FROM tab1
----
-4860

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL + COUNT ( * ) * SUM ( - 27 ) * - - 20 FROM tab1
----
-4860

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

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

query II rowsort
SELECT + 84 AS col1, 68 AS col0 FROM tab1 AS cor0
----
84
68
84
68
84
68

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-6734
SELECT ALL - 30 DIV col0 AS col2, + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-6734
SELECT ALL - 30 / col0 AS col2, + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
0
NULL
0
NULL
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT - MAX( DISTINCT - - 73 ) FROM tab2 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-6735
SELECT - MAX ( DISTINCT - - 73 ) FROM tab2 AS cor0
----
-73

query I rowsort
SELECT DISTINCT - - col2 * col1 * + col1 * - col2 FROM tab2 cor0
----
-1375929
-15100996
-9486400

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT ALL + COUNT( * ) * - + 11 AS col1 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL + COUNT ( * ) * - + 11 AS col1 FROM tab1
----
-33

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

query I rowsort
SELECT DISTINCT - ( + + 22 ) AS col2 FROM tab0
----
-22

query I rowsort
SELECT col1 + col1 * - - col0 * 44 FROM tab2 AS cor0
----
103275
216909
221167

onlyif mysql # DIV for integer division: 
query I rowsort label-6741
SELECT ALL + col2 DIV - + col2 + + 92 AS col0 FROM tab0 AS cor0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-6741
SELECT ALL + col2 / - + col2 + + 92 AS col0 FROM tab0 AS cor0
----
91
91
91

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

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

query I rowsort
SELECT + col1 + + + 65 AS col2 FROM tab1 AS cor0
----
112
70
79

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL >= 77
----

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

query II rowsort
SELECT 37 * + col1 * col2 AS col0, 80 AS col2 FROM tab0
----
140859
80
3663
80
7770
80

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

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

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

skipif mysql # not compatible
query I rowsort label-6748
SELECT ALL + 54 + ( + CAST ( NULL AS INTEGER ) ) * + 90 * COUNT ( * ) FROM tab0 WHERE - + col1 + + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6749
SELECT 41 DIV - 32 + + - COUNT( * ) FROM tab1 WHERE ( col1 * - - 55 NOT BETWEEN col0 AND col1 * ( col2 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6749
SELECT 41 / - 32 + + - COUNT ( * ) FROM tab1 WHERE ( col1 * - - 55 NOT BETWEEN col0 AND col1 * ( col2 ) )
----
-1

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

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

query I rowsort
SELECT DISTINCT - 40 + + + 42 + + 0 FROM tab2
----
2

query I rowsort
SELECT ALL - col0 * + - col2 + col0 FROM tab0
----
720
957
9700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - 67 col2 FROM tab1 AS cor0
----
-126
-135
-163

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

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

query I rowsort
SELECT DISTINCT - 51 AS col1 FROM tab2 cor0
----
-51

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

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

skipif mysql # not compatible
query I rowsort label-6758
SELECT - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2
----
-9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 NOT IN ( col1 / - col0 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6762
SELECT ALL - col2 + col1 DIV - 44 FROM tab0
----
-10
-48
-99

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL - col2 + col1 / - 44 FROM tab0
----
-10
-48
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT ALL 60 * COUNT( * ) col1 FROM tab2
----
180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6763
SELECT ALL 60 * COUNT ( * ) col1 FROM tab2
----
180

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6764
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE NOT ( CAST( ( - 4 ) AS DECIMAL ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6764
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( CAST ( ( - 4 ) AS REAL ) ) IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 60 ) IS NOT NULL
----

query I rowsort
SELECT ALL col0 * - 58 AS col0 FROM tab1
----
-2958
-4930
-5278

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT MIN( - col0 ) + COUNT( * ) AS col2 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-6767
SELECT MIN ( - col0 ) + COUNT ( * ) AS col2 FROM tab2
----
-72

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6769
SELECT DISTINCT - 80 DIV - COUNT( * ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-6769
SELECT DISTINCT - 80 / - COUNT ( * ) FROM tab2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT COUNT( - 34 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6770
SELECT COUNT ( - 34 ) FROM tab2
----
3

query I rowsort
SELECT col0 FROM tab0 WHERE NOT 85 * col2 BETWEEN - col1 AND col2 * - ( + col2 )
----
15
87
97

query I rowsort
SELECT ALL 47 + + 36 AS col0 FROM tab1
----
83
83
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6773
SELECT ALL ( 38 ) + - CAST( - SUM( ALL - col1 ) AS SIGNED ) AS col2 FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-6773
SELECT ALL ( 38 ) + - CAST ( - SUM ( ALL - col1 ) AS INTEGER ) AS col2 FROM tab0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT MAX( DISTINCT + col1 ) FROM tab2 WHERE NOT 12 > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6774
SELECT MAX ( DISTINCT + col1 ) FROM tab2 WHERE NOT 12 > ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT 70 + + COUNT( * ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-6775
SELECT 70 + + COUNT ( * ) FROM tab0
----
73

query I rowsort
SELECT DISTINCT - col2 + + col0 * + col2 AS col2 FROM tab1
----
4800
4956
6120

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT COUNT( * ) + 24 col2 FROM tab0
----
27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT COUNT( - ( - ( ( + ( 49 ) ) ) ) ) + + 20 AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-6780
SELECT COUNT ( - ( - ( ( + ( 49 ) ) ) ) ) + + 20 AS col1 FROM tab2
----
23

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT col0 NOT BETWEEN col0 AND col0
----
51
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6782
SELECT col1 FROM tab2 cor0 WHERE NOT col0 <> - 6 * - 67 + CAST( 34 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-6782
SELECT col1 FROM tab2 cor0 WHERE NOT col0 <> - 6 * - 67 + CAST ( 34 AS REAL )
----

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

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

query I rowsort
SELECT - 60 - 69 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 8535c9e1e6711663c59b0ada3541f0f7

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE col2 * col0 + + 81 <= NULL
----

query I rowsort
SELECT ALL - 58 + + col2 FROM tab2 AS cor0
----
-18
-35
0

query I rowsort
SELECT + 26 * 98 AS col1 FROM tab0 cor0
----
2548
2548
2548

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT ( COUNT( ALL col0 ) ) AS col1 FROM tab0 AS cor0 WHERE - col1 > col2
----
0

skipif mysql # not compatible
query I rowsort label-6790
SELECT ( COUNT ( ALL col0 ) ) AS col1 FROM tab0 AS cor0 WHERE - col1 > col2
----
0

query I rowsort
SELECT - 40 + 94 AS col0 FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT - - 40 + 57 AS col2 FROM tab2 AS cor0
----
97
97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6793
SELECT col0 DIV 73 + - col0 FROM tab2 AS cor0
----
-46
-64
-74

skipif mysql # not compatible
query I rowsort label-6793
SELECT col0 / 73 + - col0 FROM tab2 AS cor0
----
-46
-64
-74

query I rowsort
SELECT DISTINCT col0 * + col1 FROM tab2 AS cor0 WHERE NOT ( col2 ) >= ( + col1 * col2 )
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-6795
SELECT - ( 16 ) DIV + col2 + + col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6795
SELECT - ( 16 ) / + col2 + + col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT + col0 * 15 + col1 FROM tab0
----
1326
1456
306

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

query I rowsort
SELECT DISTINCT + 74 AS col1 FROM tab1 WHERE + col0 + + col1 * - ( col2 ) BETWEEN NULL AND NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT ALL - 19 * MIN( ALL ( col2 ) ) FROM tab2 AS cor0 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6801
SELECT ALL - 19 * MIN ( ALL ( col2 ) ) FROM tab2 AS cor0 WHERE - col0 IS NULL
----
NULL

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 57 = - 84 / - col1
----

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6809
SELECT - - 67 * - COUNT ( * ) col1 FROM tab1 WHERE NOT + + col2 IS NOT NULL
----
0

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

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

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

query I rowsort
SELECT DISTINCT col2 * 21 AS col1 FROM tab1
----
1239
1428
2016

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6814
SELECT DISTINCT col2 * - 73 FROM tab2 cor0 WHERE NOT CAST( NULL AS SIGNED ) * + col0 * 51 < ( 34 / 6 )
----

skipif mysql # not compatible
query I rowsort label-6814
SELECT DISTINCT col2 * - 73 FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + col0 * 51 < ( 34 / 6 )
----

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = - ( + + 92 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - ( - col2 ) col0 FROM tab0
----
198
20
94

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6818
SELECT ALL + - CAST ( - col2 AS INTEGER ) col2 FROM tab0 WHERE - col1 = NULL
----

query I rowsort
SELECT ALL + col1 + + 16 FROM tab0 AS cor0
----
17
37
97

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

query I rowsort
SELECT DISTINCT 23 * - 30 FROM tab2 AS cor0
----
-690

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT ALL + + COUNT( * ) + + 44 AS col0 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-6822
SELECT ALL + + COUNT ( * ) + + 44 AS col0 FROM tab2 AS cor0
----
47

query I rowsort
SELECT - 98 * + col1 FROM tab2 AS cor0
----
-4998
-6566
-7546

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

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

skipif mysql # not compatible
query I rowsort label-6825
SELECT ALL - SUM ( ALL + col1 ) FROM tab1 cor0
----
-66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 IN ( + + ( - col1 ) * col2 * 74 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT ALL MAX( ALL - + col1 ) col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6827
SELECT ALL MAX ( ALL - + col1 ) col2 FROM tab0 cor0
----
-1

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN - + col2 AND + col0 + col0
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 64 col2, col1 AS col2 FROM tab2 WHERE ( - col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) * 61 col2 FROM tab2
----
1403
2440
3538

query I rowsort
SELECT DISTINCT + col0 * + 92 + + + col2 FROM tab0
----
1427
8014
9023

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

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

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

query I rowsort
SELECT ALL + ( - + col0 ) + col2 FROM tab1
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE col0 > ( col2 )
----
1

skipif mysql # not compatible
query I rowsort label-6837
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE col0 > ( col2 )
----
1

query I rowsort
SELECT DISTINCT 41 FROM tab1 AS cor0 WHERE NOT NULL IN ( - 24, - 94 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 + 36 col1 FROM tab1 AS cor0
----
131
131
131

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

query I rowsort
SELECT + 43 * - col2 AS col1 FROM tab2
----
-1720
-2494
-989

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

skipif mysql # not compatible
query I rowsort label-6842
SELECT - - COUNT ( * ) / - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT DISTINCT - SUM( - - 0 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6844
SELECT DISTINCT - SUM ( - - 0 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( - col1 ) + + ( + 46 ) ) >= col2
----
15
81
47
97
1
99

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6849
SELECT DISTINCT COUNT( DISTINCT - CAST( NULL AS DECIMAL ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6849
SELECT DISTINCT COUNT ( DISTINCT - CAST ( NULL AS REAL ) ) FROM tab0
----
0

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

query I rowsort
SELECT ALL + 53 + + + 29 FROM tab0 cor0
----
82
82
82

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6853
SELECT DISTINCT + col2 * + 93 * + 65 * - - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6853
SELECT DISTINCT + col2 * + 93 * + 65 * - - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6855
SELECT * FROM tab1 AS cor0 WHERE - col1 BETWEEN col2 / + 61 + + CAST( NULL AS SIGNED ) + col1 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-6855
SELECT * FROM tab1 AS cor0 WHERE - col1 BETWEEN col2 / + 61 + + CAST ( NULL AS INTEGER ) + col1 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6856
SELECT ALL + 48 DIV + - ( + - 49 ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL + 48 / + - ( + - 49 ) AS col2 FROM tab2
----
0
0
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 91 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6858
SELECT * FROM tab0 WHERE - - 63 + col1 >= col0 + - 20 * - CAST( NULL AS SIGNED ) + + ( - + col0 )
----

skipif mysql # not compatible
query III rowsort label-6858
SELECT * FROM tab0 WHERE - - 63 + col1 >= col0 + - 20 * - CAST ( NULL AS INTEGER ) + + ( - + col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> 74
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6861
SELECT DISTINCT col1 DIV + col2 + - + col1 + + col2 FROM tab1 AS cor0
----
21
54
82

skipif mysql # not compatible
query I rowsort label-6861
SELECT DISTINCT col1 / + col2 + - + col1 + + col2 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT ALL - col1 * col2 + - col1 + 72 + + + col1 AS col2 FROM tab0 AS cor0
----
-138
-27
-3735

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = + col1 * - 35
----

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

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

query I rowsort
SELECT 81 + - col2 AS col2 FROM tab0
----
-18
34
71

onlyif mysql # DIV for integer division: 
query I rowsort label-6867
SELECT ALL + col1 + + 49 DIV 63 AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL + col1 + + 49 / 63 AS col1 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT + col0 + 22 AS col0 FROM tab0
----
109
119
37

query I rowsort
SELECT DISTINCT + col0 * - 82 AS col0 FROM tab1 cor0
----
-4182
-6970
-7462

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT + - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6871
SELECT + - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6872
SELECT ALL + col1 DIV - + 83 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL + col1 / - + 83 FROM tab1 AS cor0
----
0
0
0

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT ALL - 4 * - MIN( ALL + col2 ) * COUNT( * ) FROM tab2
----
276

skipif mysql # not compatible
query I rowsort label-6879
SELECT ALL - 4 * - MIN ( ALL + col2 ) * COUNT ( * ) FROM tab2
----
276

query II rowsort
SELECT ALL + + 1 * + col1 + - 68 + + col0 * col0 * + 47 * + - 63, 16 AS col1 FROM tab1 AS cor0
----
-21393288
16
-24520062
16
-7701615
16

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6883
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND - 1
----

skipif mysql # not compatible
query III rowsort label-6883
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND - 1
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6887
SELECT ALL + 0 * - col1 + + col1 DIV ( - + col1 ) + - 40 FROM tab1 cor0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL + 0 * - col1 + + col1 / ( - + col1 ) + - 40 FROM tab1 cor0
----
-41
-41
-41

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

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

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

query I rowsort
SELECT col1 - - 54 FROM tab1 AS cor0
----
101
59
68

query II rowsort
SELECT DISTINCT - 9 * - 17 * 42 * + col1 AS col0, col0 + - 53 FROM tab0
----
134946
34
520506
-38
6426
44

query I rowsort
SELECT - ( 80 ) - - col1 AS col2 FROM tab1
----
-33
-66
-75

query I rowsort
SELECT 11 - + + col0 FROM tab0
----
-4
-76
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT SUM( - + 88 ) AS col1 FROM tab2
----
-264

skipif mysql # not compatible
query I rowsort label-6895
SELECT SUM ( - + 88 ) AS col1 FROM tab2
----
-264

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6896
SELECT DISTINCT 85 DIV CAST( + - col0 AS SIGNED ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6896
SELECT DISTINCT 85 / CAST ( + - col0 AS INTEGER ) FROM tab2 cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6897
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE - CAST( NULL AS DECIMAL ) <> ( + 57 )
----
0

skipif mysql # not compatible
query I rowsort label-6897
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE - CAST ( NULL AS REAL ) <> ( + 57 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 78 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6899
SELECT 46 DIV - 35 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-6899
SELECT 46 / - 35 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

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

skipif mysql # not compatible
query I rowsort label-6900
SELECT DISTINCT + 4 * - COUNT ( * ) FROM tab0 WHERE NOT ( ( - col2 ) * - ( col0 ) - - col2 IS NOT NULL )
----
0

query I rowsort
SELECT 5 * 89 AS col2 FROM tab1
----
445
445
445

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 74 BETWEEN NULL AND + + ( - col1 ) - - col0 + + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6907
SELECT DISTINCT + + 79 DIV col1 FROM tab1 AS cor0
----
1
15
5

skipif mysql # not compatible
query I rowsort label-6907
SELECT DISTINCT + + 79 / col1 FROM tab1 AS cor0
----
1
15
5

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 * + col0 col1 FROM tab1
----
-2587
-7220
-8234

query I rowsort
SELECT DISTINCT 45 + - 85 AS col0 FROM tab2 WHERE + 37 IS NOT NULL
----
-40

query I rowsort
SELECT - col0 + - + 32 AS col0 FROM tab2
----
-107
-78
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-6914
SELECT DISTINCT + - 19 DIV - col1 + + 77 FROM tab1 WHERE col2 IS NOT NULL
----
77
78
80

skipif mysql # not compatible
query I rowsort label-6914
SELECT DISTINCT + - 19 / - col1 + + 77 FROM tab1 WHERE col2 IS NOT NULL
----
77
78
80

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 82 * - col2 + + 4 col1 FROM tab2 AS cor0
----
1890
3284
4760

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

query I rowsort
SELECT - 86 * col2 AS col2 FROM tab1 AS cor0
----
-5074
-5848
-8256

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

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

query II rowsort
SELECT DISTINCT + 98 + - col1 AS col1, - 20 FROM tab2
----
21
-20
31
-20
47
-20

query I rowsort
SELECT ALL + col0 + 2 - + col0 FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT DISTINCT col2 - - col1 AS col2 FROM tab2 cor0
----
117
125
74

query I rowsort
SELECT - ( + - 50 ) + + + 76 AS col1 FROM tab1 AS cor0
----
126
126
126

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

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

query I rowsort
SELECT ALL - 46 - + col2 AS col2 FROM tab1 AS cor0
----
-105
-114
-142

query I rowsort
SELECT + 72 * + - 64 FROM tab2
----
-4608
-4608
-4608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6927
SELECT ALL - col0 + ( + col0 ) FROM tab1 WHERE NOT + 5 * + 48 - col0 + - + 79 + + col1 - + CAST( NULL AS SIGNED ) / + + col1 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL - col0 + ( + col0 ) FROM tab1 WHERE NOT + 5 * + 48 - col0 + - + 79 + + col1 - + CAST ( NULL AS INTEGER ) / + + col1 IS NOT NULL
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6928
SELECT ALL - + CAST( NULL AS DECIMAL ) / + 38 + - - ( + + ( - col1 ) ) col0, + col1 + col2 FROM tab0 WHERE NOT 28 IS NULL
----
NULL
100
NULL
128
NULL
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6928
SELECT ALL - + CAST ( NULL AS REAL ) / + 38 + - - ( + + ( - col1 ) ) col0, + col1 + col2 FROM tab0 WHERE NOT 28 IS NULL
----
NULL
100
NULL
128
NULL
31

query I rowsort
SELECT ALL - 42 * - col2 FROM tab2
----
1680
2436
966

query I rowsort
SELECT ALL 94 * - col0 AS col1 FROM tab2
----
-4324
-6016
-7050

onlyif mysql # aggregate syntax: 
query II rowsort label-6931
SELECT COUNT( * ) AS col2, - 57 FROM tab1 AS cor0 WHERE NOT ( 90 ) IS NOT NULL
----
0
-57

skipif mysql # not compatible
query II rowsort label-6931
SELECT COUNT ( * ) AS col2, - 57 FROM tab1 AS cor0 WHERE NOT ( 90 ) IS NOT NULL
----
0
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT MAX( ALL col0 ) + 82 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
179

skipif mysql # not compatible
query I rowsort label-6932
SELECT MAX ( ALL col0 ) + 82 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
179

onlyif mysql # DIV for integer division: 
query I rowsort label-6933
SELECT + 82 DIV + col0 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6933
SELECT + 82 / + col0 FROM tab1 cor0
----
0
0
1

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6937
SELECT CAST( + MIN( - 38 ) AS SIGNED ) FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-6937
SELECT CAST ( + MIN ( - 38 ) AS INTEGER ) FROM tab0
----
-38

query I rowsort
SELECT 26 * - col2 + col2 - + col0 + - col2 FROM tab0 AS cor0
----
-1237
-2671
-347

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 <> + + 34
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 52 FROM tab1 WHERE - - col0 IS NOT NULL
----
52
52
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6942
SELECT ALL col1 * + col2 * - col0 * CAST( - col2 AS SIGNED ) * 18 + - col0 FROM tab2
----
141926336
22338566
304273725

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL col1 * + col2 * - col0 * CAST ( - col2 AS INTEGER ) * 18 + - col0 FROM tab2
----
141926336
22338566
304273725

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT + MIN( DISTINCT + + col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6944
SELECT + MIN ( DISTINCT + + col1 ) FROM tab1
----
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT - 7 * - ( 77 ) + + + SUM( + + col0 ) FROM tab1 AS cor0
----
766

skipif mysql # not compatible
query I rowsort label-6947
SELECT - 7 * - ( 77 ) + + + SUM ( + + col0 ) FROM tab1 AS cor0
----
766

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT COUNT( * ) + COUNT( ALL - + 29 ) * MIN( ALL - - col2 ) FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-6949
SELECT COUNT ( * ) + COUNT ( ALL - + 29 ) * MIN ( ALL - - col2 ) FROM tab0 AS cor0
----
33

query I rowsort
SELECT ALL - 18 * - - col0 FROM tab1 cor0
----
-1530
-1638
-918

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

query III rowsort
SELECT * FROM tab2 WHERE ( NOT + col0 NOT BETWEEN - 53 AND - 18 * + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 + + col2 BETWEEN - 18 AND - col2
----

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT ALL + MAX( - col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-6960
SELECT ALL + MAX ( - col1 ) FROM tab2
----
-51

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

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

query I rowsort
SELECT DISTINCT - 81 * - ( 93 ) FROM tab2
----
7533

query III rowsort
SELECT * FROM tab2 WHERE NOT 90 + - - 67 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT - MIN( ALL + + col2 ) * + 45 AS col1 FROM tab0
----
-450

skipif mysql # not compatible
query I rowsort label-6964
SELECT - MIN ( ALL + + col2 ) * + 45 AS col1 FROM tab0
----
-450

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 10 + - col0 + 7 BETWEEN col1 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + ( + 72 ) AS col0 FROM tab0 AS cor0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 68 * - 77 AS col0, - col2 col0 FROM tab2 AS cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6968
SELECT DISTINCT - MAX( ALL 62 ) FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-6968
SELECT DISTINCT - MAX ( ALL 62 ) FROM tab0 AS cor0
----
-62

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 + - ( - col2 ) + + + 54 IS NOT NULL
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 AS cor0 WHERE NOT col2 + + + ( + + col2 ) + ( col2 ) - 0 / + - col0 * + - col2 IS NULL
----
23
40
58

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6973
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * 98 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6973
SELECT DISTINCT + CAST ( NULL AS REAL ) * 98 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6974
SELECT CAST( - + col1 AS SIGNED ) * + - col1 + - 33 FROM tab0 AS cor0
----
-32
408
6528

skipif mysql # not compatible
query I rowsort label-6974
SELECT CAST ( - + col1 AS INTEGER ) * + - col1 + - 33 FROM tab0 AS cor0
----
-32
408
6528

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

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

query I rowsort
SELECT DISTINCT + 41 * + + col0 AS col0 FROM tab0 AS cor0
----
3567
3977
615

query I rowsort
SELECT col2 + col2 + - col1 + + col2 - - col2 * - - col2 FROM tab0 AS cor0
----
10097
109
2269

query I rowsort
SELECT - 8 + - col2 * - - col2 AS col0 FROM tab1
----
-3489
-4632
-9224

query I rowsort
SELECT ALL 95 * - 53 * ( col2 ) FROM tab2
----
-115805
-201400
-292030

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6981
SELECT DISTINCT - col2 DIV + + col1 col0, col1 AS col2 FROM tab1
----
-1
47
-11
5
-6
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6981
SELECT DISTINCT - col2 / + + col1 col0, col1 AS col2 FROM tab1
----
-1
47
-11
5
-6
14

query I rowsort
SELECT ALL - 48 + + + col1 FROM tab1
----
-1
-34
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT + ( + + 40 ) * COUNT( * ) FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-6983
SELECT + ( + + 40 ) * COUNT ( * ) FROM tab2 AS cor0
----
120

query I rowsort
SELECT - 78 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

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

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

skipif mysql # not compatible
query I rowsort label-6986
SELECT DISTINCT MIN ( DISTINCT - 86 ) FROM tab2 AS cor0
----
-86

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6988
SELECT ALL + + COUNT( * ) DIV 66 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6988
SELECT ALL + + COUNT ( * ) / 66 FROM tab0 AS cor0
----
0

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

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

query II rowsort
SELECT ALL col1, + ( + col0 ) FROM tab1
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6992
SELECT ALL - CAST( col1 AS SIGNED ) AS col1, + col0 * col2 AS col0 FROM tab2
----
-51
1058
-67
4350
-77
2560

skipif mysql # not compatible
query II rowsort label-6992
SELECT ALL - CAST ( col1 AS INTEGER ) AS col1, + col0 * col2 AS col0 FROM tab2
----
-51
1058
-67
4350
-77
2560

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, - 35 * col0 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + ( col0 ) AND ( - - 8 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6995
SELECT ALL CAST( NULL AS SIGNED ) AS col0, - 73 * + col1 FROM tab1 AS cor0
----
NULL
-1022
NULL
-3431
NULL
-365

skipif mysql # not compatible
query II rowsort label-6995
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, - 73 * + col1 FROM tab1 AS cor0
----
NULL
-1022
NULL
-3431
NULL
-365

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

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

query II rowsort
SELECT DISTINCT + 36 + col0, + col1 + + + col0 * + + col2 AS col1 FROM tab0
----
123
891
133
9604
51
786

onlyif mysql # aggregate syntax: 
query II rowsort label-6998
SELECT ALL + 42 + + COUNT( * ), 16 AS col0 FROM tab2
----
45
16

skipif mysql # not compatible
query II rowsort label-6998
SELECT ALL + 42 + + COUNT ( * ), 16 AS col0 FROM tab2
----
45
16

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

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

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 cor0 WHERE NOT 53 IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7001
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE NULL IN ( - col0, + col1, + + CAST( + 85 AS DECIMAL ) - + col1 + + ( - CAST( NULL AS SIGNED ) ) + - col1 * - col2 )
----

skipif mysql # not compatible
query I rowsort label-7001
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE NULL IN ( - col0, + col1, + + CAST ( + 85 AS REAL ) - + col1 + + ( - CAST ( NULL AS INTEGER ) ) + - col1 * - col2 )
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7003
SELECT DISTINCT + COUNT( CAST( NULL AS SIGNED ) ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7003
SELECT DISTINCT + COUNT ( CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7004
SELECT 94 DIV + - COUNT( * ) FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-7004
SELECT 94 / + - COUNT ( * ) FROM tab2
----
-31

query III rowsort
SELECT ALL * FROM tab2 WHERE 34 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7006
SELECT ALL + COUNT( * ) + - - 22 + - - 3 AS col2, + 15 DIV - 99 FROM tab1
----
28
0

skipif mysql # not compatible
query II rowsort label-7006
SELECT ALL + COUNT ( * ) + - - 22 + - - 3 AS col2, + 15 / - 99 FROM tab1
----
28
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT + ( + + MIN( ALL 69 ) ) col2 FROM tab0
----
69

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7009
SELECT DISTINCT - 64 + CAST( + - 11 AS SIGNED ) + - MIN( ALL + col2 ) FROM tab2
----
-98

skipif mysql # not compatible
query I rowsort label-7009
SELECT DISTINCT - 64 + CAST ( + - 11 AS INTEGER ) + - MIN ( ALL + col2 ) FROM tab2
----
-98

query I rowsort
SELECT DISTINCT - 14 - col1 FROM tab1 cor0
----
-19
-28
-61

query I rowsort
SELECT DISTINCT - col2 * ( 40 ) + - col0 AS col2 FROM tab0
----
-1895
-4057
-487

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT MAX( + - 23 ) * + + 43 FROM tab2
----
-989

skipif mysql # not compatible
query I rowsort label-7012
SELECT MAX ( + - 23 ) * + + 43 FROM tab2
----
-989

query II rowsort
SELECT DISTINCT 78 * - - col2, - col1 * - 86 AS col1 FROM tab0
----
3666
6966
7722
86
780
1806

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

skipif mysql # not compatible
query I rowsort label-7014
SELECT SUM ( ALL + + col1 ) AS col1 FROM tab1
----
66

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

skipif mysql # not compatible
query I rowsort label-7015
SELECT ALL + + CAST ( + col1 AS INTEGER ) * - ( - col1 ) FROM tab0 AS cor0
----
1
441
6561

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT + MIN( 65 ) FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-7021
SELECT + MIN ( 65 ) FROM tab1
----
65

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

query I rowsort
SELECT - col2 * - 20 * + 74 * + col2 FROM tab2
----
2368000
4978720
782920

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7026
SELECT - col2, + col2 DIV - col0 AS col0 FROM tab2
----
-23
0
-40
0
-58
0

skipif mysql # not compatible
query II rowsort label-7026
SELECT - col2, + col2 / - col0 AS col0 FROM tab2
----
-23
0
-40
0
-58
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7028
SELECT ALL - ( - + CAST( - col2 AS SIGNED ) ) AS col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL - ( - + CAST ( - col2 AS INTEGER ) ) AS col0 FROM tab2
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-7029
SELECT ALL + - col0 + - 72 DIV + + 3 AS col0 FROM tab0 AS cor0
----
-111
-121
-39

skipif mysql # not compatible
query I rowsort label-7029
SELECT ALL + - col0 + - 72 / + + 3 AS col0 FROM tab0 AS cor0
----
-111
-121
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7030
SELECT DISTINCT - MAX( + ( + CAST( + + col1 AS SIGNED ) ) ) + 88 FROM tab2 cor0
----
11

skipif mysql # not compatible
query I rowsort label-7030
SELECT DISTINCT - MAX ( + ( + CAST ( + + col1 AS INTEGER ) ) ) + 88 FROM tab2 cor0
----
11

query I rowsort
SELECT ALL + + col2 * + col0 * + - col2 + col2 + + col2 AS col1 FROM tab2 AS cor0
----
-102320
-24288
-252184

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 col2 FROM tab0 AS cor0 WHERE col1 * - col0 IS NOT NULL
----
100
2209
9801

query I rowsort
SELECT + 37 + + col2 AS col1 FROM tab0 AS cor0
----
136
47
84

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

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

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

skipif mysql # not compatible
query I rowsort label-7036
SELECT DISTINCT - CAST ( - MAX ( DISTINCT + col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
99

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

query I rowsort
SELECT + + ( - 27 ) + + - col1 AS col2 FROM tab0 AS cor0
----
-108
-28
-48

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

skipif mysql # not compatible
query II rowsort label-7039
SELECT ALL + 27 AS col1, COUNT ( * ) FROM tab2 AS cor0
----
27
3

query I rowsort
SELECT ALL 46 * - col0 + col1 AS col0 FROM tab1 AS cor0
----
-2332
-3905
-4139

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

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

query I rowsort
SELECT ALL + 30 + + - col2 FROM tab0
----
-17
-69
20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT MAX( col1 ) + - COUNT( * ) AS col0 FROM tab1 WHERE col2 < - - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-7044
SELECT MAX ( col1 ) + - COUNT ( * ) AS col0 FROM tab1 WHERE col2 < - - 5
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7045
SELECT ALL col2 DIV col0 + - - 56 FROM tab2
----
56
56
56

skipif mysql # not compatible
query I rowsort label-7045
SELECT ALL col2 / col0 + - - 56 FROM tab2
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT ALL + 49 * - 5 + - - COUNT( * ) FROM tab1
----
-242

skipif mysql # not compatible
query I rowsort label-7046
SELECT ALL + 49 * - 5 + - - COUNT ( * ) FROM tab1
----
-242

query I rowsort
SELECT DISTINCT - + ( + 59 ) + + col1 + 24 * + - col1 + col0 * 77 FROM tab1 cor0
----
3546
5867
6371

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 = 12 * col2 / ( - 47 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT ALL - COUNT( * ) AS col1 FROM tab0, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7050
SELECT ALL - COUNT ( * ) AS col1 FROM tab0, tab2 AS cor0
----
-9

query II rowsort
SELECT ALL - col2 AS col2, col2 * - col0 AS col1 FROM tab0
----
-10
-870
-47
-705
-99
-9603

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE - 28 * - 33 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

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

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

query II rowsort
SELECT DISTINCT - + col1, - col0 AS col0 FROM tab1 AS cor0
----
-14
-51
-47
-91
-5
-85

query I rowsort
SELECT + 28 * + 7 * + col2 AS col1 FROM tab1 AS cor0
----
11564
13328
18816

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7058
SELECT + col1 DIV 4 - - 46 + - 41 DIV + col2 FROM tab1 cor0
----
47
49
57

skipif mysql # not compatible
query I rowsort label-7058
SELECT + col1 / 4 - - 46 + - 41 / + col2 FROM tab1 cor0
----
47
49
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7059
SELECT COUNT( * ) DIV SUM( DISTINCT + col0 ) AS col1, COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
3

skipif mysql # not compatible
query II rowsort label-7059
SELECT COUNT ( * ) / SUM ( DISTINCT + col0 ) AS col1, COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
3

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

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

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

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

query II rowsort
SELECT + + 46 AS col2, 23 FROM tab2 cor0 WHERE NOT NULL <= - col2
----

query I rowsort
SELECT + + col2 FROM tab1 WHERE NOT ( NULL ) >= col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7065
SELECT ALL 6 * col0 DIV col2 AS col0 FROM tab2
----
12
7
9

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL 6 * col0 / col2 AS col0 FROM tab2
----
12
7
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT 3 * - 77 * COUNT( * ) FROM tab0
----
-693

skipif mysql # not compatible
query I rowsort label-7066
SELECT 3 * - 77 * COUNT ( * ) FROM tab0
----
-693

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 ) NOT BETWEEN col0 AND 78
----

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

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

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

query I rowsort
SELECT + + 77 * - col0 AS col2 FROM tab1 AS cor0
----
-3927
-6545
-7007

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

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

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

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

query I rowsort
SELECT + 3 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT 21 * - + 17 + col0 + + - 48 - + 23 * - - col1 AS col2 FROM tab1
----
-1395
-435
-676

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7077
SELECT col0, 13 * - col1 + + CAST( NULL AS SIGNED ) + 48 + + 87 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-7077
SELECT col0, 13 * - col1 + + CAST ( NULL AS INTEGER ) + 48 + + 87 FROM tab1
----
51
NULL
85
NULL
91
NULL

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

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

query I rowsort
SELECT ALL - 78 - + + col1 AS col1 FROM tab0 AS cor0
----
-159
-79
-99

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT DISTINCT - MAX( DISTINCT - - 35 ) * - COUNT( * ) + - + 80 * + COUNT( * ) AS col1 FROM tab2
----
-135

skipif mysql # not compatible
query I rowsort label-7083
SELECT DISTINCT - MAX ( DISTINCT - - 35 ) * - COUNT ( * ) + - + 80 * + COUNT ( * ) AS col1 FROM tab2
----
-135

query I rowsort
SELECT - 12 + + col2 FROM tab0
----
-2
35
87

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT + 78 + COUNT( * ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-7087
SELECT + 78 + COUNT ( * ) FROM tab1
----
81

query I rowsort
SELECT ALL + col1 + + + col1 + 59 FROM tab2
----
161
193
213

query II rowsort
SELECT DISTINCT + - col0, - col2 AS col2 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

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

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

query I rowsort
SELECT col0 * - col0 * 33 * 67 FROM tab0
----
-16735059
-20803299
-497475

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT DISTINCT MIN( DISTINCT 0 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7092
SELECT DISTINCT MIN ( DISTINCT 0 ) FROM tab2 cor0
----
0

query I rowsort
SELECT ALL - 73 FROM tab1 AS cor0 WHERE ( - col0 ) * - 88 + + 31 IS NOT NULL
----
-73
-73
-73

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 20 <> 80
----

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7103
SELECT DISTINCT + 9 / - - col1 FROM tab0
----
0
9

query I rowsort
SELECT ALL - 73 * + 57 + - ( + col2 ) * + 95 AS col1 FROM tab2
----
-6346
-7961
-9671

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

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

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

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

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

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

query I rowsort
SELECT 49 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT ALL col2 + + col1 + - col0 * - col2 AS col0 FROM tab2
----
1132
2677
4475

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7111
SELECT + 56 DIV - ( - COUNT( * ) ) AS col2 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-7111
SELECT + 56 / - ( - COUNT ( * ) ) AS col2 FROM tab0
----
18

query I rowsort
SELECT ALL + 65 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 17 col1 FROM tab1
----
-12
-3
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT - COUNT( ALL + col0 ) + MIN( + + 83 ) AS col1 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-7114
SELECT - COUNT ( ALL + col0 ) + MIN ( + + 83 ) AS col1 FROM tab2 AS cor0
----
80

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

query I rowsort
SELECT DISTINCT 93 - - + col0 + col0 FROM tab1 AS cor0
----
195
263
275

onlyif mysql # DIV for integer division: 
query I rowsort label-7117
SELECT + 28 DIV 20 + + - 79 AS col0 FROM tab0 AS cor0
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-7117
SELECT + 28 / 20 + + - 79 AS col0 FROM tab0 AS cor0
----
-78
-78
-78

query I rowsort
SELECT DISTINCT ( - + col1 ) + - col2 AS col0 FROM tab0 AS cor0
----
-100
-128
-31

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

query I rowsort
SELECT + col0 + col0 + + col0 - - col0 * - col1 FROM tab2 AS cor0
----
-2208
-4736
-4800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 + + - col0 * - col1 col1 FROM tab1 AS cor0
----
4317
465
754

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

query I rowsort
SELECT + col2 + + + 55 + col2 AS col2 FROM tab2 cor0
----
101
135
171

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

skipif mysql # not compatible
query I rowsort label-7124
SELECT ALL - MIN ( ALL 54 ) AS col1 FROM tab1 AS cor0
----
-54

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

query III rowsort
SELECT * FROM tab0 WHERE - + col2 + ( 5 ) + + 10 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT ALL + MIN( ALL 60 ) AS col1 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL + MIN ( ALL 60 ) AS col1 FROM tab2
----
60

query I rowsort
SELECT DISTINCT col2 * + 62 FROM tab0 WHERE NOT - 23 / col0 IS NOT NULL
----

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE col1 * - + 24 * 97 IS NULL
----

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

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

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

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

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

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

query I rowsort
SELECT + 68 * - col0 + - 57 AS col0 FROM tab2 AS cor0
----
-3185
-4409
-5157

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

skipif mysql # not compatible
query III rowsort label-7135
SELECT ALL * FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - + col2 * + - col0 col1 FROM tab2 cor0
----
-102400
-24334
-252300

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < 19
----

query III rowsort
SELECT * FROM tab2 WHERE - 93 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - ( - + col1 ) AS col0, col1 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7140
SELECT DISTINCT col2 * + + 49 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7140
SELECT DISTINCT col2 * + + 49 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT + MIN( ALL + - col0 ) * + SUM( 96 ) FROM tab0
----
-27936

skipif mysql # not compatible
query I rowsort label-7141
SELECT + MIN ( ALL + - col0 ) * + SUM ( 96 ) FROM tab0
----
-27936

query I rowsort
SELECT - col2 * - col1 * - col0 FROM tab2
----
-197120
-291450
-53958

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 5 >= 61
----

query I rowsort
SELECT ALL 29 * col2 + + 63 + 90 AS col0 FROM tab2
----
1313
1835
820

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT DISTINCT - COUNT( * ) + COUNT( + + col1 ) col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7145
SELECT DISTINCT - COUNT ( * ) + COUNT ( + + col1 ) col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT DISTINCT 1 + COUNT( * ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-7146
SELECT DISTINCT 1 + COUNT ( * ) FROM tab0
----
4

query II rowsort
SELECT DISTINCT col1 * + + col1, 29 AS col2 FROM tab1 AS cor0
----
196
29
2209
29
25
29

query I rowsort
SELECT - + col1 + col0 - col0 + - col2 - + 38 + + - col1 * col2 * - col2 FROM tab2 AS cor0
----
123045
225225
26867

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7149
SELECT DISTINCT - 75 / + ( + CAST( NULL AS SIGNED ) ) / - + col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7149
SELECT DISTINCT - 75 / + ( + CAST ( NULL AS INTEGER ) ) / - + col0 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7150
SELECT col2 + + 25 DIV + col0, col1 AS col2 FROM tab1 AS cor0 WHERE col1 * - ( - col2 ) IS NOT NULL
----
59
5
68
47
96
14

skipif mysql # not compatible
query II rowsort label-7150
SELECT col2 + + 25 / + col0, col1 AS col2 FROM tab1 AS cor0 WHERE col1 * - ( - col2 ) IS NOT NULL
----
59
5
68
47
96
14

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT DISTINCT + col0 + + 3 AS col2 FROM tab2
----
49
67
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT + MAX( DISTINCT 40 ) FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-7153
SELECT + MAX ( DISTINCT 40 ) FROM tab1 AS cor0
----
40

query II rowsort
SELECT - col2 AS col2, 14 FROM tab2 AS cor0
----
-23
14
-40
14
-58
14

query I rowsort
SELECT ALL - + col1 - 37 FROM tab1 cor0
----
-42
-51
-84

query I rowsort
SELECT DISTINCT - col1 - + + col1 AS col2 FROM tab0 AS cor0
----
-162
-2
-42

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * - col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 32 * - + col1 IS NULL
----

query I rowsort
SELECT + col1 - + col0 - - - 76 * + - col0 * + col2 AS col0 FROM tab0 AS cor0
----
53646
66054
729732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7160
SELECT DISTINCT - CAST( - 82 AS SIGNED ) AS col1 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-7160
SELECT DISTINCT - CAST ( - 82 AS INTEGER ) AS col1 FROM tab1
----
82

query II rowsort
SELECT col0 * 31, col0 AS col0 FROM tab2
----
1426
46
1984
64
2325
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7162
SELECT CAST( NULL AS SIGNED ) * + 23 * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7162
SELECT CAST ( NULL AS INTEGER ) * + 23 * col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7163
SELECT + col1 DIV 5 AS col1 FROM tab1
----
1
2
9

skipif mysql # not compatible
query I rowsort label-7163
SELECT + col1 / 5 AS col1 FROM tab1
----
1
2
9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7165
SELECT - COUNT( * ) DIV - 64 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7165
SELECT - COUNT ( * ) / - 64 AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7166
SELECT ALL * FROM tab2 AS cor0 WHERE + 59 + - + CAST( + col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7166
SELECT ALL * FROM tab2 AS cor0 WHERE + 59 + - + CAST ( + col0 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + ( - 11 ) AS col0 FROM tab0 cor0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-7168
SELECT DISTINCT 1 DIV col1 col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7168
SELECT DISTINCT 1 / col1 col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7169
SELECT DISTINCT + CAST( + + col0 AS SIGNED ), - 56 col2 FROM tab0 AS cor0
----
15
-56
87
-56
97
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7169
SELECT DISTINCT + CAST ( + + col0 AS INTEGER ), - 56 col2 FROM tab0 AS cor0
----
15
-56
87
-56
97
-56

query I rowsort
SELECT ALL 1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 col0 FROM tab1
----
-26
-26
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7172
SELECT ALL - CAST( NULL AS SIGNED ) col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7172
SELECT ALL - CAST ( NULL AS INTEGER ) col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT DISTINCT MIN( DISTINCT 2 ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-7173
SELECT DISTINCT MIN ( DISTINCT 2 ) FROM tab0
----
2

query II rowsort
SELECT 82 AS col2, col2 FROM tab0
----
82
10
82
47
82
99

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * 53 BETWEEN NULL AND col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 33 + - col0 <= ( + col0 ) ) OR NOT NULL BETWEEN NULL AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - col0 NOT BETWEEN + col1 AND + - 40 * + col1
----

query I rowsort
SELECT ALL - ( - col2 ) AS col1 FROM tab1 cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7179
SELECT 8 DIV - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7179
SELECT 8 / - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * - 42 + col2 AS col1 FROM tab0 AS cor0
----
3664
4173
677

query I rowsort
SELECT DISTINCT - 47 * - col2 FROM tab2 AS cor0
----
1081
1880
2726

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * + col0 = - + 78 * - + col0
----

query I rowsort
SELECT - - 97 + - 90 + col2 AS col1 FROM tab0 AS cor0
----
106
17
54

query II rowsort
SELECT DISTINCT 27, - col1 AS col0 FROM tab1
----
27
-14
27
-47
27
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7185
SELECT - col2 + + CAST( NULL AS DECIMAL ) + - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7185
SELECT - col2 + + CAST ( NULL AS REAL ) + - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 6 + + 85 + + + col1 * + col2 FROM tab0
----
190
301
3898

query I rowsort
SELECT 47 + - col1 * col2 FROM tab0
----
-163
-3760
-52

query I rowsort
SELECT ALL + - col0 * + 78 AS col2 FROM tab2 cor0
----
-3588
-4992
-5850

onlyif mysql # aggregate syntax: 
query II rowsort label-7189
SELECT DISTINCT - + 12 AS col0, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-12
3

skipif mysql # not compatible
query II rowsort label-7189
SELECT DISTINCT - + 12 AS col0, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-12
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7190
SELECT ALL - CAST( NULL AS DECIMAL ) - col0 + + CAST( + col2 AS SIGNED ) * + - col2 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7190
SELECT ALL - CAST ( NULL AS REAL ) - col0 + + CAST ( + col2 AS INTEGER ) * + - col2 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 1 * - col2 + - col1 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT + + 73 * - + ( - 4 ) FROM tab1 AS cor0
----
292
292
292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7193
SELECT - col1 * - CAST( + + 53 AS SIGNED ) - col0 AS col1 FROM tab0
----
-44
1026
4278

skipif mysql # not compatible
query I rowsort label-7193
SELECT - col1 * - CAST ( + + 53 AS INTEGER ) - col0 AS col1 FROM tab0
----
-44
1026
4278

query I rowsort
SELECT - 16 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query II rowsort
SELECT col0 + - 20, col2 AS col2 FROM tab1 AS cor0
----
31
96
65
59
71
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT + MIN( - 86 ) col2 FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7196
SELECT + MIN ( - 86 ) col2 FROM tab0 AS cor0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-7197
SELECT DISTINCT + ( - 51 ) DIV + - col2 AS col0 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7197
SELECT DISTINCT + ( - 51 ) / + - col2 AS col0 FROM tab2 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7198
SELECT DISTINCT - COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7198
SELECT DISTINCT - COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT COUNT( * ) * 31 + - - 79 AS col2 FROM tab2 cor0
----
172

skipif mysql # not compatible
query I rowsort label-7199
SELECT COUNT ( * ) * 31 + - - 79 AS col2 FROM tab2 cor0
----
172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 col2 FROM tab1 AS cor0
----
67
67
67

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 + col2 + + col2 IS NOT NULL
----

query I rowsort
SELECT col2 * + 60 * - - 40 AS col1 FROM tab2
----
139200
55200
96000

query I rowsort
SELECT + 79 * 20 FROM tab1 AS cor0
----
1580
1580
1580

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * + + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + + col0 ) col1 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT ALL - 12 * - col2 AS col0 FROM tab1 WHERE NOT NULL > ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT ( - 2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7207
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT ( - 2 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT COUNT( - 3 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7208
SELECT COUNT ( - 3 ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 4 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE + col0 * col1 + + col0 BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7211
SELECT ALL ( COUNT( * ) ) DIV COUNT( * ) AS col0 FROM tab1 WHERE NOT + col0 IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-7211
SELECT ALL ( COUNT ( * ) ) / COUNT ( * ) AS col0 FROM tab1 WHERE NOT + col0 IS NULL
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col2 AND ( NULL )
----

query I rowsort
SELECT ( col0 ) * ( col1 ) + + col0 FROM tab1
----
4368
510
765

query I rowsort
SELECT ( + col2 ) * + col0 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT DISTINCT col2 + 90 FROM tab2
----
113
130
148

query I rowsort
SELECT 78 + col0 FROM tab2
----
124
142
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7217
SELECT ALL + 89 / 53 + 47 * CAST( NULL AS SIGNED ) col0 FROM tab2 WHERE NULL IN ( + 75 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7217
SELECT ALL + 89 / 53 + 47 * CAST ( NULL AS INTEGER ) col0 FROM tab2 WHERE NULL IN ( + 75 )
----

query I rowsort
SELECT ALL col0 * - 44 + + 61 * - 38 FROM tab0
----
-2978
-6146
-6586

query I rowsort
SELECT ALL + 86 + col0 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( + 11 ) - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * ( - col0 ) + + col1 FROM tab1
----
430
4324
728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7222
SELECT CAST( COUNT( * ) AS SIGNED ) * + SUM( DISTINCT - col1 + + col0 ) + 93 * COUNT( * ) AS col1 FROM tab0
----
567

skipif mysql # not compatible
query I rowsort label-7222
SELECT CAST ( COUNT ( * ) AS INTEGER ) * + SUM ( DISTINCT - col1 + + col0 ) + 93 * COUNT ( * ) AS col1 FROM tab0
----
567

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-7223
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) FROM tab2
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 + col0 * 82 col1 FROM tab0
----
17755
3439
7234

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 51 NOT IN ( ( col0 ) )
----

query I rowsort
SELECT 50 + + col2 AS col1 FROM tab2
----
108
73
90

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 - 9 <> NULL
----

query I rowsort
SELECT - 13 + col2 FROM tab2
----
10
27
45

query I rowsort
SELECT 94 + col0 * ( - col2 ) FROM tab2
----
-2466
-4256
-964

query I rowsort
SELECT - col2 + 52 FROM tab0 WHERE col1 = ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( 62 ) AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN ( + 68 + - 73 * ( 33 ) ) AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7233
SELECT 17 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7233
SELECT 17 / + col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7234
SELECT COUNT( * ) DIV 27 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7234
SELECT COUNT ( * ) / 27 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT SUM( DISTINCT - 28 ) * + 62 AS col1 FROM tab2
----
-1736

skipif mysql # not compatible
query I rowsort label-7235
SELECT SUM ( DISTINCT - 28 ) * + 62 AS col1 FROM tab2
----
-1736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 82 col0 FROM tab0
----
1230
7134
7954

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 43 * col0 BETWEEN ( - 99 + col2 ) AND NULL
----

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT + col1 + 39 NOT IN ( + col1 / - 46 )
----

query I rowsort
SELECT + 26 * col0 FROM tab2
----
1196
1664
1950

query I rowsort
SELECT - 92 * - col1 FROM tab2
----
4692
6164
7084

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7241
SELECT ALL COUNT( ALL + 24 ) FROM tab1 WHERE NOT col0 / col0 + CAST( col0 - - col2 AS DECIMAL ) * col1 NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL COUNT ( ALL + 24 ) FROM tab1 WHERE NOT col0 / col0 + CAST ( col0 - - col2 AS REAL ) * col1 NOT BETWEEN ( NULL ) AND NULL
----
0

query I rowsort
SELECT + ( + 59 ) * - col0 FROM tab0
----
-5133
-5723
-885

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT + COUNT( * ) * + COUNT( ALL 60 ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7243
SELECT + COUNT ( * ) * + COUNT ( ALL 60 ) AS col1 FROM tab0 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= - col2
----

query I rowsort
SELECT ( col0 ) * + col2 AS col1 FROM tab2 AS cor0 WHERE NOT col2 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT ALL - SUM( ALL - col2 ) AS col2 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL - SUM ( ALL - col2 ) AS col2 FROM tab0 cor0
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7247
SELECT COUNT( * ) DIV + COUNT( DISTINCT - CAST( - col0 AS SIGNED ) ) + - SUM( DISTINCT col1 ) * 73 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4817

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7247
SELECT COUNT ( * ) / + COUNT ( DISTINCT - CAST ( - col0 AS INTEGER ) ) + - SUM ( DISTINCT col1 ) * 73 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4817

query I rowsort
SELECT DISTINCT - 58 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 <= ( + ( 15 ) + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT DISTINCT - - MAX( - 19 ) AS col2 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-7250
SELECT DISTINCT - - MAX ( - 19 ) AS col2 FROM tab2 AS cor0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7251
SELECT DISTINCT + 67 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7251
SELECT DISTINCT + 67 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7252
SELECT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-7252
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT - ( - 99 ) * COUNT( * ) AS col0 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-7253
SELECT - ( - 99 ) * COUNT ( * ) AS col0 FROM tab0
----
297

query I rowsort
SELECT DISTINCT 78 * + + 47 FROM tab0
----
3666

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT DISTINCT + MIN( ALL 67 ) * - 49 AS col2 FROM tab2
----
-3283

skipif mysql # not compatible
query I rowsort label-7255
SELECT DISTINCT + MIN ( ALL 67 ) * - 49 AS col2 FROM tab2
----
-3283

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT ALL MAX( - + 7 ) * + 29 AS col2 FROM tab2
----
-203

skipif mysql # not compatible
query I rowsort label-7256
SELECT ALL MAX ( - + 7 ) * + 29 AS col2 FROM tab2
----
-203

query I rowsort
SELECT DISTINCT col2 * 98 FROM tab2 WHERE NOT ( col1 + - col1 ) IS NULL
----
2254
3920
5684

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7258
SELECT SUM( ALL - 35 ) DIV 81 AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-7258
SELECT SUM ( ALL - 35 ) / 81 AS col1 FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7259
SELECT ALL + col2 DIV + 70 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7259
SELECT ALL + col2 / + 70 AS col1 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 23 col1 FROM tab1 AS cor0
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT COUNT( * ) * - 49 AS col1 FROM tab0
----
-147

skipif mysql # not compatible
query I rowsort label-7261
SELECT COUNT ( * ) * - 49 AS col1 FROM tab0
----
-147

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND - col0
----

query I rowsort
SELECT - - 91 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT 97 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN - - 98 / - col1 AND col2
----

query I rowsort
SELECT ( + - 20 ) FROM tab2, tab1 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT 21 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT DISTINCT + MIN( ALL + col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-7267
SELECT DISTINCT + MIN ( ALL + col2 ) AS col1 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT ALL - 60 + - + COUNT( ALL - col2 ) + COUNT( * ) * + 51 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-7268
SELECT ALL - 60 + - + COUNT ( ALL - col2 ) + COUNT ( * ) * + 51 FROM tab2 AS cor0
----
90

query I rowsort
SELECT + - 60 AS col2 FROM tab0 cor0
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT ALL + SUM( 82 ) FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL + SUM ( 82 ) FROM tab0 AS cor0
----
246

query I rowsort
SELECT ALL - col1 + + - 57 AS col1 FROM tab0 AS cor0
----
-138
-58
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT DISTINCT - SUM( DISTINCT + 8 ) FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-7272
SELECT DISTINCT - SUM ( DISTINCT + 8 ) FROM tab2 AS cor0
----
-8

query I rowsort
SELECT ALL - col2 * col0 * - col0 AS col1 FROM tab1 AS cor0
----
249696
426275
563108

query I rowsort
SELECT - + 58 + - 77 AS col1 FROM tab1 cor0
----
-135
-135
-135

onlyif mysql # DIV for integer division: 
query III rowsort label-7275
SELECT * FROM tab2 AS cor0 WHERE col1 - 96 + col0 BETWEEN ( - col1 DIV ( - col0 ) ) AND - col1 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7275
SELECT * FROM tab2 AS cor0 WHERE col1 - 96 + col0 BETWEEN ( - col1 / ( - col0 ) ) AND - col1 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 30 * + - col2 AS col0 FROM tab1 AS cor0
----
-1770
-2040
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT - COUNT( * ) + - ( MAX( + col1 ) ) FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-7277
SELECT - COUNT ( * ) + - ( MAX ( + col1 ) ) FROM tab2
----
-80

query I rowsort
SELECT DISTINCT - 8 AS col0 FROM tab0
----
-8

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) <> 40
----

query I rowsort
SELECT 98 + 27 - - col1 * - 77 AS col0 FROM tab0
----
-1492
-6112
48

query I rowsort
SELECT ( - col2 ) AS col1 FROM tab1 WHERE NOT + col2 * + + col2 * - 87 IS NULL AND NOT col1 * - ( col1 ) <= + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7282
SELECT DISTINCT col0 DIV 72 + - - col2 - + - 42 * - col1 FROM tab1
----
-150
-1905
-492

skipif mysql # not compatible
query I rowsort label-7282
SELECT DISTINCT col0 / 72 + - - col2 - + - 42 * - col1 FROM tab1
----
-150
-1905
-492

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col2 / + 71 * - 94 + col1 / col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT DISTINCT + MIN( - col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-7284
SELECT DISTINCT + MIN ( - col2 ) FROM tab1
----
-96

query I rowsort
SELECT DISTINCT col0 + - - col1 FROM tab0
----
108
96
98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 16 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE col1 / + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7288
SELECT - CAST( 82 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-7288
SELECT - CAST ( 82 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-82
-82
-82

query I rowsort
SELECT DISTINCT - + 24 - + - col1 AS col1 FROM tab1 AS cor0
----
-10
-19
23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 88 - 40 * - col0 + 38 NOT BETWEEN ( 91 ) AND ( + 55 + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE + + col0 < + col1
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7292
SELECT CAST( + 37 AS SIGNED ) * col2 AS col0 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7292
SELECT CAST ( + 37 AS INTEGER ) * col2 AS col0 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT + MAX( ALL 99 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7293
SELECT + MAX ( ALL 99 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 32 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 * + 61 + - + 32 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 22 AS col1 FROM tab0 AS cor0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7297
SELECT - + 7 * SUM( col1 ) + 40 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7297
SELECT - + 7 * SUM ( col1 ) + 40 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT ALL - SUM( - + 93 ) FROM tab0 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-7298
SELECT ALL - SUM ( - + 93 ) FROM tab0 AS cor0
----
279

query I rowsort
SELECT DISTINCT + col1 * - 83 FROM tab1 AS cor0
----
-1162
-3901
-415

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT ALL + + COUNT( + 20 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7300
SELECT ALL + + COUNT ( + 20 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 79 col2 FROM tab0 AS cor0
----
79

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + - col1 IS NOT NULL AND NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - 62, + col0 AS col0 FROM tab0 AS cor0
----
-62
15
-62
87
-62
97

query I rowsort
SELECT DISTINCT 89 * - 71 FROM tab2 AS cor0
----
-6319

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7305
SELECT COUNT( * ) FROM tab1 WHERE NOT - col0 >= ( - CAST( NULL AS SIGNED ) * - 85 )
----
0

skipif mysql # not compatible
query I rowsort label-7305
SELECT COUNT ( * ) FROM tab1 WHERE NOT - col0 >= ( - CAST ( NULL AS INTEGER ) * - 85 )
----
0

query I rowsort
SELECT 41 AS col2 FROM tab0 WHERE NOT ( + - 28 ) IN ( col1, 42 * - col1 )
----
41
41
41

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT 74, - 50 AS col1 FROM tab2
----
74
-50
74
-50
74
-50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7310
SELECT CAST( 85 AS SIGNED ) DIV + + CAST( + col1 AS SIGNED ) FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7310
SELECT CAST ( 85 AS INTEGER ) / + + CAST ( + col1 AS INTEGER ) FROM tab2
----
1
1
1

query I rowsort
SELECT + col1 * 98 FROM tab0
----
2058
7938
98

query II rowsort
SELECT - + col2 AS col0, + col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col0 ) AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT - COUNT( * ) * + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7314
SELECT - COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

query II rowsort
SELECT ALL + col2 AS col0, + col1 FROM tab2 cor0 WHERE NOT ( NULL ) < ( + 65 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT ALL COUNT( * ) * + + 39 FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL COUNT ( * ) * + + 39 FROM tab2
----
117

query I rowsort
SELECT DISTINCT + + 88 + 17 + - + 60 * + + 16 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-855

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 66 col2 FROM tab1 AS cor0
----
-66
-66
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col0 + + 64 col1 FROM tab0 AS cor0
----
64

query I rowsort
SELECT ALL + + 84 + + + 11 + col0 FROM tab2 AS cor0
----
141
159
170

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <> + col2 / - + 93
----

query I rowsort
SELECT ALL + 30 * 18 * - col1 FROM tab0 cor0
----
-11340
-43740
-540

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > - + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7325
SELECT ALL - - MIN( DISTINCT + col1 ) DIV - + 82 col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7325
SELECT ALL - - MIN ( DISTINCT + col1 ) / - + 82 col0 FROM tab2 cor0
----
0

query II rowsort
SELECT DISTINCT col2 * - col2 AS col0, - 72 * col2 + - col0 FROM tab2 AS cor0
----
-1600
-2944
-3364
-4251
-529
-1702

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT + + col0 <> col0 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7328
SELECT ALL - - 56 DIV 79 + col1 - col0 * - + 38 * + - col1 AS col2 FROM tab2 AS cor0
----
-187187
-190883
-89097

skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL - - 56 / 79 + col1 - col0 * - + 38 * + - col1 AS col2 FROM tab2 AS cor0
----
-187187
-190883
-89097

query II rowsort
SELECT ALL 53, - ( + - col2 ) AS col0 FROM tab1
----
53
59
53
68
53
96

query II rowsort
SELECT ALL col0 * + col2 * - 0 AS col0, - col1 * + + 13 AS col2 FROM tab1 WHERE NOT NULL >= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7331
SELECT 67 - - col2 + - + CAST( + col1 AS SIGNED ) FROM tab1
----
121
149
88

skipif mysql # not compatible
query I rowsort label-7331
SELECT 67 - - col2 + - + CAST ( + col1 AS INTEGER ) FROM tab1
----
121
149
88

onlyif mysql # aggregate syntax: 
query II rowsort label-7332
SELECT ALL + COUNT( * ) + - MAX( DISTINCT - col0 ) + + 69 AS col2, - 83 col0 FROM tab2
----
118
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7332
SELECT ALL + COUNT ( * ) + - MAX ( DISTINCT - col0 ) + + 69 AS col2, - 83 col0 FROM tab2
----
118
-83

query I rowsort
SELECT + col1 - + col2 + + col2 + + 32 FROM tab0
----
113
33
53

query III rowsort
SELECT * FROM tab1 WHERE - + col1 IS NULL
----

query I rowsort
SELECT 16 + col1 * + col1 + + 99 - - 26 FROM tab2
----
2742
4630
6070

query I rowsort
SELECT ALL col2 - + col1 AS col1 FROM tab0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7337
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN + CAST( NULL AS SIGNED ) AND ( 36 )
----

skipif mysql # not compatible
query III rowsort label-7337
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN + CAST ( NULL AS INTEGER ) AND ( 36 )
----

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NULL = col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - col0 - + + col0 > 23 - + - col2
----

query I rowsort
SELECT DISTINCT - + 34 * - col0 FROM tab1 AS cor0 WHERE - 86 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= - 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT DISTINCT COUNT( col1 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7342
SELECT DISTINCT COUNT ( col1 ) FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ( - 72 ) AS col2 FROM tab0 AS cor0
----
-72
-72
-72

query I rowsort
SELECT DISTINCT 73 * 65 AS col0 FROM tab1
----
4745

query I rowsort
SELECT DISTINCT 0 * - 59 AS col0 FROM tab0
----
0

query I rowsort
SELECT + - 17 + col0 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
34
68
74

query I rowsort
SELECT ALL - col0 + + ( - - col0 ) * - col0 * - col2 + col0 * + col1 FROM tab1
----
250359
426615
567294

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT ALL + 57 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL + 57 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
171

query I rowsort
SELECT ALL col0 * - + 32 FROM tab0 AS cor0
----
-2784
-3104
-480

query I rowsort
SELECT + - col0 * - 45 FROM tab2 AS cor0
----
2070
2880
3375

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 67 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7354
SELECT DISTINCT - 68 DIV + col0 + + 73 FROM tab2 AS cor0
----
72
73

skipif mysql # not compatible
query I rowsort label-7354
SELECT DISTINCT - 68 / + col0 + + 73 FROM tab2 AS cor0
----
72
73

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + col0 )
----

query I rowsort
SELECT ALL + ( 13 ) * + col0 * 75 AS col1 FROM tab2 AS cor0
----
44850
62400
73125

query I rowsort
SELECT DISTINCT - - 28 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
28

query I rowsort
SELECT ALL 55 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT ALL - col2 + - + col0 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT ALL col2 + + + col2 + - + 68 FROM tab1 AS cor0
----
124
50
68

query I rowsort
SELECT ALL 58 * + + col0 FROM tab2 AS cor0
----
2668
3712
4350

query I rowsort
SELECT - 58 FROM tab0 AS cor0 WHERE 62 NOT BETWEEN col1 * + + col2 / + + col2 AND + - 20
----
-58
-58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7363
SELECT DISTINCT + - col1 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7363
SELECT DISTINCT + - col1 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 - + col0 * + 60 FROM tab2 AS cor0
----
-2783
-3880
-4558

query I rowsort
SELECT 98 AS col0 FROM tab1 AS cor0 WHERE NULL IN ( - 20 + col0 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT DISTINCT COUNT( * ) * + 62 FROM tab1 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-7366
SELECT DISTINCT COUNT ( * ) * + 62 FROM tab1 AS cor0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT DISTINCT - 3 - MAX( ALL + - col0 ) col0 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7367
SELECT DISTINCT - 3 - MAX ( ALL + - col0 ) col0 FROM tab1 AS cor0
----
48

query II rowsort
SELECT ALL + + col0, col1 AS col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT col0 + + ( + 23 ) AS col0 FROM tab1
----
108
114
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + 54 ) + 91 * - - 46 + - - col1 col0 FROM tab2
----
4183
4199
4209

query I rowsort
SELECT DISTINCT - col0 + + + ( + col0 ) + - col0 + + col0 - + col2 AS col0 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT - 89 + + col2 + + col2 / col2 * + 63 * + - 82 >= + 5 * + col2
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT DISTINCT + SUM( DISTINCT - + col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-7373
SELECT DISTINCT + SUM ( DISTINCT - + col2 ) FROM tab2
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-7374
SELECT ALL + + 62 - 77 DIV - + ( - - col0 ) AS col0 FROM tab1 AS cor0
----
62
62
63

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL + + 62 - 77 / - + ( - - col0 ) AS col0 FROM tab1 AS cor0
----
62
62
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT ALL + SUM( DISTINCT col0 ) AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
199

skipif mysql # not compatible
query I rowsort label-7375
SELECT ALL + SUM ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
199

query I rowsort
SELECT - 8 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT ALL - + ( COUNT( * ) ) + 52 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
43

skipif mysql # not compatible
query I rowsort label-7377
SELECT ALL - + ( COUNT ( * ) ) + 52 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
43

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( - + 92 ) * - 37 NOT IN ( + col2 * + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7379
SELECT - + CAST( + 29 AS SIGNED ) DIV col0 DIV + + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7379
SELECT - + CAST ( + 29 AS INTEGER ) / col0 / + + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * + col0 * + ( + + 7 ) * - - col2 + - col1 - + col2 + + col0 * col2 AS col0 FROM tab0 AS cor0
----
-231368
-60061
-6645376

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) NOT IN ( + + col0 )
----

query I rowsort
SELECT 75 AS col1 FROM tab2 cor0
----
75
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7384
SELECT DISTINCT SUM( ALL col0 ) AS col0, + COUNT( * ) FROM tab0
----
199
3

skipif mysql # not compatible
query II rowsort label-7384
SELECT DISTINCT SUM ( ALL col0 ) AS col0, + COUNT ( * ) FROM tab0
----
199
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7385
SELECT ALL CAST( - col0 AS SIGNED ) AS col1 FROM tab0 WHERE 66 * 14 NOT IN ( - + CAST( - + col2 AS SIGNED ), - col0 * + col1 + + 6, col2 + - - ( - CAST( col0 AS SIGNED ) ) )
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7385
SELECT ALL CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 WHERE 66 * 14 NOT IN ( - + CAST ( - + col2 AS INTEGER ), - col0 * + col1 + + 6, col2 + - - ( - CAST ( col0 AS INTEGER ) ) )
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 4 ) + col2 * - - col0 + col0 * + 30 col2 FROM tab2
----
2434
4476
6596

query I rowsort
SELECT ( col2 ) * + - 63 AS col0 FROM tab1 AS cor0
----
-3717
-4284
-6048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7388
SELECT ALL - col1 * col1 + - - 35 + + col0 + - + 31 - + col0 * - - CAST( NULL AS SIGNED ) + 60 * col1 * 58 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL - col1 * col1 + - - 35 + + col0 + - + 31 - + col0 * - - CAST ( NULL AS INTEGER ) + 60 * col1 * 58 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 19 FROM tab1 cor0 WHERE - 1 - + col1 > NULL
----

query I rowsort
SELECT 73 AS col2 FROM tab0 cor0
----
73
73
73

query I rowsort
SELECT + + 20 + col2 FROM tab1 AS cor0
----
116
79
88

query I rowsort
SELECT DISTINCT col2 + + 89 FROM tab1
----
148
157
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7393
SELECT 50 / CAST( NULL AS SIGNED ) + - 34 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7393
SELECT 50 / CAST ( NULL AS INTEGER ) + - 34 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7394
SELECT ALL 26 AS col0, - CAST( NULL AS DECIMAL ) col0 FROM tab1
----
26
NULL
26
NULL
26
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7394
SELECT ALL 26 AS col0, - CAST ( NULL AS REAL ) col0 FROM tab1
----
26
NULL
26
NULL
26
NULL

query I rowsort
SELECT DISTINCT - 52 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-52

query I rowsort
SELECT DISTINCT - 44 + col2 FROM tab2 AS cor0
----
-21
-4
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7397
SELECT DISTINCT + 57 AS col2, CAST( NULL AS SIGNED ) * ( + 72 ) - col1 - - col2 FROM tab0 AS cor0 WHERE ( col1 ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-7397
SELECT DISTINCT + 57 AS col2, CAST ( NULL AS INTEGER ) * ( + 72 ) - col1 - - col2 FROM tab0 AS cor0 WHERE ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT + COUNT( ALL - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7398
SELECT + COUNT ( ALL - col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT DISTINCT + MAX( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7399
SELECT DISTINCT + MAX ( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT - MAX( - ( - col1 ) ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7400
SELECT - MAX ( - ( - col1 ) ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
NULL

query I rowsort
SELECT + + 35 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
51
85
91

query I rowsort
SELECT DISTINCT 20 - + ( - 57 ) FROM tab2 cor0
----
77

query I rowsort
SELECT + col1 * - 19 * - - 62 * - 32 - + - ( + col1 ) * + - col0 AS col0 FROM tab1
----
1767435
188055
527030

query I rowsort
SELECT - 74 - + + col2 AS col0 FROM tab1
----
-133
-142
-170

query II rowsort
SELECT ALL 9, 9 * col0 AS col1 FROM tab2
----
9
414
9
576
9
675

query I rowsort
SELECT DISTINCT + 66 * + col2 * + 47 FROM tab1
----
183018
210936
297792

onlyif mysql # DIV for integer division: 
query I rowsort label-7408
SELECT DISTINCT col0 DIV - - ( - col0 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7408
SELECT DISTINCT col0 / - - ( - col0 ) AS col1 FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, + 40 * + col1 AS col2 FROM tab1
----
14
560
47
1880
5
200

query I rowsort
SELECT - ( + - ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT ALL ( ( + COUNT( * ) ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL ( ( + COUNT ( * ) ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 5 / + 32 * + + 89 * 2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 56 + - col1 ) NOT BETWEEN ( + 27 ) AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT + MIN( + ( col1 ) ) * - COUNT( * ) AS col0 FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-7415
SELECT + MIN ( + ( col1 ) ) * - COUNT ( * ) AS col0 FROM tab2
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-7416
SELECT - ( + col0 ) * 6 DIV - 3 AS col1 FROM tab2
----
128
150
92

skipif mysql # not compatible
query I rowsort label-7416
SELECT - ( + col0 ) * 6 / - 3 AS col1 FROM tab2
----
128
150
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7417
SELECT ALL + ( 1 ) / + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7417
SELECT ALL + ( 1 ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7418
SELECT + - COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7418
SELECT + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7419
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7419
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT DISTINCT - - MAX( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7420
SELECT DISTINCT - - MAX ( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
77

query I rowsort
SELECT + + ( - - col1 ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7422
SELECT - 12 DIV - 40 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7422
SELECT - 12 / - 40 AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7423
SELECT col0 DIV - + 51 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7423
SELECT col0 / - + 51 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT ( - 49 ) + + col2 AS col1 FROM tab2
----
-26
-9
9

query III rowsort
SELECT * FROM tab0 WHERE NULL <> + - col0
----

query III rowsort
SELECT * FROM tab1 WHERE + 89 >= NULL
----

query I rowsort
SELECT DISTINCT + 33 + - + col0 AS col0 FROM tab0
----
-54
-64
18

query I rowsort
SELECT 37 + 24 AS col1 FROM tab2
----
61
61
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7429
SELECT DISTINCT + col1 + + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT + col1 + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7430
SELECT DISTINCT + - col0 AS col2, - 79 * + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-7430
SELECT DISTINCT + - col0 AS col2, - 79 * + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
-51
NULL
-85
NULL
-91
NULL

query II rowsort
SELECT + 17, - 59 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
17
-59
17
-59
17
-59

query I rowsort
SELECT ALL col2 + - ( col2 ) FROM tab0 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + - 87 NOT BETWEEN NULL AND + 75
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7434
SELECT - + col1 + - col0 + + - 87 DIV col0 FROM tab2 AS cor0
----
-142
-143
-98

skipif mysql # not compatible
query I rowsort label-7434
SELECT - + col1 + - col0 + + - 87 / col0 FROM tab2 AS cor0
----
-142
-143
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT + COUNT( * ) * - COUNT( * ) + - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-7435
SELECT + COUNT ( * ) * - COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT DISTINCT - 8 + COUNT( 91 ) AS col0 FROM tab2 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7436
SELECT DISTINCT - 8 + COUNT ( 91 ) AS col0 FROM tab2 cor0
----
-5

query II rowsort
SELECT - - 68 + - col1 AS col0, col1 FROM tab2 AS cor0
----
-9
77
1
67
17
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT ALL - + COUNT( * ) + + + 84 * - + 96 FROM tab1 AS cor0
----
-8067

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL - + COUNT ( * ) + + + 84 * - + 96 FROM tab1 AS cor0
----
-8067

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT - 8 + COUNT( * ) FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7439
SELECT - 8 + COUNT ( * ) FROM tab2 AS cor0
----
-5

query I rowsort
SELECT - + 81 * - - col0 + col1 + col1 * - + col0 + - col0 FROM tab1 cor0
----
-11692
-4882
-7390

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT ALL MAX( DISTINCT + ( - + col2 ) ) - - + 70 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7441
SELECT ALL MAX ( DISTINCT + ( - + col2 ) ) - - + 70 FROM tab2 AS cor0
----
47

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - ( 52 ) NOT BETWEEN - - 45 AND + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7443
SELECT DISTINCT - col2 - + + col2 DIV - col1 FROM tab0 AS cor0
----
-10
-47
0

skipif mysql # not compatible
query I rowsort label-7443
SELECT DISTINCT - col2 - + + col2 / - col1 FROM tab0 AS cor0
----
-10
-47
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT DISTINCT + SUM( DISTINCT col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-7444
SELECT DISTINCT + SUM ( DISTINCT col2 ) AS col1 FROM tab2
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col0 * + col0 col0 FROM tab0
----
-10575
-75690
-931491

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT ALL + 0 * - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7446
SELECT ALL + 0 * - COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT ( 6 ) * - col2 * + col1 AS col0 FROM tab1 AS cor0
----
-1770
-19176
-8064

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 + - 72 * 91 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 64 + - col0 * - col2 * col1 AS col2 FROM tab2 AS cor0
----
197056
291386
53894

query I rowsort
SELECT ALL 33 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 col2 FROM tab1 AS cor0
----
42

query I rowsort
SELECT DISTINCT - ( - + col0 ) AS col1 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > ( - col1 )
----

query I rowsort
SELECT + col0 * - + 14 + col1 FROM tab2 AS cor0 WHERE + col0 < - col2
----

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE col0 NOT BETWEEN NULL AND 84 * - + col1
----
59
68
96

query I rowsort
SELECT + 88 AS col2 FROM tab2 WHERE NULL NOT BETWEEN + 9 / - 46 + - 81 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7457
SELECT col0 + + col0 + + - col0 + + 86 DIV col1 * - - col1 + + 7 AS col1, 19 FROM tab2
----
104
19
148
19
149
19

skipif mysql # not compatible
query II rowsort label-7457
SELECT col0 + + col0 + + - col0 + + 86 / col1 * - - col1 + + 7 AS col1, 19 FROM tab2
----
104
19
148
19
149
19

query I rowsort
SELECT 50 + - + col0 AS col1 FROM tab1
----
-1
-35
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT ALL + COUNT( * ) - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7459
SELECT ALL + COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT + 41 - + col0, + 33 AS col1 FROM tab1 AS cor0
----
-10
33
-44
33
-50
33

query I rowsort
SELECT + 16 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT ALL + 12 * - 17 - + 77 / - + col2 * col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7463
SELECT - - CAST( + 53 AS SIGNED ) - - + CAST( ( - - CAST( ( 4 ) AS SIGNED ) ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
57
57
57

skipif mysql # not compatible
query I rowsort label-7463
SELECT - - CAST ( + 53 AS INTEGER ) - - + CAST ( ( - - CAST ( ( 4 ) AS INTEGER ) ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT ALL + COUNT( * ) + + 74 AS col0 FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL + COUNT ( * ) + + 74 AS col0 FROM tab0 AS cor0
----
77

query I rowsort
SELECT DISTINCT 76 FROM tab2 AS cor0 WHERE + 35 IS NOT NULL
----
76

query II rowsort
SELECT DISTINCT + col1, col1 * + - col0 FROM tab2 AS cor0
----
51
-2346
67
-5025
77
-4928

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT ALL + - SUM( DISTINCT - + col0 ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL + - SUM ( DISTINCT - + col0 ) FROM tab1 cor0
----
227

query III rowsort
SELECT * FROM tab2 WHERE NOT 47 <> NULL
----

query I rowsort
SELECT DISTINCT + 39 * + col2 AS col0 FROM tab2
----
1560
2262
897

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT + - col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7470
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT + - col2 > NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 29 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 62 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 13 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 53 NOT IN ( + col1, + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * - + col1 AS col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

query II rowsort
SELECT col1 AS col1, col2 AS col0 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT - MIN( ALL col0 ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-7477
SELECT - MIN ( ALL col0 ) AS col2 FROM tab0
----
-15

query I rowsort
SELECT ALL - 34 + - 95 + + col2 * + 97 AS col1 FROM tab1
----
5594
6467
9183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col0 col0 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7480
SELECT ALL - col2 AS col0, + col2 * - + col2 * + 63 / + col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-7480
SELECT ALL - col2 AS col0, + col2 * - + col2 * + 63 / + col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col1 * - + col2 - - col2 col2, - col2 AS col0 FROM tab0 AS cor0
----
198
-99
220
-10
3854
-47

query I rowsort
SELECT ALL 77 * + 94 + + col0 FROM tab0 AS cor0
----
7253
7325
7335

query I rowsort
SELECT ALL col0 * + - col2 FROM tab0 AS cor0
----
-705
-870
-9603

query II rowsort
SELECT + 57 + col2 - - - 30, + col1 FROM tab2 AS cor0
----
50
51
67
77
85
67

query I rowsort
SELECT DISTINCT 87 * + + col2 AS col0 FROM tab2
----
2001
3480
5046

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7486
SELECT + 66 + CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7486
SELECT + 66 + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7487
SELECT ALL + col1 DIV + col2 AS col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7487
SELECT ALL + col1 / + col2 AS col2 FROM tab2
----
1
1
2

query III rowsort
SELECT * FROM tab1 WHERE + col1 BETWEEN 28 AND - 82 * + col0 + - 92
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7489
SELECT DISTINCT 14 DIV 20 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7489
SELECT DISTINCT 14 / 20 AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7490
SELECT 89 + - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7490
SELECT 89 + - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 7 FROM tab0 WHERE col1 IS NOT NULL
----
7

query I rowsort
SELECT ALL - 23 + - - col2 + + + 29 * - col0 * + - col0 FROM tab2
----
118801
163160
61364

query I rowsort
SELECT ALL + ( - col2 ) + - - 26 FROM tab2
----
-14
-32
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN ( + col1 ) + col1 + - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7495
SELECT ALL - col1 * + col1 * - 50 * - col0 + + 0 + CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL - col1 * + col1 * - 50 * - col0 + + 0 + CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT MAX( ALL col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7496
SELECT MAX ( ALL col2 ) FROM tab1 AS cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col0 + - 60 + col2 * + col0 col0 FROM tab2 AS cor0
----
2476
4273
975

query I rowsort
SELECT - - col0 - 46 AS col2 FROM tab2 AS cor0
----
0
18
29

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col2 + + - col1 ) BETWEEN 73 * col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 24 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT - SUM( DISTINCT - 21 ) FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-7501
SELECT - SUM ( DISTINCT - 21 ) FROM tab1 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT - - MIN( DISTINCT - + 51 ) AS col1 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7502
SELECT - - MIN ( DISTINCT - + 51 ) AS col1 FROM tab0 AS cor0
----
-51

query II rowsort
SELECT ( + + col1 ), + col0 * + col0 * + col0 AS col2 FROM tab0 cor0
----
1
912673
21
658503
81
3375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7504
SELECT + ( - CAST( - COUNT( * ) AS SIGNED ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7504
SELECT + ( - CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 > + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 93 * - col0 * + 96 <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7507
SELECT ALL col1, col0 DIV - col0 AS col1 FROM tab2
----
51
-1
67
-1
77
-1

skipif mysql # not compatible
query II rowsort label-7507
SELECT ALL col1, col0 / - col0 AS col1 FROM tab2
----
51
-1
67
-1
77
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT + COUNT( DISTINCT - + 37 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7508
SELECT + COUNT ( DISTINCT - + 37 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT DISTINCT + ( + col1 ) AS col0 FROM tab0 WHERE NOT - 45 NOT BETWEEN + 29 * 28 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 54 * - col1 / - 82 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col1, col0 - + 98 + - ( + col1 ) + + 64 AS col2 FROM tab1
----
-14
3
-47
10
-5
46

query I rowsort
SELECT ALL ( 67 ) FROM tab2 AS cor0
----
67
67
67

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7513
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + + col2 NOT IN ( - col2 + - - CAST( - 81 AS DECIMAL ) / + + col2 * CAST( NULL AS DECIMAL ) * + - col1, - col0 )
----

skipif mysql # not compatible
query III rowsort label-7513
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + + col2 NOT IN ( - col2 + - - CAST ( - 81 AS REAL ) / + + col2 * CAST ( NULL AS REAL ) * + - col1, - col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7514
SELECT + col1 DIV + ( + - col1 ) AS col0, col2 FROM tab1 AS cor0
----
-1
59
-1
68
-1
96

skipif mysql # not compatible
query II rowsort label-7514
SELECT + col1 / + ( + - col1 ) AS col0, col2 FROM tab1 AS cor0
----
-1
59
-1
68
-1
96

query I rowsort
SELECT ALL + 33 * + - col0 AS col2 FROM tab2
----
-1518
-2112
-2475

query I rowsort
SELECT + ( col2 ) + + col0 AS col2 FROM tab2 WHERE NOT - - 69 + ( + - 89 ) IS NULL
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7517
SELECT COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7518
SELECT + col0 + - col0 * col0 DIV - + 3 FROM tab1
----
2493
2851
918

skipif mysql # not compatible
query I rowsort label-7518
SELECT + col0 + - col0 * col0 / - + 3 FROM tab1
----
2493
2851
918

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 + + 4 NOT BETWEEN + col1 AND ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * + 93 AS col2 FROM tab0 AS cor0
----
-1395
-8091
-9021

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7521
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - CAST( NULL AS SIGNED ) * - 64 <= NULL
----

skipif mysql # not compatible
query III rowsort label-7521
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - 64 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7522
SELECT ALL + - SUM( - - 5 ) DIV - + COUNT( * ) + COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL + - SUM ( - - 5 ) / - + COUNT ( * ) + COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 * - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 16 - + 37 FROM tab0
----
-21
-21
-21

query I rowsort
SELECT - 83 AS col0 FROM tab0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
-83
-83
-83

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7527
SELECT col0 + + col2 + - CAST( + - col1 AS DECIMAL ) / - - CAST( NULL AS SIGNED ) + + + col2 + - + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7527
SELECT col0 + + col2 + - CAST ( + - col1 AS REAL ) / - - CAST ( NULL AS INTEGER ) + + + col2 + - + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + 23 FROM tab0
----
122
33
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT ALL + 89 - COUNT( * ) AS col2 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-7529
SELECT ALL + 89 - COUNT ( * ) AS col2 FROM tab2
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7530
SELECT ( + CAST( NULL AS SIGNED ) ) + 73 + + + 91 * + 16 / COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7530
SELECT ( + CAST ( NULL AS INTEGER ) ) + 73 + + + 91 * + 16 / COUNT ( * ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 29 - 67 col1 FROM tab1
----
13
47
53

query I rowsort
SELECT DISTINCT 71 - - col0 FROM tab2 cor0
----
117
135
146

query II rowsort
SELECT + 98, col0 FROM tab0
----
98
15
98
87
98
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT ALL - + COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7534
SELECT ALL - + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NOT ( - - 74 ) IS NULL )
----

query I rowsort
SELECT DISTINCT ( - col0 ) * + col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT SUM( + col2 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7537
SELECT SUM ( + col2 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ( col1 ) FROM tab1 AS cor0 WHERE NOT 88 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT DISTINCT SUM( - 52 ) AS col2 FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7539
SELECT DISTINCT SUM ( - 52 ) AS col2 FROM tab1 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT DISTINCT + ( + COUNT( * ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7540
SELECT DISTINCT + ( + COUNT ( * ) ) AS col0 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col1 * - col2 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( - - col1 ) FROM tab0
----
1
21
81

query I rowsort
SELECT ALL + ( + + col2 ) FROM tab0 WHERE + col2 + + 53 = + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7544
SELECT ALL + ( CAST( 70 AS SIGNED ) ) FROM tab2
----
70
70
70

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL + ( CAST ( 70 AS INTEGER ) ) FROM tab2
----
70
70
70

query I rowsort
SELECT DISTINCT 78 * - - col2 FROM tab0 AS cor0
----
3666
7722
780

query I rowsort
SELECT - 49 FROM tab0 AS cor0 WHERE NOT 54 IS NULL
----
-49
-49
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7547
SELECT 35 * + - CAST( - - 99 AS SIGNED ) FROM tab1, tab2 cor0
----
9 values hashing to c62a32fae9a58b9127f3b38984c5ceaa

skipif mysql # not compatible
query I rowsort label-7547
SELECT 35 * + - CAST ( - - 99 AS INTEGER ) FROM tab1, tab2 cor0
----
9 values hashing to c62a32fae9a58b9127f3b38984c5ceaa

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NULL <> + + 73
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7549
SELECT ALL - 87 + 24 DIV - col2 + + col0 AS col0 FROM tab2 AS cor0
----
-12
-23
-42

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL - 87 + 24 / - col2 + + col0 AS col0 FROM tab2 AS cor0
----
-12
-23
-42

query I rowsort
SELECT + col1 + col1 + + col1 AS col2 FROM tab2 AS cor0
----
153
201
231

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7551
SELECT ALL + + col0 - - + CAST( + 83 AS SIGNED ) DIV - col2 AS col0 FROM tab0 AS cor0
----
14
79
97

skipif mysql # not compatible
query I rowsort label-7551
SELECT ALL + + col0 - - + CAST ( + 83 AS INTEGER ) / - col2 AS col0 FROM tab0 AS cor0
----
14
79
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7552
SELECT DISTINCT + - COUNT( + CAST( - + 62 AS DECIMAL ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7552
SELECT DISTINCT + - COUNT ( + CAST ( - + 62 AS REAL ) ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT 14 * + COUNT( * ) + ( - COUNT( * ) ) FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-7553
SELECT 14 * + COUNT ( * ) + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
39

query I rowsort
SELECT col2 * + col0 + + col2 AS col2 FROM tab0
----
752
880
9702

onlyif mysql # DIV for integer division: 
query I rowsort label-7555
SELECT + col1 DIV + 55 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7555
SELECT + col1 / + 55 AS col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7556
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE NOT + + CAST( + + 62 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7556
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE NOT + + CAST ( + + 62 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 28 + + col2 * col0 FROM tab2
----
1030
2532
4322

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT ALL - COUNT( * ) + - + COUNT( * ) - + ( COUNT( * ) ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-7558
SELECT ALL - COUNT ( * ) + - + COUNT ( * ) - + ( COUNT ( * ) ) FROM tab1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 - col1 col1, - col2 * - col1 col2 FROM tab2 AS cor0
----
-141
3080
-142
3886
-97
1173

query I rowsort
SELECT - col0 - - - 20 AS col1 FROM tab0 AS cor0
----
-107
-117
-35

query I rowsort
SELECT + 76 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT ALL col1 * + col0 * - - col0 FROM tab0
----
158949
18225
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT DISTINCT - - ( + COUNT( * ) ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-7563
SELECT DISTINCT - - ( + COUNT ( * ) ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT ALL + MIN( ALL + 8 ) * + 43 AS col1 FROM tab1 cor0
----
344

skipif mysql # not compatible
query I rowsort label-7564
SELECT ALL + MIN ( ALL + 8 ) * + 43 AS col1 FROM tab1 cor0
----
344

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7565
SELECT ( - 10 ) DIV CAST( + col0 AS SIGNED ) col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7565
SELECT ( - 10 ) / CAST ( + col0 AS INTEGER ) col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 34 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL ( ( + 36 ) ) AS col0, col0 * + + 67 + - col2 * - 89 + - + col1 * - 20 AS col0 FROM tab0 AS cor0
----
36
15330
36
6808
36
7139

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT ALL MAX( - col0 ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-7568
SELECT ALL MAX ( - col0 ) AS col0 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT + 0 AS col1 FROM tab1 AS cor0 WHERE NOT 48 + - col2 IS NULL
----
0
0
0

query II rowsort
SELECT + - col2, col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

query I rowsort
SELECT + - 40 * col2 AS col2 FROM tab1 AS cor0
----
-2360
-2720
-3840

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 69 * - ( - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + ( - 36 ) FROM tab2 AS cor0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT DISTINCT MIN( DISTINCT + - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7574
SELECT DISTINCT MIN ( DISTINCT + - col0 ) FROM tab1 AS cor0
----
-91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( + 75 ) IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT DISTINCT MIN( DISTINCT + col2 ) col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7576
SELECT DISTINCT MIN ( DISTINCT + col2 ) col0 FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT + 78 + - col2 FROM tab0 cor0 WHERE NULL BETWEEN 60 * + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT DISTINCT + COUNT( 95 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7578
SELECT DISTINCT + COUNT ( 95 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT ALL + 28 + col1 FROM tab1
----
33
42
75

query I rowsort
SELECT ALL ( + 60 ) + - 54 + - col0 FROM tab1
----
-45
-79
-85

query III rowsort
SELECT col1, col1 * + + 63 + + col1 - - - col2 * + 0 + - - col2 * - ( + - 12 ) AS col1, col0 + - col2 * + 70 FROM tab1
----
9 values hashing to 75593b322694c8e8f6fad383f82e0dae

query I rowsort
SELECT ALL - 56 AS col2 FROM tab0 WHERE NOT ( NOT col1 IS NOT NULL )
----
-56
-56
-56

query I rowsort
SELECT ALL + + ( - + col0 ) FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT - + col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-59
-68
-96

query II rowsort
SELECT - - 37 AS col1, - col0 AS col2 FROM tab2 AS cor0
----
37
-46
37
-64
37
-75

query I rowsort
SELECT DISTINCT + + 56 AS col1 FROM tab0 AS cor0
----
56

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 / 72 * 48 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - ( + 15 ) * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT DISTINCT COUNT( * ) + 19 AS col1 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT COUNT ( * ) + 19 AS col1 FROM tab0
----
22

query I rowsort
SELECT ALL - col1 * - col2 * + 14 + + col2 FROM tab1 AS cor0
----
18912
4189
44812

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7591
SELECT - CAST( NULL AS SIGNED ) * - 41 - - col1 AS col1 FROM tab1 cor0 WHERE + ( col0 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7591
SELECT - CAST ( NULL AS INTEGER ) * - 41 - - col1 AS col1 FROM tab1 cor0 WHERE + ( col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT ALL + - COUNT( DISTINCT - 47 ) FROM tab0 AS cor0 WHERE ( NOT + col1 * - 66 BETWEEN ( + 98 ) AND - 40 / - col2 * col0 )
----
-1

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL + - COUNT ( DISTINCT - 47 ) FROM tab0 AS cor0 WHERE ( NOT + col1 * - 66 BETWEEN ( + 98 ) AND - 40 / - col2 * col0 )
----
-1

query I rowsort
SELECT ALL + 1 - + col2 AS col2 FROM tab2 AS cor0
----
-22
-39
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
13
13
13

query I rowsort
SELECT DISTINCT col1 * col2 + col1 + ( 57 ) FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

query II rowsort
SELECT DISTINCT - col2 AS col0, col0 + 46 * + col1 FROM tab2
----
-23
2392
-40
3606
-58
3157

query III rowsort
SELECT * FROM tab2 WHERE + ( - - col0 ) <> + 19
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT DISTINCT - MIN( - 43 ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-7598
SELECT DISTINCT - MIN ( - 43 ) FROM tab2
----
43

query II rowsort
SELECT DISTINCT - 27 * + 57 + - - col0, col0 * + col0 AS col0 FROM tab0
----
-1442
9409
-1452
7569
-1524
225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, - col1 * - col2 AS col0 FROM tab1
----
51
1344
85
295
91
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7601
SELECT DISTINCT + + 51 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT + + 51 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7602
SELECT CAST( NULL AS SIGNED ) + 16 - - CAST( NULL AS SIGNED ) * + col1 * 48 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7602
SELECT CAST ( NULL AS INTEGER ) + 16 - - CAST ( NULL AS INTEGER ) * + col1 * 48 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT - COUNT( * ) + - 40 AS col2 FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-7604
SELECT - COUNT ( * ) + - 40 AS col2 FROM tab1
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-7605
SELECT - 70 DIV 33 * - col2 AS col0 FROM tab1 AS cor0
----
118
136
192

skipif mysql # not compatible
query I rowsort label-7605
SELECT - 70 / 33 * - col2 AS col0 FROM tab1 AS cor0
----
118
136
192

query II rowsort
SELECT DISTINCT + col0, 64 * - + col0 FROM tab0 AS cor0
----
15
-960
87
-5568
97
-6208

query II rowsort
SELECT ALL - col2 AS col0, + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7608
SELECT ALL - ( + - CAST( + col1 AS SIGNED ) ) col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7608
SELECT ALL - ( + - CAST ( + col1 AS INTEGER ) ) col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT 36 * 79 FROM tab2 AS cor0
----
2844
2844
2844

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7610
SELECT ALL COUNT( * ) * + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7610
SELECT ALL COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT ALL + 95 * + + COUNT( * ) AS col1 FROM tab0
----
285

skipif mysql # not compatible
query I rowsort label-7611
SELECT ALL + 95 * + + COUNT ( * ) AS col1 FROM tab0
----
285

onlyif mysql # aggregate syntax: 
query II rowsort label-7612
SELECT ( - COUNT( * ) ), + COUNT( * ) AS col1 FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-7612
SELECT ( - COUNT ( * ) ), + COUNT ( * ) AS col1 FROM tab0
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7613
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> - CAST( - col0 AS SIGNED ) * + + col2
----

skipif mysql # not compatible
query III rowsort label-7613
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> - CAST ( - col0 AS INTEGER ) * + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT DISTINCT - COUNT( DISTINCT + 28 ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT - COUNT ( DISTINCT + 28 ) AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT 80 * - 32 * + 47 FROM tab1
----
-120320

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT DISTINCT 7 + + COUNT( DISTINCT + col2 ) * COUNT( * ) col2 FROM tab0
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7617
SELECT DISTINCT 7 + + COUNT ( DISTINCT + col2 ) * COUNT ( * ) col2 FROM tab0
----
16

query I rowsort
SELECT col1 + + 89 FROM tab2
----
140
156
166

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT + COUNT( * ) + - COUNT( * ) col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7619
SELECT + COUNT ( * ) + - COUNT ( * ) col1 FROM tab2
----
0

query I rowsort
SELECT + 61 + + - col1 FROM tab1
----
14
47
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT DISTINCT - MAX( DISTINCT - + 81 ) AS col2 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-7621
SELECT DISTINCT - MAX ( DISTINCT - + 81 ) AS col2 FROM tab1
----
81

query I rowsort
SELECT DISTINCT + col2 + + + 25 + + col0 FROM tab0 AS cor0
----
122
221
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 col1, col0 - - 0 AS col1 FROM tab2 AS cor0
----
23
46
40
64
58
75

query I rowsort
SELECT ALL - + ( + col0 ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT + COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7625
SELECT + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7626
SELECT DISTINCT + 71 * + CAST( + COUNT( * ) AS SIGNED ) FROM tab0
----
213

skipif mysql # not compatible
query I rowsort label-7626
SELECT DISTINCT + 71 * + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0
----
213

query III rowsort
SELECT * FROM tab2 WHERE ( - + 63 + - - 1 ) NOT BETWEEN col0 + col0 * col0 / - col0 + col0 * + 7 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * - ( col0 ) FROM tab2
----
1058
2560
4350

query I rowsort
SELECT 82 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # aggregate syntax: 
query II rowsort label-7630
SELECT + COUNT( * ) - - 63 AS col2, + 50 FROM tab0
----
66
50

skipif mysql # not compatible
query II rowsort label-7630
SELECT + COUNT ( * ) - - 63 AS col2, + 50 FROM tab0
----
66
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT DISTINCT + COUNT( * ) - - 64 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-7631
SELECT DISTINCT + COUNT ( * ) - - 64 FROM tab0 AS cor0
----
67

query I rowsort
SELECT ALL ( - col0 ) * 53 + 54 FROM tab1 AS cor0
----
-2649
-4451
-4769

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 78 > - 60 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + 40 col2 FROM tab0 AS cor0
----
-25
47
57

query I rowsort
SELECT 49 + - + col2 AS col1 FROM tab0 AS cor0
----
-50
2
39

query I rowsort
SELECT DISTINCT + - 6 - + col2 FROM tab2 AS cor0
----
-29
-46
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7637
SELECT - - COUNT( * ) DIV + 78 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7637
SELECT - - COUNT ( * ) / + 78 FROM tab1 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 + + 65 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7639
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7639
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT - - col0 AS col1 FROM tab2 WHERE NOT ( NOT + 26 IS NOT NULL )
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7641
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7641
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7642
SELECT DISTINCT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - SUM( col1 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7642
SELECT DISTINCT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - SUM ( col1 ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7643
SELECT MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7643
SELECT MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

query II rowsort
SELECT ALL 47, col0 AS col0 FROM tab1
----
47
51
47
85
47
91

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col0, 97 AS col2 FROM tab0 AS cor0
----
-1
97
-21
97
-81
97

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT DISTINCT - - MIN( ALL - 41 ) * 85 * - COUNT( * ) FROM tab1 AS cor0
----
10455

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT - - MIN ( ALL - 41 ) * 85 * - COUNT ( * ) FROM tab1 AS cor0
----
10455

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7649
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT ALL - col2 * + - col2 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT ALL 59 * MAX( - + col0 ) AS col2 FROM tab0
----
-885

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL 59 * MAX ( - + col0 ) AS col2 FROM tab0
----
-885

query I rowsort
SELECT DISTINCT col2 * - - col0 * + - col2 FROM tab2
----
-102400
-24334
-252300

query III rowsort
SELECT * FROM tab0 WHERE + 99 * - 60 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE - + col1 <= NULL
----

query I rowsort
SELECT + ( - - 82 ) FROM tab0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT - SUM( 77 ) FROM tab0
----
-231

skipif mysql # not compatible
query I rowsort label-7656
SELECT - SUM ( 77 ) FROM tab0
----
-231

query I rowsort
SELECT ALL + col1 + + 86 + - ( - col1 ) * + 39 * + - 79 FROM tab0
----
-249394
-2994
-64594

query I rowsort
SELECT DISTINCT - col0 * - col1 + - + ( col0 ) FROM tab2
----
2300
4864
4950

onlyif mysql # DIV for integer division: 
query I rowsort label-7659
SELECT DISTINCT 90 * 56 DIV - + col2 col2 FROM tab1
----
-52
-74
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7659
SELECT DISTINCT 90 * 56 / - + col2 col2 FROM tab1
----
-52
-74
-85

query I rowsort
SELECT + col1 * - - col0 + - 23 AS col0 FROM tab0 AS cor0
----
1192
1804
74

onlyif mysql # DIV for integer division: 
query II rowsort label-7661
SELECT DISTINCT - 56 DIV - col1, 89 col1 FROM tab0 AS cor0
----
0
89
2
89
56
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7661
SELECT DISTINCT - 56 / - col1, 89 col1 FROM tab0 AS cor0
----
0
89
2
89
56
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7662
SELECT - + col1 / CAST( NULL AS SIGNED ) + col0 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7662
SELECT - + col1 / CAST ( NULL AS INTEGER ) + col0 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 66 col0 FROM tab0 WHERE NOT ( - col1 + - - col1 IS NULL )
----
66

query I rowsort
SELECT + ( + 39 ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query III rowsort
SELECT * FROM tab2 WHERE - + col0 NOT IN ( - + 84, 82, col2 * 55 / - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT ALL + + COUNT( * ) + - 92 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-83

skipif mysql # not compatible
query I rowsort label-7666
SELECT ALL + + COUNT ( * ) + - 92 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-7667
SELECT DISTINCT + col1 + col1 DIV + + col0 + + 26 FROM tab0
----
112
27
47

skipif mysql # not compatible
query I rowsort label-7667
SELECT DISTINCT + col1 + col1 / + + col0 + + 26 FROM tab0
----
112
27
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7668
SELECT ( + CAST( + + col0 AS SIGNED ) ) AS col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7668
SELECT ( + CAST ( + + col0 AS INTEGER ) ) AS col2 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT DISTINCT COUNT( * ) - 91 AS col0 FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-7669
SELECT DISTINCT COUNT ( * ) - 91 AS col0 FROM tab2 AS cor0
----
-88

query I rowsort
SELECT ALL + ( - + ( + - col0 ) ) + + 61 AS col2 FROM tab2 AS cor0
----
107
125
136

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT ALL - 42 - - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL - 42 - - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7672
SELECT + col2 - - CAST( col2 AS SIGNED ) + col2 AS col1 FROM tab0 AS cor0
----
141
297
30

skipif mysql # not compatible
query I rowsort label-7672
SELECT + col2 - - CAST ( col2 AS INTEGER ) + col2 AS col1 FROM tab0 AS cor0
----
141
297
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT ALL + + COUNT( * ) - 71 * - + COUNT( DISTINCT + col2 ) * 7 FROM tab0 AS cor0
----
1494

skipif mysql # not compatible
query I rowsort label-7673
SELECT ALL + + COUNT ( * ) - 71 * - + COUNT ( DISTINCT + col2 ) * 7 FROM tab0 AS cor0
----
1494

query I rowsort
SELECT - col1 - 10 * + 41 FROM tab0 AS cor0
----
-411
-431
-491

query I rowsort
SELECT DISTINCT + ( + - 8 ) AS col1 FROM tab1
----
-8

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 IN ( - 47, col2 * + - 29 + + col0, - col2, col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) col2 FROM tab2
----
23
40
58

query II rowsort
SELECT ALL + 6 AS col1, 29 AS col0 FROM tab2
----
6
29
6
29
6
29

query II rowsort
SELECT - 49 AS col0, col1 FROM tab0
----
-49
1
-49
21
-49
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT DISTINCT MAX( DISTINCT col0 ) AS col1 FROM tab1 WHERE NOT + - col1 <= 11 + - ( + col0 )
----
91

skipif mysql # not compatible
query I rowsort label-7680
SELECT DISTINCT MAX ( DISTINCT col0 ) AS col1 FROM tab1 WHERE NOT + - col1 <= 11 + - ( + col0 )
----
91

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) >= + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 cor0 WHERE NOT + col0 * - + 48 - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 68 col2 FROM tab0 AS cor0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7684
SELECT DISTINCT + ( + col0 ) * + col2 + - 64 DIV col0 AS col2 FROM tab2 AS cor0
----
1057
2559
4350

skipif mysql # not compatible
query I rowsort label-7684
SELECT DISTINCT + ( + col0 ) * + col2 + - 64 / col0 AS col2 FROM tab2 AS cor0
----
1057
2559
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - - ( + + col0 ), col0 AS col2, - + col0 col2 FROM tab1 cor0
----
9 values hashing to bf6b4eb19b89f95712d970af06b12fc7

query II rowsort
SELECT ALL - 71 - col0, - col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 * - - col2 <> + + 82 * + 99
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7687
SELECT col0 * - 41 * col0 - + ( + CAST( NULL AS DECIMAL ) ) - + col1 * + + col1 + - col0 + - 11 + 73 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7687
SELECT col0 * - 41 * col0 - + ( + CAST ( NULL AS REAL ) ) - + col1 * + + col1 + - col0 + - 11 + 73 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 28 * col1 col1 FROM tab2 AS cor0
----
1479
1943
2233

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7689
SELECT * FROM tab1 WHERE CAST( 39 AS SIGNED ) * - + col2 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7689
SELECT * FROM tab1 WHERE CAST ( 39 AS INTEGER ) * - + col2 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT + col1 + - ( + + ( 41 ) ) FROM tab2
----
10
26
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT ALL SUM( 66 ) AS col0 FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL SUM ( 66 ) AS col0 FROM tab0
----
198

query I rowsort
SELECT - + 57 FROM tab0 WHERE NULL IS NULL
----
-57
-57
-57

query I rowsort
SELECT ALL - col2 * - - 49 FROM tab2
----
-1127
-1960
-2842

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7695
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( 83 ) * col0 - - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7695
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( 83 ) * col0 - - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + - col1 * - - col1 FROM tab1 AS cor0
----
-196
-2209
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 39, + col2 * 63 col1 FROM tab0 AS cor0
----
39
2961
39
6237
39
630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7698
SELECT - CAST( - - 11 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-7698
SELECT - CAST ( - - 11 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT DISTINCT + MAX( ALL + + 94 ) FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-7699
SELECT DISTINCT + MAX ( ALL + + 94 ) FROM tab2 AS cor0
----
94

query I rowsort
SELECT ALL + - col1 * - 70 FROM tab0 AS cor0
----
1470
5670
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7701
SELECT - 27 DIV COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-7701
SELECT - 27 / COUNT ( * ) FROM tab1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7702
SELECT DISTINCT col1 DIV - 51 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7702
SELECT DISTINCT col1 / - 51 FROM tab2
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 + col0 BETWEEN + col1 - + col1 AND ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7704
SELECT ALL + ( - 81 ) + + ( + col2 + + col0 DIV + ( - col2 * + col1 ) ) FROM tab1
----
-13
-22
15

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL + ( - 81 ) + + ( + col2 + + col0 / + ( - col2 * + col1 ) ) FROM tab1
----
-13
-22
15

query I rowsort
SELECT col2 FROM tab1 WHERE NOT - 12 IS NULL
----
59
68
96

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NULL IS NULL
----
-51
-67
-77

query I rowsort
SELECT ( + ( - col0 ) ) * + col0 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7708
SELECT ALL + 59 * + col0 AS col0 FROM tab0 WHERE - ( CAST( NULL AS SIGNED ) ) = col2
----

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL + 59 * + col0 AS col0 FROM tab0 WHERE - ( CAST ( NULL AS INTEGER ) ) = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT - COUNT( * ) + - COUNT( * ) AS col2 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-7709
SELECT - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2
----
-6

query I rowsort
SELECT - ( col1 ) * 34 FROM tab0
----
-2754
-34
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT ALL - 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-7711
SELECT ALL - COUNT ( * ) col1 FROM tab2 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT 2 * + ( col2 ) FROM tab1
----
118
136
192

query I rowsort
SELECT + col1 * 49 AS col2 FROM tab0
----
1029
3969
49

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - col1 AND 35 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT ALL + COUNT( + col2 ) * + 4 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-7715
SELECT ALL + COUNT ( + col2 ) * + 4 FROM tab0
----
12

query I rowsort
SELECT + col1 * 13 FROM tab0 WHERE 44 * col2 < NULL
----

query I rowsort
SELECT ALL + col2 * + col2 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ALL ( + 42 ) FROM tab1
----
42
42
42

query I rowsort
SELECT 75 + col0 * col2 FROM tab0
----
780
945
9678

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE ( + col0 + 83 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT DISTINCT COUNT( col1 ) + + 81 AS col1 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-7722
SELECT DISTINCT COUNT ( col1 ) + + 81 AS col1 FROM tab0
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 60 col1 FROM tab0
----
147
157
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7724
SELECT + CAST( + 42 AS SIGNED ) FROM tab1
----
42
42
42

skipif mysql # not compatible
query I rowsort label-7724
SELECT + CAST ( + 42 AS INTEGER ) FROM tab1
----
42
42
42

query I rowsort
SELECT ALL col2 * + 11 + + col2 AS col1 FROM tab1
----
1152
708
816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7726
SELECT DISTINCT + MIN( ALL col0 ) DIV 43 AS col0 FROM tab0 WHERE ( col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7726
SELECT DISTINCT + MIN ( ALL col0 ) / 43 AS col0 FROM tab0 WHERE ( col2 ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( 38 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( - col1 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7729
SELECT - col2 * col1 - col0 DIV - col0 FROM tab2
----
-1172
-3079
-3885

skipif mysql # not compatible
query I rowsort label-7729
SELECT - col2 * col1 - col0 / - col0 FROM tab2
----
-1172
-3079
-3885

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col2 ) NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT MIN( ALL - col0 ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7731
SELECT MIN ( ALL - col0 ) FROM tab0 cor0
----
-97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 ) NOT IN ( col1 - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7733
SELECT DISTINCT CAST( - col0 AS SIGNED ) DIV - col2 FROM tab0 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-7733
SELECT DISTINCT CAST ( - col0 AS INTEGER ) / - col2 FROM tab0 AS cor0
----
0
8

query I rowsort
SELECT DISTINCT 12 * col0 FROM tab2
----
552
768
900

query I rowsort
SELECT - 10 + col1 FROM tab2
----
41
57
67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + 91 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 0 / col1 + col0 >= - col2
----

query I rowsort
SELECT DISTINCT 1 * - ( - ( - col2 ) ) FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 41 AND ( - col0 )
----

query I rowsort
SELECT DISTINCT + - col0 * - 91 FROM tab1 AS cor0
----
4641
7735
8281

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7741
SELECT * FROM tab0 AS cor0 WHERE + CAST( + col0 AS SIGNED ) * col0 - - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7741
SELECT * FROM tab0 AS cor0 WHERE + CAST ( + col0 AS INTEGER ) * col0 - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT - + MAX( DISTINCT - col1 ) * COUNT( * ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7742
SELECT - + MAX ( DISTINCT - col1 ) * COUNT ( * ) FROM tab1 AS cor0
----
15

query I rowsort
SELECT ALL - 92 * 59 FROM tab0 cor0
----
-5428
-5428
-5428

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7744
SELECT ALL - - col2 + - CAST( - col0 AS SIGNED ) * ( - col1 + - 17 * col2 ) FROM tab2 AS cor0
----
-20309
-48408
-78917

skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL - - col2 + - CAST ( - col0 AS INTEGER ) * ( - col1 + - 17 * col2 ) FROM tab2 AS cor0
----
-20309
-48408
-78917

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( col2 ) * 81 + col0 NOT BETWEEN 90 AND - 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT DISTINCT + MIN( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7746
SELECT DISTINCT + MIN ( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT ( COUNT( * ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7747
SELECT ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( col0 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 18 * + - ( + 57 ) FROM tab0
----
-1026
-1026
-1026

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7750
SELECT DISTINCT + CAST( - 47 AS SIGNED ) + col0 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
38
4
44

skipif mysql # not compatible
query I rowsort label-7750
SELECT DISTINCT + CAST ( - 47 AS INTEGER ) + col0 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
38
4
44

query I rowsort
SELECT DISTINCT 43 * - + 94 + 2 FROM tab2
----
-4040

query I rowsort
SELECT AVG ( col2 ) FROM tab1 WHERE 98 < ( 73 )
----
NULL

query I rowsort
SELECT - col2 + - col1 + ( col0 ) FROM tab0
----
-113
-3
56

query I rowsort
SELECT col1 + + + 91 - col0 AS col0 FROM tab1
----
11
47
54

query I rowsort
SELECT DISTINCT col2 + + col2 + col0 AS col0 FROM tab2
----
144
191
92

query I rowsort
SELECT ALL 27 FROM tab2 WHERE ( - col2 ) BETWEEN ( 69 + + col0 * - col2 ) AND NULL
----

query I rowsort
SELECT ALL - ( - 53 ) - - col0 FROM tab1
----
104
138
144

query I rowsort
SELECT + col1 + - col1 - + col2 * + col2 AS col2 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT - 42 + - col1 AS col1 FROM tab1 AS cor0
----
-47
-56
-89

query I rowsort
SELECT ALL - + 71 + col2 AS col2 FROM tab2 AS cor0
----
-13
-31
-48

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col2 ) NOT BETWEEN - 11 AND - 53 * col2 + col0
----

query I rowsort
SELECT col1 * + 39 FROM tab0
----
3159
39
819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7763
SELECT CAST( NULL AS SIGNED ) * - 2 * - 82 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7763
SELECT CAST ( NULL AS INTEGER ) * - 2 * - 82 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT + MAX( col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7764
SELECT + MAX ( col0 ) AS col0 FROM tab0 AS cor0
----
97

query II rowsort
SELECT - - col0 AS col2, + col2 + 49 AS col0 FROM tab1 AS cor0
----
51
145
85
108
91
117

onlyif mysql # DIV for integer division: 
query I rowsort label-7766
SELECT DISTINCT + col1 DIV - ( + + col0 ) * col0 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7766
SELECT DISTINCT + col1 / - ( + + col0 ) * col0 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7767
SELECT DISTINCT - col2 DIV + 30 AS col2 FROM tab1 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-7767
SELECT DISTINCT - col2 / + 30 AS col2 FROM tab1 AS cor0
----
-1
-2
-3

query I rowsort
SELECT - 47 * col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT ALL - - col0 AS col2, + 85 AS col0 FROM tab0 AS cor0
----
15
85
87
85
97
85

query I rowsort
SELECT ALL + col2 * - col0 AS col1 FROM tab2 cor0
----
-1058
-2560
-4350

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 9 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - - col2 AS col2, col0 + - col1 + col2 * + 44 AS col2 FROM tab1 cor0
----
59
2676
68
3036
96
4261

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT ALL - MAX( - col1 ) AS col1 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL - MAX ( - col1 ) AS col1 FROM tab1 cor0
----
5

query I rowsort
SELECT DISTINCT col0 * - 75 * - col1 FROM tab1 AS cor0
----
31875
320775
53550

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT ALL - ( + - COUNT( DISTINCT + 47 ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7775
SELECT ALL - ( + - COUNT ( DISTINCT + 47 ) ) FROM tab1
----
1

query I rowsort
SELECT ( - 65 ) AS col0 FROM tab1
----
-65
-65
-65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7777
SELECT col2 + - 86 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 WHERE NOT NULL > - - 69 / - + 69 + + 18
----

skipif mysql # not compatible
query I rowsort label-7777
SELECT col2 + - 86 * + CAST ( NULL AS REAL ) AS col1 FROM tab0 WHERE NOT NULL > - - 69 / - + 69 + + 18
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 BETWEEN NULL AND ( ( 66 ) + - 13 )
----
64
77
40
75
67
58

query I rowsort
SELECT + 36 * - + 20 AS col1 FROM tab0
----
-720
-720
-720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7780
SELECT + MAX( ALL + - col2 ) DIV + 80 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7780
SELECT + MAX ( ALL + - col2 ) / + 80 FROM tab2
----
0

query I rowsort
SELECT ALL col1 * - col0 * col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7782
SELECT DISTINCT + SUM( + - col0 ) AS col2, COUNT( * ) col1 FROM tab2
----
-185
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7782
SELECT DISTINCT + SUM ( + - col0 ) AS col2, COUNT ( * ) col1 FROM tab2
----
-185
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 65 * + ( - col2 ) NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col1 + + 81 * col1 > ( col2 ) )
----
97
1
99

query I rowsort
SELECT ( + + col1 ) * - - 5 * - col0 FROM tab2 AS cor0
----
-11730
-24640
-25125

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, - col0 AS col0 FROM tab2
----
-51
-46
-67
-75
-77
-64

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7790
SELECT DISTINCT - COUNT( 80 ) + - + COUNT( * ), + SUM( DISTINCT ( ( + col0 ) ) ) AS col1 FROM tab0
----
-6
199

skipif mysql # not compatible
query II rowsort label-7790
SELECT DISTINCT - COUNT ( 80 ) + - + COUNT ( * ), + SUM ( DISTINCT ( ( + col0 ) ) ) AS col1 FROM tab0
----
-6
199

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT DISTINCT + + ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7792
SELECT DISTINCT + + ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

query II rowsort
SELECT col1 * + + 63 + col1 AS col1, 88 FROM tab1 AS cor0
----
3008
88
320
88
896
88

query I rowsort
SELECT ALL ( + ( + col0 ) ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT - ( + 94 ) + - col2 + + - col2 * - + col1 FROM tab1
----
1154
142
3034

query I rowsort
SELECT + ( - col2 ) * - 85 AS col1 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
1955
3400
4930

query I rowsort
SELECT - col2 + - - 30 AS col0 FROM tab0
----
-17
-69
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 38 col0 FROM tab2
----
38

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + col2 AND ( + 5 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7800
SELECT - CAST( NULL AS DECIMAL ) + - + 3 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7800
SELECT - CAST ( NULL AS REAL ) + - + 3 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + + - 42 FROM tab1
----
43
49
9

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 < NULL )
----

query I rowsort
SELECT DISTINCT ( + col2 ) * + + col1 FROM tab1
----
1344
295
3196

query I rowsort
SELECT ALL 92 * - + 26 + ( + col2 ) + 51 AS col0 FROM tab2
----
-2283
-2301
-2318

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 + - col0 FROM tab0 WHERE ( ( - col0 ) BETWEEN ( - col2 ) AND ( NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7807
SELECT ALL - + col2 - ( - col1 ) * + - col0 * + col1 / - - col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL - + col2 - ( - col1 ) * + - col0 * + col1 / - - col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col2 AS col0, col2 FROM tab0 AS cor0 WHERE ( - col0 ) IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT DISTINCT + COUNT( * ) * + 39 AS col1 FROM tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-7809
SELECT DISTINCT + COUNT ( * ) * + 39 AS col1 FROM tab1 AS cor0
----
117

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 22 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT DISTINCT + 32 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
32

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 56 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7813
SELECT DISTINCT + col1 * - - col1 * CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7813
SELECT DISTINCT + col1 * - - col1 * CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 85 col2 FROM tab2 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT ALL + MAX( + col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL + MAX ( + col0 ) AS col0 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL > - col2 + col1 * - col1 + - col0
----
0

skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL > - col2 + col1 * - col1 + - col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7817
SELECT col1 DIV - - col1 - + CAST( - 66 AS SIGNED ) - - col0 FROM tab2 AS cor0
----
113
131
142

skipif mysql # not compatible
query I rowsort label-7817
SELECT col1 / - - col1 - + CAST ( - 66 AS INTEGER ) - - col0 FROM tab2 AS cor0
----
113
131
142

query I rowsort
SELECT - 45 * 14 AS col1 FROM tab0 AS cor0 WHERE NOT col0 + - + 37 <> - - col1
----

query I rowsort
SELECT ALL + col0 * - 20 AS col1 FROM tab1
----
-1020
-1700
-1820

query I rowsort
SELECT DISTINCT 93 FROM tab0 WHERE NULL IS NOT NULL OR NOT col2 * - - col1 > ( - + col2 * 99 + - col0 )
----

query II rowsort
SELECT DISTINCT - col2 * + + col2 * + ( - col0 ) AS col1, col0 FROM tab1
----
295885
85
420784
91
470016
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7822
SELECT DISTINCT + 52 DIV + + 64 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7822
SELECT DISTINCT + 52 / + + 64 AS col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + + 41 - - col0 FROM tab0 WHERE NULL <= col1 OR NULL IS NOT NULL
----

query I rowsort
SELECT ALL 68 * - 63 FROM tab0
----
-4284
-4284
-4284

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( 50 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 26 col2 FROM tab2 WHERE NULL < ( col1 )
----

query II rowsort
SELECT DISTINCT + col1 AS col0, - 75 * + + col1 AS col1 FROM tab0 AS cor0
----
1
-75
21
-1575
81
-6075

onlyif mysql # DIV for integer division: 
query I rowsort label-7828
SELECT + + col1 DIV - - 45 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7828
SELECT + + col1 / - - 45 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT ALL - + SUM( DISTINCT + + col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL - + SUM ( DISTINCT + + col2 ) AS col2 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT - ( - + col1 ) + - col0 - - - col0 * + col0 FROM tab1
----
-2638
-7305
-8325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7831
SELECT DISTINCT CAST( NULL AS SIGNED ) / - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7831
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 1 col0 FROM tab0 cor0
----
-15
-87
-97

query I rowsort
SELECT - col2 * 13 AS col0 FROM tab2 cor0
----
-299
-520
-754

query I rowsort
SELECT ALL + col2 * col0 - col1 FROM tab0 AS cor0
----
624
849
9602

query I rowsort
SELECT ALL + + col0 * - 98 AS col1 FROM tab2 AS cor0
----
-4508
-6272
-7350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7836
SELECT - - COUNT( * ) DIV - SUM( - col0 ) * + + ( - COUNT( + col0 ) ) + - 7 AS col1 FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-7836
SELECT - - COUNT ( * ) / - SUM ( - col0 ) * + + ( - COUNT ( + col0 ) ) + - 7 AS col1 FROM tab2 AS cor0
----
-7

query I rowsort
SELECT DISTINCT + col0 + + 1 + + 43 FROM tab2 AS cor0 WHERE NOT ( 0 ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 92 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col0 + + col0 ) <= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE + col0 NOT BETWEEN - - 32 - - - col2 AND - - ( + + col1 ) * + col0 * - - col0 * - col2 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT 76 + ( - ( - - COUNT( DISTINCT col1 ) ) ) AS col2 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-7841
SELECT 76 + ( - ( - - COUNT ( DISTINCT col1 ) ) ) AS col2 FROM tab1
----
73

query III rowsort
SELECT * FROM tab1 WHERE - - col1 NOT IN ( - col0, + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-7843
SELECT ALL + col0 + - 82 DIV 48 AS col2, + ( + 62 ) + + col1 FROM tab0
----
14
143
86
83
96
63

skipif mysql # not compatible
query II rowsort label-7843
SELECT ALL + col0 + - 82 / 48 AS col2, + ( + 62 ) + + col1 FROM tab0
----
14
143
86
83
96
63

query II rowsort
SELECT ALL + - col0 AS col2, 17 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT DISTINCT + COUNT( * ) col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7845
SELECT DISTINCT + COUNT ( * ) col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT col2 IN ( + col0, + col0 * - col2 * ( - + col0 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT - 90 * SUM( DISTINCT + col2 ) col1 FROM tab1
----
-20070

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7847
SELECT - 90 * SUM ( DISTINCT + col2 ) col1 FROM tab1
----
-20070

query I rowsort
SELECT ALL ( + col0 ) AS col2 FROM tab1 WHERE NOT + 34 IN ( col2 * col1 * 44 - + 46, col1 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT + - MAX( col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-7849
SELECT + - MAX ( col2 ) FROM tab2 AS cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 38 col2 FROM tab0 cor0
----
38
38
38

onlyif mysql # aggregate syntax: 
query II rowsort label-7851
SELECT + 46, ( + COUNT( * ) ) AS col2 FROM tab0 cor0
----
46
3

skipif mysql # not compatible
query II rowsort label-7851
SELECT + 46, ( + COUNT ( * ) ) AS col2 FROM tab0 cor0
----
46
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7852
SELECT DISTINCT + CAST( 87 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-7852
SELECT DISTINCT + CAST ( 87 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
87

query I rowsort
SELECT - - ( col2 ) / + col2 * - col1 + - col1 FROM tab2 AS cor0 WHERE NOT NULL = ( NULL )
----

query II rowsort
SELECT col2, 79 FROM tab2 AS cor0
----
23
79
40
79
58
79

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL BETWEEN NULL AND - 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT DISTINCT - 10 * - ( - SUM( - ( + 17 ) ) ) col1 FROM tab1 AS cor0
----
510

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7856
SELECT DISTINCT - 10 * - ( - SUM ( - ( + 17 ) ) ) col1 FROM tab1 AS cor0
----
510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7857
SELECT COUNT( * ) + + 17 DIV + 63 AS col2 FROM tab1 WHERE NOT ( + - col2 * - 63 * - + col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7857
SELECT COUNT ( * ) + + 17 / + 63 AS col2 FROM tab1 WHERE NOT ( + - col2 * - 63 * - + col1 ) IS NOT NULL
----
0

query II rowsort
SELECT col2 + + - 48, col2 * - col2 * + 63 * - + col0 AS col0 FROM tab2
----
-25
1533042
-8
6451200
10
15894900

onlyif mysql # aggregate syntax: 
query II rowsort label-7859
SELECT DISTINCT COUNT( DISTINCT + 70 ) AS col1, COUNT( ALL col2 ) FROM tab0
----
1
3

skipif mysql # not compatible
query II rowsort label-7859
SELECT DISTINCT COUNT ( DISTINCT + 70 ) AS col1, COUNT ( ALL col2 ) FROM tab0
----
1
3

query I rowsort
SELECT ALL col2 * - + 91 * 68 + 61 * - col0 FROM tab1
----
-370277
-426335
-597159

query I rowsort
SELECT DISTINCT ( col1 ) + + col2 + - + col1 AS col1 FROM tab0
----
10
47
99

query I rowsort
SELECT + col1 * - col2 + + + 44 FROM tab1
----
-1300
-251
-3152

query I rowsort
SELECT DISTINCT ( - 9 ) AS col1 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT + SUM( + col2 ) * + + COUNT( * ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
2007

skipif mysql # not compatible
query I rowsort label-7864
SELECT + SUM ( + col2 ) * + + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
2007

query II rowsort
SELECT ALL - col2 * 37 AS col2, col2 FROM tab1 AS cor0
----
-2183
59
-2516
68
-3552
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7866
SELECT DISTINCT + ( + - col0 ) DIV col1 * col1 FROM tab0
----
-84
-97
0

skipif mysql # not compatible
query I rowsort label-7866
SELECT DISTINCT + ( + - col0 ) / col1 * col1 FROM tab0
----
-84
-97
0

query I rowsort
SELECT ALL - col2 + + 72 - col0 + + col1 * + col1 * - col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT ALL COUNT( - col0 ) + - MIN( + 35 ) AS col1 FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL COUNT ( - col0 ) + - MIN ( + 35 ) AS col1 FROM tab1
----
-32

query I rowsort
SELECT DISTINCT + + 23 * + col1 - + col0 FROM tab2 AS cor0
----
1127
1466
1707

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7870
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) * + col1 * col1 > 28 * + col0
----

skipif mysql # not compatible
query III rowsort label-7870
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) * + col1 * col1 > 28 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7871
SELECT DISTINCT + 55 / col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7871
SELECT DISTINCT + 55 / col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7872
SELECT ALL ( + 80 ) DIV 53 * - - COUNT( * ) DIV 53 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7872
SELECT ALL ( + 80 ) / 53 * - - COUNT ( * ) / 53 AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= - ( col2 )
----

query I rowsort
SELECT col1 + + col2 - - - col0 AS col1 FROM tab2 AS cor0
----
28
50
53

query II rowsort
SELECT - - 88 * - 26 + col0, col1 AS col0 FROM tab2 AS cor0
----
-2213
67
-2224
77
-2242
51

query II rowsort
SELECT + 97 * - ( + - col1 ) + - col0 AS col1, + 5 AS col1 FROM tab1 AS cor0
----
1307
5
400
5
4468
5

query I rowsort
SELECT 28 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
28
28
28

query I rowsort
SELECT ALL ( + col1 ) - + col0 + col0 * 33 AS col2 FROM tab0
----
2805
3105
561

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT ALL 14 + - SUM( col0 ) FROM tab1
----
-213

skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL 14 + - SUM ( col0 ) FROM tab1
----
-213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 78 + - col0 col2 FROM tab0
----
-19
-9
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT DISTINCT 88 * + MAX( col1 ) FROM tab2 AS cor0
----
6776

skipif mysql # not compatible
query I rowsort label-7881
SELECT DISTINCT 88 * + MAX ( col1 ) FROM tab2 AS cor0
----
6776

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT + COUNT( * ) * + COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7882
SELECT + COUNT ( * ) * + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7883
SELECT - CAST( + 61 AS SIGNED ) col0 FROM tab0 cor0
----
-61
-61
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7883
SELECT - CAST ( + 61 AS INTEGER ) col0 FROM tab0 cor0
----
-61
-61
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) col2 FROM tab0 WHERE NOT NULL <> + 88 + col2 - + 36
----

query I rowsort
SELECT + 79 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query II rowsort
SELECT - + ( - - col0 ) * + ( - col1 ) - - + 95 AS col0, col0 FROM tab2 AS cor0
----
2441
46
5023
64
5120
75

query I rowsort
SELECT DISTINCT ( + 89 ) FROM tab1 cor0
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-7888
SELECT - col0 DIV ( col0 ) FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7888
SELECT - col0 / ( col0 ) FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7889
SELECT + - 97 / + + col2 * - col2 + + CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7889
SELECT + - 97 / + + col2 * - col2 + + CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - + 16 ) AS col1 FROM tab2 AS cor0
----
16
16
16

query I rowsort
SELECT ALL - - col0 * + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN - col1 + + col2 AND - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT + + MIN( col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7893
SELECT + + MIN ( col1 ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7894
SELECT DISTINCT MAX( - CAST( - col0 AS SIGNED ) ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-7894
SELECT DISTINCT MAX ( - CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7895
SELECT - col0 + + col1 DIV + col1 + col1 + - col1 - - 9 FROM tab2 WHERE NOT + - col1 * + col0 * col0 * col2 IN ( - ( + - col2 ), col1 )
----
-36
-54
-65

skipif mysql # not compatible
query I rowsort label-7895
SELECT - col0 + + col1 / + col1 + col1 + - col1 - - 9 FROM tab2 WHERE NOT + - col1 * + col0 * col0 * col2 IN ( - ( + - col2 ), col1 )
----
-36
-54
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - + 15 * + - 98 col0 FROM tab0 WHERE + ( - col0 ) - + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT ALL - ( + - SUM( + - 11 ) ) FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-7897
SELECT ALL - ( + - SUM ( + - 11 ) ) FROM tab0
----
-33

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 2 <> - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - - 62, col0 FROM tab0 AS cor0
----
62
15
62
87
62
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7900
SELECT col2 * - CAST( NULL AS SIGNED ) + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7900
SELECT col2 * - CAST ( NULL AS INTEGER ) + col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT DISTINCT + - 48 + + - SUM( col0 ) * 37 AS col0 FROM tab2 AS cor0
----
-6893

skipif mysql # not compatible
query I rowsort label-7901
SELECT DISTINCT + - 48 + + - SUM ( col0 ) * 37 AS col0 FROM tab2 AS cor0
----
-6893

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7902
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - - 73, + 14 + + CAST( col0 AS SIGNED ) - + 41 AS col0 FROM tab0 AS cor0
----
NULL
-12
NULL
60
NULL
70

skipif mysql # not compatible
query II rowsort label-7902
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - - 73, + 14 + + CAST ( col0 AS INTEGER ) - + 41 AS col0 FROM tab0 AS cor0
----
NULL
-12
NULL
60
NULL
70

query I rowsort
SELECT ALL + - 53 + - col0 FROM tab1 AS cor0
----
-104
-138
-144

query I rowsort
SELECT DISTINCT - 38 - - col2 + - 58 + + col0 * + col0 - + - col0 FROM tab0 AS cor0
----
191
7570
9509

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 - col2 col1, + col0 + - col1 * - + col0 FROM tab2 cor0
----
28
2392
37
4992
9
5100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7906
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) - 85 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) - 85 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT DISTINCT SUM( col1 ) col2 FROM tab1 cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7907
SELECT DISTINCT SUM ( col1 ) col2 FROM tab1 cor0
----
66

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE 69 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - ( - col2 ) ) * + 8 FROM tab2
----
-184
-320
-464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7910
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7910
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL - 91 * 7 AS col0 FROM tab1
----
-637
-637
-637

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT MIN( DISTINCT + col2 ) * - + 85 FROM tab0
----
-850

skipif mysql # not compatible
query I rowsort label-7912
SELECT MIN ( DISTINCT + col2 ) * - + 85 FROM tab0
----
-850

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2, - 21, - - 69, - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7914
SELECT DISTINCT COUNT( * ) + COUNT( * ) * 60 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7914
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) * 60 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

query I rowsort
SELECT col2 * - col1 * + - col0 AS col0 FROM tab0
----
18270
57105
9603

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7916
SELECT - 84 DIV CAST( - col1 AS SIGNED ) AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7916
SELECT - 84 / CAST ( - col1 AS INTEGER ) AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT 40 FROM tab0 cor0
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + - 40 ) col0 FROM tab2 AS cor0
----
40
40
40

query I rowsort
SELECT ALL - - 3 AS col1 FROM tab1 AS cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT - COUNT( + col0 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7920
SELECT - COUNT ( + col0 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7921
SELECT ( - + col0 ) * + + col1 * + col1 + col2 + - col1 DIV - ( + + 54 ) FROM tab1 AS cor0
----
-200951
-2066
-9900

skipif mysql # not compatible
query I rowsort label-7921
SELECT ( - + col0 ) * + + col1 * + col1 + col2 + - col1 / - ( + + 54 ) FROM tab1 AS cor0
----
-200951
-2066
-9900

onlyif mysql # aggregate syntax: 
query II rowsort label-7922
SELECT DISTINCT COUNT( * ) AS col0, + COUNT( * ) * 82 AS col1 FROM tab2 AS cor0 WHERE - col1 * - col2 IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-7922
SELECT DISTINCT COUNT ( * ) AS col0, + COUNT ( * ) * 82 AS col1 FROM tab2 AS cor0 WHERE - col1 * - col2 IS NULL
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7923
SELECT CAST( - col0 AS SIGNED ) + - 79 FROM tab0
----
-166
-176
-94

skipif mysql # not compatible
query I rowsort label-7923
SELECT CAST ( - col0 AS INTEGER ) + - 79 FROM tab0
----
-166
-176
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-7924
SELECT + 51 + + col0 DIV col1 FROM tab2
----
51
51
52

skipif mysql # not compatible
query I rowsort label-7924
SELECT + 51 + + col0 / col1 FROM tab2
----
51
51
52

query I rowsort
SELECT ALL - 58 + - col0 AS col1 FROM tab0
----
-145
-155
-73

query I rowsort
SELECT - 17 + - col0 + + + col1 FROM tab2
----
-12
-25
-4

query I rowsort
SELECT ALL col0 + + col1 * + col1 + - col1 AS col2 FROM tab0
----
507
6495
97

query I rowsort
SELECT DISTINCT - 64 + + col2 FROM tab2
----
-24
-41
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7929
SELECT ALL + + CAST( - ( + COUNT( * ) ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL + + CAST ( - ( + COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - + col2 col2 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7931
SELECT ALL + MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7931
SELECT ALL + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT + - 21 * + - ( - col1 ) * + col0 AS col0 FROM tab1 AS cor0
----
-14994
-8925
-89817

query II rowsort
SELECT DISTINCT 6 AS col2, - 48 FROM tab1 AS cor0
----
6
-48

query I rowsort
SELECT - - col1 * - - 97 AS col2 FROM tab1 cor0
----
1358
4559
485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7935
SELECT DISTINCT + SUM( DISTINCT - CAST( - col1 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7935
SELECT DISTINCT + SUM ( DISTINCT - CAST ( - col1 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-7936
SELECT ( - col2 ) - + - col0 DIV - - col2 AS col1 FROM tab0
----
-2
-47
-99

skipif mysql # not compatible
query I rowsort label-7936
SELECT ( - col2 ) - + - col0 / - - col2 AS col1 FROM tab0
----
-2
-47
-99

query I rowsort
SELECT DISTINCT - col2 + + + col1 * col0 FROM tab0
----
-2
1168
1817

onlyif mysql # DIV for integer division: 
query I rowsort label-7938
SELECT col1 + + col1 + col1 - + 79 DIV - - col2 FROM tab1 AS cor0
----
14
140
42

skipif mysql # not compatible
query I rowsort label-7938
SELECT col1 + + col1 + col1 - + 79 / - - col2 FROM tab1 AS cor0
----
14
140
42

query I rowsort
SELECT DISTINCT + 31 - + 71 + 71 * + - 60 FROM tab1 AS cor0
----
-4300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7940
SELECT ALL - CAST( + col1 AS SIGNED ) - + 31 AS col1 FROM tab1 AS cor0
----
-36
-45
-78

skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL - CAST ( + col1 AS INTEGER ) - + 31 AS col1 FROM tab1 AS cor0
----
-36
-45
-78

query I rowsort
SELECT - - col0 * + - col2 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT - + 61 FROM tab1 cor0
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT + COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0 WHERE ( - col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7943
SELECT + COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0 WHERE ( - col1 ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7944
SELECT ALL - AVG ( + CAST( NULL AS SIGNED ) ) / - 55 - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7944
SELECT ALL - AVG ( + CAST ( NULL AS INTEGER ) ) / - 55 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT - - 42 AS col0, ( + col1 ) AS col1 FROM tab2 AS cor0
----
42
51
42
67
42
77

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL = col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7947
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1, COUNT( + col2 ) FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7947
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1, COUNT ( + col2 ) FROM tab0 AS cor0
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7948
SELECT DISTINCT CAST( + - col1 AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7948
SELECT DISTINCT CAST ( + - col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT - 46 * 92 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4232
-4232
-4232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7950
SELECT - - 79 FROM tab2 WHERE NOT CAST( + col1 AS SIGNED ) <= + 65
----
79
79

skipif mysql # not compatible
query I rowsort label-7950
SELECT - - 79 FROM tab2 WHERE NOT CAST ( + col1 AS INTEGER ) <= + 65
----
79
79

query I rowsort
SELECT DISTINCT + ( + col2 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7952
SELECT - CAST( 83 AS SIGNED ) AS col1, + 81 AS col0 FROM tab0
----
-83
81
-83
81
-83
81

skipif mysql # not compatible
query II rowsort label-7952
SELECT - CAST ( 83 AS INTEGER ) AS col1, + 81 AS col0 FROM tab0
----
-83
81
-83
81
-83
81

onlyif mysql # aggregate syntax: 
query II rowsort label-7953
SELECT DISTINCT - MIN( ALL - - col1 ) AS col0, 48 AS col0 FROM tab1
----
-5
48

skipif mysql # not compatible
query II rowsort label-7953
SELECT DISTINCT - MIN ( ALL - - col1 ) AS col0, 48 AS col0 FROM tab1
----
-5
48

query I rowsort
SELECT ALL - col0 * + ( + col0 ) FROM tab0
----
-225
-7569
-9409

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 * ( + col2 ) + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7956
SELECT DISTINCT COUNT( * ) DIV + MAX( 14 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7956
SELECT DISTINCT COUNT ( * ) / + MAX ( 14 ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT 96 * + + col2 FROM tab2
----
2208
3840
5568

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7958
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7958
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + CAST ( + col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7959
SELECT DISTINCT COUNT( * ) DIV 31 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7959
SELECT DISTINCT COUNT ( * ) / 31 AS col1 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 59 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7961
SELECT ALL 21 / - + col0 * - col1 - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7961
SELECT ALL 21 / - + col0 * - col1 - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 / + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT + ( - ( + ( - - col1 ) ) ) BETWEEN NULL AND + - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 * - - col1 col2 FROM tab2
----
-132651
-300763
-456533

query I rowsort
SELECT col2 + + + col2 AS col0 FROM tab0
----
198
20
94

onlyif mysql # DIV for integer division: 
query I rowsort label-7965
SELECT ALL col0 DIV 5 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
17
18

skipif mysql # not compatible
query I rowsort label-7965
SELECT ALL col0 / 5 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
17
18

query I rowsort
SELECT 71 * - - col2 AS col2 FROM tab2 cor0
----
1633
2840
4118

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT - ( COUNT( * ) ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7967
SELECT - ( COUNT ( * ) ) AS col2 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT ALL SUM( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL SUM ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
66

query II rowsort
SELECT ALL + col1, - 67 AS col2 FROM tab0 AS cor0
----
1
-67
21
-67
81
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - 87 ) col0 FROM tab2 AS cor0
----
87

query I rowsort
SELECT DISTINCT 76 * - col1 * - 91 FROM tab1 AS cor0
----
325052
34580
96824

onlyif mysql # DIV for integer division: 
query I rowsort label-7972
SELECT + col1 DIV 46 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7972
SELECT + col1 / 46 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + 57 AS col0 FROM tab1 cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query II rowsort label-7974
SELECT ALL + - COUNT( * ) AS col2, ( + 30 ) FROM tab0 AS cor0
----
-3
30

skipif mysql # not compatible
query II rowsort label-7974
SELECT ALL + - COUNT ( * ) AS col2, ( + 30 ) FROM tab0 AS cor0
----
-3
30

query I rowsort
SELECT ALL 93 + col1 FROM tab2
----
144
160
170

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT ALL + MAX( - col2 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-7976
SELECT ALL + MAX ( - col2 ) AS col0 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT + ( + + COUNT( DISTINCT - - col2 ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7977
SELECT + ( + + COUNT ( DISTINCT - - col2 ) ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT DISTINCT + 62 * - - COUNT( * ) AS col1 FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-7978
SELECT DISTINCT + 62 * - - COUNT ( * ) AS col1 FROM tab2
----
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7979
SELECT DISTINCT col0 + + col2 * ( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT col0 + + col2 * ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7980
SELECT ALL 28 * CAST( NULL AS SIGNED ) + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL 28 * CAST ( NULL AS INTEGER ) + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 59 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + col0 ) + + col2 + col1 + 43 * - 68 col0 FROM tab1
----
-2718
-2763
-2775

query I rowsort
SELECT + - ( - ( 77 ) ) * + 78 + - col2 FROM tab1 AS cor0
----
5910
5938
5947

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * - - col1 * + 87 * - - col0 < - col0
----

query II rowsort
SELECT ALL col1 AS col2, 19 + 53 FROM tab1
----
14
72
47
72
5
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7986
SELECT + MAX( ALL - - col0 ) DIV - 20 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-7986
SELECT + MAX ( ALL - - col0 ) / - 20 FROM tab0
----
-4

query I rowsort
SELECT ALL + + col2 - - 29 AS col0 FROM tab0 AS cor0
----
128
39
76

query I rowsort
SELECT ALL - 5 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-5
-5
-5

query I rowsort
SELECT DISTINCT - AVG ( - ( + col0 ) ) FROM tab0 AS cor0 WHERE col0 BETWEEN NULL AND col2 - col1
----
NULL

query I rowsort
SELECT ALL + ( - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 col1 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT ALL col1, col1 AS col1 FROM tab1 cor0
----
14
14
47
47
5
5

query I rowsort
SELECT ALL + 50 * col2 FROM tab1 AS cor0 WHERE col0 > NULL
----

query I rowsort
SELECT ALL - 97 * - col1 AS col1 FROM tab2
----
4947
6499
7469

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT ALL COUNT( * ) AS col0 FROM tab2 WHERE NULL <> col2
----
0

skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE NULL <> col2
----
0

query I rowsort
SELECT - col2 * + - 94 FROM tab2
----
2162
3760
5452

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT ALL - COUNT( * ) * + 10 col2 FROM tab1
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7997
SELECT ALL - COUNT ( * ) * + 10 col2 FROM tab1
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7998
SELECT DISTINCT - 14 DIV + SUM( + 26 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7998
SELECT DISTINCT - 14 / + SUM ( + 26 ) FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + ( - col2 ) + - col1 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT - SUM( + + col1 ) * + COUNT( * ) AS col1 FROM tab2
----
-585

skipif mysql # not compatible
query I rowsort label-8000
SELECT - SUM ( + + col1 ) * + COUNT ( * ) AS col1 FROM tab2
----
-585

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8001
SELECT ALL - col2 * CAST( NULL AS DECIMAL ) * - 97 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL - col2 * CAST ( NULL AS REAL ) * - 97 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 44, + 98 AS col0 FROM tab2
----
44
98
44
98
44
98

query III rowsort
SELECT * FROM tab0 WHERE NOT + 5 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0 AS col0, col0 AS col0 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT DISTINCT - 2 * - + 24 * - - col2 AS col2 FROM tab2
----
1104
1920
2784

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 28 * + - col2 FROM tab0 cor0 WHERE NOT + 25 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8008
SELECT 38 DIV col0 AS col1 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-8008
SELECT 38 / col0 AS col1 FROM tab0 AS cor0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT DISTINCT - + MIN( DISTINCT - 86 ) * + COUNT( * ) col1 FROM tab2 cor0
----
258

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8009
SELECT DISTINCT - + MIN ( DISTINCT - 86 ) * + COUNT ( * ) col1 FROM tab2 cor0
----
258

query I rowsort
SELECT DISTINCT 7 * - + col1 * 45 AS col2 FROM tab1 AS cor0
----
-14805
-1575
-4410

query I rowsort
SELECT + 80 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 71 NOT IN ( + - col0 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col1 + - 11 + + col0 + + col0 AS col1 FROM tab1 cor0
----
105
164
218

query I rowsort
SELECT + 69 + - + col0 AS col1 FROM tab0 AS cor0
----
-18
-28
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + - col0 ) * col0 * 28 col2 FROM tab0 AS cor0
----
-211932
-263452
-6300

query I rowsort
SELECT - 85 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT - MIN( ALL - 40 ) + 31 + - 68 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8019
SELECT - MIN ( ALL - 40 ) + 31 + - 68 FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8020
SELECT + 12 + + SUM( DISTINCT - CAST( ( + 74 ) AS SIGNED ) ) FROM tab2
----
-62

skipif mysql # not compatible
query I rowsort label-8020
SELECT + 12 + + SUM ( DISTINCT - CAST ( ( + 74 ) AS INTEGER ) ) FROM tab2
----
-62

query I rowsort
SELECT ALL + 40 + - - 77 - + col0 AS col1 FROM tab0
----
102
20
30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8023
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + + CAST( + 64 AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8023
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + + CAST ( + 64 AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8024
SELECT - col2 DIV + 42 col0 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8024
SELECT - col2 / + 42 col0 FROM tab1
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8025
SELECT ALL - - 32 FROM tab1 WHERE + CAST( 54 AS SIGNED ) * - col2 IS NOT NULL
----
32
32
32

skipif mysql # not compatible
query I rowsort label-8025
SELECT ALL - - 32 FROM tab1 WHERE + CAST ( 54 AS INTEGER ) * - col2 IS NOT NULL
----
32
32
32

query I rowsort
SELECT ALL col0 * 59 * + col2 - - - 70 AS col1 FROM tab2 AS cor0
----
150970
256580
62352

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 31 col2 FROM tab1 AS cor0
----
31
31
31

query I rowsort
SELECT DISTINCT + - 36 AS col0 FROM tab0 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT ( + COUNT( - - col1 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8029
SELECT ( + COUNT ( - - col1 ) ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * 81 + - col2 <= NULL
----

query I rowsort
SELECT DISTINCT - 3 * - - 99 * + col1 FROM tab1 AS cor0
----
-13959
-1485
-4158

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT + MAX( - col0 ) AS col0 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8032
SELECT + MAX ( - col0 ) AS col0 FROM tab1 cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 90 ) col1 FROM tab1
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT ALL SUM( DISTINCT - - 66 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8034
SELECT ALL SUM ( DISTINCT - - 66 ) AS col2 FROM tab1
----
66

query I rowsort
SELECT - col1 * + col1 * col1 FROM tab2 AS cor0
----
-132651
-300763
-456533

query II rowsort
SELECT + col2 AS col0, 15 FROM tab1 AS cor0
----
59
15
68
15
96
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT + ( - - COUNT( * ) ) + MAX( - col1 ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-8037
SELECT + ( - - COUNT ( * ) ) + MAX ( - col1 ) FROM tab0 AS cor0
----
2

query I rowsort
SELECT DISTINCT 9 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8039
SELECT CAST( NULL AS SIGNED ) * 82 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8039
SELECT CAST ( NULL AS INTEGER ) * 82 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8040
SELECT COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8041
SELECT DISTINCT - col2 FROM tab0 WHERE + - col1 <> + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8041
SELECT DISTINCT - col2 FROM tab0 WHERE + - col1 <> + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - 67 * col0 + - - col1 - + ( - col0 ) * + 1 + - - 54 FROM tab1
----
-3298
-5551
-5905

query II rowsort
SELECT + col1 AS col2, + 22 AS col0 FROM tab0
----
1
22
21
22
81
22

query I rowsort
SELECT DISTINCT col2 + + ( + 39 ) AS col1 FROM tab1 AS cor0
----
107
135
98

query I rowsort
SELECT + + 18 * - col1 FROM tab2 AS cor0
----
-1206
-1386
-918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8046
SELECT + col0 * - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8046
SELECT + col0 * - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8047
SELECT ALL COUNT( * ) * - MAX( - - col1 ) * + COUNT( * ) + - + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL COUNT ( * ) * - MAX ( - - col1 ) * + COUNT ( * ) + - + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( NOT - 55 NOT BETWEEN ( - - 17 * - col0 ) AND NULL ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8049
SELECT col0, col0 DIV - - col1 FROM tab1 AS cor0
----
51
3
85
17
91
1

skipif mysql # not compatible
query II rowsort label-8049
SELECT col0, col0 / - - col1 FROM tab1 AS cor0
----
51
3
85
17
91
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8050
SELECT ALL - - col1 DIV - col1 col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8050
SELECT ALL - - col1 / - col1 col2 FROM tab1 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN NULL AND + col1 * - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 35 * col1 FROM tab2
----
1785
2345
2695

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE ( - - 1 ) = col1 * + - 89
----

query I rowsort
SELECT 47 * - col0 + + col2 + + 61 + - col1 FROM tab2
----
-2129
-2984
-3473

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT COUNT( * ) + COUNT( - col1 ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8055
SELECT COUNT ( * ) + COUNT ( - col1 ) AS col2 FROM tab2
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - 51 ) - + col0 col0 FROM tab1 WHERE NOT 61 NOT BETWEEN NULL AND NULL OR NOT NULL <= col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8057
SELECT DISTINCT 7 + 42 DIV col0 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT 7 + 42 / col0 FROM tab2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT DISTINCT - COUNT( * ) + + - 44 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8058
SELECT DISTINCT - COUNT ( * ) + + - 44 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT col1 * 28 + - col2 * 15 AS col2 FROM tab2 AS cor0
----
1006
1083
1556

query I rowsort
SELECT DISTINCT - 98 * - 58 FROM tab1 AS cor0 WHERE NOT col1 * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8061
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( - col2 AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-8061
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( - col2 AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 * + - col0 AS col0 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT ALL + 23 AS col2 FROM tab0 cor0
----
23
23
23

query II rowsort
SELECT - - col2, col1 FROM tab2 cor0
----
23
51
40
77
58
67

query II rowsort
SELECT ALL + 25 AS col0, 21 + - 55 AS col2 FROM tab2 AS cor0
----
25
-34
25
-34
25
-34

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 - col1 BETWEEN + - 21 * - - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 cor0 WHERE NOT col0 < - + 0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8068
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT col0 + + - 37 * - col1 NOT BETWEEN ( + CAST( NULL AS SIGNED ) ) AND 33
----

skipif mysql # not compatible
query I rowsort label-8068
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT col0 + + - 37 * - col1 NOT BETWEEN ( + CAST ( NULL AS INTEGER ) ) AND 33
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + + col0 / - - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8070
SELECT CAST( - 55 AS SIGNED ) * - 15 FROM tab1 AS cor0
----
825
825
825

skipif mysql # not compatible
query I rowsort label-8070
SELECT CAST ( - 55 AS INTEGER ) * - 15 FROM tab1 AS cor0
----
825
825
825

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT 48 * + COUNT( * ) FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-8071
SELECT 48 * + COUNT ( * ) FROM tab2
----
144

query I rowsort
SELECT col0 * + - ( + col2 ) FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT - 5 * - col0 + - col1 AS col2 FROM tab0
----
-6
414
484

query I rowsort
SELECT 89 * - 58 FROM tab2
----
-5162
-5162
-5162

query I rowsort
SELECT ALL + col0 + col1 FROM tab2 WHERE NULL IS NULL
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT COUNT( - - col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8076
SELECT COUNT ( - - col2 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT ALL 25 * col1 * 66 AS col1 FROM tab0
----
133650
1650
34650

query I rowsort
SELECT 96 * + + 16 * + + col0 AS col1 FROM tab1
----
130560
139776
78336

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT ALL MIN( DISTINCT 13 ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL MIN ( DISTINCT 13 ) FROM tab1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT DISTINCT + MIN( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8080
SELECT DISTINCT + MIN ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ALL + AVG ( - ( + col2 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT col2 + - - 11 FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( col2 * col2 )
----

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( ( + ( + col1 ) ) IS NOT NULL ) )
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT ALL SUM( - + col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8084
SELECT ALL SUM ( - + col2 ) AS col1 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL 40 * + - col2 FROM tab1 AS cor0
----
-2360
-2720
-3840

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 / 74 * - 55 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
94

query I rowsort
SELECT DISTINCT - col0 + 43 FROM tab1
----
-42
-48
-8

query I rowsort
SELECT ALL + 96 + - - 36 AS col1 FROM tab0
----
132
132
132

query I rowsort
SELECT DISTINCT col0 * - col2 * - - ( - - col0 ) + - + col0 * - - col1 * col0 AS col2 FROM tab0 cor0
----
-234639
-28800
-940900

query I rowsort
SELECT ALL + - 79 FROM tab2 cor0
----
-79
-79
-79

query I rowsort
SELECT DISTINCT + col2 - 86 AS col2 FROM tab2 cor0
----
-28
-46
-63

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8094
SELECT + 71 AS col1, 39 * - col0 + - CAST( + 92 AS SIGNED ) * 34 FROM tab0
----
71
-3713
71
-6521
71
-6911

skipif mysql # not compatible
query II rowsort label-8094
SELECT + 71 AS col1, 39 * - col0 + - CAST ( + 92 AS INTEGER ) * 34 FROM tab0
----
71
-3713
71
-6521
71
-6911

query II rowsort
SELECT DISTINCT col1 AS col1, col0 AS col0 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT - ( - MAX( ALL col2 ) ) * - MIN( DISTINCT col1 ) FROM tab2
----
-2958

skipif mysql # not compatible
query I rowsort label-8096
SELECT - ( - MAX ( ALL col2 ) ) * - MIN ( DISTINCT col1 ) FROM tab2
----
-2958

query I rowsort
SELECT col0 * + col1 FROM tab1 WHERE ( NOT - col0 BETWEEN col0 AND col1 )
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT DISTINCT + + COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT + + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8099
SELECT DISTINCT - ( + 10 ) * - 67 * + col1 * CAST( NULL AS SIGNED ) + - col0 + col2 / - col0 + + - col2 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8099
SELECT DISTINCT - ( + 10 ) * - 67 * + col1 * CAST ( NULL AS INTEGER ) + - col0 + col2 / - col0 + + - col2 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL + 64 AS col1 FROM tab0, tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 34 * + col0 + + - col2 FROM tab2 AS cor0
----
-1587
-2216
-2608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8102
SELECT + COUNT( * ) - - - CAST( + 29 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-8102
SELECT + COUNT ( * ) - - - CAST ( + 29 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8103
SELECT ALL + + CAST( NULL AS SIGNED ) / 7 AS col2, - col1 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-8103
SELECT ALL + + CAST ( NULL AS INTEGER ) / 7 AS col2, - col1 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 51 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * - 17 * - + col2 AS col2 FROM tab2
----
19941
52360
66062

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT - - COUNT( + - 14 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8106
SELECT - - COUNT ( + - 14 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT DISTINCT 1 * - COUNT( * ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8107
SELECT DISTINCT 1 * - COUNT ( * ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT + col0 + col1 * - col0 + + 4 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT DISTINCT + MAX( + ( - 29 ) ) FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT + MAX ( + ( - 29 ) ) FROM tab2 AS cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT DISTINCT - COUNT( - 95 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8110
SELECT DISTINCT - COUNT ( - 95 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT ALL + - MAX( - + col0 ) * - 18 AS col0 FROM tab0 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-8111
SELECT ALL + - MAX ( - + col0 ) * - 18 AS col0 FROM tab0 AS cor0
----
-270

query II rowsort
SELECT - 17, 97 AS col2 FROM tab1
----
-17
97
-17
97
-17
97

query II rowsort
SELECT ALL col1 AS col2, + ( - + col2 ) AS col0 FROM tab2
----
51
-23
67
-58
77
-40

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - 10 * - col0 * + col2 AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8115
SELECT ALL - 84 DIV + col0 AS col1 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL - 84 / + col0 AS col1 FROM tab0
----
-5
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8116
SELECT DISTINCT + 73 DIV + col1 + col2, - ( - col0 ) AS col2 FROM tab0
----
13
87
172
97
47
15

skipif mysql # not compatible
query II rowsort label-8116
SELECT DISTINCT + 73 / + col1 + col2, - ( - col0 ) AS col2 FROM tab0
----
13
87
172
97
47
15

query I rowsort
SELECT ALL 8 + + col0 AS col2 FROM tab2
----
54
72
83

query I rowsort
SELECT col0 * - col2 * + - col2 FROM tab1 AS cor0
----
295885
420784
470016

query II rowsort
SELECT - col1, - col1 AS col2 FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

query II rowsort
SELECT + + col0, 32 AS col2 FROM tab0 cor0
----
15
32
87
32
97
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col2, col1 col2 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 <= 62
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT - ( - COUNT( * ) ) col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8124
SELECT - ( - COUNT ( * ) ) col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query I rowsort
SELECT ALL + 85 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # aggregate syntax: 
query II rowsort label-8127
SELECT ALL 62 - COUNT( * ), COUNT( + col0 ) + 73 + + 70 AS col1 FROM tab0
----
59
146

skipif mysql # not compatible
query II rowsort label-8127
SELECT ALL 62 - COUNT ( * ), COUNT ( + col0 ) + 73 + + 70 AS col1 FROM tab0
----
59
146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + - 93 ) col0 FROM tab1 AS cor0
----
93
93
93

query I rowsort
SELECT DISTINCT col1 - + 1 AS col2 FROM tab1 AS cor0
----
13
4
46

query II rowsort
SELECT ALL + ( + col2 ) AS col0, col0 AS col2 FROM tab2 AS cor0
----
23
46
40
64
58
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN ( + + col0 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8132
SELECT DISTINCT + col2 DIV + 8 - - - 67 FROM tab0 AS cor0
----
-55
-62
-66

skipif mysql # not compatible
query I rowsort label-8132
SELECT DISTINCT + col2 / + 8 - - - 67 FROM tab0 AS cor0
----
-55
-62
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + - col0 col1 FROM tab0
----
-2
-32
77

query I rowsort
SELECT ALL ( 27 ) * col1 FROM tab1
----
1269
135
378

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT ALL COUNT( * ) + + ( + 42 ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-8135
SELECT ALL COUNT ( * ) + + ( + 42 ) FROM tab0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8136
SELECT - 80 + - COUNT( * ) * MIN( DISTINCT - col0 ) DIV 58 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-8136
SELECT - 80 + - COUNT ( * ) * MIN ( DISTINCT - col0 ) / 58 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT DISTINCT + COUNT( col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8137
SELECT DISTINCT + COUNT ( col0 ) AS col0 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col1, col1 + + 82 col0 FROM tab0 cor0
----
15
163
87
103
97
83

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 90 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT - COUNT( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8140
SELECT - COUNT ( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT ( - 95 ) FROM tab1 AS cor0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8142
SELECT ALL + col2 + + 82 FROM tab2 WHERE NOT + col0 + + col1 * - CAST( - col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8142
SELECT ALL + col2 + + 82 FROM tab2 WHERE NOT + col0 + + col1 * - CAST ( - col0 AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8143
SELECT ALL + col2 DIV - - 33 col0 FROM tab0
----
0
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8143
SELECT ALL + col2 / - - 33 col0 FROM tab0
----
0
1
3

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + ( - 46 ) IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # DIV for integer division: 
query I rowsort label-8145
SELECT col2 DIV + 50 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8145
SELECT col2 / + 50 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8146
SELECT DISTINCT ( - 93 ) DIV - COUNT( * ) AS col1 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-8146
SELECT DISTINCT ( - 93 ) / - COUNT ( * ) AS col1 FROM tab2
----
31

query I rowsort
SELECT 51 * + 19 FROM tab0
----
969
969
969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8148
SELECT 19 * col2 * - + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8148
SELECT 19 * col2 * - + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
196
62
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8150
SELECT ALL CAST( + + col0 AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL CAST ( + + col0 AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8151
SELECT DISTINCT + col0 * CAST( NULL AS DECIMAL ) + + col1 * col2, col0 col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8151
SELECT DISTINCT + col0 * CAST ( NULL AS REAL ) + + col1 * col2, col0 col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col0 FROM tab2 AS cor0 WHERE NOT + 29 >= col1
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT + - COUNT( * ) + 38 - + 3 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-8153
SELECT + - COUNT ( * ) + 38 - + 3 FROM tab2 AS cor0
----
32

query I rowsort
SELECT DISTINCT - - 23 * col2 + - 35 AS col0 FROM tab1 AS cor0
----
1322
1529
2173

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 57 * + - col0 AS col2 FROM tab0
----
-4959
-5529
-855

query I rowsort
SELECT ALL + col1 + 42 + - col2 FROM tab2
----
51
70
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT - 85 + + 75 + + COUNT( * ) * - + COUNT( * ) FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-8158
SELECT - 85 + + 75 + + COUNT ( * ) * - + COUNT ( * ) FROM tab0
----
-19

query I rowsort
SELECT DISTINCT - 24 + - + col2 AS col1 FROM tab2
----
-47
-64
-82

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + - col2, col0, col0, - 50 + 79 - + + 59 )
----

query I rowsort
SELECT - col1 + + ( - 43 ) FROM tab1
----
-48
-57
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT - MIN( ALL + col2 ) col2 FROM tab2 WHERE col2 IS NOT NULL
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8162
SELECT - MIN ( ALL + col2 ) col2 FROM tab2 WHERE col2 IS NOT NULL
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8163
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8163
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT ALL - MAX( ALL - col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL - MAX ( ALL - col0 ) FROM tab1 cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8165
SELECT - - ( + - col0 ) DIV 56 * + - col0 AS col0 FROM tab2 AS cor0
----
0
64
75

skipif mysql # not compatible
query I rowsort label-8165
SELECT - - ( + - col0 ) / 56 * + - col0 AS col0 FROM tab2 AS cor0
----
0
64
75

query I rowsort
SELECT DISTINCT 72 + 46 FROM tab1
----
118

query I rowsort
SELECT ALL 90 + + col0 AS col2 FROM tab0
----
105
177
187

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT + + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8168
SELECT + + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT ALL col0 - + - 26 * - col1 AS col2 FROM tab2 AS cor0
----
-1280
-1667
-1938

query II rowsort
SELECT 8, + col0 AS col0 FROM tab2 AS cor0
----
8
46
8
64
8
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - - 24 col1 FROM tab2 AS cor0
----
70
88
99

query I rowsort
SELECT + - 29 AS col1 FROM tab0 AS cor0
----
-29
-29
-29

query II rowsort
SELECT + col1 AS col2, + 40 AS col0 FROM tab0 AS cor0
----
1
40
21
40
81
40

onlyif mysql # aggregate syntax: 
query II rowsort label-8174
SELECT - COUNT( * ) AS col2, COUNT( * ) FROM tab2 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-8174
SELECT - COUNT ( * ) AS col2, COUNT ( * ) FROM tab2 cor0
----
-3
3

query III rowsort
SELECT * FROM tab0 WHERE NULL = + col2 * + col1 - + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8177
SELECT SUM( ALL - col2 ) AS col0, 20 - + 98 FROM tab0
----
-156
-78

skipif mysql # not compatible
query II rowsort label-8177
SELECT SUM ( ALL - col2 ) AS col0, 20 - + 98 FROM tab0
----
-156
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT ALL - MAX( col1 ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL - MAX ( col1 ) AS col0 FROM tab2
----
-77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( - 82 ) > + col1 / 42
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 97 * + col0 * + col1 FROM tab0
----
-117855
-177219
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8181
SELECT DISTINCT + - col0 + + - col2 + + CAST( + - 63 AS SIGNED ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8181
SELECT DISTINCT + - col0 + + - col2 + + CAST ( + - 63 AS INTEGER ) AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + ( + - 36 ) FROM tab2 AS cor0
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT ALL 87 * + COUNT( + col0 ) FROM tab0 cor0 WHERE NULL <= col0
----
0

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL 87 * + COUNT ( + col0 ) FROM tab0 cor0 WHERE NULL <= col0
----
0

query I rowsort
SELECT ALL + - col1 * 7 FROM tab1 AS cor0
----
-329
-35
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-8185
SELECT - + col2 * col2 DIV + 41 + + 77 + - 26 DIV - 59 FROM tab1 AS cor0
----
-147
-35
-7

skipif mysql # not compatible
query I rowsort label-8185
SELECT - + col2 * col2 / + 41 + + 77 + - 26 / - 59 FROM tab1 AS cor0
----
-147
-35
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT + - 9 * + COUNT( * ) * SUM( ALL + 46 ) AS col2 FROM tab1 AS cor0
----
-3726

skipif mysql # not compatible
query I rowsort label-8186
SELECT + - 9 * + COUNT ( * ) * SUM ( ALL + 46 ) AS col2 FROM tab1 AS cor0
----
-3726

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT DISTINCT COUNT( * ) * - MAX( - col2 ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-8187
SELECT DISTINCT COUNT ( * ) * - MAX ( - col2 ) FROM tab2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8188
SELECT ALL 77 DIV 1 + + 22 AS col1 FROM tab1
----
99
99
99

skipif mysql # not compatible
query I rowsort label-8188
SELECT ALL 77 / 1 + + 22 AS col1 FROM tab1
----
99
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 * col1 - - col2 * - 0 + - + 54 col1 FROM tab0 WHERE 40 IS NOT NULL
----
1248
4968
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8190
SELECT ALL - col2 * + 96 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8190
SELECT ALL - col2 * + 96 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 30 + + 76 - + 80 + - col1 FROM tab2
----
-25
-41
-51

query I rowsort
SELECT - 43 * col0 + - col0 + + 95 + + 89 * + col2 * + 14 * - - col0 - col0 * + - 53 AS col2 FROM tab0
----
1084898
11966306
878660

query I rowsort
SELECT + col0 FROM tab0 WHERE ( NULL ) IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT ALL - COUNT( * ) + 47 AS col0 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-8194
SELECT ALL - COUNT ( * ) + 47 AS col0 FROM tab1
----
44

query I rowsort
SELECT col0 * col2 + - 9 FROM tab1
----
4887
5006
6179

query I rowsort
SELECT DISTINCT + 59 FROM tab0 AS cor0 WHERE - col0 * + col1 BETWEEN - 43 * col2 + + - col2 AND - - ( + 30 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT DISTINCT COUNT( DISTINCT + 73 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8197
SELECT DISTINCT COUNT ( DISTINCT + 73 ) AS col0 FROM tab0
----
1

query I rowsort
SELECT + + col2 - 68 AS col0 FROM tab1 AS cor0
----
-9
0
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT + 88 * COUNT( 42 ) - + 85 AS col2 FROM tab2 AS cor0
----
179

skipif mysql # not compatible
query I rowsort label-8199
SELECT + 88 * COUNT ( 42 ) - + 85 AS col2 FROM tab2 AS cor0
----
179

onlyif mysql # DIV for integer division: 
query I rowsort label-8200
SELECT ALL - ( - 98 ) DIV col2 - + col1 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL - ( - 98 ) / col2 - + col1 FROM tab1 AS cor0
----
-13
-4
-46

query I rowsort
SELECT DISTINCT - - 94 - - col1 FROM tab0 AS cor0
----
115
175
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab1 cor0 WHERE NULL <> - 50 * - col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 25 AND - ( - col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - + 51
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8205
SELECT ALL COUNT( * ) AS col0, - COUNT( - - 61 ) AS col0 FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-8205
SELECT ALL COUNT ( * ) AS col0, - COUNT ( - - 61 ) AS col0 FROM tab0
----
3
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8206
SELECT - CAST( + - ( COUNT( * ) ) AS SIGNED ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8206
SELECT - CAST ( + - ( COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8207
SELECT col0 * CAST( NULL AS SIGNED ) * + + 52 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8207
SELECT col0 * CAST ( NULL AS INTEGER ) * + + 52 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + 45 FROM tab0
----
2115
4455
450

query II rowsort
SELECT - col1 AS col1, 29 + - 2 FROM tab0
----
-1
27
-21
27
-81
27

query I rowsort
SELECT DISTINCT - ( 70 ) AS col2 FROM tab2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8211
SELECT 49 * ( + - CAST( NULL AS SIGNED ) ) col2, 37 * MIN( col0 ) FROM tab0
----
NULL
555

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8211
SELECT 49 * ( + - CAST ( NULL AS INTEGER ) ) col2, 37 * MIN ( col0 ) FROM tab0
----
NULL
555

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT SUM( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8212
SELECT SUM ( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT + - ( - - COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8213
SELECT + - ( - - COUNT ( * ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL 86 + ( col2 ) * col1 AS col1 FROM tab2
----
1259
3166
3972

query I rowsort
SELECT DISTINCT - col2 * + 43 FROM tab1 WHERE + ( col1 ) <= ( col1 )
----
-2537
-2924
-4128

query I rowsort
SELECT + col0 * col0 FROM tab0 WHERE ( + col2 ) NOT IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8217
SELECT ALL + col0 + 23 DIV col1 FROM tab1 WHERE NOT - col2 IS NULL
----
52
89
91

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL + col0 + 23 / col1 FROM tab1 WHERE NOT - col2 IS NULL
----
52
89
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT SUM( col1 ) col1 FROM tab2
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8218
SELECT SUM ( col1 ) col1 FROM tab2
----
195

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT ALL 99 * + SUM( ALL - col0 ) FROM tab0
----
-19701

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL 99 * + SUM ( ALL - col0 ) FROM tab0
----
-19701

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT DISTINCT 83 * + COUNT( * ) FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-8221
SELECT DISTINCT 83 * + COUNT ( * ) FROM tab2
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT DISTINCT COUNT( 4 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8222
SELECT DISTINCT COUNT ( 4 ) col2 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 * col2 + 71 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT ( col0 ) = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8225
SELECT DISTINCT - col0 * - 52 + 8 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8225
SELECT DISTINCT - col0 * - 52 + 8 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT + col2 FROM tab2 WHERE - col0 + 78 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8227
SELECT DISTINCT + col2 AS col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND CAST( + 66 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8227
SELECT DISTINCT + col2 AS col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND CAST ( + 66 AS INTEGER )
----

query I rowsort
SELECT 61 + col0 * col0 AS col2 FROM tab0
----
286
7630
9470

query I rowsort
SELECT + ( col1 ) + + 53 FROM tab0
----
134
54
74

query I rowsort
SELECT DISTINCT + ( col2 ) * + col0 FROM tab2
----
1058
2560
4350

query III rowsort
SELECT * FROM tab2 WHERE NOT + 34 NOT IN ( - 25 )
----

query I rowsort
SELECT DISTINCT + 4 * - 82 FROM tab1
----
-328

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT MIN( ( col1 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8233
SELECT MIN ( ( col1 ) ) FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8234
SELECT DISTINCT - col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8234
SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - col1 * + ( 74 ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT DISTINCT + 23 + COUNT( * ) FROM tab0 WHERE NOT ( col1 ) NOT BETWEEN NULL AND ( NULL )
----
23

skipif mysql # not compatible
query I rowsort label-8236
SELECT DISTINCT + 23 + COUNT ( * ) FROM tab0 WHERE NOT ( col1 ) NOT BETWEEN NULL AND ( NULL )
----
23

query I rowsort
SELECT ALL + 14 * - col0 AS col2 FROM tab0
----
-1218
-1358
-210

query III rowsort
SELECT * FROM tab1 WHERE ( col0 ) = col1 / - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 WHERE NOT ( NULL ) > + 31 / - col0 + col2
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN ( - col2 + col2 ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( col0 ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8242
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( col0 ) <> NULL
----
0

query I rowsort
SELECT + ( + col0 ) * - col1 AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab0 AS cor0 WHERE NULL >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT - COUNT( col0 ) * + 59 AS col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8245
SELECT - COUNT ( col0 ) * + 59 AS col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

query I rowsort
SELECT 13 FROM tab1 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT ALL COUNT( * ) col2 FROM tab0 WHERE NOT col0 / col2 + 29 * - col2 NOT IN ( col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8247
SELECT ALL COUNT ( * ) col2 FROM tab0 WHERE NOT col0 / col2 + 29 * - col2 NOT IN ( col2 )
----
0

query I rowsort
SELECT DISTINCT - 88 FROM tab2 AS cor0 CROSS JOIN tab2
----
-88

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - col2 ) > + 98
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 - - 63 ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT DISTINCT + - COUNT( * ) * COUNT( * ) AS col1 FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8251
SELECT DISTINCT + - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 cor0
----
-9

query I rowsort
SELECT - ( - 22 ) AS col0 FROM tab2 AS cor0
----
22
22
22

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( 32 ) AS col0 FROM tab2 AS cor0
----
32
32
32

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 50 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + 19 ) AND NULL
----

query I rowsort
SELECT + 2 AS col2 FROM tab2 AS cor0 WHERE NOT ( + col1 ) NOT IN ( 73 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8258
SELECT ALL COUNT( * ) DIV ( SUM( ALL - 15 ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8258
SELECT ALL COUNT ( * ) / ( SUM ( ALL - 15 ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT col2 FROM tab1 cor0 WHERE NOT + col2 / col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8260
SELECT ALL - col0 DIV + 61 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8260
SELECT ALL - col0 / + 61 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT + - col2 * + 19 AS col1 FROM tab0 AS cor0
----
-1881
-190
-893

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE + 45 IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 * - col0 <= 53 OR NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - - 50 ) FROM tab1
----
50

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - col1 AND col0 - + ( - 63 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab0 WHERE NOT NULL >= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8267
SELECT CAST( col0 AS SIGNED ) AS col1 FROM tab2 WHERE NOT ( + col0 ) = - 61 * + 77 + 24
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8267
SELECT CAST ( col0 AS INTEGER ) AS col1 FROM tab2 WHERE NOT ( + col0 ) = - 61 * + 77 + 24
----
46
64
75

query I rowsort
SELECT 42 * + col0 + 65 AS col0 FROM tab0 WHERE NOT col2 + 31 <> NULL
----

query I rowsort
SELECT DISTINCT 8 * - AVG ( + col1 ) FROM tab0 WHERE NOT + col1 + - 36 = NULL
----
NULL

query I rowsort
SELECT ALL + AVG ( ( - 75 ) ) FROM tab0 WHERE NOT ( col1 ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 59 col1 FROM tab2
----
-59

query I rowsort
SELECT DISTINCT col0 * + - col2 * - col0 AS col0 FROM tab2
----
163840
326250
48668

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8273
SELECT ALL COUNT( * ) DIV + + COUNT( DISTINCT 15 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8273
SELECT ALL COUNT ( * ) / + + COUNT ( DISTINCT 15 ) AS col1 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8274
SELECT 10 DIV + 4 AS col0 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-8274
SELECT 10 / + 4 AS col0 FROM tab0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8275
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN col0 AND + CAST( NULL AS SIGNED ) * 9
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8275
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN col0 AND + CAST ( NULL AS INTEGER ) * 9
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 73 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
-73
-73
-73

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT ( + 51 ) IS NULL
----
-10
-47
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 94 + ( 2 + + 32 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * + + ( - col2 ) FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT ALL + 69 * - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-621

skipif mysql # not compatible
query I rowsort label-8280
SELECT ALL + 69 * - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-621

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 LEFT JOIN tab0 AS cor1 ON NULL = ( + 29 )
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT - COUNT( * ) + 33 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
24

skipif mysql # not compatible
query I rowsort label-8282
SELECT - COUNT ( * ) + 33 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8283
SELECT ALL - 13 + col1 - + + 87 + + CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8283
SELECT ALL - 13 + col1 - + + 87 + + CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) BETWEEN ( NULL ) AND 90 OR col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 29 + - 52 * - col1 )
----

query I rowsort
SELECT - 96 * col2 - - 80 FROM tab1 cor0
----
-5584
-6448
-9136

query I rowsort
SELECT DISTINCT - col0 + - + col0 + + + 13 * 82 FROM tab1 AS cor0
----
884
896
964

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT DISTINCT + SUM( DISTINCT 23 ) col0 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8288
SELECT DISTINCT + SUM ( DISTINCT 23 ) col0 FROM tab0 AS cor0
----
23

query I rowsort
SELECT DISTINCT ( - 24 ) FROM tab0 AS cor0
----
-24

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 13 + + col2 + col0 / col2 IS NULL
----

query I rowsort
SELECT ( + col2 ) * + - 60 * col1 - - ( - 67 + - 74 ) AS col2 FROM tab2 AS cor0
----
-184941
-233301
-70521

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col0 + 5 * + col2 ) IS NULL
----

query I rowsort
SELECT - col0 + col1 AS col2 FROM tab1 WHERE + col1 + + + 27 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT MIN( col1 ) - - + COUNT( + col1 ) + 80 * + MIN( ALL + ( col0 ) ) AS col2 FROM tab0
----
1204

skipif mysql # not compatible
query I rowsort label-8294
SELECT MIN ( col1 ) - - + COUNT ( + col1 ) + 80 * + MIN ( ALL + ( col0 ) ) AS col2 FROM tab0
----
1204

query I rowsort
SELECT DISTINCT - col0 + + 64 FROM tab0
----
-23
-33
49

query I rowsort
SELECT + col1 * 41 FROM tab0 WHERE NOT ( NULL ) > + - col0 AND NULL < col1
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 ) <> NULL
----

query I rowsort
SELECT + col2 + - col2 + + 80 - - col1 * col0 AS col1 FROM tab0
----
1295
177
1907

query I rowsort
SELECT ALL + 79 + + col1 AS col1 FROM tab0 AS cor0
----
100
160
80

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 45 - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8301
SELECT DISTINCT - 3 DIV CAST( ( + col0 ) AS SIGNED ) - col2 AS col2 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8301
SELECT DISTINCT - 3 / CAST ( ( + col0 ) AS INTEGER ) - col2 AS col2 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT + + col2 + 97 FROM tab2 AS cor0
----
120
137
155

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT DISTINCT + + COUNT( * ) - 81 AS col1 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-8303
SELECT DISTINCT + + COUNT ( * ) - 81 AS col1 FROM tab1 AS cor0
----
-78

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 BETWEEN NULL AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT DISTINCT + COUNT( * ) * + - COUNT( * ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8305
SELECT DISTINCT + COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab2
----
-9

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 31 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 * 71 * + col1 * col0 FROM tab2 AS cor0
----
-22392832
-26758125
-7662036

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 col1 FROM tab2 cor0
----
-41
-41
-41

query I rowsort
SELECT DISTINCT + 52 AS col0 FROM tab1 AS cor0 WHERE NOT ( + 96 ) NOT BETWEEN ( NULL ) AND col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 9 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8311
SELECT ALL + 76 DIV col1 AS col2 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8311
SELECT ALL + 76 / col1 AS col2 FROM tab2 AS cor0
----
0
1
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 + col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 36, + col1 col2 FROM tab0
----
-36
1
-36
21
-36
81

query II rowsort
SELECT ALL col1 AS col2, - col0 * - 18 FROM tab1
----
14
918
47
1638
5
1530

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8315
SELECT DISTINCT + col1 AS col0, - col0 * 25 * + - CAST( NULL AS SIGNED ) * - - col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-8315
SELECT DISTINCT + col1 AS col0, - col0 * 25 * + - CAST ( NULL AS INTEGER ) * - - col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8316
SELECT col2 DIV + CAST( + - 49 AS SIGNED ) AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8316
SELECT col2 / + CAST ( + - 49 AS INTEGER ) AS col0 FROM tab1
----
-1
-1
-1

query II rowsort
SELECT ALL 80 * + + col2 AS col1, ( - + col2 ) AS col0 FROM tab0
----
3760
-47
7920
-99
800
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT DISTINCT - MIN( + - col2 ) AS col2 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-8318
SELECT DISTINCT - MIN ( + - col2 ) AS col2 FROM tab0 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT - MIN( DISTINCT col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8319
SELECT - MIN ( DISTINCT col0 ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT + - col1 * col1 + 68 FROM tab1 AS cor0
----
-128
-2141
43

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( col2, - col0 * - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + - 60 ) + - col1 * - - 22 col0 FROM tab2
----
-1062
-1414
-1634

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8324
SELECT - 38 FROM tab1 AS cor0 WHERE ( - ( + col2 ) * - CAST( col1 AS SIGNED ) + col0 * - 68 ) NOT IN ( ( + 50 ) * col2 )
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-8324
SELECT - 38 FROM tab1 AS cor0 WHERE ( - ( + col2 ) * - CAST ( col1 AS INTEGER ) + col0 * - 68 ) NOT IN ( ( + 50 ) * col2 )
----
-38
-38
-38

query I rowsort
SELECT 69 * 94 + col2 + - - col2 AS col0 FROM tab0 AS cor0 WHERE - 41 IS NOT NULL
----
6506
6580
6684

query I rowsort
SELECT - - col1 * + + 42 + col0 + - col1 FROM tab2 cor0
----
2137
2822
3221

onlyif mysql # DIV for integer division: 
query I rowsort label-8327
SELECT - col2 DIV + 97 * + col1 * - col0 FROM tab1 AS cor0 WHERE ( NOT + col2 IS NULL )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8327
SELECT - col2 / + 97 * + col1 * - col0 FROM tab1 AS cor0 WHERE ( NOT + col2 IS NULL )
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8328
SELECT DISTINCT - + ( - CAST( + COUNT( * ) AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8328
SELECT DISTINCT - + ( - CAST ( + COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT - 73, - col1 AS col2 FROM tab0
----
-73
-1
-73
-21
-73
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT DISTINCT ( + - COUNT( * ) ) * - 10 + 56 FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-8330
SELECT DISTINCT ( + - COUNT ( * ) ) * - 10 + 56 FROM tab1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT SUM( ALL col0 ) * 25 col0 FROM tab1
----
5675

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8331
SELECT SUM ( ALL col0 ) * 25 col0 FROM tab1
----
5675

query I rowsort
SELECT ALL + ( - 99 ) FROM tab2
----
-99
-99
-99

query II rowsort
SELECT DISTINCT col0 + - 79 * + - col1 AS col2, + col1 FROM tab1
----
1157
14
3804
47
480
5

query I rowsort
SELECT DISTINCT col2 * - col0 FROM tab1 WHERE NOT NULL NOT BETWEEN - col2 - + 50 + + col1 * 4 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8335
SELECT col2 * - col2 * + + CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8335
SELECT col2 * - col2 * + + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT DISTINCT MAX( DISTINCT - - col1 ) + + MAX( - col0 ) col0 FROM tab2
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8336
SELECT DISTINCT MAX ( DISTINCT - - col1 ) + + MAX ( - col0 ) col0 FROM tab2
----
31

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - - 19 - - 26 AS col0 FROM tab2 AS cor0
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8339
SELECT ALL + CAST( NULL AS SIGNED ), 60 AS col2 FROM tab0 AS cor0
----
NULL
60
NULL
60
NULL
60

skipif mysql # not compatible
query II rowsort label-8339
SELECT ALL + CAST ( NULL AS INTEGER ), 60 AS col2 FROM tab0 AS cor0
----
NULL
60
NULL
60
NULL
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 76 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
76

query II rowsort
SELECT DISTINCT + col2 * col1, col2 FROM tab2
----
1173
23
3080
40
3886
58

query I rowsort
SELECT - - 40 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT ALL + col1 * 82 * - + 82 * + 16 AS col1 FROM tab2 AS cor0
----
-5486784
-7208128
-8283968

query I rowsort
SELECT - col1 * - col1 * col0 AS col0 FROM tab1 AS cor0
----
201019
2125
9996

query I rowsort
SELECT ALL ( + + col2 ) * 30 + col1 FROM tab2 cor0 WHERE NOT col0 * + col2 BETWEEN - 37 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT - MAX( DISTINCT - col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8346
SELECT - MAX ( DISTINCT - col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT DISTINCT ( + 85 ) AS col2 FROM tab0 AS cor0
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8348
SELECT + COUNT( * ) DIV 5 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8348
SELECT + COUNT ( * ) / 5 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + - 14 FROM tab2 cor0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT ( + - MAX( ALL - + 59 ) ) FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8350
SELECT ( + - MAX ( ALL - + 59 ) ) FROM tab2 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT COUNT( * ) * - 63 AS col1 FROM tab2 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-8351
SELECT COUNT ( * ) * - 63 AS col1 FROM tab2 AS cor0
----
-189

query III rowsort
SELECT * FROM tab1 WHERE NOT - 82 = - 39 - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8353
SELECT ALL MAX( - + 10 ) DIV 46 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8353
SELECT ALL MAX ( - + 10 ) / 46 FROM tab0
----
0

query I rowsort
SELECT DISTINCT 37 * - 72 FROM tab1
----
-2664

query I rowsort
SELECT DISTINCT col1 * 56 FROM tab0
----
1176
4536
56

query I rowsort
SELECT DISTINCT - col1 * 10 FROM tab0
----
-10
-210
-810

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT ( NULL ) BETWEEN - col2 AND col2
----

query I rowsort
SELECT ALL - col0 * + + 30 * - col0 + - - col0 AS col0 FROM tab2
----
122944
168825
63526

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + ( + col2 ) + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 30 * + + 57 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + 87
----

query II rowsort
SELECT DISTINCT - 51 AS col1, col2 FROM tab0
----
-51
10
-51
47
-51
99

query II rowsort
SELECT ALL + col1 + + + col2 + - 58 AS col2, col1 FROM tab1 cor0
----
52
14
57
47
6
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT ALL 94 - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
94

skipif mysql # not compatible
query I rowsort label-8363
SELECT ALL 94 - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 26 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8365
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IN ( - col2 )
----
0

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT ALL + COUNT( * ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8368
SELECT DISTINCT + - 72 * + + 85 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8368
SELECT DISTINCT + - 72 * + + 85 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8369
SELECT DISTINCT - + CAST( - 5 AS SIGNED ) + - col0 AS col0 FROM tab1 AS cor0
----
-46
-80
-86

skipif mysql # not compatible
query I rowsort label-8369
SELECT DISTINCT - + CAST ( - 5 AS INTEGER ) + - col0 AS col0 FROM tab1 AS cor0
----
-46
-80
-86

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 29 ) NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT + col0 + - 18 FROM tab2 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT - 41 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-8372
SELECT - 41 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-123

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 - col1 = NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col0, - ( + col1 ) FROM tab1 AS cor0
----
-51
-14
-85
-5
-91
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT - 49 - + - 58 * + COUNT( * ) FROM tab1
----
125

skipif mysql # not compatible
query I rowsort label-8375
SELECT - 49 - + - 58 * + COUNT ( * ) FROM tab1
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-8376
SELECT DISTINCT - col0 DIV - ( col2 ) FROM tab0
----
0
8

skipif mysql # not compatible
query I rowsort label-8376
SELECT DISTINCT - col0 / - ( col2 ) FROM tab0
----
0
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8377
SELECT ALL 81 * - + CAST( NULL AS SIGNED ), + 38 AS col2 FROM tab0
----
NULL
38
NULL
38
NULL
38

skipif mysql # not compatible
query II rowsort label-8377
SELECT ALL 81 * - + CAST ( NULL AS INTEGER ), + 38 AS col2 FROM tab0
----
NULL
38
NULL
38
NULL
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8378
SELECT col0 * + + CAST( col2 AS SIGNED ) + - + ( col1 ) FROM tab1
----
4882
5010
6141

skipif mysql # not compatible
query I rowsort label-8378
SELECT col0 * + + CAST ( col2 AS INTEGER ) + - + ( col1 ) FROM tab1
----
4882
5010
6141

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8379
SELECT col0 + col2 * + CAST( NULL AS DECIMAL ) * + col0 * + - col0 * - 2 + - col2, col1 * + col1 AS col2 FROM tab2
----
NULL
2601
NULL
4489
NULL
5929

skipif mysql # not compatible
query II rowsort label-8379
SELECT col0 + col2 * + CAST ( NULL AS REAL ) * + col0 * + - col0 * - 2 + - col2, col1 * + col1 AS col2 FROM tab2
----
NULL
2601
NULL
4489
NULL
5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8380
SELECT DISTINCT + - 72 FROM tab1 WHERE NOT - 33 * CAST( + col1 AS SIGNED ) IS NULL
----
-72

skipif mysql # not compatible
query I rowsort label-8380
SELECT DISTINCT + - 72 FROM tab1 WHERE NOT - 33 * CAST ( + col1 AS INTEGER ) IS NULL
----
-72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 > - col1
----
15
81
47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 68 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 96 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT + 7 * + - 71 + - col1 IN ( + + col1 + ( col0 ) + - col2 / - + col2 * 94 * + - col0 + col0 + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + 47 AS col2, - col0 FROM tab1 AS cor0
----
47
-51
47
-85
47
-91

query I rowsort
SELECT ALL + 9 AS col1 FROM tab0 cor0 WHERE NOT + ( - col2 ) + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < - col1 * + col1
----

query I rowsort
SELECT DISTINCT + 53 / - col2 + + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT + COUNT( * ) + - 40 FROM tab2 AS cor0 WHERE NOT 37 - col2 >= NULL
----
-40

skipif mysql # not compatible
query I rowsort label-8389
SELECT + COUNT ( * ) + - 40 FROM tab2 AS cor0 WHERE NOT 37 - col2 >= NULL
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8390
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE 51 NOT BETWEEN + - CAST( 0 AS SIGNED ) * 79 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8390
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE 51 NOT BETWEEN + - CAST ( 0 AS INTEGER ) * 79 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT ALL MIN( ( + + 83 ) ) * + - COUNT( - 75 ) AS col1 FROM tab2
----
-249

skipif mysql # not compatible
query I rowsort label-8391
SELECT ALL MIN ( ( + + 83 ) ) * + - COUNT ( - 75 ) AS col1 FROM tab2
----
-249

query I rowsort
SELECT - 89 * - ( - col2 ) + + - 51 + col1 AS col1 FROM tab1
----
-5297
-6056
-8581

query I rowsort
SELECT 23 + 80 + - + col0 AS col1 FROM tab2
----
28
39
57

query I rowsort
SELECT 11 FROM tab2 WHERE NOT + 74 * - col0 + col2 IS NULL
----
11
11
11

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8396
SELECT DISTINCT CAST( - + 71 AS SIGNED ) * + 77 AS col1 FROM tab2 AS cor0
----
-5467

skipif mysql # not compatible
query I rowsort label-8396
SELECT DISTINCT CAST ( - + 71 AS INTEGER ) * + 77 AS col1 FROM tab2 AS cor0
----
-5467

onlyif mysql # DIV for integer division: 
query I rowsort label-8397
SELECT col1 DIV + - 2 FROM tab2
----
-25
-33
-38

skipif mysql # not compatible
query I rowsort label-8397
SELECT col1 / + - 2 FROM tab2
----
-25
-33
-38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8398
SELECT - col1 AS col2, - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-8398
SELECT - col1 AS col2, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

query I rowsort
SELECT 68 + - col0 * - + col2 + - col0 AS col2 FROM tab2
----
1080
2564
4343

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 + - + col2 col1 FROM tab0
----
-110
-2256
-9900

query I rowsort
SELECT - 15 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT ( 27 IS NULL ) )
----

query I rowsort
SELECT ALL 19 + - col1 FROM tab2 AS cor0
----
-32
-48
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT DISTINCT + 87 - - - COUNT( * ) col1 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8403
SELECT DISTINCT + 87 - - - COUNT ( * ) col1 FROM tab2 AS cor0
----
84

query I rowsort
SELECT - + col2 + + + 40 AS col0 FROM tab1 cor0
----
-19
-28
-56

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 84 * - col1 IS NULL
----

query I rowsort
SELECT + 94 FROM tab0 cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT ALL 14 - col1 AS col0 FROM tab1 AS cor0
----
-33
0
9

query I rowsort
SELECT ALL + 48 AS col2 FROM tab2 AS cor0
----
48
48
48

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE + col0 + - col0 + + 69 NOT IN ( + - col2 + col1 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT DISTINCT ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8410
SELECT DISTINCT ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8411
SELECT DISTINCT - 84 DIV + COUNT( * ) FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-8411
SELECT DISTINCT - 84 / + COUNT ( * ) FROM tab2 AS cor0
----
-28

query I rowsort
SELECT ( 44 ) FROM tab2
----
44
44
44

query I rowsort
SELECT + 25 * col1 AS col1 FROM tab0
----
2025
25
525

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT - 5 - COUNT( * ) AS col2 FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-8414
SELECT - 5 - COUNT ( * ) AS col2 FROM tab2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT COUNT( * ) + - + COUNT( * ) * - COUNT( * ) * COUNT( * ) * + 87 AS col1 FROM tab2 WHERE NULL IS NULL
----
2352

skipif mysql # not compatible
query I rowsort label-8415
SELECT COUNT ( * ) + - + COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) * + 87 AS col1 FROM tab2 WHERE NULL IS NULL
----
2352

onlyif mysql # DIV for integer division: 
query II rowsort label-8416
SELECT ALL - col1 AS col1, col0 DIV + - col0 + 12 FROM tab2
----
-51
11
-67
11
-77
11

skipif mysql # not compatible
query II rowsort label-8416
SELECT ALL - col1 AS col1, col0 / + - col0 + 12 FROM tab2
----
-51
11
-67
11
-77
11

query I rowsort
SELECT - 28 FROM tab1 WHERE NOT + + col0 * - + col2 IS NULL
----
-28
-28
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 63, + col2 * - col0 col0 FROM tab2
----
63
-1058
63
-2560
63
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-8419
SELECT DISTINCT + col1 DIV - + 44 + 92 AS col2 FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8419
SELECT DISTINCT + col1 / - + 44 + 92 AS col2 FROM tab2 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT COUNT( DISTINCT 78 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8420
SELECT COUNT ( DISTINCT 78 ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8421
SELECT + CAST( - col2 AS SIGNED ) AS col1, col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

skipif mysql # not compatible
query II rowsort label-8421
SELECT + CAST ( - col2 AS INTEGER ) AS col1, col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query I rowsort
SELECT - 63 AS col2 FROM tab2 cor0
----
-63
-63
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 col2 FROM tab1 AS cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT ALL COUNT( col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL COUNT ( col0 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + col0 * + col2 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8426
SELECT ALL + CAST( col1 AS SIGNED ) col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8426
SELECT ALL + CAST ( col1 AS INTEGER ) col2 FROM tab0
----
1
21
81

query I rowsort
SELECT + 79 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT + ( + col1 ) * 33 <> - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8429
SELECT - CAST( + AVG ( DISTINCT - - col1 ) AS SIGNED ) FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-8429
SELECT - CAST ( + AVG ( DISTINCT - - col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-22

query I rowsort
SELECT ALL - - 25 AS col1 FROM tab1 cor0
----
25
25
25

query II rowsort
SELECT ( 58 ) AS col1, 7 + + col2 AS col1 FROM tab0 cor0
----
58
106
58
17
58
54

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN NULL AND + - 28
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 55 / + - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( - col2 ) NOT BETWEEN ( NULL ) AND 69
----

query I rowsort
SELECT DISTINCT col0 * - 34 FROM tab1
----
-1734
-2890
-3094

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NULL IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT - + 97 + + + col2 + + + col2 AS col2 FROM tab0 WHERE - col2 IS NOT NULL
----
-3
-77
101

query I rowsort
SELECT ALL col1 + + 74 FROM tab2
----
125
141
151

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT - MIN( + col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8439
SELECT - MIN ( + col2 ) FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT ALL + 88 + COUNT( * ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8440
SELECT ALL + 88 + COUNT ( * ) FROM tab1
----
91

query I rowsort
SELECT DISTINCT + 55 + + col2 AS col0 FROM tab1
----
114
123
151

query I rowsort
SELECT ALL ( + col0 ) + 72 AS col2 FROM tab0 AS cor0
----
159
169
87

query I rowsort
SELECT - col2 + + col2 - 25 * - ( col1 ) FROM tab1 AS cor0
----
1175
125
350

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 IN ( + - col0, - col2, - col1 - + ( + 72 ) )
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 * - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8446
SELECT ALL 57 * - + col1 * - col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL 57 * - + col1 * - col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8447
SELECT DISTINCT - - COUNT( * ) AS col1, AVG ( - - col0 ) * - COUNT( * ) + + + CAST( NULL AS DECIMAL ) + 89 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8447
SELECT DISTINCT - - COUNT ( * ) AS col1, AVG ( - - col0 ) * - COUNT ( * ) + + + CAST ( NULL AS REAL ) + 89 FROM tab0 AS cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT + 32 + + - COUNT( * ) FROM tab2 cor0
----
29

skipif mysql # not compatible
query I rowsort label-8448
SELECT + 32 + + - COUNT ( * ) FROM tab2 cor0
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8449
SELECT DISTINCT 2 DIV COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8449
SELECT DISTINCT 2 / COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8450
SELECT DISTINCT SUM( CAST( col1 AS SIGNED ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-8450
SELECT DISTINCT SUM ( CAST ( col1 AS INTEGER ) ) FROM tab0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - + col0 + + col0 col2 FROM tab1
----
-4845
-4930
-6097

query I rowsort
SELECT DISTINCT - - 26 + - - col0 + + 94 * - + col0 + + col0 FROM tab0 AS cor0
----
-1354
-7978
-8898

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( col1 * col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( col1 * col0 )
----
0

query I rowsort
SELECT DISTINCT ( col0 ) - + + col0 * - col1 * - - col1 AS col1 FROM tab2 AS cor0
----
119692
336750
379520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8455
SELECT COUNT( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8455
SELECT COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT + 11 - COUNT( * ) FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-8456
SELECT + 11 - COUNT ( * ) FROM tab1 AS cor0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8457
SELECT * FROM tab0 AS cor0 WHERE + CAST( - - 60 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8457
SELECT * FROM tab0 AS cor0 WHERE + CAST ( - - 60 AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 44 * + ( + - col0 ) + - col0 - ( 61 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 90 * - col1 AS col2 FROM tab1
----
1260
4230
450

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT DISTINCT + 49 * + COUNT( * ) AS col1 FROM tab1
----
147

skipif mysql # not compatible
query I rowsort label-8460
SELECT DISTINCT + 49 * + COUNT ( * ) AS col1 FROM tab1
----
147

query I rowsort
SELECT DISTINCT - + 92 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 31 col2, - 14 * + col0 FROM tab0
----
31
-1218
31
-1358
31
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT COUNT( DISTINCT 93 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8463
SELECT COUNT ( DISTINCT 93 ) FROM tab2
----
1

query I rowsort
SELECT DISTINCT - col1 * - + col0 * + col0 FROM tab2
----
107916
315392
376875

query III rowsort
SELECT col2 AS col2, + ( + col1 ) AS col0, + + 77 AS col1 FROM tab0
----
9 values hashing to 8eda22ebf8877b4e475a8d590d2c0e73

query I rowsort
SELECT DISTINCT col0 * + - 25 * + 56 FROM tab2 AS cor0
----
-105000
-64400
-89600

onlyif mysql # DIV for integer division: 
query I rowsort label-8467
SELECT + 43 DIV col0 + - + col0 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8467
SELECT + 43 / col0 + - + col0 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 col1, col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT MAX( + - 96 ) FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8469
SELECT MAX ( + - 96 ) FROM tab0 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT DISTINCT MAX( ALL col2 ) FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-8470
SELECT DISTINCT MAX ( ALL col2 ) FROM tab2 cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 6, - col1 * - 33 col1 FROM tab1 AS cor0
----
6
1551
6
165
6
462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8472
SELECT - 80 + + ( CAST( - col1 AS SIGNED ) ) + 9 * + - 74 AS col1 FROM tab0 AS cor0
----
-747
-767
-827

skipif mysql # not compatible
query I rowsort label-8472
SELECT - 80 + + ( CAST ( - col1 AS INTEGER ) ) + 9 * + - 74 AS col1 FROM tab0 AS cor0
----
-747
-767
-827

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT DISTINCT - MIN( col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8473
SELECT DISTINCT - MIN ( col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * + col2 * + + col1 col1 FROM tab2 AS cor0 WHERE NOT NULL <= NULL OR NOT NULL = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT ALL + SUM( DISTINCT + + col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL + SUM ( DISTINCT + + col1 ) AS col2 FROM tab2 AS cor0
----
195

query I rowsort
SELECT - ( - col2 ) + 74 FROM tab0
----
121
173
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 - - 52 col0 FROM tab0
----
152
180
83

query I rowsort
SELECT DISTINCT - col1 + + - col2 + + - col1 FROM tab1
----
-124
-162
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8479
SELECT - CAST( - 73 AS SIGNED ) + - col0 FROM tab1
----
-12
-18
22

skipif mysql # not compatible
query I rowsort label-8479
SELECT - CAST ( - 73 AS INTEGER ) + - col0 FROM tab1
----
-12
-18
22

query I rowsort
SELECT DISTINCT 49 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT DISTINCT - 89 * - col0 + - 16 FROM tab2
----
4078
5680
6659

query I rowsort
SELECT DISTINCT + col2 * - + col2 * + 48 AS col1 FROM tab2 WHERE NULL IS NULL
----
-161472
-25392
-76800

query I rowsort
SELECT DISTINCT 94 + + 7 * - col2 FROM tab2
----
-186
-312
-67

query I rowsort
SELECT ALL - - col0 FROM tab0 cor0 WHERE NOT 6 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT SUM( col1 ) + - 29 FROM tab2 AS cor0 WHERE + ( col2 ) - 69 + col2 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8485
SELECT SUM ( col1 ) + - 29 FROM tab2 AS cor0 WHERE + ( col2 ) - 69 + col2 <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8486
SELECT - MIN( + col2 ) - COUNT( * ) AS col1, 2 AS col0 FROM tab1 cor0
----
-62
2

skipif mysql # not compatible
query II rowsort label-8486
SELECT - MIN ( + col2 ) - COUNT ( * ) AS col1, 2 AS col0 FROM tab1 cor0
----
-62
2

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8487
SELECT - - col1 * + + col2 - + col1 - - + col1 * + + CAST( NULL AS DECIMAL ) * - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8487
SELECT - - col1 * + + col2 - + col1 - - + col1 * + + CAST ( NULL AS REAL ) * - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT 65 * MIN( DISTINCT + col0 ) + - 47 FROM tab0
----
928

skipif mysql # not compatible
query I rowsort label-8488
SELECT 65 * MIN ( DISTINCT + col0 ) + - 47 FROM tab0
----
928

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8489
SELECT * FROM tab0 WHERE + + col2 BETWEEN + CAST( NULL AS SIGNED ) AND + 90
----

skipif mysql # not compatible
query III rowsort label-8489
SELECT * FROM tab0 WHERE + + col2 BETWEEN + CAST ( NULL AS INTEGER ) AND + 90
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8490
SELECT ALL * FROM tab2 WHERE col2 * + CAST( + + 68 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8490
SELECT ALL * FROM tab2 WHERE col2 * + CAST ( + + 68 AS INTEGER ) IS NULL
----

query I rowsort
SELECT - col0 + 5 FROM tab2 AS cor0
----
-41
-59
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8492
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NULL > CAST( NULL AS SIGNED ) / CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NULL > CAST ( NULL AS INTEGER ) / CAST ( col0 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8493
SELECT DISTINCT CAST( - 48 AS SIGNED ) + + 37 - + col2 AS col0, + col1 FROM tab1 AS cor0
----
-107
14
-70
5
-79
47

skipif mysql # not compatible
query II rowsort label-8493
SELECT DISTINCT CAST ( - 48 AS INTEGER ) + + 37 - + col2 AS col0, + col1 FROM tab1 AS cor0
----
-107
14
-70
5
-79
47

query I rowsort
SELECT ALL - col0 + + + col1 FROM tab1 cor0
----
-37
-44
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col0 col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT + 56 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-8496
SELECT + 56 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
168

query I rowsort
SELECT ALL + ( - + 88 ) AS col2 FROM tab1 AS cor0
----
-88
-88
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT 22 * + - COUNT( * ) FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8498
SELECT 22 * + - COUNT ( * ) FROM tab0 AS cor0
----
-66

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - col0 * col2 + - col1 AND - - col2 + col0
----

query II rowsort
SELECT col2, col1 + - - col0 FROM tab2 WHERE NOT ( NOT col2 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8501
SELECT DISTINCT col2 * - CAST( NULL AS SIGNED ) AS col2, - col1 + + - col2 AS col0 FROM tab0
----
NULL
-100
NULL
-128
NULL
-31

skipif mysql # not compatible
query II rowsort label-8501
SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) AS col2, - col1 + + - col2 AS col0 FROM tab0
----
NULL
-100
NULL
-128
NULL
-31

query I rowsort
SELECT col2 * - + col1 * + - col0 * - col0 AS col0 FROM tab1
----
-2131375
-26466076
-3495744

query I rowsort
SELECT ALL - 18 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8504
SELECT ALL CAST( 22 AS SIGNED ) * col1 FROM tab2
----
1122
1474
1694

skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL CAST ( 22 AS INTEGER ) * col1 FROM tab2
----
1122
1474
1694

query I rowsort
SELECT ALL + col2 * + 15 * + col2 FROM tab1
----
138240
52215
69360

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 92 IN ( + - 53 * + 39, + 5 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8507
SELECT DISTINCT - COUNT( DISTINCT CAST( - col1 AS SIGNED ) ) * COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT - COUNT ( DISTINCT CAST ( - col1 AS INTEGER ) ) * COUNT ( * ) AS col1 FROM tab0
----
-9

query I rowsort
SELECT DISTINCT 85 * + + col2 AS col0 FROM tab1
----
5015
5780
8160

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > ( - + col0 ) + + - col2 - + - col2 / - - col2 * + col2
----

query I rowsort
SELECT DISTINCT + + ( + ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT - + MIN( + col1 ) AS col0 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8511
SELECT - + MIN ( + col1 ) AS col0 FROM tab1 cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8512
SELECT ALL - CAST( + - col2 AS SIGNED ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL - CAST ( + - col2 AS INTEGER ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT ALL MIN( DISTINCT 23 ) col0 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8513
SELECT ALL MIN ( DISTINCT 23 ) col0 FROM tab0 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8514
SELECT ALL CAST( ( + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8514
SELECT ALL CAST ( ( + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT DISTINCT - MIN( ALL - col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8515
SELECT DISTINCT - MIN ( ALL - col1 ) AS col2 FROM tab0
----
81

query III rowsort
SELECT * FROM tab1 WHERE - + 79 >= 42
----

query I rowsort
SELECT ALL - 20 * col0 FROM tab2
----
-1280
-1500
-920

onlyif mysql # DIV for integer division: 
query I rowsort label-8518
SELECT ALL col0 * - 14 + + col0 DIV + 48 col2 FROM tab1
----
-1189
-1273
-713

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8518
SELECT ALL col0 * - 14 + + col0 / + 48 col2 FROM tab1
----
-1189
-1273
-713

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8519
SELECT - - CAST( col2 AS SIGNED ) + + + 3, 18 + 99 + + + 94 FROM tab2 WHERE NULL IN ( + col2, 79 )
----

skipif mysql # not compatible
query II rowsort label-8519
SELECT - - CAST ( col2 AS INTEGER ) + + + 3, 18 + 99 + + + 94 FROM tab2 WHERE NULL IN ( + col2, 79 )
----

query I rowsort
SELECT col2 + + 93 AS col2 FROM tab1
----
152
161
189

query I rowsort
SELECT + 38 + + 68 FROM tab0
----
106
106
106

query I rowsort
SELECT ALL + 60 + + 41 * + col2 FROM tab0
----
1987
4119
470

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 - col1 + col2 + col1 - - + 84 + col1 NOT BETWEEN - col2 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < - 59
----

query I rowsort
SELECT + 22 AS col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT + 44 - + + COUNT( * ) AS col0 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-8526
SELECT + 44 - + + COUNT ( * ) AS col0 FROM tab0
----
41

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 84 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT - MAX( ALL - 41 ) AS col0 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-8528
SELECT - MAX ( ALL - 41 ) AS col0 FROM tab0 AS cor0
----
41

query I rowsort
SELECT ALL + + 35 FROM tab1 AS cor0
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT ALL - ( - - MIN( + 83 ) ) AS col0 FROM tab1 cor0
----
-83

skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL - ( - - MIN ( + 83 ) ) AS col0 FROM tab1 cor0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT ( + COUNT( * ) ) * - - COUNT( * ) + - COUNT( * ) + COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8531
SELECT ( + COUNT ( * ) ) * - - COUNT ( * ) + - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1
----
9

query I rowsort
SELECT ALL - 54 * + col1 FROM tab1
----
-2538
-270
-756

query I rowsort
SELECT 73 * - col0 FROM tab1
----
-3723
-6205
-6643

query I rowsort
SELECT ALL - 4 * 90 FROM tab0
----
-360
-360
-360

query I rowsort
SELECT ( - col0 ) * + col2 * 17 FROM tab2
----
-17986
-43520
-73950

query II rowsort
SELECT ALL 43 AS col0, - col2 AS col2 FROM tab1
----
43
-59
43
-68
43
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-8537
SELECT DISTINCT - COUNT( * ) AS col1, + 24 + 77 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-3
101

skipif mysql # not compatible
query II rowsort label-8537
SELECT DISTINCT - COUNT ( * ) AS col1, + 24 + 77 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-3
101

query II rowsort
SELECT ALL + col2 AS col2, - col0 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT DISTINCT - COUNT( * ) + - MIN( DISTINCT + col2 ) AS col0 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-8539
SELECT DISTINCT - COUNT ( * ) + - MIN ( DISTINCT + col2 ) AS col0 FROM tab0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT DISTINCT 15 * + COUNT( * ) + - 39 AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8540
SELECT DISTINCT 15 * + COUNT ( * ) + - 39 AS col0 FROM tab2
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 34 col2 FROM tab2 AS cor0
----
-34
-34
-34

query I rowsort
SELECT - col2 + - 57 * - col1 FROM tab0 AS cor0
----
-42
1187
4570

query I rowsort
SELECT - + col1 + + 50 FROM tab2 AS cor0
----
-1
-17
-27

query II rowsort
SELECT + 82, + col0 - - + col1 AS col1 FROM tab1 AS cor0 WHERE - 11 NOT BETWEEN NULL AND + col1 * 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT ALL - 98 + + + SUM( DISTINCT - + col2 ) col2 FROM tab0
----
-254

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8545
SELECT ALL - 98 + + + SUM ( DISTINCT - + col2 ) col2 FROM tab0
----
-254

query I rowsort
SELECT - col0 + - 50 FROM tab2
----
-114
-125
-96

query I rowsort
SELECT + ( + ( - 99 ) ) FROM tab0
----
-99
-99
-99

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NULL < - + col0 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT DISTINCT + 38 + COUNT( * ) FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-8549
SELECT DISTINCT + 38 + COUNT ( * ) FROM tab1
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8550
SELECT ALL col0 + + CAST( 2 AS SIGNED ), - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
48
NULL
66
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-8550
SELECT ALL col0 + + CAST ( 2 AS INTEGER ), - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
48
NULL
66
NULL
77
NULL

query I rowsort
SELECT ( + 11 ) + - 40 FROM tab2, tab1 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

onlyif mysql # DIV for integer division: 
query I rowsort label-8552
SELECT + col2 DIV 36 FROM tab1 WHERE NULL IS NULL
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8552
SELECT + col2 / 36 FROM tab1 WHERE NULL IS NULL
----
1
1
2

query I rowsort
SELECT ALL 9 + col0 AS col0 FROM tab0 cor0
----
106
24
96

query I rowsort
SELECT + 62 - col2 AS col0 FROM tab2 AS cor0
----
22
39
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT DISTINCT AVG ( col1 ) * + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8555
SELECT DISTINCT AVG ( col1 ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8556
SELECT ALL - 56 DIV - col1 AS col2 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
0
2
56

skipif mysql # not compatible
query I rowsort label-8556
SELECT ALL - 56 / - col1 AS col2 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
0
2
56

query I rowsort
SELECT ALL - 58 AS col0 FROM tab0 AS cor0
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT ( - COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8558
SELECT ( - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT DISTINCT + 43 * + 40 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 65 col2, + 98 * + 45 FROM tab2
----
65
4410
65
4410
65
4410

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8561
SELECT ALL 49 AS col1, - COUNT( * ) + + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
49
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8561
SELECT ALL 49 AS col1, - COUNT ( * ) + + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
49
NULL

query I rowsort
SELECT + - ( + + col2 ) FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-8563
SELECT DISTINCT - col0 AS col0, col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
-51
3
-85
17
-91
1

skipif mysql # not compatible
query II rowsort label-8563
SELECT DISTINCT - col0 AS col0, col0 / + col1 AS col2 FROM tab1 AS cor0
----
-51
3
-85
17
-91
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT ( - COUNT( ALL - + 69 ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8564
SELECT ( - COUNT ( ALL - + 69 ) ) AS col1 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT ALL + col0, col0 AS col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query II rowsort
SELECT + - col2 * - - col2 * - 97 * + 35, col1 AS col2 FROM tab1 AS cor0
----
11817995
5
15698480
47
31288320
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8567
SELECT ALL + col1, 54 * - col0 - - col2 * + CAST( NULL AS SIGNED ) * col0 * + col0 + + - 81 * - col2 * 88 + - 68 col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8567
SELECT ALL + col1, 54 * - col0 - - col2 * + CAST ( NULL AS INTEGER ) * col0 * + col0 + + - 81 * - col2 * 88 + - 68 col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query II rowsort
SELECT col2, col0 * col0 FROM tab0 AS cor0
----
10
7569
47
225
99
9409

query II rowsort
SELECT 33, 3 - - - col1 * + 40 FROM tab1 AS cor0 WHERE NOT - col0 * 81 + - - col1 - - + 40 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8570
SELECT DISTINCT COUNT( * ), - 80 * + 46 AS col1 FROM tab2 AS cor0
----
3
-3680

skipif mysql # not compatible
query II rowsort label-8570
SELECT DISTINCT COUNT ( * ), - 80 * + 46 AS col1 FROM tab2 AS cor0
----
3
-3680

onlyif mysql # aggregate syntax: 
query II rowsort label-8571
SELECT DISTINCT + + 20 AS col0, MAX( col1 ) FROM tab0 AS cor0
----
20
81

skipif mysql # not compatible
query II rowsort label-8571
SELECT DISTINCT + + 20 AS col0, MAX ( col1 ) FROM tab0 AS cor0
----
20
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT + MAX( ALL - 56 ) FROM tab1 cor0
----
-56

skipif mysql # not compatible
query I rowsort label-8572
SELECT + MAX ( ALL - 56 ) FROM tab1 cor0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT DISTINCT + COUNT( + 20 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8573
SELECT DISTINCT + COUNT ( + 20 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT DISTINCT MAX( - - 20 ) AS col1 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-8574
SELECT DISTINCT MAX ( - - 20 ) AS col1 FROM tab0
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 17 col2 FROM tab0
----
-1683
-170
-799

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8576
SELECT - MIN( DISTINCT col0 ) DIV COUNT( * ) AS col1, + ( COUNT( * ) ) FROM tab0 cor0
----
-5
3

skipif mysql # not compatible
query II rowsort label-8576
SELECT - MIN ( DISTINCT col0 ) / COUNT ( * ) AS col1, + ( COUNT ( * ) ) FROM tab0 cor0
----
-5
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8577
SELECT ALL + 98 DIV + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL + 98 / + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2
-9
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + 16 >= NULL
----

query I rowsort
SELECT + col1 * col0 * - col0 AS col2 FROM tab1 AS cor0
----
-36125
-36414
-389207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8580
SELECT CAST( - COUNT( * ) AS SIGNED ) + 22 - + - COUNT( * ) + - 79 * - 60 FROM tab2 AS cor0
----
4762

skipif mysql # not compatible
query I rowsort label-8580
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + 22 - + - COUNT ( * ) + - 79 * - 60 FROM tab2 AS cor0
----
4762

onlyif mysql # DIV for integer division: 
query II rowsort label-8581
SELECT ALL col1 DIV - + col1 AS col0, + col0 AS col1 FROM tab1 cor0
----
-1
51
-1
85
-1
91

skipif mysql # not compatible
query II rowsort label-8581
SELECT ALL col1 / - + col1 AS col0, + col0 AS col1 FROM tab1 cor0
----
-1
51
-1
85
-1
91

query I rowsort
SELECT ALL - col0 * 65 AS col1 FROM tab2 AS cor0
----
-2990
-4160
-4875

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT + + MAX( ALL + + col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8583
SELECT + + MAX ( ALL + + col2 ) AS col0 FROM tab0 AS cor0
----
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN - + ( - - ( - 11 ) ) AND col0 / 64
----

query I rowsort
SELECT DISTINCT - col1 * - col2 - - - ( + 41 ) - + col0 AS col2 FROM tab2 AS cor0
----
1086
2975
3770

query II rowsort
SELECT DISTINCT - - col2 AS col1, col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8587
SELECT DISTINCT - + col2 * + + CAST( + col0 AS SIGNED ) AS col1 FROM tab1 cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-8587
SELECT DISTINCT - + col2 * + + CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 cor0
----
-4896
-5015
-6188

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= + col0 OR NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8589
SELECT DISTINCT - + 77 * COUNT( * ) * - + 2 + + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8589
SELECT DISTINCT - + 77 * COUNT ( * ) * - + 2 + + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT ALL - MIN( + col0 ) col0 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8590
SELECT ALL - MIN ( + col0 ) col0 FROM tab0
----
-15

query I rowsort
SELECT ALL + col1 - + - 82 AS col1 FROM tab1
----
129
87
96

query I rowsort
SELECT col1 + 82 FROM tab2
----
133
149
159

query I rowsort
SELECT + 31 + - 40 + - + 45 AS col2 FROM tab2
----
-54
-54
-54

query I rowsort
SELECT + col2 + - + col0 AS col0 FROM tab1 AS cor0
----
-23
-26
45

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 81 < + 31
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-8596
SELECT DISTINCT + - 33 DIV - col1 + + col2 * col0 + - col1 col2, - col0 FROM tab0 AS cor0
----
624
-15
850
-87
9635
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8596
SELECT DISTINCT + - 33 / - col1 + + col2 * col0 + - col1 col2, - col0 FROM tab0 AS cor0
----
624
-15
850
-87
9635
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * 4 + + - col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8598
SELECT ALL + + CAST( + 69 AS SIGNED ) - col0 AS col2 FROM tab1 cor0
----
-16
-22
18

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL + + CAST ( + 69 AS INTEGER ) - col0 AS col2 FROM tab1 cor0
----
-16
-22
18

query I rowsort
SELECT + col1 * + col0 * - 99 FROM tab2
----
-232254
-487872
-497475

query I rowsort
SELECT DISTINCT - + 23 FROM tab0 AS cor0 WHERE NOT + col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8601
SELECT + - col0 FROM tab1 cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN NULL AND 52 * col2
----

skipif mysql # not compatible
query I rowsort label-8601
SELECT + - col0 FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN NULL AND 52 * col2
----

query I rowsort
SELECT + 89 * - col1 * - 73 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 * col1 * col1 AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * + - col2 + + col2 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8604
SELECT DISTINCT COUNT( - - col1 ) DIV - 38 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8604
SELECT DISTINCT COUNT ( - - col1 ) / - 38 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT DISTINCT - MAX( ALL - 64 ) FROM tab2 cor0
----
64

skipif mysql # not compatible
query I rowsort label-8605
SELECT DISTINCT - MAX ( ALL - 64 ) FROM tab2 cor0
----
64

query I rowsort
SELECT - col2 * - + col2 AS col1 FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query II rowsort label-8607
SELECT DISTINCT SUM( DISTINCT - col1 ) col0, 37 AS col1 FROM tab0
----
-103
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8607
SELECT DISTINCT SUM ( DISTINCT - col1 ) col0, 37 AS col1 FROM tab0
----
-103
37

query II rowsort
SELECT ALL col0 AS col1, col0 + col0 AS col0 FROM tab2
----
46
92
64
128
75
150

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8609
SELECT - col1 col0, + ( - - ( - CAST( + + col0 AS SIGNED ) ) ) * - + 23 * - - 23 * - col2 FROM tab2
----
-51
-559682
-67
-2301150
-77
-1354240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8609
SELECT - col1 col0, + ( - - ( - CAST ( + + col0 AS INTEGER ) ) ) * - + 23 * - - 23 * - col2 FROM tab2
----
-51
-559682
-67
-2301150
-77
-1354240

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 + ( - ( + 81 ) ) IS NULL
----

query I rowsort
SELECT - col2 * + + 21 FROM tab2
----
-1218
-483
-840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8612
SELECT - CAST( NULL AS SIGNED ) * + + COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8612
SELECT - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT - ( - MAX( DISTINCT - col1 ) ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-8613
SELECT - ( - MAX ( DISTINCT - col1 ) ) AS col2 FROM tab2
----
-51

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE - 44 IS NULL
----

query I rowsort
SELECT ALL + - col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT ALL - + 31 + - ( + col1 ) - + + col0 FROM tab1 AS cor0
----
-121
-169
-96

query I rowsort
SELECT - 5 + col0 + - + 74 * + col0 * - col2 + + + 81 FROM tab0 AS cor0
----
52261
64543
710795

query I rowsort
SELECT ALL - col0 / - - col0 - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT 63 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT ALL - - MIN( ALL + 19 ) - COUNT( * ) FROM tab2 cor0
----
16

skipif mysql # not compatible
query I rowsort label-8619
SELECT ALL - - MIN ( ALL + 19 ) - COUNT ( * ) FROM tab2 cor0
----
16

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 55 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT 15 * COUNT( col2 ) FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8621
SELECT 15 * COUNT ( col2 ) FROM tab2 AS cor0
----
45

query I rowsort
SELECT col2 * + + 49 * + + 66 AS col0 FROM tab2 AS cor0
----
129360
187572
74382

onlyif mysql # aggregate syntax: 
query II rowsort label-8623
SELECT ALL + COUNT( * ) + - + COUNT( * ) * + COUNT( * ) AS col0, - 62 FROM tab2
----
-6
-62

skipif mysql # not compatible
query II rowsort label-8623
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) * + COUNT ( * ) AS col0, - 62 FROM tab2
----
-6
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT ALL MIN( - 43 ) col0 FROM tab2
----
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8624
SELECT ALL MIN ( - 43 ) col0 FROM tab2
----
-43

query I rowsort
SELECT DISTINCT + col1 + - - col0 AS col1 FROM tab1
----
138
65
90

query III rowsort
SELECT DISTINCT col2, - col2 / col2 AS col0, col1 * - col0 + + col1 FROM tab1 WHERE NOT + 53 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8627
SELECT - col0 DIV 60 AS col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8627
SELECT - col0 / 60 AS col2 FROM tab2
----
-1
-1
0

query I rowsort
SELECT 87 AS col2 FROM tab1 WHERE + 47 NOT BETWEEN - 25 AND ( + - col0 )
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT ALL SUM( ALL - + col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-8629
SELECT ALL SUM ( ALL - + col2 ) FROM tab1
----
-223

query I rowsort
SELECT ALL - col2 + + 20 * + col2 + 18 FROM tab0
----
1899
208
911

query II rowsort
SELECT DISTINCT + - col2 + + col2 + + + col1 AS col1, - 89 AS col0 FROM tab2 AS cor0
----
51
-89
67
-89
77
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-8632
SELECT ALL - col0 DIV - 77 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8632
SELECT ALL - col0 / - 77 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT ALL + 89 * + col2 - col1 AS col1 FROM tab2 AS cor0
----
1996
3483
5095

query I rowsort
SELECT DISTINCT + ( + 2 ) FROM tab0 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8635
SELECT DISTINCT CAST( - 87 AS SIGNED ) DIV - - col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT CAST ( - 87 AS INTEGER ) / - - col2 FROM tab1 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT DISTINCT + SUM( - col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8636
SELECT DISTINCT + SUM ( - col2 ) AS col1 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL + 75 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 = 64
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 52 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT + - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8640
SELECT + - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8641
SELECT + 63 DIV COUNT( * ) AS col1 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-8641
SELECT + 63 / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-8642
SELECT ALL + 65 DIV - + 70 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL + 65 / - + 70 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8643
SELECT + 68 DIV + col0 AS col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8643
SELECT + 68 / + col0 AS col1 FROM tab2 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 59 col2 FROM tab2 cor0
----
-59
-59
-59

query I rowsort
SELECT + - col1 * + 47 - + 93 FROM tab1 AS cor0
----
-2302
-328
-751

query I rowsort
SELECT - - 73 FROM tab0 cor0
----
73
73
73

query I rowsort
SELECT + + 74 FROM tab2 cor0
----
74
74
74

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 11 + - 66 FROM tab1
----
-55

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8650
SELECT DISTINCT * FROM tab0 WHERE - 88 * + CAST( + col2 AS SIGNED ) - - + CAST( + + col2 AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8650
SELECT DISTINCT * FROM tab0 WHERE - 88 * + CAST ( + col2 AS INTEGER ) - - + CAST ( + + col2 AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT + COUNT( * ) FROM tab1 WHERE NULL BETWEEN - 96 * + col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8651
SELECT + COUNT ( * ) FROM tab1 WHERE NULL BETWEEN - 96 * + col1 AND NULL
----
0

query I rowsort
SELECT DISTINCT + col1 * - - col1 AS col1 FROM tab0 AS cor0
----
1
441
6561

query II rowsort
SELECT ALL + col0 AS col0, 83 AS col2 FROM tab2 AS cor0
----
46
83
64
83
75
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8654
SELECT 91 * - COUNT( * ) + - - 5 DIV ( - + 52 ) FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-8654
SELECT 91 * - COUNT ( * ) + - - 5 / ( - + 52 ) FROM tab1
----
-273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8655
SELECT DISTINCT COUNT( * ) + - 7 DIV 82 AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8655
SELECT DISTINCT COUNT ( * ) + - 7 / 82 AS col1 FROM tab2
----
3

query I rowsort
SELECT + 44 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
44
44
44

query I rowsort
SELECT - col2 - + 56 + + col0 AS col2 FROM tab2 AS cor0
----
-32
-33
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT DISTINCT + ( COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8658
SELECT DISTINCT + ( COUNT ( * ) ) FROM tab2 cor0
----
3

query II rowsort
SELECT col1 + - - col2 AS col0, - col0 AS col1 FROM tab2
----
117
-64
125
-75
74
-46

query I rowsort
SELECT DISTINCT + col0 - - ( col0 ) + - col0 * + + col0 + 52 + - col0 + col0 AS col0 FROM tab1
----
-2447
-7003
-8047

onlyif mysql # DIV for integer division: 
query I rowsort label-8661
SELECT 56 + 60 DIV + 28 FROM tab0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-8661
SELECT 56 + 60 / + 28 FROM tab0
----
58
58
58

query I rowsort
SELECT ALL - ( - 4 ) FROM tab0
----
4
4
4

query I rowsort
SELECT ALL - 9 + col1 - + col1 AS col1 FROM tab2
----
-9
-9
-9

query I rowsort
SELECT 25 + + 97 AS col0 FROM tab1
----
122
122
122

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT COUNT( * ) * - COUNT( * ) * - + COUNT( * ) AS col0 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-8665
SELECT COUNT ( * ) * - COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab2
----
27

query I rowsort
SELECT DISTINCT 18 * + col0 AS col0 FROM tab1
----
1530
1638
918

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT ALL 57 * + + COUNT( * ) * - COUNT( * ) FROM tab2
----
-513

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL 57 * + + COUNT ( * ) * - COUNT ( * ) FROM tab2
----
-513

query II rowsort
SELECT col1 * col1 AS col0, + 87 FROM tab1
----
196
87
2209
87
25
87

query II rowsort
SELECT DISTINCT + + 9 * + - col0 AS col1, col0 FROM tab1 AS cor0
----
-459
51
-765
85
-819
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8670
SELECT ALL + col0 DIV - col1 + + + col0 col2 FROM tab2 AS cor0
----
46
64
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8670
SELECT ALL + col0 / - col1 + + + col0 col2 FROM tab2 AS cor0
----
46
64
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT - SUM( DISTINCT col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-8671
SELECT - SUM ( DISTINCT col0 ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ALL 71 AS col2 FROM tab1 cor0
----
71
71
71

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( col1 * col2 * - - col1 / + col1 / + col2 + + 17 ) <= NULL
----

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE - col0 * + ( - - 56 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8675
SELECT + col0 AS col0, - 27 DIV 48 * 8 AS col0 FROM tab0
----
15
0
87
0
97
0

skipif mysql # not compatible
query II rowsort label-8675
SELECT + col0 AS col0, - 27 / 48 * 8 AS col0 FROM tab0
----
15
0
87
0
97
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8676
SELECT ALL 55 DIV + col2 * + 76 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL 55 / + col2 * + 76 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT MAX( DISTINCT - col1 ) * + + 47 FROM tab2 AS cor0
----
-2397

skipif mysql # not compatible
query I rowsort label-8677
SELECT MAX ( DISTINCT - col1 ) * + + 47 FROM tab2 AS cor0
----
-2397

query II rowsort
SELECT ALL col1, col1 AS col2 FROM tab0 cor0
----
1
1
21
21
81
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 34 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 94 NOT IN ( col2, + col0, col1, - 14, col0, 64 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 74 AS col2, + col0 - - col0 AS col1 FROM tab2 AS cor0
----
74
128
74
150
74
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8682
SELECT ALL col1 / - col2 * ( + 56 ) + - - col2 AS col1, - CAST( col1 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-8682
SELECT ALL col1 / - col2 * ( + 56 ) + - - col2 AS col1, - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - ( ( col0 ) ) FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8684
SELECT + 54 + - 74 DIV + COUNT( * ) AS col2 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8684
SELECT + 54 + - 74 / + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT ALL - SUM( + col1 ) col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8686
SELECT ALL - SUM ( + col1 ) col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT DISTINCT - 15 * COUNT( * ) AS col1 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-8687
SELECT DISTINCT - 15 * COUNT ( * ) AS col1 FROM tab0
----
-45

query I rowsort
SELECT col1 + col2 - - 62 FROM tab2
----
136
179
187

query II rowsort
SELECT DISTINCT col1 + + + col2 AS col0, + 95 FROM tab2
----
117
95
125
95
74
95

query I rowsort
SELECT col2 + - 18 AS col0 FROM tab1
----
41
50
78

query I rowsort
SELECT + col0 + - 71 AS col0 FROM tab0
----
-56
16
26

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 = + 7
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8693
SELECT DISTINCT + + 45 AS col2, COUNT( * ) FROM tab0 WHERE + col1 IS NOT NULL
----
45
3

skipif mysql # not compatible
query II rowsort label-8693
SELECT DISTINCT + + 45 AS col2, COUNT ( * ) FROM tab0 WHERE + col1 IS NOT NULL
----
45
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( + col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * + col2 AS col1, col1 col2 FROM tab0 AS cor0
----
-100
21
-2209
81
-9801
1

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE 47 >= - + col0
----
59
68
96

query I rowsort
SELECT - 77 - + col1 AS col1 FROM tab0 AS cor0
----
-158
-78
-98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8698
SELECT + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8698
SELECT + - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT + COUNT( - 68 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8699
SELECT + COUNT ( - 68 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT 15 * col1 + 19 FROM tab1
----
229
724
94

query I rowsort
SELECT DISTINCT - col1 - - - col2 + + ( 75 ) FROM tab0 AS cor0
----
-25
-53
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8702
SELECT ALL - col0 * col1 * + col0 / + CAST( NULL AS SIGNED ) - - 52 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL - col0 * col1 * + col0 / + CAST ( NULL AS INTEGER ) - - 52 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + ( + col1 ) AS col1 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # aggregate syntax: 
query II rowsort label-8704
SELECT + - COUNT( * ), + 62 AS col0 FROM tab1 AS cor0
----
-3
62

skipif mysql # not compatible
query II rowsort label-8704
SELECT + - COUNT ( * ), + 62 AS col0 FROM tab1 AS cor0
----
-3
62

query I rowsort
SELECT + - col2 * 43 AS col2 FROM tab2 AS cor0
----
-1720
-2494
-989

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT ALL COUNT( * ) - - ( + COUNT( * ) ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8706
SELECT ALL COUNT ( * ) - - ( + COUNT ( * ) ) FROM tab1 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL < col2 + - col1
----

query I rowsort
SELECT ALL + - col1 - + ( - + col1 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8709
SELECT ALL + col2 * + - ( - col0 ) * CAST( NULL AS SIGNED ) * 66 + - 69 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL + col2 * + - ( - col0 ) * CAST ( NULL AS INTEGER ) * 66 + - 69 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT - ( COUNT( * ) ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8710
SELECT - ( COUNT ( * ) ) AS col1 FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL - 21 - - col2 AS col1 FROM tab0 AS cor0
----
-11
26
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( - col0 ) col0 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT ALL col0 * col1 * + 89 FROM tab0
----
108135
162603
8633

query I rowsort
SELECT ALL 13 AS col0 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - ( - 58 ) FROM tab2
----
2668
3712
4350

query II rowsort
SELECT DISTINCT 13, col2 AS col0 FROM tab1
----
13
59
13
68
13
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * + 19 * - 86 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT - - MAX( - - col0 ) AS col1 FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-8718
SELECT - - MAX ( - - col0 ) AS col1 FROM tab0 cor0
----
97

query II rowsort
SELECT ALL col1, + 1 AS col0 FROM tab0 AS cor0
----
1
1
21
1
81
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8720
SELECT ALL - col1 / - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8720
SELECT ALL - col1 / - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 / - ( col2 ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 74 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * - - col0 + + + 11 FROM tab2 AS cor0
----
-1047
-2549
-4339

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8724
SELECT + CAST( + 17 AS SIGNED ) * + 35 FROM tab0 AS cor0
----
595
595
595

skipif mysql # not compatible
query I rowsort label-8724
SELECT + CAST ( + 17 AS INTEGER ) * + 35 FROM tab0 AS cor0
----
595
595
595

onlyif mysql # DIV for integer division: 
query I rowsort label-8725
SELECT col0 DIV + col0 + - 52 FROM tab2 AS cor0
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-8725
SELECT col0 / + col0 + - 52 FROM tab2 AS cor0
----
-51
-51
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8726
SELECT - - COUNT( 19 ) DIV - + 35 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8726
SELECT - - COUNT ( 19 ) / - + 35 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT ALL + - COUNT( * ) * - - MIN( - col1 ) AS col1 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-8727
SELECT ALL + - COUNT ( * ) * - - MIN ( - col1 ) AS col1 FROM tab1 AS cor0
----
141

query I rowsort
SELECT - col0 * + 33 + col0 AS col0 FROM tab1 cor0
----
-1632
-2720
-2912

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8729
SELECT - + col0 DIV 59 + CAST( + col1 AS SIGNED ) * - 84 FROM tab2 AS cor0
----
-4284
-5629
-6469

skipif mysql # not compatible
query I rowsort label-8729
SELECT - + col0 / 59 + CAST ( + col1 AS INTEGER ) * - 84 FROM tab2 AS cor0
----
-4284
-5629
-6469

query I rowsort
SELECT + 12 * + col0 FROM tab1 AS cor0
----
1020
1092
612

onlyif mysql # DIV for integer division: 
query I rowsort label-8731
SELECT + col1 * col1 DIV - + 20 AS col0 FROM tab1 AS cor0
----
-1
-110
-9

skipif mysql # not compatible
query I rowsort label-8731
SELECT + col1 * col1 / - + 20 AS col0 FROM tab1 AS cor0
----
-1
-110
-9

query I rowsort
SELECT DISTINCT - col2 * + - col0 AS col2 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT DISTINCT - ( + + ( - 67 ) ) * - ( + col0 ) + - - 28 AS col0 FROM tab2 AS cor0
----
-3054
-4260
-4997

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8734
SELECT * FROM tab2 AS cor0 WHERE col2 NOT IN ( - col2, + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8734
SELECT * FROM tab2 AS cor0 WHERE col2 NOT IN ( - col2, + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab1 cor0 WHERE + 94 IN ( + col2, + 31, - 81, 19 / - - col1 + + - col2 )
----

query I rowsort
SELECT DISTINCT + col2 + - col2 FROM tab0 WHERE ( ( NULL <> - col0 * 84 + + col1 + col2 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8737
SELECT - COUNT( * ) AS col1, ( + - AVG ( ALL col1 ) ) FROM tab1 WHERE NULL IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8737
SELECT - COUNT ( * ) AS col1, ( + - AVG ( ALL col1 ) ) FROM tab1 WHERE NULL IS NOT NULL
----
0
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( 74, col1 + - col0 * - 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT DISTINCT - + COUNT( * ) FROM tab1, tab2 AS cor0 WHERE + 67 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8739
SELECT DISTINCT - + COUNT ( * ) FROM tab1, tab2 AS cor0 WHERE + 67 IS NULL
----
0

query I rowsort
SELECT + + 11 + - 53 FROM tab2 AS cor0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT - 23 AS col0 FROM tab0 cor0
----
-23

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 84 / + 54 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8743
SELECT ALL 56 * - ( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL 56 * - ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + col1 + col1 AS col1 FROM tab1
----
1358
300
3243

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT col1 / col1 + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT DISTINCT MAX( col0 ) FROM tab2 WHERE 61 IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-8746
SELECT DISTINCT MAX ( col0 ) FROM tab2 WHERE 61 IS NOT NULL
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8747
SELECT + col0 DIV 23 FROM tab2
----
2
2
3

skipif mysql # not compatible
query I rowsort label-8747
SELECT + col0 / 23 FROM tab2
----
2
2
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8748
SELECT + col2 * - CAST( + 80 AS SIGNED ) + + ( 45 ) * - col1 col0 FROM tab2
----
-4135
-6665
-7655

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8748
SELECT + col2 * - CAST ( + 80 AS INTEGER ) + + ( 45 ) * - col1 col0 FROM tab2
----
-4135
-6665
-7655

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8749
SELECT + MIN( DISTINCT ( - 18 ) ) DIV COUNT( ALL - 11 ) AS col2 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-8749
SELECT + MIN ( DISTINCT ( - 18 ) ) / COUNT ( ALL - 11 ) AS col2 FROM tab1
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-8750
SELECT - 15 DIV - col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8750
SELECT - 15 / - col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + 40 FROM tab0 WHERE 22 NOT IN ( ( col0 ) * ( 26 + + col1 ) )
----
40
40
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8752
SELECT - COUNT( col2 ) DIV - COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8752
SELECT - COUNT ( col2 ) / - COUNT ( * ) FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8753
SELECT ALL col0 - col0 DIV col2 col1 FROM tab1
----
51
84
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8753
SELECT ALL col0 - col0 / col2 col1 FROM tab1
----
51
84
90

query I rowsort
SELECT ALL col0 * + 35 + + col1 FROM tab0
----
3066
3396
606

query I rowsort
SELECT - col2 / col1 AS col2 FROM tab1 WHERE NOT ( NULL ) > ( + 30 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT - MIN( + col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-8756
SELECT - MIN ( + col2 ) AS col2 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT ALL MAX( DISTINCT - col0 ) AS col1 FROM tab1 WHERE ( + col1 * 45 + col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL MAX ( DISTINCT - col0 ) AS col1 FROM tab1 WHERE ( + col1 * 45 + col1 ) IS NULL
----
NULL

query I rowsort
SELECT 47 + col0 AS col2 FROM tab1
----
132
138
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT ALL + COUNT( * ) + 70 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
73

skipif mysql # not compatible
query I rowsort label-8759
SELECT ALL + COUNT ( * ) + 70 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8760
SELECT ALL 52 DIV COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
17

skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL 52 / COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
17

query I rowsort
SELECT DISTINCT ( + col1 ) * col1 + + col1 AS col1 FROM tab1
----
210
2256
30

query I rowsort
SELECT - 11 * + col1 - - ( 14 ) FROM tab0
----
-217
-877
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8763
SELECT - col1 / CAST( NULL AS SIGNED ) + 88 * - CAST( col0 AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8763
SELECT - col1 / CAST ( NULL AS INTEGER ) + 88 * - CAST ( col0 AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( ( - 45 ) ) FROM tab1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT - COUNT( col2 ) * COUNT( * ) + 73 AS col1 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-8765
SELECT - COUNT ( col2 ) * COUNT ( * ) + 73 AS col1 FROM tab0
----
64

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT ALL COUNT( - 17 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8767
SELECT ALL COUNT ( - 17 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - col2 - + col1 AS col2 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( col0 )
----
-110
-115
-64

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE ( 98 ) IS NULL
----

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE NOT NULL BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8771
SELECT ALL + col1 * CAST( + 28 AS SIGNED ) FROM tab0 AS cor0
----
2268
28
588

skipif mysql # not compatible
query I rowsort label-8771
SELECT ALL + col1 * CAST ( + 28 AS INTEGER ) FROM tab0 AS cor0
----
2268
28
588

query I rowsort
SELECT DISTINCT - col2 * - 25 FROM tab1
----
1475
1700
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT + MIN( + 19 ) * 56 - 14 FROM tab0 WHERE NOT + 70 IN ( 61 )
----
1050

skipif mysql # not compatible
query I rowsort label-8773
SELECT + MIN ( + 19 ) * 56 - 14 FROM tab0 WHERE NOT + 70 IN ( 61 )
----
1050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 col1 FROM tab1
----
8

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 83 ) BETWEEN ( - 10 + - col2 ) AND - col1
----
51
14
96

query I rowsort
SELECT 32 AS col0 FROM tab2 WHERE NOT col1 + 77 IS NOT NULL
----

query I rowsort
SELECT 64 + 74 FROM tab1 WHERE NOT col1 * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8778
SELECT CAST( + 19 AS SIGNED ) col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8778
SELECT CAST ( + 19 AS INTEGER ) col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * col0 IN ( + 43 + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - AVG ( ALL + col0 ) col1 FROM tab1 AS cor0 WHERE 95 + col0 BETWEEN col2 * 95 AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col1 col1 FROM tab2 cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT ( 15 + + ( col1 + - col0 ) ) IS NULL
----
23
40
58

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 48 > col0 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col0 / col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8785
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col0 / col2 IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8786
SELECT DISTINCT MAX( ALL CAST( NULL AS DECIMAL ) ) * - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8786
SELECT DISTINCT MAX ( ALL CAST ( NULL AS REAL ) ) * - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col0 + - col1 * - col1 AS col2 FROM tab2 cor0
----
2555
4414
5865

onlyif mysql # DIV for integer division: 
query I rowsort label-8788
SELECT - 91 + ( col1 ) DIV - 66 AS col2 FROM tab1 AS cor0
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-8788
SELECT - 91 + ( col1 ) / - 66 AS col2 FROM tab1 AS cor0
----
-91
-91
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8789
SELECT ALL CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 62 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT 26 * COUNT( * ) FROM tab1 cor0 WHERE col1 NOT BETWEEN - col2 * - col2 AND col1
----
78

skipif mysql # not compatible
query I rowsort label-8791
SELECT 26 * COUNT ( * ) FROM tab1 cor0 WHERE col1 NOT BETWEEN - col2 * - col2 AND col1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8792
SELECT * FROM tab1 WHERE NOT - 35 - - col0 * col0 IS NULL OR ( CAST( NULL AS SIGNED ) * col0 + + col0 ) NOT BETWEEN col2 AND ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8792
SELECT * FROM tab1 WHERE NOT - 35 - - col0 * col0 IS NULL OR ( CAST ( NULL AS INTEGER ) * col0 + + col0 ) NOT BETWEEN col2 AND ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT ALL 16 * + + COUNT( * ) AS col1 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-8793
SELECT ALL 16 * + + COUNT ( * ) AS col1 FROM tab2
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 73 * col2 col2 FROM tab1
----
4366
5032
7104

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8795
SELECT * FROM tab1 WHERE col0 + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8795
SELECT * FROM tab1 WHERE col0 + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 + 47 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 * ( - 50 ) + 7 ) IN ( 71 )
----

query I rowsort
SELECT DISTINCT 1 FROM tab1 WHERE 50 + 97 NOT BETWEEN ( - 37 ) AND + ( 72 )
----
1

query I rowsort
SELECT ALL 70 + + - col0 FROM tab0
----
-17
-27
55

query I rowsort
SELECT + ( - + 28 ) FROM tab2
----
-28
-28
-28

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE ( NULL ) = 56
----

query I rowsort
SELECT ALL + 51 * col2 * - 82 + 21 FROM tab0
----
-196533
-413997
-41799

query I rowsort
SELECT ALL - col1 - + 5 + col0 * - col0 FROM tab2
----
-2172
-4178
-5697

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 <> NULL
----

query I rowsort
SELECT ALL + col1 + + 22 FROM tab1 AS cor0
----
27
36
69

query I rowsort
SELECT DISTINCT col2 - + 25 AS col0 FROM tab1 cor0
----
34
43
71

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8807
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-8807
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( + CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8808
SELECT DISTINCT + + CAST( col1 AS SIGNED ) DIV col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8808
SELECT DISTINCT + + CAST ( col1 AS INTEGER ) / col1 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8809
SELECT ALL - COUNT( * ) / - COUNT( ALL + col1 ) * 77 + COUNT( * ) - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8809
SELECT ALL - COUNT ( * ) / - COUNT ( ALL + col1 ) * 77 + COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NULL AND NOT ( 79 ) <> - col1
----
0

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NULL AND NOT ( 79 ) <> - col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8811
SELECT + COUNT( * ) - CAST( NULL AS DECIMAL ) * 29 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8811
SELECT + COUNT ( * ) - CAST ( NULL AS REAL ) * 29 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 93 + + col1 * + col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
118
2302
289

query I rowsort
SELECT + 22 + - 68 AS col1 FROM tab1
----
-46
-46
-46

query I rowsort
SELECT DISTINCT ( - 46 ) AS col2 FROM tab0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT COUNT( DISTINCT + 31 ) * - 8 + + 58 AS col1 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-8815
SELECT COUNT ( DISTINCT + 31 ) * - 8 + + 58 AS col1 FROM tab1
----
50

query I rowsort
SELECT ALL 37 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN + col1 AND ( - 24 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT DISTINCT + + MAX( DISTINCT + + 93 ) AS col2 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-8819
SELECT DISTINCT + + MAX ( DISTINCT + + 93 ) AS col2 FROM tab2 AS cor0
----
93

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= ( - - 48 )
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE ( col2 * - col2 ) NOT BETWEEN NULL AND ( - col1 * col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 86 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 47 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT COUNT( - + 13 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8824
SELECT COUNT ( - + 13 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8825
SELECT + + 0 col0, + ( + COUNT( * ) ) * + COUNT( * ) FROM tab2 AS cor0
----
0
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8825
SELECT + + 0 col0, + ( + COUNT ( * ) ) * + COUNT ( * ) FROM tab2 AS cor0
----
0
9

query I rowsort
SELECT ALL - col2 + + ( ( 22 ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1
-18
-36

query II rowsort
SELECT col1, - 21 * - col2 AS col2 FROM tab0 AS cor0
----
1
2079
21
210
81
987

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT COUNT( * ) - MAX( 26 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8828
SELECT COUNT ( * ) - MAX ( 26 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8829
SELECT ALL - CAST( + ( + + col1 ) AS SIGNED ) AS col0 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8829
SELECT ALL - CAST ( + ( + + col1 ) AS INTEGER ) AS col0 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 IN ( - col2 + 57 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 ) < NULL
----

query I rowsort
SELECT ALL - ( - + 55 ) AS col2 FROM tab2
----
55
55
55

query I rowsort
SELECT - 94 * ( - - 2 ) AS col2 FROM tab2
----
-188
-188
-188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8834
SELECT * FROM tab1 AS cor0 WHERE NOT ( - - CAST( NULL AS SIGNED ) ) NOT BETWEEN NULL AND col1 * ( 43 )
----

skipif mysql # not compatible
query III rowsort label-8834
SELECT * FROM tab1 AS cor0 WHERE NOT ( - - CAST ( NULL AS INTEGER ) ) NOT BETWEEN NULL AND col1 * ( 43 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8835
SELECT ALL ( - CAST( - CAST( - 50 AS SIGNED ) AS SIGNED ) ) FROM tab0 AS cor0
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-8835
SELECT ALL ( - CAST ( - CAST ( - 50 AS INTEGER ) AS INTEGER ) ) FROM tab0 AS cor0
----
-50
-50
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-8836
SELECT DISTINCT col2 + + ( 78 ) DIV - col1 FROM tab0 cor0 WHERE NOT col1 * col1 * + col1 IN ( col1 * - col1 )
----
21
47
7

skipif mysql # not compatible
query I rowsort label-8836
SELECT DISTINCT col2 + + ( 78 ) / - col1 FROM tab0 cor0 WHERE NOT col1 * col1 * + col1 IN ( col1 * - col1 )
----
21
47
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8837
SELECT CAST( col0 AS SIGNED ), ( + ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

skipif mysql # not compatible
query II rowsort label-8837
SELECT CAST ( col0 AS INTEGER ), ( + ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query I rowsort
SELECT DISTINCT - - 90 FROM tab0 AS cor0 WHERE col2 + col2 IS NULL
----

query I rowsort
SELECT ALL + - col0 + + - col1 + + col0 AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + 33 + - 56 * - col0 * + col0 + + ( col2 ) FROM tab1
----
145785
404692
463837

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8841
SELECT DISTINCT + 81 * CAST( NULL AS SIGNED ) + + - 51 * + 89 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8841
SELECT DISTINCT + 81 * CAST ( NULL AS INTEGER ) + + - 51 * + 89 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8842
SELECT 44 DIV - ( MIN( DISTINCT + + 17 ) ) AS col0 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-8842
SELECT 44 / - ( MIN ( DISTINCT + + 17 ) ) AS col0 FROM tab2 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8843
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT ALL - MIN( 60 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( 95 * - + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL - MIN ( 60 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( 95 * - + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT + COUNT( * ) * + + 45 col0 FROM tab0 cor0
----
135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8845
SELECT + COUNT ( * ) * + + 45 col0 FROM tab0 cor0
----
135

query I rowsort
SELECT DISTINCT + col2 * - 68 * + 88 + - 99 FROM tab2 AS cor0
----
-137731
-239459
-347171

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT - COUNT( + col1 ) col2 FROM tab2 AS cor0 WHERE ( + col0 ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8847
SELECT - COUNT ( + col1 ) col2 FROM tab2 AS cor0 WHERE ( + col0 ) IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND ( - 63 * 84 )
----

query I rowsort
SELECT + 59 - - col2 - + + 91 AS col2 FROM tab2
----
-9
26
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8850
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE ( NOT ( col2 ) * + CAST( NULL AS SIGNED ) IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-8850
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE ( NOT ( col2 ) * + CAST ( NULL AS INTEGER ) IS NOT NULL )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8851
SELECT DISTINCT - 90 AS col0, CAST( - col0 AS SIGNED ) AS col0 FROM tab0
----
-90
-15
-90
-87
-90
-97

skipif mysql # not compatible
query II rowsort label-8851
SELECT DISTINCT - 90 AS col0, CAST ( - col0 AS INTEGER ) AS col0 FROM tab0
----
-90
-15
-90
-87
-90
-97

query I rowsort
SELECT ALL col0 FROM tab1 WHERE ( ( + ( - col0 ) IN ( - col2 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT - COUNT( * ) - 98 FROM tab2, tab0 AS cor0
----
-107

skipif mysql # not compatible
query I rowsort label-8853
SELECT - COUNT ( * ) - 98 FROM tab2, tab0 AS cor0
----
-107

query I rowsort
SELECT DISTINCT - 42 + + - 90 FROM tab1, tab2 cor0
----
-132

query I rowsort
SELECT + - 72 + + 85 FROM tab0 AS cor0
----
13
13
13

query II rowsort
SELECT col0 AS col2, - col0 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8857
SELECT 95 DIV col1 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8857
SELECT 95 / col1 AS col2 FROM tab2
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 + - + col1 ) <> + 20
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL <> ( NULL ) )
----

query I rowsort
SELECT DISTINCT - col2 * - - col0 AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-8861
SELECT ALL - + 59 DIV - + 48 col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8861
SELECT ALL - + 59 / - + 48 col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ( + + col2 ) + - col1 AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 IS NOT NULL ) OR NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT ALL - SUM( 51 ) FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-8864
SELECT ALL - SUM ( 51 ) FROM tab2
----
-153

query I rowsort
SELECT col2 * + 52 FROM tab1
----
3068
3536
4992

onlyif mysql # DIV for integer division: 
query I rowsort label-8866
SELECT + ( - col2 ) DIV 36 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8866
SELECT + ( - col2 ) / 36 FROM tab2
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8867
SELECT DISTINCT + col1 DIV + + ( - 74 ) col1 FROM tab0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8867
SELECT DISTINCT + col1 / + + ( - 74 ) col1 FROM tab0
----
-1
0

query I rowsort
SELECT ALL 72 * 92 AS col1 FROM tab1
----
6624
6624
6624

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < + 92
----

query I rowsort
SELECT col0 * col1 FROM tab2 WHERE NOT NULL BETWEEN - 8 * + - 26 * + + ( - col2 ) AND + col2 + + - col1 + - ( + 42 ) * 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT COUNT( ALL + - 52 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8871
SELECT COUNT ( ALL + - 52 ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8872
SELECT DISTINCT col0, + CAST( - + col1 AS SIGNED ) + + col1 DIV - col2 + + - 58 FROM tab0
----
15
-140
87
-81
97
-59

skipif mysql # not compatible
query II rowsort label-8872
SELECT DISTINCT col0, + CAST ( - + col1 AS INTEGER ) + + col1 / - col2 + + - 58 FROM tab0
----
15
-140
87
-81
97
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT ALL - SUM( DISTINCT - col0 ) col0 FROM tab1
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8873
SELECT ALL - SUM ( DISTINCT - col0 ) col0 FROM tab1
----
227

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8874
SELECT CAST( - 8 AS DECIMAL ) * CAST( NULL AS SIGNED ) + - col2 col1 FROM tab2 AS cor0 WHERE + + 43 / + - 30 = - col2 AND ( + col1 + - 17 + - col0 * col0 ) BETWEEN ( + 43 + col2 ) AND col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8874
SELECT CAST ( - 8 AS REAL ) * CAST ( NULL AS INTEGER ) + - col2 col1 FROM tab2 AS cor0 WHERE + + 43 / + - 30 = - col2 AND ( + col1 + - 17 + - col0 * col0 ) BETWEEN ( + 43 + col2 ) AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8875
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8875
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + 34 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 NOT BETWEEN col2 AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 + - - col1 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT DISTINCT + 28 AS col0 FROM tab1 cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT ALL COUNT( * ) - - ( + 13 ) AS col1 FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-8880
SELECT ALL COUNT ( * ) - - ( + 13 ) AS col1 FROM tab2 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT + - 86 * MAX( ALL - col0 ) FROM tab2 AS cor0
----
3956

skipif mysql # not compatible
query I rowsort label-8881
SELECT + - 86 * MAX ( ALL - col0 ) FROM tab2 AS cor0
----
3956

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8882
SELECT DISTINCT + ( + 58 ), col1 * - CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab2 AS cor0
----
58
NULL

skipif mysql # not compatible
query II rowsort label-8882
SELECT DISTINCT + ( + 58 ), col1 * - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab2 AS cor0
----
58
NULL

query I rowsort
SELECT DISTINCT ( + 13 ) FROM tab2
----
13

query I rowsort
SELECT + ( - col1 ) * + - col1 AS col0 FROM tab2
----
2601
4489
5929

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8885
SELECT CAST( NULL AS SIGNED ), 48 AS col0 FROM tab2
----
NULL
48
NULL
48
NULL
48

skipif mysql # not compatible
query II rowsort label-8885
SELECT CAST ( NULL AS INTEGER ), 48 AS col0 FROM tab2
----
NULL
48
NULL
48
NULL
48

query I rowsort
SELECT DISTINCT ( 14 ) * col2 + ( 87 ) FROM tab1
----
1039
1431
913

query I rowsort
SELECT ALL ( 25 ) AS col2 FROM tab1
----
25
25
25

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8888
SELECT ALL - CAST( NULL AS SIGNED ) + - CAST( + col2 AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL - CAST ( NULL AS INTEGER ) + - CAST ( + col2 AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + col2 * + 68 FROM tab2
----
1610
2784
4019

query I rowsort
SELECT DISTINCT + ( - col1 ) + - + 71 AS col0 FROM tab2
----
-122
-138
-148

query I rowsort
SELECT - + col0 * - col1 + col0 FROM tab0 WHERE NULL < col0
----

query I rowsort
SELECT ALL 90 + + 44 FROM tab2
----
134
134
134

query I rowsort
SELECT - col0 * 80 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3680
-5120
-6000

query II rowsort
SELECT DISTINCT + 2, - col0 AS col2 FROM tab1 AS cor0
----
2
-51
2
-85
2
-91

query I rowsort
SELECT DISTINCT 2 * + col0 * - 51 AS col2 FROM tab0 WHERE NOT NULL > NULL OR NOT 91 * 65 IS NOT NULL
----

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT col1 NOT IN ( 24 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8897
SELECT + col0 col2, col2 FROM tab0 WHERE NOT ( col2 * + CAST( NULL AS DECIMAL ) ) BETWEEN ( + col1 - - ( - col0 ) ) AND ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8897
SELECT + col0 col2, col2 FROM tab0 WHERE NOT ( col2 * + CAST ( NULL AS REAL ) ) BETWEEN ( + col1 - - ( - col0 ) ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT + 12 * col0 AS col0 FROM tab1
----
1020
1092
612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8899
SELECT ALL + 40 * + + CAST( + - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1840
-2560
-3000

skipif mysql # not compatible
query I rowsort label-8899
SELECT ALL + 40 * + + CAST ( + - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1840
-2560
-3000

query II rowsort
SELECT DISTINCT col2, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8901
SELECT ALL + CAST( AVG ( ALL - 53 ) AS SIGNED ) FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL + CAST ( AVG ( ALL - 53 ) AS INTEGER ) FROM tab1 AS cor0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8902
SELECT DISTINCT + col2 + - + CAST( - col1 AS SIGNED ) - ( - + col0 ) - + col1, col0 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

skipif mysql # not compatible
query II rowsort label-8902
SELECT DISTINCT + col2 + - + CAST ( - col1 AS INTEGER ) - ( - + col0 ) - + col1, col0 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8903
SELECT + + 78 AS col1, COUNT( * ) FROM tab0 AS cor0
----
78
3

skipif mysql # not compatible
query II rowsort label-8903
SELECT + + 78 AS col1, COUNT ( * ) FROM tab0 AS cor0
----
78
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8904
SELECT + COUNT( * ), 36 AS col1 FROM tab2 AS cor0
----
3
36

skipif mysql # not compatible
query II rowsort label-8904
SELECT + COUNT ( * ), 36 AS col1 FROM tab2 AS cor0
----
3
36

query I rowsort
SELECT ALL + + col2 * - - 26 FROM tab1 AS cor0
----
1534
1768
2496

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 75 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8907
SELECT DISTINCT - col2 AS col0 FROM tab1 cor0 WHERE NULL NOT BETWEEN col0 / col0 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8907
SELECT DISTINCT - col2 AS col0 FROM tab1 cor0 WHERE NULL NOT BETWEEN col0 / col0 AND CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL col2 AS col1, + ( + ( - col2 ) ) FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

query I rowsort
SELECT ALL + 67 + - col2 FROM tab2
----
27
44
9

query I rowsort
SELECT + + 0 + - - 37 FROM tab0 WHERE NOT ( + col1 ) >= + 60 * + col1 + + col1
----
37
37
37

query I rowsort
SELECT 17 * + 13 * 78 FROM tab2
----
17238
17238
17238

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT + COUNT( * ) * + ( + - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8912
SELECT + COUNT ( * ) * + ( + - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8913
SELECT col1 * - 71, + CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab2 AS cor0
----
-3621
NULL
-4757
NULL
-5467
NULL

skipif mysql # not compatible
query II rowsort label-8913
SELECT col1 * - 71, + CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab2 AS cor0
----
-3621
NULL
-4757
NULL
-5467
NULL

query I rowsort
SELECT + col0 + + + col1 * - col0 + + col1 AS col2 FROM tab1 AS cor0
----
-335
-4139
-649

query I rowsort
SELECT + + col0 + - col0 + - col2 * col0 AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8916
SELECT DISTINCT * FROM tab1 WHERE ( - 15 ) + - - CAST( 42 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-8916
SELECT DISTINCT * FROM tab1 WHERE ( - 15 ) + - - CAST ( 42 AS INTEGER ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT + MIN( DISTINCT + - col0 ) col0 FROM tab0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8917
SELECT + MIN ( DISTINCT + - col0 ) col0 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT COUNT( 20 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8918
SELECT COUNT ( 20 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT + MAX( - col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8919
SELECT + MAX ( - col2 ) AS col2 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT - + MAX( DISTINCT 6 ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8920
SELECT - + MAX ( DISTINCT 6 ) FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT - ( + SUM( ALL + col2 ) ) AS col0 FROM tab1 AS cor0 WHERE 24 / col1 = - 1 * + col0 + - col1 - + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8921
SELECT - ( + SUM ( ALL + col2 ) ) AS col0 FROM tab1 AS cor0 WHERE 24 / col1 = - 1 * + col0 + - col1 - + col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT + + MAX( ALL 71 ) AS col1 FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-8922
SELECT + + MAX ( ALL 71 ) AS col1 FROM tab2 AS cor0
----
71

query I rowsort
SELECT col1 * - 49 * + - 79 * - - col2 * - col1 + col0 * - - 79 + 41 AS col0 FROM tab1 AS cor0 WHERE ( NOT + col1 IS NOT NULL )
----

query I rowsort
SELECT - - col0 FROM tab0 cor0 WHERE ( NULL ) <= - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( + col0 ) < - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 69 FROM tab0 WHERE - col0 IS NULL
----

query I rowsort
SELECT ALL col1 * + 85 + + col1 + col2 AS col0 FROM tab0
----
1816
185
7013

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 col1 FROM tab0
----
-4
-4
-4

query I rowsort
SELECT ALL - 74 + - - col0 AS col0 FROM tab2
----
-10
-28
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 = - 31 + + + 29
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8931
SELECT * FROM tab0 AS cor0 WHERE NOT col0 >= CAST( + + col1 AS DECIMAL )
----
15
81
47

skipif mysql # not compatible
query III rowsort label-8931
SELECT * FROM tab0 AS cor0 WHERE NOT col0 >= CAST ( + + col1 AS REAL )
----
15
81
47

query I rowsort
SELECT ALL col0 + + - 27 FROM tab1
----
24
58
64

query I rowsort
SELECT col1 + - 91 FROM tab1
----
-44
-77
-86

query I rowsort
SELECT DISTINCT + 6 * + col0 AS col1 FROM tab1
----
306
510
546

query I rowsort
SELECT DISTINCT + 1 + col1 AS col0 FROM tab0
----
2
22
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8936
SELECT - 97 + 28 - - ( + CAST( - ( 66 ) AS SIGNED ) ) DIV COUNT( * ) * + 46 FROM tab0
----
-1081

skipif mysql # not compatible
query I rowsort label-8936
SELECT - 97 + 28 - - ( + CAST ( - ( 66 ) AS INTEGER ) ) / COUNT ( * ) * + 46 FROM tab0
----
-1081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8937
SELECT ALL - CAST( - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) * - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8937
SELECT ALL - CAST ( - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) * - COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT - 24 * + col0 FROM tab1
----
-1224
-2040
-2184

query I rowsort
SELECT 37 * + col1 FROM tab0
----
2997
37
777

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT ALL - MAX( DISTINCT - col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL - MAX ( DISTINCT - col2 ) FROM tab2
----
23

query I rowsort
SELECT + col0 * + col1 * - ( - ( 75 ) ) FROM tab1 cor0
----
31875
320775
53550

query II rowsort
SELECT ALL - 0 AS col1, - 48 * + + 16 FROM tab0 AS cor0
----
0
-768
0
-768
0
-768

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( ( NOT ( NOT + col0 IS NOT NULL ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 40 / - 93 * + col1 IS NULL
----

query I rowsort
SELECT - ( - 33 ) FROM tab2
----
33
33
33

query I rowsort
SELECT col2 + - + col1 * + ( - col0 ) FROM tab2 AS cor0
----
2369
4968
5083

query I rowsort
SELECT - - 83 * col1 + - - ( - - col2 ) FROM tab0 AS cor0
----
1753
182
6770

query I rowsort
SELECT - - 94 * - 86 AS col0 FROM tab1 AS cor0 WHERE - col1 >= - - col1 + + col2 / col0
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 < - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8950
SELECT ALL + col1 DIV col1 * + + 79 AS col0 FROM tab2 AS cor0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL + col1 / col1 * + + 79 AS col0 FROM tab2 AS cor0
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8951
SELECT ALL - - 56 * col1 - col2 + + col2 + + CAST( NULL AS SIGNED ) * - col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8951
SELECT ALL - - 56 * col1 - col2 + + col2 + + CAST ( NULL AS INTEGER ) * - col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8952
SELECT - + 47 DIV + col0, + 18 AS col0 FROM tab0 AS cor0
----
-3
18
0
18
0
18

skipif mysql # not compatible
query II rowsort label-8952
SELECT - + 47 / + col0, + 18 AS col0 FROM tab0 AS cor0
----
-3
18
0
18
0
18

onlyif mysql # DIV for integer division: 
query I rowsort label-8953
SELECT DISTINCT + - ( + col1 ) DIV col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT + - ( + col1 ) / col1 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT - col0 + col2 + - col0 * + 80 + 2 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL 37 * col0 FROM tab0 WHERE NOT - col1 <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT - MIN( DISTINCT - - 9 ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8956
SELECT - MIN ( DISTINCT - - 9 ) AS col2 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT ALL - SUM( ALL + col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-8957
SELECT ALL - SUM ( ALL + col2 ) FROM tab2
----
-121

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT + col0 IS NULL )
----

query I rowsort
SELECT 95 * col0 * - 95 AS col0 FROM tab1 AS cor0
----
-460275
-767125
-821275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8960
SELECT ALL + CAST( 86 AS SIGNED ) col0 FROM tab0
----
86
86
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8960
SELECT ALL + CAST ( 86 AS INTEGER ) col0 FROM tab0
----
86
86
86

query I rowsort
SELECT DISTINCT - 10 AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-10

query I rowsort
SELECT - + 96 * - 11 FROM tab2 cor0
----
1056
1056
1056

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT MAX( DISTINCT - ( col0 ) ) col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8964
SELECT MAX ( DISTINCT - ( col0 ) ) col2 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT + col0 * - + col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8966
SELECT CAST( MIN( ALL col2 ) AS SIGNED ) col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8966
SELECT CAST ( MIN ( ALL col2 ) AS INTEGER ) col0 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT - MIN( DISTINCT - col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8967
SELECT - MIN ( DISTINCT - col1 ) AS col0 FROM tab0
----
81

query I rowsort
SELECT DISTINCT col2 + + + col0 * + + col2 FROM tab2
----
1081
2600
4408

query I rowsort
SELECT DISTINCT - + col2 AS col0 FROM tab2 WHERE + 3 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8970
SELECT - 17 + ( COUNT( * ) ) FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----
-17

skipif mysql # not compatible
query I rowsort label-8970
SELECT - 17 + ( COUNT ( * ) ) FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT + SUM( DISTINCT + + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-8971
SELECT + SUM ( DISTINCT + + col1 ) FROM tab0
----
103

query I rowsort
SELECT DISTINCT - 71 + + + col0 AS col1 FROM tab1
----
-20
14
20

onlyif mysql # DIV for integer division: 
query I rowsort label-8973
SELECT DISTINCT + col1 DIV 4 * + - col0 + + 90 + - col2 * + ( + - col1 ) FROM tab0
----
-135
189
3597

skipif mysql # not compatible
query I rowsort label-8973
SELECT DISTINCT + col1 / 4 * + - col0 + + 90 + - col2 * + ( + - col1 ) FROM tab0
----
-135
189
3597

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT 69 + - - COUNT( * ) FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-8974
SELECT 69 + - - COUNT ( * ) FROM tab0 AS cor0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-8975
SELECT + - 33 + col1 DIV + - col0 AS col0 FROM tab2 AS cor0
----
-33
-34
-34

skipif mysql # not compatible
query I rowsort label-8975
SELECT + - 33 + col1 / + - col0 AS col0 FROM tab2 AS cor0
----
-33
-34
-34

query I rowsort
SELECT DISTINCT 20 * + - 16 FROM tab1 AS cor0
----
-320

query I rowsort
SELECT ALL col2 * - - col1 + - + 35 + + 79 * + - 11 * - col0 + + col1 * ( - col0 ) * + + col0 - - 84 + - 96 AS col2 FROM tab0 AS cor0
----
-1430
-83183
74936

query I rowsort
SELECT AVG ( ALL + col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 47 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query II rowsort
SELECT - col2, - col1 + col0 AS col2 FROM tab2
----
-23
-5
-40
-13
-58
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT ALL 94 - - COUNT( + - col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL 94 - - COUNT ( + - col0 ) FROM tab0
----
97

query I rowsort
SELECT - col1 - 98 AS col0 FROM tab1
----
-103
-112
-145

query I rowsort
SELECT + ( col1 ) - 80 AS col2 FROM tab0 AS cor0
----
-59
-79
1

query I rowsort
SELECT - - col1 - - col0 * - col0 FROM tab2 AS cor0
----
-2065
-4019
-5558

query I rowsort
SELECT - ( + 22 ) - + col0 FROM tab0 AS cor0
----
-109
-119
-37

query I rowsort
SELECT + - col2 - + 55 * - col0 - 90 * - col2 AS col1 FROM tab2 AS cor0
----
4577
7080
9287

query I rowsort
SELECT ALL + 40 AS col2 FROM tab1 AS cor0 WHERE col1 < NULL
----

query I rowsort
SELECT - - ( - col2 ) + + col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + 57 - - + col2 AS col0 FROM tab1 AS cor0
----
116
125
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8990
SELECT col0 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8990
SELECT col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + 14 * col0 AS col0 FROM tab0
----
1218
1358
210

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 BETWEEN - 22 AND + - 84 * ( - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 55 ) * + col1 col0 FROM tab0
----
-1155
-4455
-55

query I rowsort
SELECT - ( - 47 ) AS col2 FROM tab1
----
47
47
47

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8996
SELECT SUM( col1 ) DIV + 12 AS col1 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-8996
SELECT SUM ( col1 ) / + 12 AS col1 FROM tab0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT ALL SUM( DISTINCT - 69 ) * 76 AS col1 FROM tab2
----
-5244

skipif mysql # not compatible
query I rowsort label-8997
SELECT ALL SUM ( DISTINCT - 69 ) * 76 AS col1 FROM tab2
----
-5244

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8998
SELECT CAST( + + col2 AS SIGNED ) DIV + - col2 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8998
SELECT CAST ( + + col2 AS INTEGER ) / + - col2 AS col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT + 31 FROM tab1 WHERE NOT + 7 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9000
SELECT + col1 DIV 47 col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9000
SELECT + col1 / 47 col2 FROM tab0
----
0
0
1

query III rowsort
SELECT ALL * FROM tab1 WHERE 92 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9003
SELECT ALL col1 DIV - col0 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL col1 / - col0 AS col0 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 >= - - col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9005
SELECT + 20, col0 DIV + + col1 AS col2 FROM tab1
----
20
1
20
17
20
3

skipif mysql # not compatible
query II rowsort label-9005
SELECT + 20, col0 / + + col1 AS col2 FROM tab1
----
20
1
20
17
20
3

query I rowsort
SELECT DISTINCT 13 * 16 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
208

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT DISTINCT - COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9007
SELECT DISTINCT - COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query II rowsort
SELECT 93, col0 AS col2 FROM tab2
----
93
46
93
64
93
75

query I rowsort
SELECT 25 * + + col1 FROM tab1
----
1175
125
350

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * + 78 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9011
SELECT DISTINCT - - 36 AS col0, - col0 FROM tab0 AS cor0 WHERE NOT col0 <= CAST( NULL AS SIGNED ) * + + col0 + + + 46
----

skipif mysql # not compatible
query II rowsort label-9011
SELECT DISTINCT - - 36 AS col0, - col0 FROM tab0 AS cor0 WHERE NOT col0 <= CAST ( NULL AS INTEGER ) * + + col0 + + + 46
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9012
SELECT DISTINCT + SUM( CAST( - - col0 AS SIGNED ) ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9012
SELECT DISTINCT + SUM ( CAST ( - - col0 AS INTEGER ) ) FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT ALL 31 + + + MAX( ALL - col2 ) AS col2 FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL 31 + + + MAX ( ALL - col2 ) AS col2 FROM tab1
----
-28

query I rowsort
SELECT 81 + + col1 + col2 + + col2 + + col2 AS col1 FROM tab2
----
201
278
322

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9015
SELECT - col1 / + CAST( NULL AS DECIMAL ) + 22 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9015
SELECT - col1 / + CAST ( NULL AS REAL ) + 22 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 5 + - 17 + col2 FROM tab0
----
-2
35
87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9017
SELECT DISTINCT COUNT( DISTINCT - + CAST( NULL AS DECIMAL ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9017
SELECT DISTINCT COUNT ( DISTINCT - + CAST ( NULL AS REAL ) ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT ALL + 79 + - MAX( - col1 ) FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL + 79 + - MAX ( - col1 ) FROM tab1
----
84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 6 + + col0 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col1 + col1 + - col0 col1 FROM tab0 AS cor0
----
-95
375
6627

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9021
SELECT * FROM tab1 AS cor0 WHERE - CAST( 61 AS SIGNED ) * - 42 - - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9021
SELECT * FROM tab1 AS cor0 WHERE - CAST ( 61 AS INTEGER ) * - 42 - - col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 NOT IN ( col2, col1 * - + 84 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 86 AS col0 FROM tab0 AS cor0 WHERE NOT col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT DISTINCT - COUNT( ALL - col2 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9024
SELECT DISTINCT - COUNT ( ALL - col2 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT ALL 4 + - 58 FROM tab1
----
-54
-54
-54

query I rowsort
SELECT - - ( + + 41 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT - - 5 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query III rowsort
SELECT ALL * FROM tab2 WHERE - 11 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT DISTINCT - SUM( col2 ) col0 FROM tab2 WHERE NULL IS NULL
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9029
SELECT DISTINCT - SUM ( col2 ) col0 FROM tab2 WHERE NULL IS NULL
----
-121

query I rowsort
SELECT - - 7 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT DISTINCT col1 + + + col0 AS col1 FROM tab1 AS cor0
----
138
65
90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + - 45 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query III rowsort label-9033
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 DIV + col0 * col1 IN ( + - col0 DIV - col0 )
----
97
1
99

skipif mysql # not compatible
query III rowsort label-9033
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 / + col0 * col1 IN ( + - col0 / - col0 )
----
97
1
99

query II rowsort
SELECT DISTINCT 51, col0 AS col0 FROM tab2 AS cor0 WHERE col2 + - 14 <= + - 74
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 97 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9036
SELECT DISTINCT + CAST( - + col1 AS SIGNED ) FROM tab2 cor0 WHERE - col1 + col1 < + 45
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9036
SELECT DISTINCT + CAST ( - + col1 AS INTEGER ) FROM tab2 cor0 WHERE - col1 + col1 < + 45
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) * - + COUNT( * ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-9037
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) * - + COUNT ( * ) FROM tab0 AS cor0
----
27

query I rowsort
SELECT - + col1 * + col1 + - ( + + 93 ) - col1 + + col0 * + col0 * + 94 * - 90 FROM tab1 AS cor0
----
-22004763
-61123623
-70059609

query I rowsort
SELECT col1 * - - col2 AS col2 FROM tab0 cor0
----
210
3807
99

query II rowsort
SELECT ALL 60 AS col0, - col0 FROM tab0
----
60
-15
60
-87
60
-97

query I rowsort
SELECT - col0 * - 36 * col1 FROM tab1
----
15300
153972
25704

query II rowsort
SELECT ALL - col0 AS col0, 1 * - + 8 AS col1 FROM tab2
----
-46
-8
-64
-8
-75
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9043
SELECT ALL CAST( NULL AS SIGNED ) * - MAX( DISTINCT + col0 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL CAST ( NULL AS INTEGER ) * - MAX ( DISTINCT + col0 ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT col1 FROM tab1 WHERE NOT + 86 NOT BETWEEN NULL AND 72
----

query I rowsort
SELECT ALL 95 * + - col0 AS col2 FROM tab1
----
-4845
-8075
-8645

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-9047
SELECT DISTINCT col2 DIV - + 70 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9047
SELECT DISTINCT col2 / - + 70 FROM tab1 AS cor0
----
-1
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col2 ) * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9050
SELECT DISTINCT CAST( + col2 AS SIGNED ) col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9050
SELECT DISTINCT CAST ( + col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT + COUNT( * ) * + SUM( DISTINCT - ( col1 ) ) FROM tab2 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-9051
SELECT + COUNT ( * ) * + SUM ( DISTINCT - ( col1 ) ) FROM tab2 AS cor0
----
-585

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9052
SELECT ALL - CAST( SUM( - - 29 ) AS SIGNED ) FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL - CAST ( SUM ( - - 29 ) AS INTEGER ) FROM tab1 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-9053
SELECT + MAX( 19 ) AS col1, ( - + 59 ) + 8 FROM tab1 AS cor0
----
19
-51

skipif mysql # not compatible
query II rowsort label-9053
SELECT + MAX ( 19 ) AS col1, ( - + 59 ) + 8 FROM tab1 AS cor0
----
19
-51

query I rowsort
SELECT ALL + 14 * + col1 FROM tab0 cor0
----
1134
14
294

query I rowsort
SELECT ALL col1 + + + 47 FROM tab1
----
52
61
94

query I rowsort
SELECT DISTINCT - 18 + + - col1 AS col0 FROM tab0
----
-19
-39
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT ALL COUNT( * ) + - + 44 AS col2 FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-9057
SELECT ALL COUNT ( * ) + - + 44 AS col2 FROM tab2
----
-41

query I rowsort
SELECT - col1 * + + 43 + + - col0 AS col0 FROM tab2
----
-2239
-2956
-3375

query I rowsort
SELECT 70 FROM tab1 WHERE col0 IS NULL
----

query I rowsort
SELECT col2 * col0 - + col1 AS col2 FROM tab2
----
1007
2483
4283

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT COUNT( DISTINCT 98 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9061
SELECT COUNT ( DISTINCT 98 ) FROM tab1
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT 85 - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 83 * + + col0 * + - col1 FROM tab0 AS cor0
----
-100845
-151641
-8051

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9064
SELECT ALL + COUNT( - CAST( col0 AS SIGNED ) ) * + 54 * + ( MAX( + - ( - - 64 ) ) ) FROM tab2 AS cor0
----
-10368

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL + COUNT ( - CAST ( col0 AS INTEGER ) ) * + 54 * + ( MAX ( + - ( - - 64 ) ) ) FROM tab2 AS cor0
----
-10368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9065
SELECT ALL - ( - MIN( ALL CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL - ( - MIN ( ALL CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + 39 AS col1 FROM tab2 cor0
----
39
39
39

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * + col1 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 * + col1 * - 39 + - - col1, - 62 + - col0 - + col2 col1 FROM tab2 AS cor0
----
-120043
-166
-151487
-195
-45696
-131

query I rowsort
SELECT ALL + 41 * - col1 * - + col0 FROM tab1 AS cor0
----
17425
175357
29274

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( - + col2 ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT DISTINCT + 12 * + COUNT( * ) AS col1 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-9071
SELECT DISTINCT + 12 * + COUNT ( * ) AS col1 FROM tab1
----
36

query I rowsort
SELECT + ( - 54 ) FROM tab1 WHERE NOT - col2 > NULL
----

query I rowsort
SELECT ALL - 29 * - 38 FROM tab2
----
1102
1102
1102

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT - COUNT( * ) * - - 86 AS col1 FROM tab0
----
-258

skipif mysql # not compatible
query I rowsort label-9074
SELECT - COUNT ( * ) * - - 86 AS col1 FROM tab0
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT ALL MAX( ALL - 94 ) FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-9075
SELECT ALL MAX ( ALL - 94 ) FROM tab1
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-9076
SELECT DISTINCT 19 DIV + - 51 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9076
SELECT DISTINCT 19 / + - 51 FROM tab1
----
0

query I rowsort
SELECT ALL - + 62 * col2 FROM tab0 AS cor0
----
-2914
-6138
-620

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * col2 = + ( + col2 ) + + col1 - 96 * + col0 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * - 8 * 97 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9080
SELECT ALL + + MIN( - + col0 ) + CAST( NULL AS SIGNED ) + - 50 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9080
SELECT ALL + + MIN ( - + col0 ) + CAST ( NULL AS INTEGER ) + - 50 FROM tab2 cor0
----
NULL

query I rowsort
SELECT + col0 + + - col1 + + 46 AS col2 FROM tab2 cor0
----
33
41
54

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 39 + + 18
----

query I rowsort
SELECT DISTINCT + + ( 62 ) AS col0 FROM tab2 AS cor0
----
62

query II rowsort
SELECT DISTINCT col0 + - col0 AS col0, ( - + col2 ) FROM tab0
----
0
-10
0
-47
0
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT DISTINCT MIN( ALL + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9085
SELECT DISTINCT MIN ( ALL + col2 ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT SUM( + + col2 ) * + 25 AS col1 FROM tab2
----
3025

skipif mysql # not compatible
query I rowsort label-9086
SELECT SUM ( + + col2 ) * + 25 AS col1 FROM tab2
----
3025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9087
SELECT ( col1 ) FROM tab1 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9087
SELECT ( col1 ) FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + ( + 36 ) FROM tab0 AS cor0
----
123
133
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT ALL - COUNT( * ) - + + 36 AS col2 FROM tab2 cor0
----
-39

skipif mysql # not compatible
query I rowsort label-9089
SELECT ALL - COUNT ( * ) - + + 36 AS col2 FROM tab2 cor0
----
-39

query I rowsort
SELECT - 66 + + 54 + - col2 AS col0 FROM tab2 AS cor0
----
-35
-52
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 - col2 - - 10 col2 FROM tab0 AS cor0
----
-4
-56
33

query I rowsort
SELECT + col0 + 43 AS col0 FROM tab0 AS cor0
----
130
140
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9093
SELECT + COUNT( * ) FROM tab2, tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9093
SELECT + COUNT ( * ) FROM tab2, tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= ( + col1 )
----

query II rowsort
SELECT + col1 AS col0, 59 FROM tab1 AS cor0
----
14
59
47
59
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT ALL + SUM( + 16 ) AS col1 FROM tab1 cor0
----
48

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL + SUM ( + 16 ) AS col1 FROM tab1 cor0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-9098
SELECT + + 88 DIV 32 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9098
SELECT + + 88 / 32 FROM tab2 AS cor0
----
2
2
2

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT IN ( - 29 )
----

query I rowsort
SELECT ALL - col0 * + - col0 AS col2 FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT COUNT( DISTINCT col2 ) * - 79 AS col1 FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-9101
SELECT COUNT ( DISTINCT col2 ) * - 79 AS col1 FROM tab1
----
-237

query III rowsort
SELECT * FROM tab1 WHERE NOT + 55 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9103
SELECT ALL - COUNT( col1 ) DIV 33 + MIN( + col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL - COUNT ( col1 ) / 33 + MIN ( + col2 ) FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT - COUNT( + - col0 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9104
SELECT - COUNT ( + - col0 ) AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT DISTINCT - + COUNT( * ) + - 60 FROM tab2 WHERE NOT + 44 + - - col2 IS NOT NULL
----
-60

skipif mysql # not compatible
query I rowsort label-9105
SELECT DISTINCT - + COUNT ( * ) + - 60 FROM tab2 WHERE NOT + 44 + - - col2 IS NOT NULL
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-9106
SELECT + COUNT( * ) * + COUNT( * ), + 25 AS col1 FROM tab2 cor0
----
9
25

skipif mysql # not compatible
query II rowsort label-9106
SELECT + COUNT ( * ) * + COUNT ( * ), + 25 AS col1 FROM tab2 cor0
----
9
25

query I rowsort
SELECT col1 + - 71 AS col2 FROM tab1 AS cor0
----
-24
-57
-66

query I rowsort
SELECT + col2 + - ( + col2 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 + - 61 AS col0 FROM tab1
----
-112
-146
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT - COUNT( ALL col2 ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9110
SELECT - COUNT ( ALL col2 ) col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + 99 * + col1 FROM tab2 AS cor0
----
5049
6633
7623

query I rowsort
SELECT DISTINCT 74 * col1 AS col1 FROM tab1 AS cor0
----
1036
3478
370

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 86 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9114
SELECT CAST( NULL AS SIGNED ) - + 29 - + 1 / COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9114
SELECT CAST ( NULL AS INTEGER ) - + 29 - + 1 / COUNT ( * ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT col2 + - col0 * - col2 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 AND col0 * + 55
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9116
SELECT col1 + col1 DIV 66 FROM tab2
----
51
68
78

skipif mysql # not compatible
query I rowsort label-9116
SELECT col1 + col1 / 66 FROM tab2
----
51
68
78

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 / + ( + - col2 ) >= + 75
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - col1 + + col2 FROM tab2
----
-2323
-4888
-4967

query I rowsort
SELECT DISTINCT col0 * col2 + - - col0 FROM tab1
----
4947
5100
6279

query I rowsort
SELECT ALL + col2 - - col1 * - col1 FROM tab0
----
-431
-6514
98

onlyif mysql # aggregate syntax: 
query II rowsort label-9121
SELECT - COUNT( * ) AS col2, + ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-9121
SELECT - COUNT ( * ) AS col2, + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3
3

query I rowsort
SELECT + ( - + col0 ) FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
44

query II rowsort
SELECT + 28 * + col2, col0 AS col1 FROM tab0
----
1316
15
2772
97
280
87

query I rowsort
SELECT ALL - - ( - - col2 ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT - 98 * col1 * + + col1 FROM tab1 AS cor0
----
-19208
-216482
-2450

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9127
SELECT ALL * FROM tab1 cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9127
SELECT ALL * FROM tab1 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 27 AS col2, + col0 AS col2 FROM tab1 cor0 WHERE NOT - col2 BETWEEN + col1 AND + + col2
----
27
51
27
85
27
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9129
SELECT col0 * col2 DIV + 3 FROM tab2 cor0
----
1450
352
853

skipif mysql # not compatible
query I rowsort label-9129
SELECT col0 * col2 / + 3 FROM tab2 cor0
----
1450
352
853

query II rowsort
SELECT 19, col2 + + 59 AS col0 FROM tab0
----
19
106
19
158
19
69

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9132
SELECT - 81 AS col0, - MIN( col2 ) DIV + SUM( - col1 ) * 59 - + 94 AS col2 FROM tab1
----
-81
-94

skipif mysql # not compatible
query II rowsort label-9132
SELECT - 81 AS col0, - MIN ( col2 ) / + SUM ( - col1 ) * 59 - + 94 AS col2 FROM tab1
----
-81
-94

query I rowsort
SELECT DISTINCT + 34 + + col0 FROM tab2
----
109
80
98

query II rowsort
SELECT - col1 AS col0, - col0 + - col0 FROM tab1
----
-14
-102
-47
-182
-5
-170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9135
SELECT ALL CAST( + col1 AS SIGNED ) AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9135
SELECT ALL CAST ( + col1 AS INTEGER ) AS col2 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9136
SELECT + CAST( - COUNT( DISTINCT - 95 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9136
SELECT + CAST ( - COUNT ( DISTINCT - 95 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1

query II rowsort
SELECT ALL + + col1 AS col0, col0 AS col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT - col1 * - col0 * - 21 * - 13 AS col2 FROM tab0 AS cor0
----
26481
331695
498771

query I rowsort
SELECT - 42 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 27 + - col1 FROM tab1
----
-20
13
22

query I rowsort
SELECT - col2 + - 99 + + + ( - + col2 ) FROM tab2
----
-145
-179
-215

query I rowsort
SELECT ALL col0 * 68 AS col1 FROM tab2 AS cor0
----
3128
4352
5100

query I rowsort
SELECT - 68 + + col2 * col1 + + col1 FROM tab0 AS cor0
----
163
32
3820

query I rowsort
SELECT ALL col0 / 29 * + - col0 + - 67 FROM tab0 AS cor0 WHERE 46 + col0 = col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9145
SELECT CAST( - - col2 AS SIGNED ) + 94 FROM tab1 AS cor0
----
153
162
190

skipif mysql # not compatible
query I rowsort label-9145
SELECT CAST ( - - col2 AS INTEGER ) + 94 FROM tab1 AS cor0
----
153
162
190

onlyif mysql # DIV for integer division: 
query I rowsort label-9146
SELECT - - 23 DIV + - 79 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9146
SELECT - - 23 / + - 79 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) col1 FROM tab0
----
1
21
81

query I rowsort
SELECT + col1 * - 78 AS col2 FROM tab2
----
-3978
-5226
-6006

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 * + ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT SUM( - 25 ) AS col0 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-9150
SELECT SUM ( - 25 ) AS col0 FROM tab1
----
-75

query I rowsort
SELECT - 13 * 91 AS col1 FROM tab2
----
-1183
-1183
-1183

query I rowsort
SELECT - 97 - - ( - 78 ) FROM tab2
----
-175
-175
-175

query I rowsort
SELECT ( + - col2 ) FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT SUM( DISTINCT + col0 ) FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-9154
SELECT SUM ( DISTINCT + col0 ) FROM tab2 cor0
----
185

query I rowsort
SELECT DISTINCT - ( 10 ) AS col1 FROM tab2 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT - MAX( 83 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-83

skipif mysql # not compatible
query I rowsort label-9156
SELECT - MAX ( 83 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-83

query I rowsort
SELECT - 30 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col1 * - + col0 * + col1 col2, - col1 col0, col1 FROM tab2 WHERE NOT 35 < NULL
----

query I rowsort
SELECT + 36 FROM tab1 AS cor0 WHERE NOT col1 + + col0 + - 48 NOT BETWEEN - 45 * + 82 + - col0 AND - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 col0 FROM tab2 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT - - MAX( + - col2 ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9161
SELECT - - MAX ( + - col2 ) FROM tab1 cor0
----
-59

query I rowsort
SELECT - + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 + - col2 + + + col1 AND - col0 * + + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + + - 33 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9164
SELECT - + 71 AS col2, - CAST( NULL AS SIGNED ) + - + col0 FROM tab1 cor0
----
-71
NULL
-71
NULL
-71
NULL

skipif mysql # not compatible
query II rowsort label-9164
SELECT - + 71 AS col2, - CAST ( NULL AS INTEGER ) + - + col0 FROM tab1 cor0
----
-71
NULL
-71
NULL
-71
NULL

query I rowsort
SELECT + + 72 AS col2 FROM tab0 cor0
----
72
72
72

query II rowsort
SELECT + - ( + col2 ) AS col0, col2 FROM tab2 AS cor0 WHERE NOT - 60 IS NULL
----
-23
23
-40
40
-58
58

query I rowsort
SELECT DISTINCT col2 + 85 * - col2 FROM tab0
----
-3948
-8316
-840

query I rowsort
SELECT ALL col1 * col0 + 91 + col0 AS col0 FROM tab0
----
1321
2005
285

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * col2 * - 22 NOT BETWEEN + col0 AND - col2
----

query I rowsort
SELECT ALL 76 + + col0 + - + col2 AS col2 FROM tab2
----
100
93
99

query I rowsort
SELECT + + col0 + - + col2 AS col0 FROM tab2 cor0
----
17
23
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9172
SELECT - + col2 + - + CAST( NULL AS DECIMAL ) / 25 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9172
SELECT - + col2 + - + CAST ( NULL AS REAL ) / 25 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT + COUNT( ALL + + 81 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9173
SELECT + COUNT ( ALL + + 81 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9174
SELECT + col0 FROM tab0 WHERE col0 / - - CAST( NULL AS SIGNED ) - + col2 + + - CAST( NULL AS SIGNED ) / + col0 + - col0 * + + 75 * col0 <= NULL
----

skipif mysql # not compatible
query I rowsort label-9174
SELECT + col0 FROM tab0 WHERE col0 / - - CAST ( NULL AS INTEGER ) - + col2 + + - CAST ( NULL AS INTEGER ) / + col0 + - col0 * + + 75 * col0 <= NULL
----

query II rowsort
SELECT + col2 * - + ( 9 ), col2 AS col0 FROM tab1 AS cor0
----
-531
59
-612
68
-864
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - + col2 IS NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 35 * - 25 * 56 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - ( + - col2 ) - + col0 AS col0 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= col1 + 57
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, + col2 col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT ALL + col0 - + + col0 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT DISTINCT + MIN( ALL col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9183
SELECT DISTINCT + MIN ( ALL col1 ) AS col2 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT - COUNT( * ) + SUM( ALL col2 ) FROM tab2
----
118

skipif mysql # not compatible
query I rowsort label-9184
SELECT - COUNT ( * ) + SUM ( ALL col2 ) FROM tab2
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9185
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + col1, + 16 + + + 17 + col0 col0 FROM tab1
----
NULL
118
NULL
124
NULL
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9185
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + col1, + 16 + + + 17 + col0 col0 FROM tab1
----
NULL
118
NULL
124
NULL
84

query II rowsort
SELECT ALL + col0 AS col1, + col1 FROM tab2 WHERE NOT ( + 67 ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9187
SELECT - ( - col2 ) DIV + - 75 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9187
SELECT - ( - col2 ) / + - 75 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT MIN( ALL 33 ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-9188
SELECT MIN ( ALL 33 ) FROM tab1
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9189
SELECT ALL 94 / + - CAST( NULL AS SIGNED ) AS col1, - COUNT( * ) AS col0 FROM tab0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-9189
SELECT ALL 94 / + - CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) AS col0 FROM tab0
----
NULL
-3

query II rowsort
SELECT 14 * + 79 AS col2, ( + + 11 ) * + 76 + ( + 61 ) FROM tab1
----
1106
897
1106
897
1106
897

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT + ( COUNT( ALL - + col1 ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9191
SELECT + ( COUNT ( ALL - + col1 ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9192
SELECT DISTINCT col1 * - col1 DIV + + col1 AS col2 FROM tab0 cor0 WHERE NOT 63 * + 2 + col2 IS NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-9192
SELECT DISTINCT col1 * - col1 / + + col1 AS col2 FROM tab0 cor0 WHERE NOT 63 * + 2 + col2 IS NULL
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 9 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT - col2 * - - col2 * + 55 * - col1 AS col1 FROM tab0
----
115500
539055
9841095

query I rowsort
SELECT DISTINCT + - 35 * - 82 AS col2 FROM tab2 AS cor0
----
2870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9196
SELECT DISTINCT - - MAX( DISTINCT CAST( - - col1 AS SIGNED ) ) AS col1, + 68 AS col2 FROM tab1 AS cor0
----
47
68

skipif mysql # not compatible
query II rowsort label-9196
SELECT DISTINCT - - MAX ( DISTINCT CAST ( - - col1 AS INTEGER ) ) AS col1, + 68 AS col2 FROM tab1 AS cor0
----
47
68

query I rowsort
SELECT - - col2 * col2 FROM tab0 cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT - col1 + - col0 + + col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT - 68 + + MAX( + 55 ) FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-9199
SELECT - 68 + + MAX ( + 55 ) FROM tab2
----
-13

query III rowsort
SELECT * FROM tab0 WHERE - col0 IS NULL AND col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT ALL SUM( - - col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-9201
SELECT ALL SUM ( - - col1 ) FROM tab0
----
103

query I rowsort
SELECT ALL col2 + - col1 * col2 FROM tab1
----
-1248
-236
-3128

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT MAX( DISTINCT col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-9203
SELECT MAX ( DISTINCT col1 ) AS col1 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT DISTINCT COUNT( * ) + + 83 - + - COUNT( * ) FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-9204
SELECT DISTINCT COUNT ( * ) + + 83 - + - COUNT ( * ) FROM tab2
----
89

query II rowsort
SELECT col2 AS col2, col0 * - 78 FROM tab2
----
23
-3588
40
-4992
58
-5850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9206
SELECT AVG ( CAST( - + col2 AS SIGNED ) ) AS col2 FROM tab1 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9206
SELECT AVG ( CAST ( - + col2 AS INTEGER ) ) AS col2 FROM tab1 WHERE NULL >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9207
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE col1 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE 8 IN ( - - col0, col2 )
----

query I rowsort
SELECT DISTINCT - 3 + + col1 AS col2 FROM tab0
----
-2
18
78

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN + 54 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT ALL COUNT( * ) col1 FROM tab2 WHERE NOT col1 / - col1 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9211
SELECT ALL COUNT ( * ) col1 FROM tab2 WHERE NOT col1 / - col1 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT ALL ( - - COUNT( * ) ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9212
SELECT ALL ( - - COUNT ( * ) ) AS col2 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT - + MAX( ALL + 8 ) AS col0 FROM tab2 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-9213
SELECT - + MAX ( ALL + 8 ) AS col0 FROM tab2 cor0
----
-8

query I rowsort
SELECT ALL + - 3 FROM tab1 AS cor0 WHERE NOT + col2 <= NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9216
SELECT - CAST( + 5 AS SIGNED ) + - 6 AS col1 FROM tab1
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-9216
SELECT - CAST ( + 5 AS INTEGER ) + - 6 AS col1 FROM tab1
----
-11
-11
-11

query I rowsort
SELECT - 19 + - col1 AS col0 FROM tab2
----
-70
-86
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9218
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - 37 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9218
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - 37 AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 + - col1 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9220
SELECT ALL - + ( CAST( NULL AS SIGNED ) ) + - col1 - - + ( col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9220
SELECT ALL - + ( CAST ( NULL AS INTEGER ) ) + - col1 - - + ( col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 41 FROM tab1 cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT - COUNT( - col0 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9222
SELECT - COUNT ( - col0 ) AS col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( + 26 ) * - + col0 BETWEEN NULL AND col2 )
----

query I rowsort
SELECT ( + 66 ) * + + col1 * 29 FROM tab2 WHERE NOT + + col1 IS NULL
----
128238
147378
97614

query II rowsort
SELECT + col0, 17 AS col1 FROM tab1
----
51
17
85
17
91
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 * + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9226
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 * + col0 IS NULL
----
3

query I rowsort
SELECT + + 54 * + col0 AS col2 FROM tab1 AS cor0
----
2754
4590
4914

query I rowsort
SELECT DISTINCT + col1 * + + col2 AS col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9229
SELECT CAST( + col1 AS DECIMAL ) * + col1 FROM tab0 WHERE NOT col2 <> ( + 27 )
----

skipif mysql # not compatible
query I rowsort label-9229
SELECT CAST ( + col1 AS REAL ) * + col1 FROM tab0 WHERE NOT col2 <> ( + 27 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * 51 BETWEEN col2 AND NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE 89 + 70 NOT BETWEEN col0 AND ( 64 * 10 )
----

query I rowsort
SELECT DISTINCT 33 - - 30 AS col0 FROM tab1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9233
SELECT ALL - CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab2 WHERE NULL > + 29
----

skipif mysql # not compatible
query I rowsort label-9233
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab2 WHERE NULL > + 29
----

query I rowsort
SELECT - 54 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-54
-54
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 col1 FROM tab2 WHERE - col0 * col0 IS NULL
----

query I rowsort
SELECT col0 * ( col1 ) + col1 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
1296
1848
98

query I rowsort
SELECT - 2 + + ( - col0 ) AS col2 FROM tab2
----
-48
-66
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT - 37 * COUNT( * ) + - 15 AS col1 FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-9238
SELECT - 37 * COUNT ( * ) + - 15 AS col1 FROM tab2
----
-126

query I rowsort
SELECT + col1 * ( - col0 ) + - 82 FROM tab1
----
-4359
-507
-796

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT DISTINCT - SUM( ALL + 52 ) FROM tab2
----
-156

skipif mysql # not compatible
query I rowsort label-9240
SELECT DISTINCT - SUM ( ALL + 52 ) FROM tab2
----
-156

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 29 * 98 <= ( + col0 / col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9242
SELECT col0 + col0 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9242
SELECT col0 + col0 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT DISTINCT SUM( 83 ) FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-9243
SELECT DISTINCT SUM ( 83 ) FROM tab2
----
249

query I rowsort
SELECT ALL col2 * - 80 AS col1 FROM tab2 WHERE NOT ( - col2 + 41 * col1 ) NOT BETWEEN NULL AND ( col1 * 43 )
----

query I rowsort
SELECT col1 + - 75 * - col0 AS col0 FROM tab0
----
1206
6546
7276

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 NOT BETWEEN + 26 / - 13 AND col0 / 58
----

query III rowsort
SELECT * FROM tab0 WHERE col0 > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9248
SELECT + 69 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN ( - CAST( ( 13 ) AS SIGNED ) / - col2 + - col2 ) AND + col2
----

skipif mysql # not compatible
query I rowsort label-9248
SELECT + 69 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN ( - CAST ( ( 13 ) AS INTEGER ) / - col2 + - col2 ) AND + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 AND ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col1 - col0 col1 FROM tab0
----
-96
354
6546

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 > ( + col0 )
----

query I rowsort
SELECT ALL col0 + + ( - col0 ) AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + - 87 FROM tab1
----
-40
-73
-82

query I rowsort
SELECT ALL - 84 * 42 AS col1 FROM tab1
----
-3528
-3528
-3528

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9256
SELECT * FROM tab1 WHERE col1 + CAST( NULL AS SIGNED ) NOT IN ( 61 + + 10 )
----

skipif mysql # not compatible
query III rowsort label-9256
SELECT * FROM tab1 WHERE col1 + CAST ( NULL AS INTEGER ) NOT IN ( 61 + + 10 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - col0 col2 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT DISTINCT - col1 - 33 FROM tab1 AS cor0
----
-38
-47
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9259
SELECT DISTINCT - COUNT( * ) DIV 25 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9259
SELECT DISTINCT - COUNT ( * ) / 25 AS col2 FROM tab2
----
0

query I rowsort
SELECT - col2 * 98 - - col1 AS col0 FROM tab0
----
-4525
-959
-9701

query I rowsort
SELECT - col0 - col2 * - col2 AS col1 FROM tab1
----
3396
4533
9165

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT ALL 94 + - 55 * + SUM( 18 ) FROM tab1 WHERE ( NULL ) BETWEEN NULL AND ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL 94 + - 55 * + SUM ( 18 ) FROM tab1 WHERE ( NULL ) BETWEEN NULL AND ( - col0 )
----
NULL

query I rowsort
SELECT DISTINCT 27 AS col1 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-9264
SELECT + 23 - 23 DIV 18 FROM tab2 cor0
----
22
22
22

skipif mysql # not compatible
query I rowsort label-9264
SELECT + 23 - 23 / 18 FROM tab2 cor0
----
22
22
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9265
SELECT col2 - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9265
SELECT col2 - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( + col0 ) * ( 29 ) - + col1 FROM tab1 AS cor0
----
-1493
-2470
-2686

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= ( + ( - col2 ) )
----

query I rowsort
SELECT - col2 AS col2 FROM tab0 cor0 WHERE NOT 48 <> - ( col0 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 48 + - 95 * + col1 < + 83
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NOT ( - col0 ) >= + ( col2 )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT DISTINCT MIN( - - col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT MIN ( - - col1 ) AS col0 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9272
SELECT ALL - col0 * ( - CAST( - col1 AS SIGNED ) ) FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-9272
SELECT ALL - col0 * ( - CAST ( - col1 AS INTEGER ) ) FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT ALL + MAX( ALL + col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL + MAX ( ALL + col2 ) FROM tab1
----
96

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT col2 / col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9275
SELECT DISTINCT ( - col1 ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT ( - col1 ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) >= ( NULL )
----

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9278
SELECT COUNT( ALL CAST( + 6 AS SIGNED ) ) * - 63 AS col1 FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-9278
SELECT COUNT ( ALL CAST ( + 6 AS INTEGER ) ) * - 63 AS col1 FROM tab0
----
-189

query I rowsort
SELECT col1 * col1 * + 28 AS col0 FROM tab2
----
125692
166012
72828

onlyif mysql # DIV for integer division: 
query I rowsort label-9280
SELECT col2 DIV 68 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9280
SELECT col2 / 68 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN + 56 * - 82 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN + 56 * - 82 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9282
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9282
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND CAST ( - col2 AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 67 * + col2 - + 35 FROM tab0 AS cor0
----
3114
635
6598

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 69 * 62 <= + 85 + 97 * col0
----
15
81
47

query I rowsort
SELECT + 52 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( 76 )
----

query I rowsort
SELECT ALL ( + ( + 22 ) ) AS col2 FROM tab1
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT COUNT( DISTINCT ( - 19 ) ) col0 FROM tab2, tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9287
SELECT COUNT ( DISTINCT ( - 19 ) ) col0 FROM tab2, tab1 AS cor0
----
1

query II rowsort
SELECT + 52, + col1 * - col0 AS col2 FROM tab0
----
52
-1215
52
-1827
52
-97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( 72 )
----

query I rowsort
SELECT DISTINCT + 92 * + col2 AS col0 FROM tab0
----
4324
9108
920

query I rowsort
SELECT col2 * col0 * - col2 + + col1 AS col0 FROM tab0
----
-33054
-8679
-950696

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT DISTINCT + + MIN( 38 ) AS col1 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-9292
SELECT DISTINCT + + MIN ( 38 ) AS col1 FROM tab2 AS cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT DISTINCT 97 + + COUNT( * ) AS col1 FROM tab0 cor0
----
100

skipif mysql # not compatible
query I rowsort label-9293
SELECT DISTINCT 97 + + COUNT ( * ) AS col1 FROM tab0 cor0
----
100

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 92 ) >= col0
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9295
SELECT ALL ( + CAST( - 92 AS SIGNED ) ) * 81 FROM tab1 AS cor0
----
-7452
-7452
-7452

skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL ( + CAST ( - 92 AS INTEGER ) ) * 81 FROM tab1 AS cor0
----
-7452
-7452
-7452

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT + COUNT( * ) + - 48 FROM tab2 cor0
----
-45

skipif mysql # not compatible
query I rowsort label-9296
SELECT + COUNT ( * ) + - 48 FROM tab2 cor0
----
-45

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + - 90 - col2 IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9298
SELECT DISTINCT - + col1 DIV col1 col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9298
SELECT DISTINCT - + col1 / col1 col2 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT ALL 62 * + - COUNT( * ) FROM tab0 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL 62 * + - COUNT ( * ) FROM tab0 AS cor0
----
-186

onlyif mysql # DIV for integer division: 
query I rowsort label-9300
SELECT DISTINCT + 3 DIV - 33 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9300
SELECT DISTINCT + 3 / - 33 AS col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9301
SELECT - col0 DIV 18 FROM tab0
----
-4
-5
0

skipif mysql # not compatible
query I rowsort label-9301
SELECT - col0 / 18 FROM tab0
----
-4
-5
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 31 + - + col1 >= - col1 * + 97
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 >= + col2
----
87
21
10

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 ) IN ( + 41 * 56 )
----

query I rowsort
SELECT DISTINCT + 92 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9306
SELECT DISTINCT - 2 DIV COUNT( * ) col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9306
SELECT DISTINCT - 2 / COUNT ( * ) col0 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT col2 - 49 + - - col0 + col1 * col0 FROM tab0 AS cor0
----
1228
1875
244

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT + - 12 - + - SUM( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-9308
SELECT + - 12 - + - SUM ( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
183

query I rowsort
SELECT + col1 - 70 - col2 AS col1 FROM tab0 AS cor0
----
-168
-36
-59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 / - col1 NOT BETWEEN - ( 53 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( - col1 + - - col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9312
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( - col1 + - - col2 ) IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 = ( NULL )
----

query I rowsort
SELECT + + col1 * - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > + 12
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9315
SELECT ALL - col2 DIV 49 col2 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9315
SELECT ALL - col2 / 49 col2 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9316
SELECT DISTINCT CAST( - ( + - col1 ) AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9316
SELECT DISTINCT CAST ( - ( + - col1 ) AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 col0 FROM tab2 AS cor0
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 87 ) col2 FROM tab2 AS cor0
----
-87
-87
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9319
SELECT ALL CAST( NULL AS SIGNED ) AS col2, 65, COUNT( * ) AS col0 FROM tab1
----
NULL
65
3

skipif mysql # not compatible
query III rowsort label-9319
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, 65, COUNT ( * ) AS col0 FROM tab1
----
NULL
65
3

query I rowsort
SELECT ALL 66 * col2 FROM tab2
----
1518
2640
3828

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9321
SELECT * FROM tab2 WHERE NOT ( NOT + ( + col0 ) * 18 + - 47 BETWEEN NULL AND ( col1 + CAST( col1 - col1 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-9321
SELECT * FROM tab2 WHERE NOT ( NOT + ( + col0 ) * 18 + - 47 BETWEEN NULL AND ( col1 + CAST ( col1 - col1 AS INTEGER ) ) )
----

query II rowsort
SELECT ALL col2 AS col1, - 52 FROM tab0
----
10
-52
47
-52
99
-52

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 + col2 + - - 38 >= col1
----

query I rowsort
SELECT DISTINCT col1 + - - ( - + ( col1 ) ) * col1 FROM tab1 WHERE NOT ( - - 31 ) = NULL
----

query II rowsort
SELECT ALL 90 AS col0, + col0 AS col2 FROM tab1
----
90
51
90
85
90
91

query I rowsort
SELECT DISTINCT ( - - 91 ) FROM tab1
----
91

query I rowsort
SELECT DISTINCT ( + col2 ) / - col0 * + 80 - - 23 * col0 AS col0 FROM tab2 AS cor0 WHERE NULL IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9328
SELECT - COUNT( * ) AS col0, COUNT( * ) FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-9328
SELECT - COUNT ( * ) AS col0, COUNT ( * ) FROM tab0 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT - COUNT( + - 99 ) * - - MAX( ALL + 20 ) FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-9329
SELECT - COUNT ( + - 99 ) * - - MAX ( ALL + 20 ) FROM tab1 AS cor0
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL + - col0 * + + col2 * - - 3 FROM tab2 AS cor0
----
-13050
-3174
-7680

query I rowsort
SELECT ALL col1 * - - 62 AS col1 FROM tab1 AS cor0
----
2914
310
868

query I rowsort
SELECT 31 * - ( + 16 ) FROM tab2 AS cor0
----
-496
-496
-496

query I rowsort
SELECT - col0 + - 82 + col2 FROM tab2 cor0 WHERE NOT NULL NOT IN ( + ( + + col0 ) )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( - 0 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9336
SELECT - col1 + + - CAST( - 66 AS SIGNED ) + - 57 * + col2 FROM tab2 cor0
----
-1296
-2291
-3307

skipif mysql # not compatible
query I rowsort label-9336
SELECT - col1 + + - CAST ( - 66 AS INTEGER ) + - 57 * + col2 FROM tab2 cor0
----
-1296
-2291
-3307

query I rowsort
SELECT 73 * + ( - 53 ) FROM tab1 cor0
----
-3869
-3869
-3869

query I rowsort
SELECT - col2 * - 55 * + col1 AS col2 FROM tab2 AS cor0
----
169400
213730
64515

onlyif mysql # DIV for integer division: 
query I rowsort label-9339
SELECT - col1 DIV - 39 + col0 col1 FROM tab0 AS cor0
----
17
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9339
SELECT - col1 / - 39 + col0 col1 FROM tab0 AS cor0
----
17
87
97

query I rowsort
SELECT col1 / - 13 * + 71 FROM tab0 cor0 WHERE + col0 BETWEEN + 62 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9341
SELECT DISTINCT 36 * + SUM( - col1 ) / + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT 36 * + SUM ( - col1 ) / + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 41 col0 FROM tab2 AS cor0
----
41
41
41

query II rowsort
SELECT DISTINCT - + col2 * - col0 AS col1, - ( - col1 ) * col0 AS col0 FROM tab2 AS cor0
----
1058
2346
2560
4928
4350
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9344
SELECT col0 - 15 - - 5 - - 41 * + - col2 * col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9344
SELECT col0 - 15 - - 5 - - 41 * + - col2 * col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT ALL COUNT( ALL 28 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL COUNT ( ALL 28 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT DISTINCT - ( - COUNT( + col1 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT - ( - COUNT ( + col1 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9347
SELECT DISTINCT col1 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9347
SELECT DISTINCT col1 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT 15 + - 30 FROM tab0
----
-15
-15
-15

query I rowsort
SELECT ALL 90 + 0 AS col0 FROM tab1
----
90
90
90

query I rowsort
SELECT 84 * + col2 AS col0 FROM tab0 WHERE NULL = col0
----

query I rowsort
SELECT DISTINCT - ( + col2 ) - - col2 * col2 FROM tab0
----
2162
90
9702

query I rowsort
SELECT + col1 + col2 * + col2 + - col0 FROM tab2
----
1613
3356
534

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9353
SELECT * FROM tab0 AS cor0 WHERE 23 + col1 * CAST( NULL AS DECIMAL ) NOT IN ( + - col2, col1 )
----

skipif mysql # not compatible
query III rowsort label-9353
SELECT * FROM tab0 AS cor0 WHERE 23 + col1 * CAST ( NULL AS REAL ) NOT IN ( + - col2, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT MIN( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9354
SELECT MIN ( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9355
SELECT + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9355
SELECT + ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - 36 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - col0, - 34 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT ALL COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9360
SELECT ALL + + COUNT( * ) DIV 7 DIV 88 * + MAX( - + col1 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9360
SELECT ALL + + COUNT ( * ) / 7 / 88 * + MAX ( - + col1 ) FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 * 81 col2 FROM tab1 AS cor0 WHERE NOT col1 * - - col0 IS NOT NULL
----

query I rowsort
SELECT ALL - - 46 FROM tab1 cor0
----
46
46
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9363
SELECT DISTINCT + COUNT( ALL + + CAST( - col2 AS SIGNED ) ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9363
SELECT DISTINCT + COUNT ( ALL + + CAST ( - col2 AS INTEGER ) ) col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 39 * - col0 * + col0 + + 89 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT + 17 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col2 FROM tab1
----
40
40
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9367
SELECT 62 DIV - COUNT( * ) FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-9367
SELECT 62 / - COUNT ( * ) FROM tab2
----
-20

query I rowsort
SELECT DISTINCT col0 * col2 / + 88 FROM tab1 WHERE NOT - col0 * + + ( - - 82 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9369
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - 17 + + col1 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9369
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - 17 + + col1 + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL col2 AS col2, - 71 FROM tab0
----
10
-71
47
-71
99
-71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9371
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND - CAST( + - col0 AS SIGNED ) + - col2
----

skipif mysql # not compatible
query III rowsort label-9371
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND - CAST ( + - col0 AS INTEGER ) + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT - 14 + + + COUNT( * ) + + 12 AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9372
SELECT - 14 + + + COUNT ( * ) + + 12 AS col0 FROM tab0
----
1

query I rowsort
SELECT ALL - - 80 AS col1 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT + - COUNT( * ) AS col0 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9374
SELECT + - COUNT ( * ) AS col0 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9375
SELECT DISTINCT 42 + + + col0 DIV + col0 FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-9375
SELECT DISTINCT 42 + + + col0 / + col0 FROM tab1 AS cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT ALL + + 1 - - + ( - COUNT( * ) ) col0 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9376
SELECT ALL + + 1 - - + ( - COUNT ( * ) ) col0 FROM tab0 AS cor0
----
-2

query I rowsort
SELECT - 0 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ( + - ( + 83 ) ) AS col2 FROM tab1 AS cor0
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT + MAX( + - col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-9379
SELECT + MAX ( + - col0 ) AS col1 FROM tab1
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9380
SELECT DISTINCT - 93 - CAST( NULL AS SIGNED ) + - + 35 + + + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9380
SELECT DISTINCT - 93 - CAST ( NULL AS INTEGER ) + - + 35 + + + COUNT ( * ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 77 + + - 98 col1, col0 * + col1 FROM tab0 AS cor0
----
-21
1215
-21
1827
-21
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9382
SELECT + col1 * + + CAST( - 54 AS SIGNED ) + - - col1 AS col1 FROM tab1 AS cor0
----
-2491
-265
-742

skipif mysql # not compatible
query I rowsort label-9382
SELECT + col1 * + + CAST ( - 54 AS INTEGER ) + - - col1 AS col1 FROM tab1 AS cor0
----
-2491
-265
-742

query I rowsort
SELECT col2 * - col1 * + col2 * - col0 FROM tab1
----
1479425
19776848
6580224

query I rowsort
SELECT + col2 * + - 89 FROM tab0
----
-4183
-8811
-890

query I rowsort
SELECT DISTINCT + 2 * col1 AS col1 FROM tab0
----
162
2
42

query II rowsort
SELECT ALL - 51 AS col0, col2 FROM tab1 AS cor0
----
-51
59
-51
68
-51
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 col1 FROM tab2 cor0
----
34
34
34

query II rowsort
SELECT DISTINCT 8, - 92 AS col0 FROM tab0 AS cor0 WHERE + col0 IN ( - 84 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9389
SELECT - - col0 DIV - + 75 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9389
SELECT - - col0 / - + 75 FROM tab0 AS cor0
----
-1
-1
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT + col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9391
SELECT - col0 AS col1, CAST( 62 AS SIGNED ) * 16 + col1 AS col1 FROM tab0 AS cor0
----
-15
1073
-87
1013
-97
993

skipif mysql # not compatible
query II rowsort label-9391
SELECT - col0 AS col1, CAST ( 62 AS INTEGER ) * 16 + col1 AS col1 FROM tab0 AS cor0
----
-15
1073
-87
1013
-97
993

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * + 97 < - col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT + + COUNT( - - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9393
SELECT + + COUNT ( - - col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT - - COUNT( + 43 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9394
SELECT - - COUNT ( + 43 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ( + - col0 ) AS col1 FROM tab2 cor0
----
-46
-64
-75

query II rowsort
SELECT ALL - col2 AS col1, + col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT DISTINCT - + 98 + SUM( - col1 ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9397
SELECT DISTINCT - + 98 + SUM ( - col1 ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 97 * - + col1 + + col0 col1 FROM tab0
----
-1950
-7842
0

query I rowsort
SELECT ALL + col2 * - 7 * - 97 AS col1 FROM tab1
----
40061
46172
65184

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9400
SELECT DISTINCT * FROM tab0 WHERE ( - col1 * - col2 * - - CAST( NULL AS SIGNED ) ) NOT BETWEEN NULL AND 1
----

skipif mysql # not compatible
query III rowsort label-9400
SELECT DISTINCT * FROM tab0 WHERE ( - col1 * - col2 * - - CAST ( NULL AS INTEGER ) ) NOT BETWEEN NULL AND 1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9401
SELECT ALL + 25 * + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL + 25 * + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - - ( + + col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 NOT BETWEEN NULL AND + + 30 * col0
----

query I rowsort
SELECT 53 FROM tab2 WHERE NOT + + ( + col2 ) BETWEEN - - col0 AND ( NULL )
----
53
53
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 + - + col0 col1 FROM tab0 cor0
----
-19
-9
63

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 < col2 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) > - - 4 - - 55
----

query I rowsort
SELECT + col1 - col1 + + + 14 AS col0 FROM tab0 AS cor0
----
14
14
14

query I rowsort
SELECT ALL - 81 AS col0 FROM tab2 cor0
----
-81
-81
-81

query I rowsort
SELECT - - 20 FROM tab2 AS cor0 WHERE - 27 > + + 6
----

query I rowsort
SELECT ALL - + col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9412
SELECT DISTINCT + + MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9412
SELECT DISTINCT + + MAX ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 - + - 99 * 29 * - + col2 FROM tab2 AS cor0
----
-114800
-166460
-66010

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9414
SELECT DISTINCT CAST( NULL AS DECIMAL ) - - + col1 + + + CAST( + 64 AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9414
SELECT DISTINCT CAST ( NULL AS REAL ) - - + col1 + + + CAST ( + 64 AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col0 FROM tab0 WHERE ( NULL ) IS NOT NULL AND - col0 / + - col2 * 65 NOT IN ( col1, + col2, + col0 * col1 * + col0 * col0, col1 + + 88 )
----

query II rowsort
SELECT - col1 + - 14, - 56 AS col0 FROM tab2
----
-65
-56
-81
-56
-91
-56

query I rowsort
SELECT - - 88 * - col2 FROM tab0 WHERE NULL NOT IN ( - - 69, col1 + - 37 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9418
SELECT + COUNT( * ) + - COUNT( ALL - col1 ) * - + COUNT( + 20 ) - - 6 AS col0, + 88 FROM tab2
----
18
88

skipif mysql # not compatible
query II rowsort label-9418
SELECT + COUNT ( * ) + - COUNT ( ALL - col1 ) * - + COUNT ( + 20 ) - - 6 AS col0, + 88 FROM tab2
----
18
88

query II rowsort
SELECT ALL - 66 AS col1, col1 * + + col1 AS col1 FROM tab1
----
-66
196
-66
2209
-66
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9420
SELECT DISTINCT col1 + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9420
SELECT DISTINCT col1 + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 65 * + col2 + - + col1 FROM tab0
----
-3136
-6436
-671

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + col1 col1, - col0 FROM tab0
----
1215
-15
1827
-87
97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT DISTINCT MIN( ALL - + 15 ) AS col2 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-9423
SELECT DISTINCT MIN ( ALL - + 15 ) AS col2 FROM tab1
----
-15

query II rowsort
SELECT + + col2 AS col1, - col2 * + col2 FROM tab0 cor0
----
10
-100
47
-2209
99
-9801

query II rowsort
SELECT ALL - 54, col1 AS col0 FROM tab2 AS cor0
----
-54
51
-54
67
-54
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < + 22 + - 95 / col0 * + col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 4 / + 60 * - + 30 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT DISTINCT + MAX( - + ( - 86 ) ) FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-9428
SELECT DISTINCT + MAX ( - + ( - 86 ) ) FROM tab1 AS cor0
----
86

query I rowsort
SELECT ALL + 75 AS col1 FROM tab1 cor0
----
75
75
75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 58 IS NULL
----

query I rowsort
SELECT + - col2 + + - 1 AS col0 FROM tab1 AS cor0
----
-60
-69
-97

query II rowsort
SELECT - + 13 + + + col0, ( col2 ) AS col2 FROM tab2 AS cor0
----
33
23
51
40
62
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9433
SELECT col1, CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT ( NULL IS NULL )
----

skipif mysql # not compatible
query II rowsort label-9433
SELECT col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9434
SELECT 57 AS col1, CAST( col0 AS SIGNED ) * + - ( col0 ) + col0 FROM tab2
----
57
-2070
57
-4032
57
-5550

skipif mysql # not compatible
query II rowsort label-9434
SELECT 57 AS col1, CAST ( col0 AS INTEGER ) * + - ( col0 ) + col0 FROM tab2
----
57
-2070
57
-4032
57
-5550

query I rowsort
SELECT + ( 28 ) FROM tab1
----
28
28
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9436
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE ( - CAST( - - col1 AS SIGNED ) ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9436
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE ( - CAST ( - - col1 AS INTEGER ) ) IS NULL
----
0

query II rowsort
SELECT ALL + 11 AS col0, col2 FROM tab1
----
11
59
11
68
11
96

query I rowsort
SELECT ALL + - 38 * + col2 FROM tab1 AS cor0
----
-2242
-2584
-3648

query I rowsort
SELECT ALL - + 39 * col2 AS col1 FROM tab2 AS cor0
----
-1560
-2262
-897

query I rowsort
SELECT col1 + + + 99 AS col1 FROM tab1 AS cor0
----
104
113
146

query I rowsort
SELECT col0 + - + col2 AS col1 FROM tab2
----
17
23
24

query I rowsort
SELECT + 56 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query III rowsort
SELECT * FROM tab2 WHERE ( + - 88 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 + - 92 col1 FROM tab2
----
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9445
SELECT ALL - 13 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT - - CAST( - col2 AS DECIMAL ) <= + col0 * + col2 )
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-9445
SELECT ALL - 13 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT - - CAST ( - col2 AS REAL ) <= + col0 * + col2 )
----
-13
-13
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9446
SELECT ALL - MIN( ALL - col0 ) AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
75
NULL

skipif mysql # not compatible
query II rowsort label-9446
SELECT ALL - MIN ( ALL - col0 ) AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT DISTINCT + COUNT( * ) - 48 col1 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9447
SELECT DISTINCT + COUNT ( * ) - 48 col1 FROM tab2 AS cor0
----
-45

query I rowsort
SELECT DISTINCT + - 54 AS col1 FROM tab1 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN col1 * - col2 AND + 45
----
0

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN col1 * - col2 AND + 45
----
0

query I rowsort
SELECT col0 - + col2 - 45 AS col2 FROM tab2
----
-21
-22
-28

query I rowsort
SELECT 96 * - - col0 - + 78 AS col2 FROM tab0
----
1362
8274
9234

query I rowsort
SELECT + 73 * - 56 * - + 24 * + col0 FROM tab1
----
5003712
8339520
8928192

query I rowsort
SELECT DISTINCT ( 59 ) FROM tab2
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-9454
SELECT ALL - - COUNT( * ), ( + 86 ) AS col2 FROM tab0 cor0
----
3
86

skipif mysql # not compatible
query II rowsort label-9454
SELECT ALL - - COUNT ( * ), ( + 86 ) AS col2 FROM tab0 cor0
----
3
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9455
SELECT + MAX( + 34 ) DIV - COUNT( * ) FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-9455
SELECT + MAX ( + 34 ) / - COUNT ( * ) FROM tab0 AS cor0
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 4 * + - 23 * col1 col0 FROM tab0 cor0
----
-1932
-7452
-92

query I rowsort
SELECT DISTINCT + ( + 48 ) * + - 41 + - - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= 21
----

query I rowsort
SELECT + - col0 * 72 FROM tab1 AS cor0
----
-3672
-6120
-6552

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT ALL + COUNT( - + 33 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9459
SELECT ALL + COUNT ( - + 33 ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 98 < - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9461
SELECT - 73 DIV - + COUNT( DISTINCT - + col0 ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-9461
SELECT - 73 / - + COUNT ( DISTINCT - + col0 ) FROM tab1 AS cor0
----
24

query I rowsort
SELECT - 74 * + 66 AS col2 FROM tab1 AS cor0
----
-4884
-4884
-4884

onlyif mysql # aggregate syntax: 
query II rowsort label-9463
SELECT - 27 col0, COUNT( * ) FROM tab0 AS cor0
----
-27
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9463
SELECT - 27 col0, COUNT ( * ) FROM tab0 AS cor0
----
-27
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9464
SELECT DISTINCT + CAST( - col0 AS SIGNED ), + col1 + 73 FROM tab2 AS cor0 WHERE NOT + col2 * - + ( + - col0 ) - + - col1 BETWEEN - col0 + + - 24 AND NULL
----

skipif mysql # not compatible
query II rowsort label-9464
SELECT DISTINCT + CAST ( - col0 AS INTEGER ), + col1 + 73 FROM tab2 AS cor0 WHERE NOT + col2 * - + ( + - col0 ) - + - col1 BETWEEN - col0 + + - 24 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9466
SELECT ALL + 85 * + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL + 85 * + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 54 * + - 72 AS col1 FROM tab1 AS cor0
----
-3888

query I rowsort
SELECT - - 32 AS col1 FROM tab1 cor0
----
32
32
32

query I rowsort
SELECT ALL - - 70 * - 81 * + 35 FROM tab0 AS cor0
----
-198450
-198450
-198450

query I rowsort
SELECT + 39 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 * - + col2 AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9471
SELECT ALL - 39 + + - col1 AS col1 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) BETWEEN NULL AND + col0
----

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL - 39 + + - col1 AS col1 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) BETWEEN NULL AND + col0
----

query I rowsort
SELECT DISTINCT + 65 + + - col1 FROM tab2
----
-12
-2
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9473
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE - - CAST( + 46 AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9473
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE - - CAST ( + 46 AS INTEGER ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9474
SELECT DISTINCT + 7 FROM tab1 WHERE - CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-9474
SELECT DISTINCT + 7 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) = NULL
----

query I rowsort
SELECT DISTINCT - 3 + 11 * - col0 FROM tab0
----
-1070
-168
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT DISTINCT + MIN( + + col0 ) * - COUNT( * ) * - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-459

skipif mysql # not compatible
query I rowsort label-9476
SELECT DISTINCT + MIN ( + + col0 ) * - COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-459

query I rowsort
SELECT col2 + + col1 * + col2 FROM tab1 AS cor0
----
1440
3264
354

query I rowsort
SELECT DISTINCT + - 63 + + col0 + + col2 + - 15 * 78 * col2 * - 21 + - - 65 AS col0 FROM tab1 AS cor0
----
1449776
1670921
2358869

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9479
SELECT ALL + CAST( NULL AS SIGNED ) + + 24 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL + CAST ( NULL AS INTEGER ) + + 24 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 col2 FROM tab2 AS cor0 WHERE NOT 9 * - col0 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT - MAX( + 92 ) FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-9481
SELECT - MAX ( + 92 ) FROM tab1 AS cor0
----
-92

query I rowsort
SELECT ALL + col0 + + - ( col1 ) FROM tab0
----
-66
66
96

query III rowsort
SELECT * FROM tab0 WHERE + - 93 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9484
SELECT DISTINCT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) * - col0 + col2 = + 22
----

skipif mysql # not compatible
query III rowsort label-9484
SELECT DISTINCT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) * - col0 + col2 = + 22
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + col2 col1 FROM tab2
----
-104
-133
-69

query II rowsort
SELECT - col2 - - 90 + col1 AS col0, - col1 AS col1 FROM tab1
----
36
-5
69
-47
8
-14

query I rowsort
SELECT DISTINCT + col2 + + - col0 FROM tab0
----
-77
2
32

query I rowsort
SELECT + - col1 * col0 - - col2 FROM tab2 AS cor0
----
-2323
-4888
-4967

query I rowsort
SELECT + - col2 - - + 34 AS col1 FROM tab1 AS cor0
----
-25
-34
-62

query I rowsort
SELECT DISTINCT 65 - col1 FROM tab1 AS cor0
----
18
51
60

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9491
SELECT * FROM tab1 AS cor0 WHERE 15 >= CAST( - - CAST( - col2 AS DECIMAL ) AS DECIMAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9491
SELECT * FROM tab1 AS cor0 WHERE 15 >= CAST ( - - CAST ( - col2 AS REAL ) AS REAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 - - 66 FROM tab0 cor0
----
153
163
81

query I rowsort
SELECT - + 12 * col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9494
SELECT DISTINCT - col0 FROM tab1 WHERE NOT - + 12 / - CAST( + - col1 AS SIGNED ) IS NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT - col0 FROM tab1 WHERE NOT - + 12 / - CAST ( + - col1 AS INTEGER ) IS NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - ( + 68 ) AS col1 FROM tab1
----
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + ( - col1 ) col2 FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 56 ) - - col2 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT + 95 >= 46
----

query I rowsort
SELECT - 58 * + col2 FROM tab1
----
-3422
-3944
-5568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9500
SELECT + ( - 55 ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9500
SELECT + ( - 55 ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9501
SELECT + 10 DIV + + 33 + + + col1 DIV - ( col2 ) FROM tab2 cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9501
SELECT + 10 / + + 33 + + + col1 / - ( col2 ) FROM tab2 cor0
----
-1
-1
-2

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - ( + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 + + 3 FROM tab0
----
100
18
90

onlyif mysql # DIV for integer division: 
query II rowsort label-9504
SELECT + - 7 + + col1 * col0, + 23 DIV + col1 AS col2 FROM tab1 AS cor0
----
418
4
4270
0
707
1

skipif mysql # not compatible
query II rowsort label-9504
SELECT + - 7 + + col1 * col0, + 23 / + col1 AS col2 FROM tab1 AS cor0
----
418
4
4270
0
707
1

query I rowsort
SELECT ALL + ( ( + col2 ) ) * col1 * col2 + - col0 * - col2 * + + col0 * + 67 FROM tab1 cor0 WHERE NOT ( - + col2 NOT BETWEEN NULL AND ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT ALL + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <= col0 * - 39
----
0

skipif mysql # not compatible
query I rowsort label-9506
SELECT ALL + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <= col0 * - 39
----
0

query II rowsort
SELECT DISTINCT col2, 72 * + 50 AS col0 FROM tab1
----
59
3600
68
3600
96
3600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9508
SELECT 29 DIV - - COUNT( * ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9508
SELECT 29 / - - COUNT ( * ) AS col2 FROM tab2
----
9

query II rowsort
SELECT 49 AS col0, col2 FROM tab1
----
49
59
49
68
49
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, col1 AS col1 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9511
SELECT ALL + 24 * + + col2 DIV col2 FROM tab2 WHERE NULL IS NULL
----
24
24
24

skipif mysql # not compatible
query I rowsort label-9511
SELECT ALL + 24 * + + col2 / col2 FROM tab2 WHERE NULL IS NULL
----
24
24
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9512
SELECT ALL col2 AS col1, CAST( NULL AS SIGNED ) * - - 44 + 35 AS col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-9512
SELECT ALL col2 AS col1, CAST ( NULL AS INTEGER ) * - - 44 + 35 AS col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

query II rowsort
SELECT 93, + col2 AS col0 FROM tab0
----
93
10
93
47
93
99

query I rowsort
SELECT DISTINCT ( - + col2 ) * + 35 + - + col2 + - + col2 * + - col1 FROM tab2
----
1640
1798
345

query II rowsort
SELECT + 98, col0 * - col0 AS col1 FROM tab1
----
98
-2601
98
-7225
98
-8281

query II rowsort
SELECT col2, - 73 FROM tab2
----
23
-73
40
-73
58
-73

query II rowsort
SELECT - col1 AS col0, 73 FROM tab0
----
-1
73
-21
73
-81
73

onlyif mysql # DIV for integer division: 
query II rowsort label-9518
SELECT 10 AS col0, col1 DIV col2 FROM tab2
----
10
1
10
1
10
2

skipif mysql # not compatible
query II rowsort label-9518
SELECT 10 AS col0, col1 / col2 FROM tab2
----
10
1
10
1
10
2

query I rowsort
SELECT - - col2 - + + col0 AS col0 FROM tab0 cor0
----
-77
2
32

query III rowsort
SELECT * FROM tab2 cor0 WHERE 95 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT ALL + COUNT( * ) + - + SUM( DISTINCT - 21 ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL + COUNT ( * ) + - + SUM ( DISTINCT - 21 ) FROM tab0
----
24

query I rowsort
SELECT DISTINCT + 89 * + col0 + col0 FROM tab0
----
1350
7830
8730

onlyif mysql # DIV for integer division: 
query I rowsort label-9523
SELECT DISTINCT col1 - + - col0 DIV 73 AS col2 FROM tab0
----
2
22
81

skipif mysql # not compatible
query I rowsort label-9523
SELECT DISTINCT col1 - + - col0 / 73 AS col2 FROM tab0
----
2
22
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT + SUM( DISTINCT - col0 ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9524
SELECT + SUM ( DISTINCT - col0 ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-227

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9525
SELECT ALL - COUNT( * ) DIV 80 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL - COUNT ( * ) / 80 AS col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL ( + col1 ) AS col1, + 93 col1, - 73 FROM tab1 cor0
----
9 values hashing to e9dd29ff4f461ee8f1b0c53cb108ae77

query I rowsort
SELECT 28 * - - 99 FROM tab0
----
2772
2772
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT ALL - MAX( - col0 ) col1 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9528
SELECT ALL - MAX ( - col0 ) col1 FROM tab0
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9529
SELECT ALL * FROM tab2 WHERE - CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9529
SELECT ALL * FROM tab2 WHERE - CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9530
SELECT COUNT( * ) AS col1, + ( 84 ) FROM tab2
----
3
84

skipif mysql # not compatible
query II rowsort label-9530
SELECT COUNT ( * ) AS col1, + ( 84 ) FROM tab2
----
3
84

query I rowsort
SELECT DISTINCT - 53 * col2 AS col0 FROM tab2
----
-1219
-2120
-3074

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9532
SELECT ALL CAST( - col2 AS SIGNED ) * - + col1 AS col0, 65 AS col1 FROM tab1
----
1344
65
295
65
3196
65

skipif mysql # not compatible
query II rowsort label-9532
SELECT ALL CAST ( - col2 AS INTEGER ) * - + col1 AS col0, 65 AS col1 FROM tab1
----
1344
65
295
65
3196
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9533
SELECT DISTINCT 14 / - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9533
SELECT DISTINCT 14 / - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT DISTINCT + MIN( - col2 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT + MIN ( - col2 ) AS col1 FROM tab2
----
-58

query I rowsort
SELECT - 37 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-37
-37
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9536
SELECT + 84 / + + 92 * - MAX( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9536
SELECT + 84 / + + 92 * - MAX ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT - + col1 AS col0, col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 56 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - col2 + - - col2 AS col0 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT DISTINCT + - ( COUNT( - 23 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9540
SELECT DISTINCT + - ( COUNT ( - 23 ) ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT col0, col1 AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT + ( COUNT( DISTINCT - col0 ) ) + + + ( + MAX( - col0 ) ) * + MIN( DISTINCT + - 92 ) AS col1 FROM tab2
----
4235

skipif mysql # not compatible
query I rowsort label-9543
SELECT + ( COUNT ( DISTINCT - col0 ) ) + + + ( + MAX ( - col0 ) ) * + MIN ( DISTINCT + - 92 ) AS col1 FROM tab2
----
4235

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT DISTINCT - COUNT( * ) - - 88 FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-9544
SELECT DISTINCT - COUNT ( * ) - - 88 FROM tab0 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT MIN( col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9545
SELECT MIN ( col0 ) AS col2 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9546
SELECT DISTINCT - col0 * + - col2 AS col2 FROM tab0 WHERE NOT col1 / 89 NOT IN ( - 69 + - col2, CAST( NULL AS SIGNED ) * - col1, - - ( + 29 ) - - CAST( NULL AS SIGNED ) + - + 2 + + col2 )
----

skipif mysql # not compatible
query I rowsort label-9546
SELECT DISTINCT - col0 * + - col2 AS col2 FROM tab0 WHERE NOT col1 / 89 NOT IN ( - 69 + - col2, CAST ( NULL AS INTEGER ) * - col1, - - ( + 29 ) - - CAST ( NULL AS INTEGER ) + - + 2 + + col2 )
----

query I rowsort
SELECT - 22 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT ALL col2 * 68 * - - col2 FROM tab0
----
150212
666468
6800

query I rowsort
SELECT - ( + ( + - 8 ) ) FROM tab0 cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT - - SUM( + + ( - col2 ) ) col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9550
SELECT - - SUM ( + + ( - col2 ) ) col2 FROM tab0 AS cor0
----
-156

query II rowsort
SELECT - + col0 AS col0, 40 FROM tab0 cor0
----
-15
40
-87
40
-97
40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9552
SELECT DISTINCT - 6 AS col1 FROM tab2 AS cor0 WHERE NULL < + col1 + - 98 + CAST( NULL AS DECIMAL ) + - + col2
----

skipif mysql # not compatible
query I rowsort label-9552
SELECT DISTINCT - 6 AS col1 FROM tab2 AS cor0 WHERE NULL < + col1 + - 98 + CAST ( NULL AS REAL ) + - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, ( 90 ) + + col1 AS col1 FROM tab1 AS cor0
----
-14
104
-47
137
-5
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9554
SELECT - 97 * + COUNT( * ) + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9554
SELECT - 97 * + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT + 30 * - COUNT( * ) FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-9555
SELECT + 30 * - COUNT ( * ) FROM tab1
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9556
SELECT ALL SUM( ALL - - 36 ) DIV + + COUNT( * ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL SUM ( ALL - - 36 ) / + + COUNT ( * ) FROM tab1
----
36

onlyif mysql # DIV for integer division: 
query II rowsort label-9557
SELECT ALL - 74 * - 98 AS col0, + col1 DIV - 23 FROM tab1
----
7252
-2
7252
0
7252
0

skipif mysql # not compatible
query II rowsort label-9557
SELECT ALL - 74 * - 98 AS col0, + col1 / - 23 FROM tab1
----
7252
-2
7252
0
7252
0

query I rowsort
SELECT DISTINCT col0 * - + col1 * + col2 * col2 * - 28 FROM tab1
----
184246272
41423900
553751744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + + + 39 AS col2 FROM tab1
----
-20
-29
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9561
SELECT CAST( NULL AS SIGNED ) + 11 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9561
SELECT CAST ( NULL AS INTEGER ) + 11 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 32 col1 FROM tab2
----
-32

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + + 48 >= - + col0 OR NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9564
SELECT DISTINCT + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9564
SELECT DISTINCT + col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - col2 * - + ( 13 ) + + col1 + - + col0 FROM tab2 AS cor0
----
304
533
746

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT - MIN( ALL col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9566
SELECT - MIN ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT DISTINCT - - COUNT( DISTINCT - col1 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9567
SELECT DISTINCT - - COUNT ( DISTINCT - col1 ) AS col0 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT ALL MAX( DISTINCT - col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9568
SELECT ALL MAX ( DISTINCT - col2 ) AS col2 FROM tab0
----
-10

query III rowsort
SELECT * FROM tab2 WHERE - col2 * - col2 <> + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9570
SELECT - 83 DIV + 82 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9570
SELECT - 83 / + 82 AS col1 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9571
SELECT DISTINCT SUM( DISTINCT col1 ) AS col2, COUNT( + - 72 ) AS col0 FROM tab2
----
195
3

skipif mysql # not compatible
query II rowsort label-9571
SELECT DISTINCT SUM ( DISTINCT col1 ) AS col2, COUNT ( + - 72 ) AS col0 FROM tab2
----
195
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9572
SELECT DISTINCT + - col0 AS col2, 62 AS col1, - 61 FROM tab1 WHERE NOT - + ( + CAST( NULL AS SIGNED ) ) * col1 NOT BETWEEN - 38 - + 99 * col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9572
SELECT DISTINCT + - col0 AS col2, 62 AS col1, - 61 FROM tab1 WHERE NOT - + ( + CAST ( NULL AS INTEGER ) ) * col1 NOT BETWEEN - 38 - + 99 * col1 AND NULL
----

query I rowsort
SELECT + ( 25 ) AS col1 FROM tab0
----
25
25
25

query III rowsort
SELECT * FROM tab2 WHERE + col1 BETWEEN + col1 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9575
SELECT col0 + - + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9575
SELECT col0 + - + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * + col1 + + 15 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT col2 + - + col1 IS NOT NULL )
----
211
2224
40

query I rowsort
SELECT DISTINCT + 74 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
74

query I rowsort
SELECT - + 19 * + col1 AS col2 FROM tab0 cor0
----
-1539
-19
-399

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 col1 FROM tab2 cor0
----
45
45
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9580
SELECT + MAX( ALL + col1 ) - + COUNT( * ) DIV 80 FROM tab0 cor0 WHERE NOT col2 NOT BETWEEN - col0 AND col2
----
81

skipif mysql # not compatible
query I rowsort label-9580
SELECT + MAX ( ALL + col1 ) - + COUNT ( * ) / 80 FROM tab0 cor0 WHERE NOT col2 NOT BETWEEN - col0 AND col2
----
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 42 ) BETWEEN + 23 AND ( 81 )
----

query I rowsort
SELECT + col1 + - 81 * - - ( + 87 ) FROM tab2 AS cor0 WHERE NOT 49 > + col2
----
-6980

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT COUNT( - 3 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9583
SELECT COUNT ( - 3 ) AS col0 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT + col2 * - + col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 32 <> col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> - 73 * - col1 + col0
----

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL ( - - 27 ) FROM tab1
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT ALL + COUNT( * ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
9

query I rowsort
SELECT col1 + - col2 * - col1 AS col1 FROM tab0 cor0
----
100
231
3888

query I rowsort
SELECT col1 + + + col1 + - ( + + col2 ) FROM tab2 AS cor0
----
114
76
79

query I rowsort
SELECT DISTINCT 80 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT + - COUNT( * ) * + + 49 AS col2 FROM tab0 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-9593
SELECT + - COUNT ( * ) * + + 49 AS col2 FROM tab0 AS cor0
----
-147

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE + 39 = - col1
----

query I rowsort
SELECT col0 * col0 * + 88 AS col2 FROM tab0 AS cor0
----
19800
666072
827992

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9597
SELECT ALL 47 DIV - col1 AS col1, 83 * - ( + col0 ) FROM tab2 AS cor0
----
0
-3818
0
-5312
0
-6225

skipif mysql # not compatible
query II rowsort label-9597
SELECT ALL 47 / - col1 AS col1, 83 * - ( + col0 ) FROM tab2 AS cor0
----
0
-3818
0
-5312
0
-6225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 + + 40 col1 FROM tab1 AS cor0
----
-19
-19
-19

query I rowsort
SELECT 19 * - - col0 + + + ( - col0 ) * col1 AS col1 FROM tab1
----
-2548
1190
255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9600
SELECT + col1 * - 72 + + CAST( + 1 AS SIGNED ) AS col2 FROM tab1
----
-1007
-3383
-359

skipif mysql # not compatible
query I rowsort label-9600
SELECT + col1 * - 72 + + CAST ( + 1 AS INTEGER ) AS col2 FROM tab1
----
-1007
-3383
-359

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT BETWEEN col0 + - col1 AND col2
----

query I rowsort
SELECT 98 + - + 90 AS col1 FROM tab0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT ALL COUNT( DISTINCT + 67 ) + + COUNT( - + ( 93 ) ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL COUNT ( DISTINCT + 67 ) + + COUNT ( - + ( 93 ) ) FROM tab1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT 31 * SUM( - col2 ) * - 18 * - COUNT( * ) col2 FROM tab2
----
-202554

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9604
SELECT 31 * SUM ( - col2 ) * - 18 * - COUNT ( * ) col2 FROM tab2
----
-202554

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT - SUM( - 90 ) FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-9605
SELECT - SUM ( - 90 ) FROM tab0
----
270

query I rowsort
SELECT DISTINCT + 82 - - col0 FROM tab1 AS cor0
----
133
167
173

query I rowsort
SELECT DISTINCT col2 * ( + col0 ) AS col0 FROM tab1 WHERE NOT + col2 + + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT ALL - ( + - MIN( + - 20 ) ) FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL - ( + - MIN ( + - 20 ) ) FROM tab2
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9609
SELECT ( col0 ) AS col2, + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-9609
SELECT ( col0 ) AS col2, + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT + + 56 AS col1 FROM tab0 AS cor0
----
56
56
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9611
SELECT CAST( - COUNT( ALL + col2 ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9611
SELECT CAST ( - COUNT ( ALL + col2 ) AS INTEGER ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - + col2 FROM tab2 cor0 WHERE NOT NULL = - 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT ALL + ( 95 ) * + + COUNT( * ) + - ( + 60 ) * + 9 FROM tab1 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL + ( 95 ) * + + COUNT ( * ) + - ( + 60 ) * + 9 FROM tab1 AS cor0
----
-255

onlyif mysql # aggregate syntax: 
query II rowsort label-9614
SELECT ALL - 11 AS col0, 57 * COUNT( * ) FROM tab2 WHERE + col0 * - + 12 IS NOT NULL
----
-11
171

skipif mysql # not compatible
query II rowsort label-9614
SELECT ALL - 11 AS col0, 57 * COUNT ( * ) FROM tab2 WHERE + col0 * - + 12 IS NOT NULL
----
-11
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9615
SELECT + CAST( AVG ( - + 37 ) AS SIGNED ) FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-9615
SELECT + CAST ( AVG ( - + 37 ) AS INTEGER ) FROM tab1
----
-37

query I rowsort
SELECT + col1 * - + ( + ( + + 65 ) ) AS col1 FROM tab1
----
-3055
-325
-910

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9617
SELECT ALL - 18 DIV + - 75 + - COUNT( * ) + + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL - 18 / + - 75 + - COUNT ( * ) + + COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT - 4 * + col2 FROM tab2
----
-160
-232
-92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9619
SELECT ALL - COUNT( * ) AS col1, CAST( + CAST( NULL AS DECIMAL ) AS DECIMAL ) FROM tab2
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-9619
SELECT ALL - COUNT ( * ) AS col1, CAST ( + CAST ( NULL AS REAL ) AS REAL ) FROM tab2
----
-3
NULL

query I rowsort
SELECT DISTINCT col2 * - 15 * + - col2 + - 39 FROM tab0
----
1461
146976
33096

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 8 - - col2 col1 FROM tab0 AS cor0
----
108
136
39

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9623
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN - CAST( - col1 AS SIGNED ) AND ( col0 ) + + + 6 * - 9 + 76
----

skipif mysql # not compatible
query III rowsort label-9623
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN - CAST ( - col1 AS INTEGER ) AND ( col0 ) + + + 6 * - 9 + 76
----

query I rowsort
SELECT col0 + - col0 + + col0 * col1 * - col2 FROM tab2
----
-197120
-291450
-53958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 * + col0 + - 99 col1 FROM tab1
----
2094
3556
3814

query I rowsort
SELECT col2 + - col2 + + ( + - col0 ) + + - 91 AS col0 FROM tab0
----
-106
-178
-188

query I rowsort
SELECT col1 * + col0 + + + col0 FROM tab1
----
4368
510
765

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT DISTINCT COUNT( * ) + - 79 + + 44 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-9628
SELECT DISTINCT COUNT ( * ) + - 79 + + 44 FROM tab2
----
-32

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( - col0 * + - 7 / col1 * - ( + 80 ) - + col0, col2, + col2 + + - col1, col1 * + col1 )
----

query I rowsort
SELECT ALL + col1 * 8 AS col0 FROM tab2 cor0
----
408
536
616

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT - COUNT( ALL - + col1 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9631
SELECT - COUNT ( ALL - + col1 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT ALL - COUNT( * ) - - 44 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL - COUNT ( * ) - - 44 FROM tab2 AS cor0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-9633
SELECT ALL - + col0 DIV 72 * + col0 FROM tab1 AS cor0
----
-85
-91
0

skipif mysql # not compatible
query I rowsort label-9633
SELECT ALL - + col0 / 72 * + col0 FROM tab1 AS cor0
----
-85
-91
0

query I rowsort
SELECT 57 * - - col1 FROM tab1 cor0
----
2679
285
798

onlyif mysql # DIV for integer division: 
query I rowsort label-9635
SELECT ALL 53 DIV - - col2 * - + col1 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9635
SELECT ALL 53 / - - col2 * - + col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 91 FROM tab1 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT DISTINCT - COUNT( * ) * + + COUNT( * ) + 90 AS col1 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-9637
SELECT DISTINCT - COUNT ( * ) * + + COUNT ( * ) + 90 AS col1 FROM tab1
----
81

query I rowsort
SELECT col1 - col0 + - col1 + - - 76 AS col0 FROM tab1
----
-15
-9
25

query I rowsort
SELECT DISTINCT ( - + col0 ) AS col1 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9640
SELECT DISTINCT CAST( - + 59 AS SIGNED ) FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT CAST ( - + 59 AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - ( col0 ) * + + 55 - - col0 * col2 + + + 77 * - 98 + - col0 * col0 * col2 FROM tab0
----
-18241
-87151
-934769

query I rowsort
SELECT ALL - col0 + - 79 FROM tab2
----
-125
-143
-154

query II rowsort
SELECT - ( + 91 ) AS col2, + ( - col2 ) + + - 23 AS col2 FROM tab2 AS cor0
----
-91
-46
-91
-63
-91
-81

query I rowsort
SELECT ALL - ( + 0 ) FROM tab1 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT ALL + + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9645
SELECT ALL + + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT + MIN( DISTINCT + + col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9646
SELECT + MIN ( DISTINCT + + col2 ) FROM tab1
----
59

query I rowsort
SELECT ALL - 37 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT + 81 * + 99 < 53 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 78 > NULL
----

query I rowsort
SELECT + - 65 * 35 AS col0 FROM tab0 AS cor0
----
-2275
-2275
-2275

onlyif mysql # DIV for integer division: 
query I rowsort label-9650
SELECT + col1 DIV - 86 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9650
SELECT + col1 / - 86 col1 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL 39 AS col2, 57 AS col1 FROM tab1 AS cor0
----
39
57
39
57
39
57

query II rowsort
SELECT col2, + col2 AS col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query II rowsort label-9653
SELECT - + COUNT( * ), + 1 AS col1 FROM tab0 AS cor0
----
-3
1

skipif mysql # not compatible
query II rowsort label-9653
SELECT - + COUNT ( * ), + 1 AS col1 FROM tab0 AS cor0
----
-3
1

query I rowsort
SELECT + - 42 * - col1 AS col2 FROM tab1 AS cor0
----
1974
210
588

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT - + COUNT( + - 69 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9655
SELECT - + COUNT ( + - 69 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - - 58 + + - col0 AS col1 FROM tab1 AS cor0
----
-27
-33
7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - ( + - col2 ) * col0 NOT BETWEEN + col2 + + col0 AND col0 - ( + 34 ) + + 49
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( + 79 ) + + 50 AS col1 FROM tab0
----
129
129
129

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT ALL - MIN( - + 63 ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL - MIN ( - + 63 ) FROM tab0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT ALL ( + MAX( DISTINCT - 60 ) ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL ( + MAX ( DISTINCT - 60 ) ) FROM tab1
----
-60

query I rowsort
SELECT DISTINCT 95 + - col2 FROM tab2
----
37
55
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT COUNT( * ) + + MIN( - + col1 ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-9662
SELECT COUNT ( * ) + + MIN ( - + col1 ) FROM tab0
----
-78

query I rowsort
SELECT DISTINCT + 88 * + col2 FROM tab0
----
4136
8712
880

query I rowsort
SELECT col2 + col2 - - col0 FROM tab1
----
203
227
243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - + col0 + 9 col2 FROM tab2 AS cor0
----
9
9
9

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - col2 / + - 64 - + col1 + + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9668
SELECT ALL - + CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL - + CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT - 45 FROM tab2 cor0 WHERE NULL IS NULL
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT MAX( ALL + + col1 ) AS col2 FROM tab1 cor0 WHERE col1 IS NOT NULL
----
47

skipif mysql # not compatible
query I rowsort label-9670
SELECT MAX ( ALL + + col1 ) AS col2 FROM tab1 cor0 WHERE col1 IS NOT NULL
----
47

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 42 + - 31 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT col1 <> NULL )
----

query II rowsort
SELECT + col1 * - col2 - col0 AS col1, + col0 + - col0 FROM tab1 cor0
----
-1395
0
-3287
0
-380
0

query I rowsort
SELECT DISTINCT - - col1 - - 83 AS col2 FROM tab0 AS cor0
----
104
164
84

query I rowsort
SELECT DISTINCT ( - col1 ) - + 22 FROM tab0 AS cor0
----
-103
-23
-43

query I rowsort
SELECT - - 37 + + - col1 * + + col1 AS col1 FROM tab1 AS cor0
----
-159
-2172
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2 col1, + col1 * + 30 + + col1 AS col2 FROM tab2 AS cor0
----
-23
1581
-40
2387
-58
2077

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9678
SELECT ALL col0 * + ( - CAST( NULL AS SIGNED ) ) - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL col0 * + ( - CAST ( NULL AS INTEGER ) ) - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9679
SELECT DISTINCT + COUNT( ALL + 53 ) + + MIN( ALL + col1 ) FROM tab1 AS cor0 WHERE NOT 7 IN ( - - CAST( NULL AS SIGNED ), + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9679
SELECT DISTINCT + COUNT ( ALL + 53 ) + + MIN ( ALL + col1 ) FROM tab1 AS cor0 WHERE NOT 7 IN ( - - CAST ( NULL AS INTEGER ), + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT DISTINCT - MIN( col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9680
SELECT DISTINCT - MIN ( col1 ) FROM tab0
----
-1

query II rowsort
SELECT DISTINCT - 23 AS col1, + 74 FROM tab2
----
-23
74

query I rowsort
SELECT ALL 19 * - ( col0 ) FROM tab1
----
-1615
-1729
-969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9683
SELECT CAST( NULL AS SIGNED ) * - 42 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9683
SELECT CAST ( NULL AS INTEGER ) * - 42 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT ALL 86 * 87 * + + COUNT( * ) AS col2 FROM tab1
----
22446

skipif mysql # not compatible
query I rowsort label-9684
SELECT ALL 86 * 87 * + + COUNT ( * ) AS col2 FROM tab1
----
22446

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9685
SELECT MIN( - 38 ) * CAST( NULL AS DECIMAL ) + 82 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9685
SELECT MIN ( - 38 ) * CAST ( NULL AS REAL ) + 82 AS col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - ( - - col0 ) * + col1 AND 30
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9687
SELECT ALL + COUNT( * ), COUNT( col0 ) * - - COUNT( * ) col0 FROM tab2
----
3
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9687
SELECT ALL + COUNT ( * ), COUNT ( col0 ) * - - COUNT ( * ) col0 FROM tab2
----
3
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 47 + col1 col1, 25 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
128
25
48
25
68
25

query I rowsort
SELECT DISTINCT - col0 * + ( + 94 ) AS col2 FROM tab2
----
-4324
-6016
-7050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9690
SELECT ALL + CAST( 59 AS SIGNED ) col1 FROM tab0 cor0
----
59
59
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9690
SELECT ALL + CAST ( 59 AS INTEGER ) col1 FROM tab0 cor0
----
59
59
59

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 19 <= + col2 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT ALL + COUNT( * ) + - 91 AS col0 FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL + COUNT ( * ) + - 91 AS col0 FROM tab2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9693
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2, tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9694
SELECT DISTINCT col2 + - col2 - - 5 DIV - - col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9694
SELECT DISTINCT col2 + - col2 - - 5 / - - col2 FROM tab1
----
0

query II rowsort
SELECT col1 AS col2, 90 FROM tab2
----
51
90
67
90
77
90

onlyif mysql # aggregate syntax: 
query II rowsort label-9696
SELECT COUNT( * ) AS col2, MIN( ALL col2 ) FROM tab2
----
3
23

skipif mysql # not compatible
query II rowsort label-9696
SELECT COUNT ( * ) AS col2, MIN ( ALL col2 ) FROM tab2
----
3
23

query II rowsort
SELECT col2 AS col0, 15 * + col0 * + col1 + - col0 * - col1 AS col2 FROM tab0
----
10
29232
47
19440
99
1552

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT MIN( ALL + 40 ) AS col2 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-9698
SELECT MIN ( ALL + 40 ) AS col2 FROM tab2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT COUNT( 30 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9699
SELECT COUNT ( 30 ) AS col2 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + 67, ( - col2 ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT ( NULL = col0 + + 18 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9702
SELECT COUNT( * ) AS col2, MAX( DISTINCT - col0 ) FROM tab0
----
3
-15

skipif mysql # not compatible
query II rowsort label-9702
SELECT COUNT ( * ) AS col2, MAX ( DISTINCT - col0 ) FROM tab0
----
3
-15

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9704
SELECT DISTINCT - AVG ( + col2 ) + + CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9704
SELECT DISTINCT - AVG ( + col2 ) + + CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT col2 * + 47 FROM tab1
----
2773
3196
4512

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 * - 80 col0 FROM tab0
----
-5760
-5760
-5760

query I rowsort
SELECT 84 * - 5 AS col2 FROM tab1
----
-420
-420
-420

query I rowsort
SELECT DISTINCT 10 * - col0 FROM tab1
----
-510
-850
-910

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT 84 * COUNT( * ) AS col1 FROM tab2 WHERE NOT + ( 96 ) - col0 = + 79
----
252

skipif mysql # not compatible
query I rowsort label-9709
SELECT 84 * COUNT ( * ) AS col1 FROM tab2 WHERE NOT + ( 96 ) - col0 = + 79
----
252

query I rowsort
SELECT - 0 + 41 FROM tab0
----
41
41
41

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= col1 * 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT ALL COUNT( 29 ) * 2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL COUNT ( 29 ) * 2 FROM tab0
----
6

query I rowsort
SELECT DISTINCT col1 + col0 FROM tab2 WHERE NOT - 40 + - 27 * - 15 IS NULL
----
141
142
97

query I rowsort
SELECT ALL - col0 * + 12 FROM tab2
----
-552
-768
-900

onlyif mysql # DIV for integer division: 
query I rowsort label-9715
SELECT ALL + col1 DIV - 13 FROM tab1
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-9715
SELECT ALL + col1 / - 13 FROM tab1
----
-1
-3
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9716
SELECT ALL col2 DIV + 41 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL col2 / + 41 FROM tab1
----
1
1
2

query I rowsort
SELECT DISTINCT 74 - 29 AS col2 FROM tab0
----
45

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE col2 IN ( col2 )
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < 31 / col1
----

query I rowsort
SELECT DISTINCT 92 + - col0 AS col2 FROM tab1
----
1
41
7

query I rowsort
SELECT ALL - 65 * 51 FROM tab0 WHERE NULL BETWEEN NULL AND - 48 + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 12 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9723
SELECT * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9723
SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT DISTINCT - SUM( 95 ) FROM tab2
----
-285

skipif mysql # not compatible
query I rowsort label-9724
SELECT DISTINCT - SUM ( 95 ) FROM tab2
----
-285

onlyif mysql # DIV for integer division: 
query I rowsort label-9725
SELECT ALL col0 DIV 83 + + 3 * + col1 AS col0 FROM tab2
----
153
201
231

skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL col0 / 83 + + 3 * + col1 AS col0 FROM tab2
----
153
201
231

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT - MAX( DISTINCT 1 ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9726
SELECT - MAX ( DISTINCT 1 ) AS col1 FROM tab2
----
-1

query I rowsort
SELECT DISTINCT ( 98 ) FROM tab1
----
98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 73 >= + col1
----
15
81
47

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9729
SELECT ALL * FROM tab1 AS cor0 WHERE col2 IN ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-9729
SELECT ALL * FROM tab1 AS cor0 WHERE col2 IN ( CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT ALL MIN( DISTINCT - 2 ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-9730
SELECT ALL MIN ( DISTINCT - 2 ) FROM tab1 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT DISTINCT + COUNT( ALL - col1 ) * COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9731
SELECT DISTINCT + COUNT ( ALL - col1 ) * COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT 88 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE NOT + col1 + + col1 * - col0 IS NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9734
SELECT * FROM tab2 WHERE NOT col1 + + CAST( NULL AS SIGNED ) * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9734
SELECT * FROM tab2 WHERE NOT col1 + + CAST ( NULL AS INTEGER ) * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 39 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 76 * col1 )
----

query I rowsort
SELECT - col1 * + ( col1 + 71 ) AS col0 FROM tab1 AS cor0
----
-1190
-380
-5546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9737
SELECT 4 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9737
SELECT 4 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9738
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) <= 3
----

skipif mysql # not compatible
query III rowsort label-9738
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) <= 3
----

query I rowsort
SELECT ALL - 60 FROM tab0 cor0
----
-60
-60
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9740
SELECT DISTINCT CAST( NULL AS DECIMAL ) * AVG ( + ( 23 ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9740
SELECT DISTINCT CAST ( NULL AS REAL ) * AVG ( + ( 23 ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9741
SELECT - 75 * CAST( 93 DIV - col2 AS SIGNED ) FROM tab0 AS cor0
----
0
675
75

skipif mysql # not compatible
query I rowsort label-9741
SELECT - 75 * CAST ( 93 / - col2 AS INTEGER ) FROM tab0 AS cor0
----
0
675
75

query I rowsort
SELECT ALL - 50 FROM tab0 AS cor0 WHERE NOT 44 NOT BETWEEN + 42 AND + ( 63 )
----
-50
-50
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9743
SELECT CAST( NULL AS SIGNED ) / + AVG ( + 8 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9743
SELECT CAST ( NULL AS INTEGER ) / + AVG ( + 8 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT - 84 * - MIN( ALL - 59 + + col0 ) FROM tab1 AS cor0
----
-672

skipif mysql # not compatible
query I rowsort label-9744
SELECT - 84 * - MIN ( ALL - 59 + + col0 ) FROM tab1 AS cor0
----
-672

query I rowsort
SELECT 72 AS col2 FROM tab1 WHERE + col2 + + col0 <> col0
----
72
72
72

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( + col1 ) ) NOT BETWEEN col2 * col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT ALL - SUM( ALL - col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-9747
SELECT ALL - SUM ( ALL - col1 ) FROM tab0
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-9748
SELECT ALL 6 DIV col1 + col1 AS col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL 6 / col1 + col1 AS col0 FROM tab2
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col1 ) <= col0 - 21 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9750
SELECT ALL + 78 * + ( 84 * - CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9750
SELECT ALL + 78 * + ( 84 * - CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT DISTINCT - COUNT( col1 ) + - 82 FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-9751
SELECT DISTINCT - COUNT ( col1 ) + - 82 FROM tab2
----
-85

query I rowsort
SELECT col2 * - col2 * - col2 + col0 * col2 FROM tab2
----
13225
199462
66560

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT ALL + MAX( - + 56 ) - + 93 AS col0 FROM tab0
----
-149

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL + MAX ( - + 56 ) - + 93 AS col0 FROM tab0
----
-149

query I rowsort
SELECT ALL - - ( + + 52 ) * + col1 + + 0 AS col1 FROM tab0 AS cor0
----
1092
4212
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - col2 * - col1 col0 FROM tab2 AS cor0
----
1219
3144
3961

query I rowsort
SELECT col2 + + + col2 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT ALL - + SUM( DISTINCT - + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9757
SELECT ALL - + SUM ( DISTINCT - + col2 ) FROM tab0 AS cor0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 42 col0 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT ALL + - col0 - 84 FROM tab1 AS cor0
----
-135
-169
-175

query I rowsort
SELECT ( + col2 ) * col0 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT ALL + col2 * + + 62 FROM tab2 AS cor0
----
1426
2480
3596

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9762
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 / + ( - CAST( + col0 AS DECIMAL ) ) ) NOT IN ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-9762
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 / + ( - CAST ( + col0 AS REAL ) ) ) NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT - COUNT( * ) AS col1 FROM tab2, tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-9763
SELECT - COUNT ( * ) AS col1 FROM tab2, tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

query I rowsort
SELECT - col2 * - col1 - - + ( - 89 ) FROM tab0
----
10
121
3718

query I rowsort
SELECT 57 * + 9 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 393bc2e7e55f8b53535a8da1d8099777

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9766
SELECT - CAST( + - col1 AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9766
SELECT - CAST ( + - col1 AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9767
SELECT DISTINCT * FROM tab2 cor0 WHERE ( - col2 / + - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9767
SELECT DISTINCT * FROM tab2 cor0 WHERE ( - col2 / + - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + 52 ) FROM tab1 AS cor0
----
52

query I rowsort
SELECT ALL 20 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 + 10 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9771
SELECT DISTINCT - 70 AS col1, COUNT( * ) * - + 70 * 86 FROM tab1 AS cor0
----
-70
-18060

skipif mysql # not compatible
query II rowsort label-9771
SELECT DISTINCT - 70 AS col1, COUNT ( * ) * - + 70 * 86 FROM tab1 AS cor0
----
-70
-18060

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 1 ) <= + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( 11 * - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 61 * + - 34 * - - 79 col1 FROM tab0
----
-163846

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE + 97 > ( col2 + col1 )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9776
SELECT ALL MAX( + - CAST( NULL AS SIGNED ) ) * - COUNT( col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9776
SELECT ALL MAX ( + - CAST ( NULL AS INTEGER ) ) * - COUNT ( col0 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT ALL + COUNT( + col0 ) * MIN( col2 ) + 53 FROM tab1 WHERE NOT ( - col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL + COUNT ( + col0 ) * MIN ( col2 ) + 53 FROM tab1 WHERE NOT ( - col2 ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * - ( col2 ) - col2 NOT IN ( - 12 )
----

query II rowsort
SELECT DISTINCT + ( - + col0 ) AS col0, 75 + + + col2 AS col1 FROM tab1
----
-51
171
-85
134
-91
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9780
SELECT - col0 * - CAST( 78 AS SIGNED ) * col0 FROM tab2
----
165048
319488
438750

skipif mysql # not compatible
query I rowsort label-9780
SELECT - col0 * - CAST ( 78 AS INTEGER ) * col0 FROM tab2
----
165048
319488
438750

onlyif mysql # DIV for integer division: 
query I rowsort label-9781
SELECT 80 DIV + 19 FROM tab2
----
4
4
4

skipif mysql # not compatible
query I rowsort label-9781
SELECT 80 / + 19 FROM tab2
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT + ( - - MIN( + col0 ) ) col1 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9782
SELECT + ( - - MIN ( + col0 ) ) col1 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT + ( - MAX( DISTINCT + + col2 ) ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9783
SELECT + ( - MAX ( DISTINCT + + col2 ) ) AS col2 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT ALL - + SUM( - 31 ) FROM tab0 cor0
----
93

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL - + SUM ( - 31 ) FROM tab0 cor0
----
93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 24 NOT IN ( col1 + + 13 / col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9786
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-9786
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT IN ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT 46 FROM tab1 WHERE NULL IS NULL
----
46
46
46

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 * - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT ALL + MAX( ALL + - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
-5

skipif mysql # not compatible
query I rowsort label-9789
SELECT ALL + MAX ( ALL + - col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
-5

query I rowsort
SELECT - col0 AS col2 FROM tab1 cor0 WHERE col0 + + + col0 NOT IN ( col2 * + + col0 * col1 )
----
-51
-85
-91

query I rowsort
SELECT ALL - - 18 * - col1 + col1 + ( + col2 ) AS col0 FROM tab0 cor0
----
-1330
-347
82

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 5 AND - - col2
----

query I rowsort
SELECT - - col1 FROM tab2 cor0 WHERE - col0 <> - col2
----
51
67
77

query II rowsort
SELECT DISTINCT col1 AS col2, + col1 * + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col1 ) IS NULL
----
51
1173
67
3886
77
3080

query I rowsort
SELECT ALL + + col0 * - + col2 + - - col0 * - 2 FROM tab2 AS cor0
----
-1150
-2688
-4500

onlyif mysql # DIV for integer division: 
query I rowsort label-9796
SELECT DISTINCT - col1 DIV col2 * + ( - - col2 ) col2 FROM tab0 AS cor0
----
-20
-47
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9796
SELECT DISTINCT - col1 / col2 * + ( - - col2 ) col2 FROM tab0 AS cor0
----
-20
-47
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9797
SELECT - col2 * + CAST( NULL AS SIGNED ) / - 42 * - 74 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9797
SELECT - col2 * + CAST ( NULL AS INTEGER ) / - 42 * - 74 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9798
SELECT + + 98 col0, 77 DIV + + 83 FROM tab1 AS cor0
----
98
0
98
0
98
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9798
SELECT + + 98 col0, 77 / + + 83 FROM tab1 AS cor0
----
98
0
98
0
98
0

query I rowsort
SELECT DISTINCT - col2 * + col2 * + col0 FROM tab2 AS cor0 WHERE NOT 66 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 * col2 col0 FROM tab2
----
1102
437
760

query I rowsort
SELECT DISTINCT + col0 * - - 35 + - + 52 - - 29 AS col1 FROM tab1
----
1762
2952
3162

onlyif mysql # DIV for integer division: 
query I rowsort label-9802
SELECT DISTINCT - col1 DIV + + 51 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9802
SELECT DISTINCT - col1 / + + 51 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT - COUNT( ALL col1 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9803
SELECT - COUNT ( ALL col1 ) FROM tab2
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 BETWEEN - ( col0 ) AND ( - col2 / + + col0 + - col1 * + col1 )
----

query I rowsort
SELECT ALL col1 - - col2 FROM tab2 cor0
----
117
125
74

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 7 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9807
SELECT ALL - col0 DIV - - 48 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL - col0 / - - 48 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT - MAX( DISTINCT col1 ) + + - COUNT( * ) col2 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9808
SELECT - MAX ( DISTINCT col1 ) + + - COUNT ( * ) col2 FROM tab1 AS cor0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT ALL + COUNT( * ) AS col0 FROM tab1 WHERE NOT + col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 WHERE NOT + col1 > NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9810
SELECT - COUNT( * ) DIV + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-1

skipif mysql # not compatible
query I rowsort label-9810
SELECT - COUNT ( * ) / + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * col1 AS col1, + col2 col2 FROM tab0
----
1
99
441
10
6561
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9812
SELECT ALL col2 * col0 DIV + 9 AS col0 FROM tab2
----
117
284
483

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL col2 * col0 / + 9 AS col0 FROM tab2
----
117
284
483

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT ALL + ( - - COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL + ( - - COUNT ( * ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - - col2 * col1 FROM tab2 AS cor0 WHERE NOT 36 IS NULL
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT + COUNT( * ) * - - 76 * + ( COUNT( ALL col1 ) ) AS col2 FROM tab2 cor0
----
684

skipif mysql # not compatible
query I rowsort label-9815
SELECT + COUNT ( * ) * - - 76 * + ( COUNT ( ALL col1 ) ) AS col2 FROM tab2 cor0
----
684

query II rowsort
SELECT DISTINCT 87, col1 FROM tab1
----
87
14
87
47
87
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 col1 FROM tab0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT - MAX( + + 75 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-9818
SELECT - MAX ( + + 75 ) FROM tab2
----
-75

query II rowsort
SELECT ALL col2, + col1 * - col2 FROM tab2
----
23
-1173
40
-3080
58
-3886

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT col1 NOT IN ( + 2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 5 <= col1
----
97
1
99

query I rowsort
SELECT 11 + col2 AS col2 FROM tab1 cor0
----
107
70
79

query I rowsort
SELECT + col0 + - + 33 FROM tab0 cor0
----
-18
54
64

query I rowsort
SELECT ( - ( col0 ) ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1, - col2 * + - col2 )
----

query I rowsort
SELECT ALL - 56 + col2 FROM tab1 AS cor0
----
12
3
40

query I rowsort
SELECT ALL + ( + 25 ) * - + 91 FROM tab0 AS cor0
----
-2275
-2275
-2275

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT ALL SUM( + + col2 ) * - 95 AS col0 FROM tab2 AS cor0
----
-11495

skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL SUM ( + + col2 ) * - 95 AS col0 FROM tab2 AS cor0
----
-11495

query I rowsort
SELECT - + ( - col1 ) * + 27 FROM tab0 AS cor0
----
2187
27
567

query I rowsort
SELECT DISTINCT 41 * - col1 AS col2 FROM tab2 AS cor0
----
-2091
-2747
-3157

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < + ( - + 39 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9831
SELECT COUNT( * ) DIV + + 51 + + - 10 col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9831
SELECT COUNT ( * ) / + + 51 + + - 10 col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-9832
SELECT - col2 DIV - 15 AS col1 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-9832
SELECT - col2 / - 15 AS col1 FROM tab2 AS cor0
----
1
2
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9833
SELECT DISTINCT + col2 DIV 7 AS col0 FROM tab1 AS cor0
----
13
8
9

skipif mysql # not compatible
query I rowsort label-9833
SELECT DISTINCT + col2 / 7 AS col0 FROM tab1 AS cor0
----
13
8
9

query I rowsort
SELECT + - col2 - - - col0 AS col1 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT - - col0 * + ( - ( + + 68 ) ) * + - col1 - + 31 AS col1 FROM tab2 AS cor0
----
159497
335073
341669

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT DISTINCT + COUNT( + 53 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9836
SELECT DISTINCT + COUNT ( + 53 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + 4 + - + col0 AS col1 FROM tab0 cor0
----
-101
-19
-91

query I rowsort
SELECT ALL - col2 + - - col1 FROM tab2
----
28
37
9

query II rowsort
SELECT + col2 * - 49 * + col0 + - col0 + + 79 + col0 AS col1, - col1 AS col0 FROM tab1
----
-239825
-14
-245656
-5
-303133
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-9840
SELECT + col0 DIV - + 23 + - col1 FROM tab0
----
-24
-5
-81

skipif mysql # not compatible
query I rowsort label-9840
SELECT + col0 / - + 23 + - col1 FROM tab0
----
-24
-5
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT COUNT( * ) + + + 35 * + 26 AS col2 FROM tab2
----
913

skipif mysql # not compatible
query I rowsort label-9841
SELECT COUNT ( * ) + + + 35 * + 26 AS col2 FROM tab2
----
913

query I rowsort
SELECT - 67 + - col2 - col2 FROM tab2
----
-113
-147
-183

query I rowsort
SELECT ALL 94 + - col1 * col0 + - col2 FROM tab0
----
-102
-1168
-1743

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT 26 * - MAX( + 14 ) FROM tab0
----
-364

skipif mysql # not compatible
query I rowsort label-9844
SELECT 26 * - MAX ( + 14 ) FROM tab0
----
-364

query II rowsort
SELECT + 41 AS col1, - col0 AS col2 FROM tab2
----
41
-46
41
-64
41
-75

query II rowsort
SELECT DISTINCT - col2 AS col2, + 2 AS col0 FROM tab2 AS cor0
----
-23
2
-40
2
-58
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9847
SELECT - CAST( + + col2 AS SIGNED ) * col2 - + col0 AS col1, - col2 AS col1 FROM tab2 AS cor0
----
-1664
-40
-3439
-58
-575
-23

skipif mysql # not compatible
query II rowsort label-9847
SELECT - CAST ( + + col2 AS INTEGER ) * col2 - + col0 AS col1, - col2 AS col1 FROM tab2 AS cor0
----
-1664
-40
-3439
-58
-575
-23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - 41 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NULL <= + 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT DISTINCT 45 * + COUNT( DISTINCT ( - col2 ) ) FROM tab1 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-9850
SELECT DISTINCT 45 * + COUNT ( DISTINCT ( - col2 ) ) FROM tab1 AS cor0
----
135

query I rowsort
SELECT ALL - + 18 AS col1 FROM tab2 AS cor0
----
-18
-18
-18

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9853
SELECT CAST( col1 AS SIGNED ) AS col1, col2 AS col2 FROM tab2
----
51
23
67
58
77
40

skipif mysql # not compatible
query II rowsort label-9853
SELECT CAST ( col1 AS INTEGER ) AS col1, col2 AS col2 FROM tab2
----
51
23
67
58
77
40

query II rowsort
SELECT DISTINCT 92 + - 32 AS col1, + 33 FROM tab0 WHERE - + 22 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9855
SELECT ALL ( - CAST( NULL AS DECIMAL ) ) * + col1 * col1 * col1 / - col0 + - 71 / + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL ( - CAST ( NULL AS REAL ) ) * + col1 * col1 * col1 / - col0 + - 71 / + col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9856
SELECT SUM( DISTINCT col2 ) * - + CAST( 61 AS SIGNED ) AS col2 FROM tab1
----
-13603

skipif mysql # not compatible
query I rowsort label-9856
SELECT SUM ( DISTINCT col2 ) * - + CAST ( 61 AS INTEGER ) AS col2 FROM tab1
----
-13603

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE + 51 * - 50 * + col0 NOT IN ( + col2 )
----
14
47
5

query I rowsort
SELECT ALL + 65 FROM tab1 cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE 30 BETWEEN 77 AND ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE 30 BETWEEN 77 AND ( - col2 )
----
0

query I rowsort
SELECT 21 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT DISTINCT - 55 + 59 AS col1 FROM tab0
----
4

query I rowsort
SELECT col1 - - 10 FROM tab1 cor0 WHERE NULL IS NULL
----
15
24
57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 60 IS NULL
----

query I rowsort
SELECT DISTINCT 9 - - col0 AS col1 FROM tab0 cor0
----
106
24
96

query I rowsort
SELECT - col1 * + col1 + - col0 AS col1 FROM tab0 AS cor0
----
-528
-6576
-98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 19 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT ALL + MAX( + col2 ) - COUNT( * ) AS col2 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL + MAX ( + col2 ) - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
55

query II rowsort
SELECT ALL + ( col2 ), - col1 + - 23 AS col1 FROM tab1
----
59
-28
68
-70
96
-37

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT DISTINCT COUNT( * ) - COUNT( - 72 ) + + 63 AS col2 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT COUNT ( * ) - COUNT ( - 72 ) + + 63 AS col2 FROM tab1
----
63

query I rowsort
SELECT ALL - ( - 72 ) + - + 19 * + 40 FROM tab1
----
-688
-688
-688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9872
SELECT DISTINCT - col2 * - CAST( NULL AS SIGNED ) - + 59 * - ( + 20 ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9872
SELECT DISTINCT - col2 * - CAST ( NULL AS INTEGER ) - + 59 * - ( + 20 ) FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9873
SELECT ALL COUNT( * ) * + COUNT( ALL ( - 50 ) ) - + + COUNT( * ) + + COUNT( * ) DIV + COUNT( * ) + + MIN( ALL + + col0 ) FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9873
SELECT ALL COUNT ( * ) * + COUNT ( ALL ( - 50 ) ) - + + COUNT ( * ) + + COUNT ( * ) / + COUNT ( * ) + + MIN ( ALL + + col0 ) FROM tab1 AS cor0
----
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 * + - col1 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 LEFT OUTER JOIN tab0 cor1 ON NOT 54 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT - col1 + 80 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT + + ( - MAX( DISTINCT col0 ) ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9877
SELECT + + ( - MAX ( DISTINCT col0 ) ) AS col1 FROM tab1 AS cor0
----
-91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * 87 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT - COUNT( - + col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9879
SELECT - COUNT ( - + col1 ) FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-9880
SELECT - 85 AS col1, + 69 DIV 18 col0 FROM tab1 AS cor0
----
-85
3
-85
3
-85
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9880
SELECT - 85 AS col1, + 69 / 18 col0 FROM tab1 AS cor0
----
-85
3
-85
3
-85
3

query II rowsort
SELECT ALL - 83, col2 FROM tab1 AS cor0
----
-83
59
-83
68
-83
96

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + col1 / - - col2
----

query I rowsort
SELECT ALL 28 * + - col1 AS col1 FROM tab0
----
-2268
-28
-588

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, col0 + 82 col0 FROM tab2
----
-51
128
-67
157
-77
146

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NOT + - col2 * + col0 < 89 + - 8
----
0

skipif mysql # not compatible
query I rowsort label-9885
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NOT + - col2 * + col0 < 89 + - 8
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT 92 * + COUNT( * ) * - + 72 FROM tab1
----
-19872

skipif mysql # not compatible
query I rowsort label-9886
SELECT 92 * + COUNT ( * ) * - + 72 FROM tab1
----
-19872

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9887
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 AND ( NULL )
----
0

query I rowsort
SELECT col1 * + - col1 AS col2 FROM tab0 WHERE NULL IS NULL
----
-1
-441
-6561

query II rowsort
SELECT DISTINCT + 3 AS col2, 42 AS col2 FROM tab0 AS cor0
----
3
42

query I rowsort
SELECT DISTINCT + col1 * 79 FROM tab1 AS cor0
----
1106
3713
395

query I rowsort
SELECT ALL + 21 + col1 AS col2 FROM tab1
----
26
35
68

query III rowsort
SELECT * FROM tab0 WHERE + - col2 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9893
SELECT DISTINCT + 27 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9893
SELECT DISTINCT + 27 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT + + 72 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # DIV for integer division: 
query I rowsort label-9895
SELECT ALL col1 DIV - - 13 + - - 97 * - 42 FROM tab2
----
-4069
-4069
-4071

skipif mysql # not compatible
query I rowsort label-9895
SELECT ALL col1 / - - 13 + - - 97 * - 42 FROM tab2
----
-4069
-4069
-4071

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT DISTINCT + - 14 - + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-5

skipif mysql # not compatible
query I rowsort label-9896
SELECT DISTINCT + - 14 - + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-5

query I rowsort
SELECT ALL col0 + - 55 * - - col1 AS col1 FROM tab1
----
-190
-2494
-719

query II rowsort
SELECT + col1 - - col2 - + + col0, col2 FROM tab2 AS cor0
----
28
23
50
58
53
40

query I rowsort
SELECT ALL - - 29 + col0 FROM tab0 AS cor0
----
116
126
44

query I rowsort
SELECT - col1 * - 59 * + col2 - - + col1 - - col0 AS col0 FROM tab2 AS cor0
----
181861
229416
69304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9901
SELECT ALL + ( - 17 ) + CAST( NULL AS SIGNED ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL + ( - 17 ) + CAST ( NULL AS INTEGER ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col1 + + ( 7 ) * + - 64 AS col0 FROM tab2 AS cor0
----
-371
-381
-397

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND col1
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 / col2 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 88 col0 FROM tab2
----
88
88
88

query II rowsort
SELECT col2 + col0 * + 59, col0 AS col1 FROM tab1
----
3105
51
5074
85
5437
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9907
SELECT + col1 DIV + ( + 14 ) AS col1 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-9907
SELECT + col1 / + ( + 14 ) AS col1 FROM tab0
----
0
1
5

query I rowsort
SELECT - + col2 * col0 FROM tab1 WHERE NOT - - col2 IS NULL
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT 20 * + col0 FROM tab2
----
1280
1500
920

query II rowsort
SELECT col0, - 52 - col0 * + + 48 FROM tab2
----
46
-2260
64
-3124
75
-3652

query II rowsort
SELECT DISTINCT 37, col0 FROM tab1 AS cor0
----
37
51
37
85
37
91

query I rowsort
SELECT ALL - - 12 AS col2 FROM tab1 cor0
----
12
12
12

query I rowsort
SELECT - + 49 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT ALL - - col0 AS col2 FROM tab0 WHERE NOT col2 IS NULL
----
15
87
97

query I rowsort
SELECT ALL - col0 * - 51 AS col2 FROM tab1
----
2601
4335
4641

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 35 * + col2 + 22 col0 FROM tab2 AS cor0
----
117762
18537
56022

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT DISTINCT ( - - 53 ) * + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-9917
SELECT DISTINCT ( - - 53 ) * + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-159

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 ) / + 13 + + + col1 < + col0
----
46
51
23
64
77
40

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> - 7 - + col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > col2 / + + col1
----

query II rowsort
SELECT - - 8, + 32 * - col2 FROM tab2 AS cor0 WHERE NOT col1 / - + 88 = NULL
----

query I rowsort
SELECT 0 + + col2 AS col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9923
SELECT DISTINCT col2 DIV + 12 AS col2 FROM tab1
----
4
5
8

skipif mysql # not compatible
query I rowsort label-9923
SELECT DISTINCT col2 / + 12 AS col2 FROM tab1
----
4
5
8

query II rowsort
SELECT 54, - col2 AS col1 FROM tab2
----
54
-23
54
-40
54
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9925
SELECT - 17 * CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1 FROM tab1 WHERE NOT - + 11 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9925
SELECT - 17 * CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab1 WHERE NOT - + 11 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9926
SELECT COUNT( * ) + - 16 FROM tab2 WHERE NOT 45 NOT IN ( 15 * col0, + CAST( - col2 AS SIGNED ) )
----
-16

skipif mysql # not compatible
query I rowsort label-9926
SELECT COUNT ( * ) + - 16 FROM tab2 WHERE NOT 45 NOT IN ( 15 * col0, + CAST ( - col2 AS INTEGER ) )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT ALL - 21 * - MAX( + col2 ) AS col1 FROM tab0
----
2079

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL - 21 * - MAX ( + col2 ) AS col1 FROM tab0
----
2079

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT DISTINCT + ( 10 ) + + COUNT( * ) + + 43 FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-9928
SELECT DISTINCT + ( 10 ) + + COUNT ( * ) + + 43 FROM tab0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9929
SELECT - col0 * - CAST( col2 AS SIGNED ) * - col1 AS col1 FROM tab1
----
-25075
-290836
-68544

skipif mysql # not compatible
query I rowsort label-9929
SELECT - col0 * - CAST ( col2 AS INTEGER ) * - col1 AS col1 FROM tab1
----
-25075
-290836
-68544

query I rowsort
SELECT + 59 * - - col0 AS col2 FROM tab0
----
5133
5723
885

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 < + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + + + 54 FROM tab0 AS cor0
----
101
153
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9933
SELECT DISTINCT CAST( NULL AS SIGNED ) - - COUNT( * ) * - - 35 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9933
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - COUNT ( * ) * - - 35 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col2 + + 87 + + 27 FROM tab2
----
137
154
172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 78 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 84 - + - 15 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 - + + col2 AS col0 FROM tab0 cor0
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9938
SELECT + col2 * + CAST( + 53 AS SIGNED ) col1, - col0 * - col2 AS col1 FROM tab1 AS cor0 WHERE CAST( col1 AS SIGNED ) = + col1 + + col0 + - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9938
SELECT + col2 * + CAST ( + 53 AS INTEGER ) col1, - col0 * - col2 AS col1 FROM tab1 AS cor0 WHERE CAST ( col1 AS INTEGER ) = + col1 + + col0 + - col1
----

query I rowsort
SELECT ALL + 22 - + 96 * - col1 AS col1 FROM tab2 AS cor0
----
4918
6454
7414

query I rowsort
SELECT - - 52 - + 57 FROM tab2 cor0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT 64 * + col0 + - col0 FROM tab0 AS cor0
----
5481
6111
945

onlyif mysql # aggregate syntax: 
query II rowsort label-9942
SELECT COUNT( * ) - COUNT( * ), + COUNT( * ) AS col0 FROM tab1
----
0
3

skipif mysql # not compatible
query II rowsort label-9942
SELECT COUNT ( * ) - COUNT ( * ), + COUNT ( * ) AS col0 FROM tab1
----
0
3

query II rowsort
SELECT + 65 * - + 3 AS col0, col0 AS col2 FROM tab2
----
-195
46
-195
64
-195
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT + 31 * + MAX( - col1 ) AS col1 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-9944
SELECT + 31 * + MAX ( - col1 ) AS col1 FROM tab0
----
-31

query I rowsort
SELECT col2 / - + col1 AS col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9946
SELECT + MIN( DISTINCT + 42 ) AS col1, CAST( NULL AS SIGNED ) * - - 20 AS col2 FROM tab1
----
42
NULL

skipif mysql # not compatible
query II rowsort label-9946
SELECT + MIN ( DISTINCT + 42 ) AS col1, CAST ( NULL AS INTEGER ) * - - 20 AS col2 FROM tab1
----
42
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 25 <> - - col2 * - 46
----

query II rowsort
SELECT - col2 AS col0, - col1 - col1 FROM tab1
----
-59
-10
-68
-94
-96
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-9949
SELECT - col2 DIV + col1 + col2 FROM tab1 AS cor0
----
48
67
90

skipif mysql # not compatible
query I rowsort label-9949
SELECT - col2 / + col1 + col2 FROM tab1 AS cor0
----
48
67
90

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 22 = ( + ( + - col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + ( + col2 ) AS col0 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 60 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT MIN( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9953
SELECT MIN ( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT 20 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT - + MIN( col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9955
SELECT - + MIN ( col1 ) AS col0 FROM tab1 AS cor0
----
-5

query II rowsort
SELECT ALL + 8 * + col1 * - - col1 * col1, col0 FROM tab1 AS cor0
----
1000
85
21952
51
830584
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9957
SELECT ALL + col1 DIV + col2 + 54 AS col2 FROM tab0 AS cor0
----
54
55
56

skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL + col1 / + col2 + 54 AS col2 FROM tab0 AS cor0
----
54
55
56

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 + - 52 AND NULL
----

query I rowsort
SELECT ALL - - col2 + + - col0 AS col0 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT DISTINCT - 55 + + COUNT( * ) AS col0 FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-9960
SELECT DISTINCT - 55 + + COUNT ( * ) AS col0 FROM tab1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT - 18 + + MAX( + col2 ) FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-9961
SELECT - 18 + + MAX ( + col2 ) FROM tab1
----
78

query I rowsort
SELECT DISTINCT + 28 + - col0 AS col1 FROM tab0
----
-59
-69
13

query I rowsort
SELECT + 56 + - col1 FROM tab2
----
-11
-21
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 73 IN ( + + col0, - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 + + - 48 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT - MAX( ALL + col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9966
SELECT - MAX ( ALL + col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9967
SELECT DISTINCT - col1 - + + CAST( NULL AS SIGNED ) - col0 + + - col0 + + - 72 + 34 * + - col1 AS col1 FROM tab2 WHERE NOT - col1 * - + ( - col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9967
SELECT DISTINCT - col1 - + + CAST ( NULL AS INTEGER ) - col0 + + - col0 + + - 72 + 34 * + - col1 AS col1 FROM tab2 WHERE NOT - col1 * - + ( - col0 ) IS NULL
----
NULL

query I rowsort
SELECT + ( col0 ) - - 53 AS col0 FROM tab0 AS cor0
----
140
150
68

query I rowsort
SELECT ALL - - col2 - + col1 AS col1 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9970
SELECT - - col1 + ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9970
SELECT - - col1 + ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT - COUNT( * ) + + 59 FROM tab2 cor0
----
56

skipif mysql # not compatible
query I rowsort label-9971
SELECT - COUNT ( * ) + + 59 FROM tab2 cor0
----
56

query II rowsort
SELECT 38 AS col1, col1 FROM tab2 AS cor0
----
38
51
38
67
38
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, - col2 col1 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

query II rowsort
SELECT ALL + col2 AS col2, col2 FROM tab0 cor0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9975
SELECT ALL + CAST( + CAST( + - col0 AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL + CAST ( + CAST ( + - col0 AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT DISTINCT MAX( + + col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9976
SELECT DISTINCT MAX ( + + col1 ) FROM tab0
----
81

query I rowsort
SELECT + col0 * - 4 AS col2 FROM tab0
----
-348
-388
-60

query I rowsort
SELECT ALL col1 * + - col1 * col0 AS col2 FROM tab2 WHERE NOT NULL <> ( - 21 + - 94 )
----

query II rowsort
SELECT 22, + col0 FROM tab1
----
22
51
22
85
22
91

query I rowsort
SELECT + ( - ( + ( + ( + 33 ) ) ) ) FROM tab2
----
-33
-33
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9981
SELECT ALL - CAST( MAX( - - col0 ) AS SIGNED ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL - CAST ( MAX ( - - col0 ) AS INTEGER ) FROM tab2
----
-75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9982
SELECT col2 DIV col2 * + CAST( - col0 AS SIGNED ) + + 55 * col1 FROM tab1 AS cor0
----
190
2494
719

skipif mysql # not compatible
query I rowsort label-9982
SELECT col2 / col2 * + CAST ( - col0 AS INTEGER ) + + 55 * col1 FROM tab1 AS cor0
----
190
2494
719

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9984
SELECT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) - + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9984
SELECT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) - + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + - 36 + 18 + - col1 FROM tab2 AS cor0
----
-69
-85
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9986
SELECT - + COUNT( * ) DIV + - COUNT( * ) col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9986
SELECT - + COUNT ( * ) / + - COUNT ( * ) col2 FROM tab0 cor0
----
1

query I rowsort
SELECT ALL + 94 * - - 78 FROM tab1
----
7332
7332
7332

query I rowsort
SELECT DISTINCT col0 + - 18 AS col2 FROM tab2
----
28
46
57

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9989
SELECT CAST( - col2 AS SIGNED ) * col1 DIV + - ( 49 ) FROM tab0
----
2
4
77

skipif mysql # not compatible
query I rowsort label-9989
SELECT CAST ( - col2 AS INTEGER ) * col1 / + - ( 49 ) FROM tab0
----
2
4
77

query I rowsort
SELECT ALL col2 + 82 AS col0 FROM tab2
----
105
122
140

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT SUM( ALL col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9991
SELECT SUM ( ALL col1 ) AS col0 FROM tab1
----
66

query I rowsort
SELECT ALL col0 + - 82 * 42 AS col2 FROM tab1
----
-3353
-3359
-3393

onlyif mysql # aggregate syntax: 
query II rowsort label-9993
SELECT + 30, MIN( DISTINCT - col1 ) AS col1 FROM tab2
----
30
-77

skipif mysql # not compatible
query II rowsort label-9993
SELECT + 30, MIN ( DISTINCT - col1 ) AS col1 FROM tab2
----
30
-77

query II rowsort
SELECT + col2, + col2 * + col0 * col0 FROM tab0
----
10
75690
47
10575
99
931491

query I rowsort
SELECT DISTINCT + 93 + - col2 FROM tab0
----
-6
46
83

query I rowsort
SELECT ALL col0 + + + col1 AS col0 FROM tab2
----
141
142
97

query I rowsort
SELECT DISTINCT col1 + 34 AS col1 FROM tab2 cor0
----
101
111
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT ALL ( - COUNT( * ) ) + + - 76 + - - SUM( ALL - 44 ) AS col2 FROM tab2
----
-211

skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL ( - COUNT ( * ) ) + + - 76 + - - SUM ( ALL - 44 ) AS col2 FROM tab2
----
-211

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NULL <> NULL
----

