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 II rowsort
SELECT ALL + col2 AS col0, - col2 AS col0 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

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

query I rowsort
SELECT ALL + col1 * - ( + col1 ) FROM tab2
----
-2601
-4489
-5929

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 49 * 44 * - col1 - 31 / + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT + MIN( ALL + 71 ) * + SUM( ALL col1 ) FROM tab0
----
7313

skipif mysql # not compatible
query I rowsort label-4
SELECT + MIN ( ALL + 71 ) * + SUM ( ALL col1 ) FROM tab0
----
7313

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

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

query I rowsort
SELECT ALL - 36 - - 94 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT + SUM( ALL + - 87 ) FROM tab2 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-14
SELECT + SUM ( ALL + - 87 ) FROM tab2 AS cor0
----
-261

query I rowsort
SELECT DISTINCT - - 8 + - ( col0 ) AS col2 FROM tab1 AS cor0
----
-43
-77
-83

query I rowsort
SELECT - col2 - + - 52 FROM tab0 AS cor0
----
-47
42
5

query I rowsort
SELECT ALL col0 - - - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT DISTINCT - MAX( ALL + - col1 ) + - + 58 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-18
SELECT DISTINCT - MAX ( ALL + - col1 ) + - + 58 FROM tab0 AS cor0
----
-57

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

query I rowsort
SELECT 93 * + + col0 + - col0 AS col2 FROM tab0
----
1380
8004
8924

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

onlyif mysql # aggregate syntax: 
query II rowsort label-22
SELECT DISTINCT 46 + + ( - COUNT( - col1 ) ), MIN( ALL + + 12 ) AS col0 FROM tab0
----
43
12

skipif mysql # not compatible
query II rowsort label-22
SELECT DISTINCT 46 + + ( - COUNT ( - col1 ) ), MIN ( ALL + + 12 ) AS col0 FROM tab0
----
43
12

onlyif mysql # DIV for integer division: 
query I rowsort label-23
SELECT + - col1 DIV - 14 FROM tab2 AS cor0
----
3
4
5

skipif mysql # not compatible
query I rowsort label-23
SELECT + - col1 / - 14 FROM tab2 AS cor0
----
3
4
5

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

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

query I rowsort
SELECT col0 * 60 FROM tab2
----
2760
3840
4500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 68 * 6 col0, 55 AS col1 FROM tab0 AS cor0
----
408
55
408
55
408
55

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

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

query I rowsort
SELECT DISTINCT - 52 AS col1 FROM tab0 cor0
----
-52

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 col0 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN col2 AND - - col0
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-33
SELECT - col1 DIV + + col0 + - 90 FROM tab0
----
-90
-90
-95

skipif mysql # not compatible
query I rowsort label-33
SELECT - col1 / + + col0 + - 90 FROM tab0
----
-90
-90
-95

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

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

skipif mysql # not compatible
query I rowsort label-35
SELECT DISTINCT SUM ( DISTINCT - col1 ) FROM tab2
----
-195

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT ALL ( + 4 ) + + COUNT( * ) - + ( + 85 ) AS col1 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL ( + 4 ) + + COUNT ( * ) - + ( + 85 ) AS col1 FROM tab1 AS cor0
----
-78

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

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

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

query I rowsort
SELECT ALL 13 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-44
SELECT col1 DIV - 4 + CAST( - ( + ( + - col2 ) ) AS SIGNED ) col2 FROM tab2
----
11
21
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-44
SELECT col1 / - 4 + CAST ( - ( + ( + - col2 ) ) AS INTEGER ) col2 FROM tab2
----
11
21
42

query I rowsort
SELECT ALL - 57 * - - col0 + + col1 AS col0 FROM tab2 AS cor0
----
-2571
-3571
-4208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 37 + 34 * - + col1 - - 50 col1 FROM tab0 cor0
----
-2667
-627
53

onlyif mysql # DIV for integer division: 
query I rowsort label-47
SELECT DISTINCT - 23 DIV - 29 + + ( + + col2 ) + + 88 AS col0 FROM tab2 AS cor0
----
111
128
146

skipif mysql # not compatible
query I rowsort label-47
SELECT DISTINCT - 23 / - 29 + + ( + + col2 ) + + 88 AS col0 FROM tab2 AS cor0
----
111
128
146

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 - 11 col2 FROM tab0 AS cor0
----
82
82
82

onlyif mysql # DIV for integer division: 
query II rowsort label-51
SELECT ALL + col0 * 78 - - col1 * col1 DIV + 42 + - col2 * + - col0, col0 FROM tab1 AS cor0
----
11645
85
13338
91
8878
51

skipif mysql # not compatible
query II rowsort label-51
SELECT ALL + col0 * 78 - - col1 * col1 / + 42 + - col2 * + - col0, col0 FROM tab1 AS cor0
----
11645
85
13338
91
8878
51

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

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

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

query I rowsort
SELECT ALL - col2 - + 27 FROM tab2
----
-50
-67
-85

query I rowsort
SELECT 97 - + + 8 AS col2 FROM tab0
----
89
89
89

query I rowsort
SELECT DISTINCT - ( + 82 ) AS col2 FROM tab0
----
-82

onlyif mysql # DIV for integer division: 
query II rowsort label-57
SELECT DISTINCT ( + col2 ) - - 25, 47 + - + col2 + - col0 - + col2 DIV - ( col0 ) AS col0 FROM tab1
----
121
-99
84
-97
93
-112

skipif mysql # not compatible
query II rowsort label-57
SELECT DISTINCT ( + col2 ) - - 25, 47 + - + col2 + - col0 - + col2 / - ( col0 ) AS col0 FROM tab1
----
121
-99
84
-97
93
-112

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT + MAX( 52 ) FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-62
SELECT + MAX ( 52 ) FROM tab1
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 * + - col0 col1 FROM tab0 AS cor0
----
120
696
776

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT DISTINCT + + MIN( - - 3 ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-64
SELECT DISTINCT + + MIN ( - - 3 ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-65
SELECT DISTINCT - col2 DIV col0 * - - col1 AS col2 FROM tab1 AS cor0
----
-14
0

skipif mysql # not compatible
query I rowsort label-65
SELECT DISTINCT - col2 / col0 * - - col1 AS col2 FROM tab1 AS cor0
----
-14
0

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT - SUM( ALL col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-66
SELECT - SUM ( ALL col2 ) AS col1 FROM tab0 AS cor0
----
-156

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-68
SELECT - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-68
SELECT - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

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

query I rowsort
SELECT - ( 29 ) * + col0 FROM tab1 AS cor0
----
-1479
-2465
-2639

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 30 * - - 19 >= NULL
----

query I rowsort
SELECT col2 + 82 + - - 91 * - 44 FROM tab0
----
-3823
-3875
-3912

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-76
SELECT * FROM tab0 AS cor0 WHERE + 24 / + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND + col2 * - col2 * - 42 * - col1
----

skipif mysql # not compatible
query III rowsort label-76
SELECT * FROM tab0 AS cor0 WHERE + 24 / + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND + col2 * - col2 * - 42 * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 col0 FROM tab1 AS cor0 WHERE col0 / - col2 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-80
SELECT DISTINCT 99 + - CAST( + SUM( ALL + col2 ) AS SIGNED ) + + 67 AS col0 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-80
SELECT DISTINCT 99 + - CAST ( + SUM ( ALL + col2 ) AS INTEGER ) + + 67 AS col0 FROM tab1 AS cor0
----
-57

query I rowsort
SELECT DISTINCT + + col1 FROM tab0 AS cor0 WHERE NULL > 27 * - - 42
----

query I rowsort
SELECT 62 - 2 + + + col1 + - col2 - + 23 * + + col2 + + + col0 + - + col0 FROM tab0 cor0
----
-159
-2315
-987

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

onlyif mysql # aggregate syntax: 
query II rowsort label-84
SELECT + 81 + - - SUM( - col0 ) AS col1, COUNT( * ) * - MAX( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
-146
-141

skipif mysql # not compatible
query II rowsort label-84
SELECT + 81 + - - SUM ( - col0 ) AS col1, COUNT ( * ) * - MAX ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
-146
-141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 - + 79 + + col0 col0 FROM tab1 cor0
----
30
64
70

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

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

query I rowsort
SELECT DISTINCT + + col0 + + + col2 + - col2 AS col0 FROM tab1 AS cor0
----
51
85
91

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

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + - col2 + + + col2 ) < 91
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT COUNT( * ) * - 24 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-94
SELECT COUNT ( * ) * - 24 FROM tab2
----
-72

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

query I rowsort
SELECT 35 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT ALL - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 86 IN ( - ( col0 ) - + col0 + + col0, + 61 * col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-98
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 86 IN ( - ( col0 ) - + col0 + + col0, + 61 * col0 )
----
-3

query I rowsort
SELECT - 54 + + 58 FROM tab2 AS cor0
----
4
4
4

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

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

query I rowsort
SELECT DISTINCT + col1 * + col0 * col2 FROM tab2
----
197120
291450
53958

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-102
SELECT DISTINCT col2 DIV + col1 AS col0, - col0 * + + ( CAST( NULL AS SIGNED ) ) FROM tab1
----
1
NULL
11
NULL
6
NULL

skipif mysql # not compatible
query II rowsort label-102
SELECT DISTINCT col2 / + col1 AS col0, - col0 * + + ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
1
NULL
11
NULL
6
NULL

query I rowsort
SELECT ALL + 41 * col0 FROM tab1
----
2091
3485
3731

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-104
SELECT ALL CAST( NULL AS SIGNED ) + 9 * - + 20 * - 90, + col2 DIV + + col0 col1 FROM tab0
----
NULL
0
NULL
1
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-104
SELECT ALL CAST ( NULL AS INTEGER ) + 9 * - + 20 * - 90, + col2 / + + col0 col1 FROM tab0
----
NULL
0
NULL
1
NULL
3

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

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

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

query I rowsort
SELECT ALL - - col2 - - - col0 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-108
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) * - COUNT( * ) + + MIN( DISTINCT - 83 ) AS col1 FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-108
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) * - COUNT ( * ) + + MIN ( DISTINCT - 83 ) AS col1 FROM tab2 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT - + ( + + COUNT( * ) ) col1 FROM tab1 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-109
SELECT - + ( + + COUNT ( * ) ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT ALL - SUM( - col0 ) col1 FROM tab1
----
227

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

query I rowsort
SELECT DISTINCT + col0 + - - col0 + 75 FROM tab1 AS cor0
----
177
245
257

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT SUM( 37 ) FROM tab0 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-113
SELECT SUM ( 37 ) FROM tab0 AS cor0
----
111

query I rowsort
SELECT DISTINCT - 89 AS col1 FROM tab1
----
-89

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

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

query I rowsort
SELECT ALL - 75 * + - col1 AS col2 FROM tab0
----
1575
6075
75

query I rowsort
SELECT 75 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

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

skipif mysql # not compatible
query I rowsort label-118
SELECT DISTINCT COUNT ( * ) * + 96 FROM tab1
----
288

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

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

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

query I rowsort
SELECT DISTINCT + + 41 + - col1 FROM tab1 AS cor0
----
-6
27
36

query I rowsort
SELECT - + col0 * col1 + - 12 FROM tab1 AS cor0
----
-4289
-437
-726

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 88 col0 FROM tab1 AS cor0
----
4488
7480
8008

query I rowsort
SELECT + + 1 AS col2 FROM tab1 AS cor0
----
1
1
1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + col2 * col1 col1 FROM tab2 AS cor0
----
1127
3016
3811

onlyif mysql # aggregate syntax: 
query II rowsort label-128
SELECT ALL + 71 * COUNT( * ) + SUM( DISTINCT - + col0 ) * 87 AS col2, SUM( DISTINCT - 81 ) FROM tab0 cor0
----
-17100
-81

skipif mysql # not compatible
query II rowsort label-128
SELECT ALL + 71 * COUNT ( * ) + SUM ( DISTINCT - + col0 ) * 87 AS col2, SUM ( DISTINCT - 81 ) FROM tab0 cor0
----
-17100
-81

query I rowsort
SELECT ALL 8 * col0 * ( - - col2 ) FROM tab0
----
5640
6960
76824

onlyif mysql # DIV for integer division: 
query I rowsort label-130
SELECT DISTINCT + 75 DIV col1 * + - 93 AS col2 FROM tab0
----
-279
-6975
0

skipif mysql # not compatible
query I rowsort label-130
SELECT DISTINCT + 75 / col1 * + - 93 AS col2 FROM tab0
----
-279
-6975
0

onlyif mysql # DIV for integer division: 
query I rowsort label-131
SELECT ALL - 42 DIV - + 45 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL - 42 / - + 45 FROM tab2
----
0
0
0

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

query I rowsort
SELECT DISTINCT + col2 + - + col0 + col1 AS col0 FROM tab0
----
-56
113
3

onlyif mysql # DIV for integer division: 
query I rowsort label-134
SELECT ALL + col2 * - 40 + - col2 DIV + 98 + + + col1 + col0 col1 FROM tab0
----
-1784
-292
-3863

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-134
SELECT ALL + col2 * - 40 + - col2 / + 98 + + + col1 + col0 col1 FROM tab0
----
-1784
-292
-3863

query I rowsort
SELECT DISTINCT - 50 + + col2 AS col2 FROM tab2 AS cor0
----
-10
-27
8

query I rowsort
SELECT DISTINCT - - col0 + 3 - - 98 AS col2 FROM tab1 AS cor0
----
152
186
192

onlyif mysql # DIV for integer division: 
query I rowsort label-137
SELECT ALL + - col1 * col2 * col1 - - ( - col1 ) DIV col0 + + col1 + col0 * + - col0 col2 FROM tab0 AS cor0
----
-11958
-308516
-9507

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-137
SELECT ALL + - col1 * col2 * col1 - - ( - col1 ) / col0 + + col1 + col0 * + - col0 col2 FROM tab0 AS cor0
----
-11958
-308516
-9507

query I rowsort
SELECT DISTINCT + - 50 + - + col2 AS col0 FROM tab2 AS cor0 WHERE NOT + 64 IS NULL
----
-108
-73
-90

query I rowsort
SELECT ALL col2 - - col0 - - col1 * col1 + + - 34 + - 58 * + 86 FROM tab2
----
-2352
-400
1011

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

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

query I rowsort
SELECT ALL - col2 * - + 59 + + col1 AS col2 FROM tab2 AS cor0
----
1408
2437
3489

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-143
SELECT - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT + col0 < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT + SUM( DISTINCT 69 ) FROM tab0, tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-144
SELECT + SUM ( DISTINCT 69 ) FROM tab0, tab2 AS cor0
----
69

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

query I rowsort
SELECT col2 * - 61 AS col0 FROM tab2
----
-1403
-2440
-3538

onlyif mysql # DIV for integer division: 
query I rowsort label-147
SELECT ALL col2 DIV - 9 AS col0 FROM tab1
----
-10
-6
-7

skipif mysql # not compatible
query I rowsort label-147
SELECT ALL col2 / - 9 AS col0 FROM tab1
----
-10
-6
-7

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * + col2 NOT BETWEEN + ( + - col2 ) - + + col1 AND 19 + col1 + + 50 * + 12
----
46
51
23

query I rowsort
SELECT DISTINCT - ( + + 85 ) AS col2 FROM tab2
----
-85

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT MIN( DISTINCT - col0 ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-153
SELECT MIN ( DISTINCT - col0 ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-291

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-155
SELECT DISTINCT COUNT( * ), COUNT( DISTINCT - col0 ) col2 FROM tab0
----
3
3

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

query I rowsort
SELECT + ( + col2 ) FROM tab0 WHERE col1 + col1 - + 79 * - + 51 * - col0 IS NOT NULL
----
10
47
99

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-158
SELECT - CAST( - - col1 AS SIGNED ) + 32 FROM tab1 AS cor0
----
-15
18
27

skipif mysql # not compatible
query I rowsort label-158
SELECT - CAST ( - - col1 AS INTEGER ) + 32 FROM tab1 AS cor0
----
-15
18
27

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= 18 * + - 44 * - 58 * + - 75
----

query II rowsort
SELECT DISTINCT col0 * - + col2 + + col0, + 24 AS col2 FROM tab1 AS cor0
----
-4845
24
-4930
24
-6097
24

query I rowsort
SELECT ALL - 12 + + 97 + - - 68 * col1 * 60 FROM tab2 AS cor0
----
208165
273445
314245

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-164
SELECT DISTINCT + MAX( DISTINCT col2 ) * - COUNT( * ) AS col2, - 85 AS col1 FROM tab0 AS cor0
----
-297
-85

skipif mysql # not compatible
query II rowsort label-164
SELECT DISTINCT + MAX ( DISTINCT col2 ) * - COUNT ( * ) AS col2, - 85 AS col1 FROM tab0 AS cor0
----
-297
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-165
SELECT - MIN( + col2 ) * + 6 + + COUNT( * ) * - 81 FROM tab2 AS cor0 WHERE NULL IN ( - 18 * - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-165
SELECT - MIN ( + col2 ) * + 6 + + COUNT ( * ) * - 81 FROM tab2 AS cor0 WHERE NULL IN ( - 18 * - + CAST ( NULL AS INTEGER ) )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 20 * + 8 * - col0 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-167
SELECT + col2 * 57 AS col1, + col0 + 41 DIV - 89 AS col1 FROM tab0
----
2679
15
5643
97
570
87

skipif mysql # not compatible
query II rowsort label-167
SELECT + col2 * 57 AS col1, + col0 + 41 / - 89 AS col1 FROM tab0
----
2679
15
5643
97
570
87

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT DISTINCT SUM( ALL + 34 ) AS col2 FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-168
SELECT DISTINCT SUM ( ALL + 34 ) AS col2 FROM tab1
----
102

query I rowsort
SELECT - 18 * + ( - + 75 ) * col1 + + 95 * - - ( - ( col0 ) ) - + col1 + - col2 * col1 FROM tab1
----
-1625
12697
51562

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

skipif mysql # not compatible
query I rowsort label-170
SELECT + MIN ( - + 72 ) AS col0 FROM tab0
----
-72

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 > - col1
----

query I rowsort
SELECT ALL col2 + 22 FROM tab2 WHERE NOT NULL <= - col0
----

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 40 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-180
SELECT ALL col0 * - CAST( col0 AS SIGNED ), 62 * - - 23 + - - col0 AS col2 FROM tab0
----
-225
1441
-7569
1513
-9409
1523

skipif mysql # not compatible
query II rowsort label-180
SELECT ALL col0 * - CAST ( col0 AS INTEGER ), 62 * - - 23 + - - col0 AS col2 FROM tab0
----
-225
1441
-7569
1513
-9409
1523

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

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

query I rowsort
SELECT ALL - 94 AS col0 FROM tab2 cor0
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-183
SELECT - 25 AS col2, - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL > col0
----
-25
0

skipif mysql # not compatible
query II rowsort label-183
SELECT - 25 AS col2, - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL > col0
----
-25
0

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

skipif mysql # not compatible
query I rowsort label-184
SELECT ALL + + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) / + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT DISTINCT MAX( DISTINCT + col2 ) * - 66 * - + ( + ( + COUNT( * ) ) ) FROM tab1 AS cor0
----
19008

skipif mysql # not compatible
query I rowsort label-190
SELECT DISTINCT MAX ( DISTINCT + col2 ) * - 66 * - + ( + ( + COUNT ( * ) ) ) FROM tab1 AS cor0
----
19008

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-194
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL col0 * - - col0 FROM tab1
----
2601
7225
8281

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 >= - - 51
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-197
SELECT ALL col2, + col2 DIV + col1 AS col1 FROM tab1
----
59
11
68
1
96
6

skipif mysql # not compatible
query II rowsort label-197
SELECT ALL col2, + col2 / + col1 AS col1 FROM tab1
----
59
11
68
1
96
6

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

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

query II rowsort
SELECT 67 + + col1 AS col2, 81 FROM tab2 cor0
----
118
81
134
81
144
81

query I rowsort
SELECT - 65 + - + col1 AS col0 FROM tab0 AS cor0
----
-146
-66
-86

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

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE + col0 / - + col2 * col0 + - col0 * - 78 IS NOT NULL
----
51
67
77

query II rowsort
SELECT DISTINCT 16 + + + 87, ( - - 62 ) AS col0 FROM tab0
----
103
62

query I rowsort
SELECT ALL - ( 15 ) + + + col0 AS col0 FROM tab2 AS cor0
----
31
49
60

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

query I rowsort
SELECT DISTINCT + col1 + + - 26 AS col0 FROM tab0 AS cor0
----
-25
-5
55

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 36 AS col0 FROM tab1 WHERE NOT 52 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT ALL - COUNT( * ) * - MAX( + col2 ) FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL - COUNT ( * ) * - MAX ( + col2 ) FROM tab2
----
174

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT ALL MAX( ALL col0 ) col1 FROM tab0
----
97

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

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NULL BETWEEN ( NULL ) AND col1
----

query I rowsort
SELECT - 42 * + col2 + + ( + 1 ) FROM tab0
----
-1973
-4157
-419

query I rowsort
SELECT + ( - 33 ) * ( - col1 ) + 10 FROM tab1
----
1561
175
472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-220
SELECT + 9 * CAST( - MIN( DISTINCT col2 ) AS SIGNED ) + + CAST( NULL AS SIGNED ) * - 42 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-220
SELECT + 9 * CAST ( - MIN ( DISTINCT col2 ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) * - 42 AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT + COUNT( * ) + 29 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-221
SELECT + COUNT ( * ) + 29 FROM tab0
----
32

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

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

query I rowsort
SELECT DISTINCT col0 + + 15 FROM tab1
----
100
106
66

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT DISTINCT COUNT( * ) + + SUM( + col1 ) AS col2 FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-225
SELECT DISTINCT COUNT ( * ) + + SUM ( + col1 ) AS col2 FROM tab0
----
106

query I rowsort
SELECT 1 AS col1 FROM tab0 WHERE NOT - 5 IS NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT 54 + + SUM( DISTINCT - col2 ) FROM tab1
----
-169

skipif mysql # not compatible
query I rowsort label-227
SELECT 54 + + SUM ( DISTINCT - col2 ) FROM tab1
----
-169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-228
SELECT CAST( + col0 AS SIGNED ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-228
SELECT CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

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

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

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

query I rowsort
SELECT ALL + 74 - + 68 AS col2 FROM tab2
----
6
6
6

query I rowsort
SELECT + 77 + 69 AS col1 FROM tab1
----
146
146
146

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT MIN( + col2 ) FROM tab1 WHERE NULL NOT BETWEEN + 72 / 19 AND - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-233
SELECT MIN ( + col2 ) FROM tab1 WHERE NULL NOT BETWEEN + 72 / 19 AND - col0
----
NULL

query I rowsort
SELECT ALL - ( col2 ) + + col0 FROM tab1
----
-45
23
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT DISTINCT COUNT( DISTINCT 54 ) * ( 69 ) AS col0 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-236
SELECT DISTINCT COUNT ( DISTINCT 54 ) * ( 69 ) AS col0 FROM tab2
----
69

query I rowsort
SELECT col2 - 70 AS col1 FROM tab0
----
-23
-60
29

query III rowsort
SELECT * FROM tab1 WHERE ( col2 / + 71 + col2 ) <= col2 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 66 ) + 4 * - col2 col0 FROM tab0
----
-122
-330
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-241
SELECT DISTINCT - 89 * col2 AS col1 FROM tab1 WHERE ( - col0 ) NOT BETWEEN + col2 * 42 + CAST( 21 AS SIGNED ) AND ( + col1 )
----
-5251
-6052
-8544

skipif mysql # not compatible
query I rowsort label-241
SELECT DISTINCT - 89 * col2 AS col1 FROM tab1 WHERE ( - col0 ) NOT BETWEEN + col2 * 42 + CAST ( 21 AS INTEGER ) AND ( + col1 )
----
-5251
-6052
-8544

query I rowsort
SELECT ALL + 96 * + col2 + col1 * col0 AS col2 FROM tab1
----
10805
6089
9930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-243
SELECT DISTINCT - ( + SUM( - col0 ) ) DIV COUNT( * ) AS col1 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-243
SELECT DISTINCT - ( + SUM ( - col0 ) ) / COUNT ( * ) AS col1 FROM tab0 AS cor0
----
66

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-245
SELECT ALL - 69 / col1 col0 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT - 75 * col2 FROM tab0 cor0
----
-3525
-7425
-750

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT + 41 * - SUM( col2 ) AS col2 FROM tab0 AS cor0
----
-6396

skipif mysql # not compatible
query I rowsort label-247
SELECT + 41 * - SUM ( col2 ) AS col2 FROM tab0 AS cor0
----
-6396

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

query I rowsort
SELECT 85 * - col1 + - ( 7 ) * col2 AS col0 FROM tab0
----
-1855
-7214
-778

query III rowsort
SELECT * FROM tab2 WHERE col0 BETWEEN col2 AND col1
----
46
51
23
64
77
40

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

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

query I rowsort
SELECT - col2 * - col2 + - 54 FROM tab0 cor0
----
2155
46
9747

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab2 AS cor0 WHERE + 38 BETWEEN col1 + + col0 AND + 56
----

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

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

query I rowsort
SELECT DISTINCT + col0 - + col0 * 90 AS col1 FROM tab1 AS cor0
----
-4539
-7565
-8099

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

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT ALL + COUNT( 79 ) - + 67 FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-261
SELECT ALL + COUNT ( 79 ) - + 67 FROM tab0
----
-64

query I rowsort
SELECT DISTINCT 75 + 92 AS col0 FROM tab2 WHERE NOT 79 BETWEEN 98 * 17 + ( col1 ) AND NULL
----
167

query I rowsort
SELECT col2 - + 23 FROM tab2
----
0
17
35

query I rowsort
SELECT 39 - - col2 FROM tab1
----
107
135
98

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

query I rowsort
SELECT col0 - - col2 * col0 FROM tab1
----
4947
5100
6279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 43 ) col1 FROM tab0 WHERE col1 IS NULL
----

query I rowsort
SELECT 98 + col2 * 94 FROM tab2 WHERE - col1 IN ( col1 )
----

query I rowsort
SELECT DISTINCT 47 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 ) AND NULL > NULL
----

query I rowsort
SELECT ALL + 76 * + col2 FROM tab1 AS cor0 WHERE ( NULL ) > ( col1 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-273
SELECT DISTINCT + CAST ( + - ( - col1 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
21
81

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

onlyif mysql # DIV for integer division: 
query I rowsort label-275
SELECT - col0 * 63 DIV - 95 col0 FROM tab0
----
57
64
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-275
SELECT - col0 * 63 / - 95 col0 FROM tab0
----
57
64
9

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT ALL COUNT( * ) * - ( - 19 ) * 75 AS col2 FROM tab2
----
4275

skipif mysql # not compatible
query I rowsort label-276
SELECT ALL COUNT ( * ) * - ( - 19 ) * 75 AS col2 FROM tab2
----
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT + + 13 * + COUNT( * ) FROM tab0 cor0
----
39

skipif mysql # not compatible
query I rowsort label-277
SELECT + + 13 * + COUNT ( * ) FROM tab0 cor0
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-278
SELECT ALL 41, SUM( - - col1 ) AS col0 FROM tab0 cor0
----
41
103

skipif mysql # not compatible
query II rowsort label-278
SELECT ALL 41, SUM ( - - col1 ) AS col0 FROM tab0 cor0
----
41
103

query I rowsort
SELECT - 66 * - + col0 AS col2 FROM tab1 AS cor0
----
3366
5610
6006

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 59 * - col2 * 36 AS col2 FROM tab0 AS cor0
----
-210276
-21240
-99828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-284
SELECT + - 90 * - 64 * + + ( MAX( + col1 ) ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-284
SELECT + - 90 * - 64 * + + ( MAX ( + col1 ) ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-286
SELECT ALL COUNT( * ) AS col2, ( 59 ) FROM tab1 AS cor0
----
3
59

skipif mysql # not compatible
query II rowsort label-286
SELECT ALL COUNT ( * ) AS col2, ( 59 ) FROM tab1 AS cor0
----
3
59

onlyif mysql # aggregate syntax: 
query I rowsort label-287
SELECT - COUNT( * ) * 76 FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-287
SELECT - COUNT ( * ) * 76 FROM tab2 AS cor0
----
-228

query II rowsort
SELECT - col1 AS col1, col1 * col2 AS col2 FROM tab1 AS cor0
----
-14
1344
-47
3196
-5
295

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-289
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL OR NOT NULL < ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-289
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL OR NOT NULL < ( - col2 )
----

query I rowsort
SELECT ALL - 53 AS col2 FROM tab0 AS cor0
----
-53
-53
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-291
SELECT ALL + SUM( + col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL <= CAST( NULL AS SIGNED ) * + col1
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + + 57 + col2 )
----

query I rowsort
SELECT ALL - 4 * - - col0 FROM tab2
----
-184
-256
-300

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT + col0 * - + col0 * - col1 + - 51 - - 23 IS NOT NULL
----

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

query I rowsort
SELECT col1 * 64 + col2 FROM tab2
----
3287
4346
4968

query I rowsort
SELECT + + col2 + - col2 + + col0 AS col0 FROM tab0 AS cor0
----
15
87
97

query II rowsort
SELECT DISTINCT - 50 + + - col1, ( col2 ) AS col1 FROM tab2 AS cor0
----
-101
23
-117
58
-127
40

onlyif mysql # DIV for integer division: 
query I rowsort label-299
SELECT + - col0 + 17 DIV + 4 FROM tab1 AS cor0
----
-47
-81
-87

skipif mysql # not compatible
query I rowsort label-299
SELECT + - col0 + 17 / + 4 FROM tab1 AS cor0
----
-47
-81
-87

query I rowsort
SELECT - col0 * + - 42 FROM tab2 AS cor0
----
1932
2688
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT COUNT( * ) * + 5 AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-301
SELECT COUNT ( * ) * + 5 AS col1 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT - COUNT( * ) - SUM( + + col0 ) FROM tab0 AS cor0
----
-202

skipif mysql # not compatible
query I rowsort label-302
SELECT - COUNT ( * ) - SUM ( + + col0 ) FROM tab0 AS cor0
----
-202

query I rowsort
SELECT DISTINCT - ( - 49 ) FROM tab0 AS cor0
----
49

query I rowsort
SELECT - - 85 - col1 FROM tab1 AS cor0
----
38
71
80

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

query II rowsort
SELECT ALL + col0 + + col0 - + + col0, + col2 * - - col0 AS col1 FROM tab2 AS cor0
----
46
1058
64
2560
75
4350

query I rowsort
SELECT 17 - 56 + col2 * + col2 FROM tab2 AS cor0
----
1561
3325
490

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) < ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 58 >= ( - + 93 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 FROM tab1 cor0 WHERE NOT - ( + 63 ) BETWEEN + col1 + ( col2 ) AND ( + col2 ) + + col2 AND NOT ( NULL ) < ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col1 - + 26 >= ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE + + col0 * + 25 = ( NULL )
----

query II rowsort
SELECT DISTINCT 16, + 32 AS col1 FROM tab1
----
16
32

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT DISTINCT COUNT( * ) - - MIN( ALL - col1 ) AS col1 FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-315
SELECT DISTINCT COUNT ( * ) - - MIN ( ALL - col1 ) AS col1 FROM tab1
----
-44

query I rowsort
SELECT DISTINCT col0 - + 40 AS col1 FROM tab1
----
11
45
51

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

query I rowsort
SELECT + col0 / col0 FROM tab2 WHERE NOT ( - col2 ) NOT BETWEEN NULL AND ( + 41 * - - col1 + 78 )
----

query I rowsort
SELECT 8 * - 91 * 61 AS col2 FROM tab2
----
-44408
-44408
-44408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-320
SELECT col2 * + CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-320
SELECT col2 * + CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
1344
295
3196

query I rowsort
SELECT + 69 FROM tab2 WHERE NOT ( NULL > ( 18 ) )
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 cor0 WHERE NOT col0 + - + col2 BETWEEN - 21 + - col0 AND ( - col0 )
----
59
68
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 >= - + col2
----

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

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 83 * + ( - + col0 )
----

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

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

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

query I rowsort
SELECT DISTINCT 44 FROM tab0 cor0
----
44

query I rowsort
SELECT DISTINCT + + 23 AS col1 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-330
SELECT DISTINCT - 14 * 62 AS col2, 58 * + - COUNT( + + col0 ) + 81 AS col1 FROM tab1 AS cor0
----
-868
-93

skipif mysql # not compatible
query II rowsort label-330
SELECT DISTINCT - 14 * 62 AS col2, 58 * + - COUNT ( + + col0 ) + 81 AS col1 FROM tab1 AS cor0
----
-868
-93

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col2 ) BETWEEN col2 * + 20 + - 6 AND 85 * 93
----

query I rowsort
SELECT DISTINCT + col1 + - 17 AS col2 FROM tab2
----
34
50
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 8 col2 FROM tab2 WHERE + 33 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-334
SELECT col1, - col2 / 68 + + 87 * + ( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-334
SELECT col1, - col2 / 68 + + 87 * + ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 * + - col0 col0 FROM tab1
----
408
680
728

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> 3 * + col2 + - ( col1 ) + + 1 + + 37 + col1
----

query I rowsort
SELECT + 78 + - 54 + - - col2 * - col2 + - col2 + - - 78 FROM tab1 cor0
----
-3438
-4590
-9210

query I rowsort
SELECT + + col2 + + - 9 AS col2 FROM tab2 AS cor0
----
14
31
49

query I rowsort
SELECT col0 + + + col0 AS col1 FROM tab1
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT + MIN( ALL col2 ) + + COUNT( + 47 ) AS col2 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-343
SELECT + MIN ( ALL col2 ) + + COUNT ( + 47 ) AS col2 FROM tab0
----
13

query I rowsort
SELECT ALL + - 24 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-346
SELECT DISTINCT - 49 + col2 * - - col2 + - col1 - col0 DIV + col0 FROM tab0 cor0
----
2078
29
9750

skipif mysql # not compatible
query I rowsort label-346
SELECT DISTINCT - 49 + col2 * - - col2 + - col1 - col0 / + col0 FROM tab0 cor0
----
2078
29
9750

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

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

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

query I rowsort
SELECT - + col2 * - + col2 - + 86 FROM tab2 AS cor0
----
1514
3278
443

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, 45 FROM tab1 AS cor0 WHERE col2 + + 67 <> NULL
----

query I rowsort
SELECT DISTINCT - col1 * - ( col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL IN ( - col2 / + 83, col2 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-353
SELECT - col0 * + CAST( - 44 AS SIGNED ) * + ( - 3 ) FROM tab0
----
-11484
-12804
-1980

skipif mysql # not compatible
query I rowsort label-353
SELECT - col0 * + CAST ( - 44 AS INTEGER ) * + ( - 3 ) FROM tab0
----
-11484
-12804
-1980

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

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

query I rowsort
SELECT - 99 * + col0 AS col1 FROM tab0
----
-1485
-8613
-9603

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-358
SELECT - CAST( SUM( DISTINCT - col2 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-358
SELECT - CAST ( SUM ( DISTINCT - col2 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
121

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

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

query II rowsort
SELECT + 81, 52 * + col1 AS col0 FROM tab2
----
81
2652
81
3484
81
4004

query III rowsort
SELECT ALL * FROM tab2 WHERE - 85 * + col2 < - col0 * 43
----
64
77
40
75
67
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 15 >= - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 44 + + - col1 FROM tab0 cor0
----
-37
23
43

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

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

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

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

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 36 + col0 - - col2 col1 FROM tab2 AS cor0
----
105
140
169

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 col2 FROM tab2 WHERE NULL IS NULL
----
102
134
154

query I rowsort
SELECT DISTINCT + - 35 * + + col2 FROM tab1 WHERE NOT ( ( NULL ) IS NOT NULL )
----
-2065
-2380
-3360

query I rowsort
SELECT DISTINCT + 35 AS col1 FROM tab1
----
35

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

onlyif mysql # DIV for integer division: 
query I rowsort label-374
SELECT col0 DIV + + col1 + - col0 + 96 DIV + col0 + - col0 FROM tab0
----
-169
-24
-97

skipif mysql # not compatible
query I rowsort label-374
SELECT col0 / + + col1 + - col0 + 96 / + col0 + - col0 FROM tab0
----
-169
-24
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 4, col2 col1 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-4
10
-4
47
-4
99

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

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

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

query I rowsort
SELECT ALL + 72 - 3 FROM tab1 AS cor0
----
69
69
69

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

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

query I rowsort
SELECT ( 44 ) - + + col1 * 85 AS col2 FROM tab2 WHERE - 40 * - col0 + - col1 * - col0 + - col0 * + col2 + + + 60 + + col1 IS NULL
----

query I rowsort
SELECT 97 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT - COUNT( * ) - - + SUM( DISTINCT - col0 ) AS col1 FROM tab2
----
-188

skipif mysql # not compatible
query I rowsort label-383
SELECT - COUNT ( * ) - - + SUM ( DISTINCT - col0 ) AS col1 FROM tab2
----
-188

query II rowsort
SELECT + - 81 + 53 * - 8 AS col1, col1 * - col0 FROM tab2 AS cor0
----
-505
-2346
-505
-4928
-505
-5025

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

onlyif mysql # DIV for integer division: 
query I rowsort label-386
SELECT ALL 10 DIV + col0 col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-386
SELECT ALL 10 / + col0 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 + + - ( col2 ) FROM tab0 AS cor0 WHERE 77 * - col1 * + 77 - + col1 IS NOT NULL
----
-98
11
34

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

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

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

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

skipif mysql # not compatible
query I rowsort label-390
SELECT DISTINCT - + 17 * ( + + col2 ) FROM tab2 AS cor0 WHERE col0 + - col1 * + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

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

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

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

query II rowsort
SELECT DISTINCT 15 * 42, + col2 FROM tab1
----
630
59
630
68
630
96

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT ALL - SUM( - 72 ) FROM tab2 WHERE col0 < + col2 + + 86
----
216

skipif mysql # not compatible
query I rowsort label-397
SELECT ALL - SUM ( - 72 ) FROM tab2 WHERE col0 < + col2 + + 86
----
216

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-400
SELECT MIN( DISTINCT - + col0 ) col2, + 14 FROM tab2
----
-75
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-400
SELECT MIN ( DISTINCT - + col0 ) col2, + 14 FROM tab2
----
-75
14

query I rowsort
SELECT - col2 * + 8 FROM tab2
----
-184
-320
-464

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

onlyif mysql # aggregate syntax: 
query II rowsort label-403
SELECT DISTINCT - MIN( DISTINCT 81 ) * - COUNT( - - col1 ) col2, MIN( DISTINCT 43 ) col1 FROM tab0 AS cor0
----
243
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-403
SELECT DISTINCT - MIN ( DISTINCT 81 ) * - COUNT ( - - col1 ) col2, MIN ( DISTINCT 43 ) col1 FROM tab0 AS cor0
----
243
43

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-406
SELECT DISTINCT - col1 AS col2, + col2 AS col2 FROM tab1 AS cor0 WHERE NOT 97 * + CAST( NULL AS SIGNED ) = col1
----

skipif mysql # not compatible
query II rowsort label-406
SELECT DISTINCT - col1 AS col2, + col2 AS col2 FROM tab1 AS cor0 WHERE NOT 97 * + CAST ( NULL AS INTEGER ) = col1
----

query I rowsort
SELECT ALL - 96 * + + 36 FROM tab0
----
-3456
-3456
-3456

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT MIN( ALL 60 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
60

skipif mysql # not compatible
query I rowsort label-408
SELECT MIN ( ALL 60 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
60

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-410
SELECT DISTINCT ( - + MAX ( ALL - col1 ) ) col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT - - col1 + - + 56 FROM tab1 AS cor0
----
-42
-51
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT + SUM( ALL + col0 ) + COUNT( * ) * - ( 95 ) * 11 AS col1 FROM tab2 AS cor0
----
-2950

skipif mysql # not compatible
query I rowsort label-412
SELECT + SUM ( ALL + col0 ) + COUNT ( * ) * - ( 95 ) * 11 AS col1 FROM tab2 AS cor0
----
-2950

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 * - + col2 col1 FROM tab2
----
-1720
-2494
-989

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, 66 + + 65 * - col0 col0 FROM tab2
----
23
-2924
40
-4094
58
-4809

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-419
SELECT 22 * CAST( 42 AS SIGNED ) AS col2 FROM tab0
----
924
924
924

skipif mysql # not compatible
query I rowsort label-419
SELECT 22 * CAST ( 42 AS INTEGER ) AS col2 FROM tab0
----
924
924
924

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT ALL SUM( - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-420
SELECT ALL SUM ( - col1 ) FROM tab1
----
-66

query III rowsort
SELECT * FROM tab2 WHERE - col0 >= + 21 * + ( + col0 ) * - - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-422
SELECT DISTINCT MIN( DISTINCT 98 ) * COUNT( * ) DIV + 40 AS col1 FROM tab1 WHERE NOT ( 81 ) IS NULL
----
7

skipif mysql # not compatible
query I rowsort label-422
SELECT DISTINCT MIN ( DISTINCT 98 ) * COUNT ( * ) / + 40 AS col1 FROM tab1 WHERE NOT ( 81 ) IS NULL
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-423
SELECT 63 DIV - COUNT( * ) AS col2, - COUNT( * ) DIV - COUNT( * ) FROM tab0
----
-21
1

skipif mysql # not compatible
query II rowsort label-423
SELECT 63 / - COUNT ( * ) AS col2, - COUNT ( * ) / - COUNT ( * ) FROM tab0
----
-21
1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-424
SELECT ALL COUNT ( * ) col0 FROM tab0 WHERE NOT NULL < NULL
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - + col0 col0 FROM tab2
----
-104
-133
-69

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

query I rowsort
SELECT ALL - + 16 + 84 FROM tab1 AS cor0
----
68
68
68

query I rowsort
SELECT ALL - col2 * col1 + - col2 AS col2 FROM tab1 cor0
----
-1440
-3264
-354

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

query I rowsort
SELECT DISTINCT + col1 * 58 * - col0 FROM tab1 AS cor0
----
-24650
-248066
-41412

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 65 <= + 70
----

query I rowsort
SELECT ALL ( - col0 ) * + 13 AS col2 FROM tab2 AS cor0
----
-598
-832
-975

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

query II rowsort
SELECT DISTINCT + col0 * - col0 AS col1, col1 AS col0 FROM tab1 AS cor0
----
-2601
14
-7225
5
-8281
47

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 <= - + 44 + col2
----
3

skipif mysql # not compatible
query I rowsort label-436
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 <= - + 44 + col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-437
SELECT ALL - MAX( + 94 ) AS col1, + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-437
SELECT ALL - MAX ( + 94 ) AS col1, + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-94
NULL

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

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

skipif mysql # not compatible
query I rowsort label-439
SELECT MAX ( ALL col0 ) FROM tab1
----
91

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

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

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

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

query I rowsort
SELECT ALL 27 * - col2 AS col2 FROM tab0
----
-1269
-2673
-270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - col1 * + ( - col2 ) AS col0, col1 col1, + + col1 FROM tab1
----
9 values hashing to e735c3d1c0fb6e15136fd16009fcccf2

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

query I rowsort
SELECT + col1 + + + col1 * - + col1 * + col0 AS col2 FROM tab0 AS cor0
----
-38346
-96
-98334

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

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT DISTINCT - MIN( col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-447
SELECT DISTINCT - MIN ( col0 ) FROM tab1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-448
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-448
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT ALL - COUNT( * ) + 28 * - MAX( + + 48 ) FROM tab2 AS cor0
----
-1347

skipif mysql # not compatible
query I rowsort label-449
SELECT ALL - COUNT ( * ) + 28 * - MAX ( + + 48 ) FROM tab2 AS cor0
----
-1347

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-451
SELECT ALL + 96 + + col1, - 69 DIV - 5 AS col1 FROM tab1 AS cor0
----
101
13
110
13
143
13

skipif mysql # not compatible
query II rowsort label-451
SELECT ALL + 96 + + col1, - 69 / - 5 AS col1 FROM tab1 AS cor0
----
101
13
110
13
143
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 78 col2 FROM tab1
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 + - col1 col0 FROM tab0
----
10
70
90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT 53 + MAX( - + col2 ) col0 FROM tab0
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-455
SELECT 53 + MAX ( - + col2 ) col0 FROM tab0
----
43

query III rowsort
SELECT * FROM tab1 WHERE - 78 NOT BETWEEN 56 * col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL col2 + + 50 AS col0 FROM tab1
----
109
118
146

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

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

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

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

query I rowsort
SELECT ALL - 47 + - - 9 FROM tab1 AS cor0
----
-38
-38
-38

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

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

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

query I rowsort
SELECT 53 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

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

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

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

query I rowsort
SELECT DISTINCT + - 38 * + + col2 FROM tab2 AS cor0
----
-1520
-2204
-874

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

query I rowsort
SELECT col2 * - - 60 + - 87 FROM tab2 AS cor0
----
1293
2313
3393

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT DISTINCT COUNT( - col1 ) * + COUNT( * ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-474
SELECT DISTINCT COUNT ( - col1 ) * + COUNT ( * ) AS col1 FROM tab2
----
9

query I rowsort
SELECT ALL 78 FROM tab2 WHERE - 81 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT ALL COUNT( * ) * + SUM( col2 ) FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-476
SELECT ALL COUNT ( * ) * + SUM ( col2 ) FROM tab0
----
468

query I rowsort
SELECT ( - - 33 ) FROM tab0
----
33
33
33

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col0, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT ALL MIN( - 76 ) + + 90 FROM tab1 cor0
----
14

skipif mysql # not compatible
query I rowsort label-479
SELECT ALL MIN ( - 76 ) + + 90 FROM tab1 cor0
----
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 74 * - col2 * - 88 col2 FROM tab2 cor0
----
149776
260480
377696

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

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

query I rowsort
SELECT - 22 * - - 58 FROM tab0
----
-1276
-1276
-1276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + - 73 col0 FROM tab2
----
-119
-137
-148

query I rowsort
SELECT ALL col2 + col2 * + col1 AS col1 FROM tab1
----
1440
3264
354

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-486
SELECT ALL + - 79 DIV - 98 + ( + COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-486
SELECT ALL + - 79 / - 98 + ( + COUNT ( * ) ) FROM tab0 AS cor0
----
3

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

query I rowsort
SELECT ALL + - 64 + - 66 FROM tab2 AS cor0
----
-130
-130
-130

query I rowsort
SELECT ALL + 59 * - 25 FROM tab1 cor0
----
-1475
-1475
-1475

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

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

query I rowsort
SELECT DISTINCT 53 + + 48 FROM tab1 cor0
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-492
SELECT col0 DIV - 26 + - 22 + - col0 - 99 AS col0 FROM tab1 AS cor0
----
-173
-209
-215

skipif mysql # not compatible
query I rowsort label-492
SELECT col0 / - 26 + - 22 + - col0 - 99 AS col0 FROM tab1 AS cor0
----
-173
-209
-215

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-495
SELECT col0 DIV - - col1, - col0 AS col1 FROM tab2
----
0
-46
0
-64
1
-75

skipif mysql # not compatible
query II rowsort label-495
SELECT col0 / - - col1, - col0 AS col1 FROM tab2
----
0
-46
0
-64
1
-75

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-496
SELECT DISTINCT ( + col1 ) / col2 col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + col0 * - col1 col2 FROM tab0 cor0
----
-1168
-1817
2

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT + 75 * + MAX( DISTINCT + 44 ) col0 FROM tab1 cor0
----
3300

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-498
SELECT + 75 * + MAX ( DISTINCT + 44 ) col0 FROM tab1 cor0
----
3300

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT - 32 * col0 = + col2
----
-15
-87
-97

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

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT ( NULL ) IN ( 49, col1 )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-504
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 / + + CAST( NULL AS SIGNED ) * + 54 <= NULL
----

skipif mysql # not compatible
query III rowsort label-504
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 / + + CAST ( NULL AS INTEGER ) * + 54 <= NULL
----

query I rowsort
SELECT + 40 * + col0 FROM tab0 AS cor0
----
3480
3880
600

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 38 > col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 > NULL
----

query II rowsort
SELECT DISTINCT + 87, 89 AS col2 FROM tab0
----
87
89

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

skipif mysql # not compatible
query I rowsort label-509
SELECT DISTINCT MIN ( col1 ) AS col2 FROM tab2
----
51

query I rowsort
SELECT ALL - col2 + - col0 + 15 + col1 FROM tab1
----
-118
-124
-97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT + 34 + - + COUNT( * ) AS col0 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-512
SELECT + 34 + - + COUNT ( * ) AS col0 FROM tab1
----
31

query I rowsort
SELECT DISTINCT col2 + + ( - col2 ) FROM tab0 cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT ALL + ( - COUNT( * ) ) * + + COUNT( - col0 ) - - - 90 AS col1 FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-515
SELECT ALL + ( - COUNT ( * ) ) * + + COUNT ( - col0 ) - - - 90 AS col1 FROM tab2
----
-99

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

query III rowsort
SELECT DISTINCT 66 + - + col0 AS col1, 70 + + - 37 AS col0, - col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
9 values hashing to f1de5e4d5eb1a5aafbdc74daee84dd4d

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-518
SELECT + - CAST( NULL AS SIGNED ) * + MAX( DISTINCT - col2 ) - + 0 AS col1 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT + 42 + + 24 FROM tab0 AS cor0
----
66

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

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

query I rowsort
SELECT DISTINCT - ( + ( + col2 ) ) * - - col0 * + 8 + + 75 + col0 * + 56 AS col0 FROM tab0 AS cor0
----
-2013
-4725
-71317

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-522
SELECT ALL - + CAST( + ( + 91 ) AS SIGNED ) DIV col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-522
SELECT ALL - + CAST ( + ( + 91 ) AS INTEGER ) / col2 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-523
SELECT col0 + + col0 DIV - + col2 FROM tab1 AS cor0
----
51
84
90

skipif mysql # not compatible
query I rowsort label-523
SELECT col0 + + col0 / - + col2 FROM tab1 AS cor0
----
51
84
90

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

query II rowsort
SELECT DISTINCT - + col2 - + 18 + - col0 + - + col2 + - col0, + col1 FROM tab2 AS cor0
----
-156
51
-226
77
-284
67

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

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

query I rowsort
SELECT ALL - col2 * + + 62 AS col0 FROM tab0 cor0
----
-2914
-6138
-620

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-529
SELECT ALL - 1 AS col0, - COUNT( * ) + + + 30 FROM tab2
----
-1
27

skipif mysql # not compatible
query II rowsort label-529
SELECT ALL - 1 AS col0, - COUNT ( * ) + + + 30 FROM tab2
----
-1
27

query III rowsort
SELECT * FROM tab1 WHERE + - col1 IN ( + - 57 + col1, - col1, - + col2, - col2 * col2, - 40 / col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT COUNT( * ) FROM tab1 WHERE col0 + 13 NOT IN ( - - 16 )
----
3

skipif mysql # not compatible
query I rowsort label-531
SELECT COUNT ( * ) FROM tab1 WHERE col0 + 13 NOT IN ( - - 16 )
----
3

query I rowsort
SELECT + col1 + col2 * 48 FROM tab0
----
2337
4753
501

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

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

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT + 78 IS NULL
----
59
68
96

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-537
SELECT 60 DIV + col0 AS col1 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-537
SELECT 60 / + col0 AS col1 FROM tab0
----
0
0
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT - SUM( DISTINCT - col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-539
SELECT - SUM ( DISTINCT - col2 ) FROM tab1
----
223

query I rowsort
SELECT - col0 * - + col0 FROM tab2 AS cor0
----
2116
4096
5625

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

query II rowsort
SELECT + col1 AS col2, col1 - col0 FROM tab0 AS cor0
----
1
-96
21
-66
81
66

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

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

query I rowsort
SELECT ALL - 96 AS col0 FROM tab0 cor0
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-546
SELECT DISTINCT + - MAX( DISTINCT + col2 ) AS col2, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-58
3

skipif mysql # not compatible
query II rowsort label-546
SELECT DISTINCT + - MAX ( DISTINCT + col2 ) AS col2, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-58
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-548
SELECT DISTINCT + - ( + col2 ) DIV 40 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-548
SELECT DISTINCT + - ( + col2 ) / 40 FROM tab0 AS cor0
----
-1
-2
0

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

skipif mysql # not compatible
query I rowsort label-549
SELECT ALL - 25 / + 17 AS col2 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-550
SELECT DISTINCT + CAST( NULL AS SIGNED ), 96 col2 FROM tab0
----
NULL
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-550
SELECT DISTINCT + CAST ( NULL AS INTEGER ), 96 col2 FROM tab0
----
NULL
96

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-554
SELECT DISTINCT MAX( DISTINCT - 22 ) + + + 40 AS col0, CAST( NULL AS SIGNED ) FROM tab2
----
18
NULL

skipif mysql # not compatible
query II rowsort label-554
SELECT DISTINCT MAX ( DISTINCT - 22 ) + + + 40 AS col0, CAST ( NULL AS INTEGER ) FROM tab2
----
18
NULL

query I rowsort
SELECT ALL col0 + + 63 AS col2 FROM tab1 AS cor0
----
114
148
154

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

query I rowsort
SELECT ALL + col0 * + col1 - col0 + - col1 + + col0 AS col1 FROM tab0 cor0
----
1134
1806
96

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

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

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

query I rowsort
SELECT ALL 86 + + 18 FROM tab1 AS cor0
----
104
104
104

query I rowsort
SELECT ALL col2 * + col2 + 2 AS col2 FROM tab0 AS cor0
----
102
2211
9803

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

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

query I rowsort
SELECT DISTINCT 95 - + 62 * - + col2 AS col0 FROM tab0 AS cor0
----
3009
6233
715

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

onlyif mysql # aggregate syntax: 
query I rowsort label-566
SELECT ALL + + ( + + 49 ) - + MAX( + + ( 68 ) ) FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-566
SELECT ALL + + ( + + 49 ) - + MAX ( + + ( 68 ) ) FROM tab2 AS cor0
----
-19

query II rowsort
SELECT ( + 94 ), - 75 AS col2 FROM tab1
----
94
-75
94
-75
94
-75

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-570
SELECT - 19 * - col1 - - col2 DIV - 74 FROM tab0
----
1539
18
399

skipif mysql # not compatible
query I rowsort label-570
SELECT - 19 * - col1 - - col2 / - 74 FROM tab0
----
1539
18
399

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT DISTINCT COUNT( * ) - - 29 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-571
SELECT DISTINCT COUNT ( * ) - - 29 FROM tab1
----
32

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-574
SELECT DISTINCT 45 * 3 * - + CAST( NULL AS SIGNED ) + + - ( + col1 ) AS col2 FROM tab1 AS cor0 WHERE col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-574
SELECT DISTINCT 45 * 3 * - + CAST ( NULL AS INTEGER ) + + - ( + col1 ) AS col2 FROM tab1 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT - MAX( ALL - 82 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-575
SELECT - MAX ( ALL - 82 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL IS NULL )
----
NULL

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

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

query I rowsort
SELECT ALL - ( + - col1 ) FROM tab1 cor0
----
14
47
5

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

query I rowsort
SELECT + col2 * + 70 AS col2 FROM tab0 AS cor0
----
3290
6930
700

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-583
SELECT 86 DIV - 68 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-583
SELECT 86 / - 68 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT - COUNT( * ) * COUNT( * ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-585
SELECT - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1
----
-9

query I rowsort
SELECT ALL - - col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + - ( 94 ) col1 FROM tab1
----
4794
7990
8554

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-589
SELECT DISTINCT - COUNT( + col2 ) AS col2, - COUNT( - CAST( NULL AS SIGNED ) ) + - 28 FROM tab2
----
-3
-28

skipif mysql # not compatible
query II rowsort label-589
SELECT DISTINCT - COUNT ( + col2 ) AS col2, - COUNT ( - CAST ( NULL AS INTEGER ) ) + - 28 FROM tab2
----
-3
-28

query III rowsort
SELECT ALL * FROM tab1 WHERE 40 IN ( + - col2, 1 / + col1, ( col1 ) ) AND NOT NULL IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-592
SELECT + 60 + col2 DIV - col0 FROM tab2
----
60
60
60

skipif mysql # not compatible
query I rowsort label-592
SELECT + 60 + col2 / - col0 FROM tab2
----
60
60
60

query I rowsort
SELECT - 79 + + - col0 FROM tab1
----
-130
-164
-170

query I rowsort
SELECT + col1 + 82 AS col1 FROM tab2 AS cor0
----
133
149
159

query I rowsort
SELECT + + col2 * 10 + + col0 FROM tab2 cor0
----
276
464
655

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

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

query I rowsort
SELECT DISTINCT + 86 * - col1 + - col2 + col0 FROM tab0 AS cor0
----
-1729
-6998
-88

query I rowsort
SELECT col1 - + col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 47 * - ( + col2 ) + + 4 AS col1 FROM tab0 AS cor0
----
2213
4657
474

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 + col2 - - 72 * + col2 col0 FROM tab1 AS cor0
----
4231
4888
6932

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

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT - 43 * + 21 + + COUNT( * ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-912

skipif mysql # not compatible
query I rowsort label-602
SELECT - 43 * + 21 + + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-912

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

query II rowsort
SELECT DISTINCT col1 AS col1, 95 FROM tab0
----
1
95
21
95
81
95

query I rowsort
SELECT DISTINCT - 94 * col0 FROM tab1
----
-4794
-7990
-8554

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

skipif mysql # not compatible
query I rowsort label-606
SELECT DISTINCT + ( - ( + + COUNT ( DISTINCT - CAST ( NULL AS REAL ) ) ) ) * + - 73 AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL + 61 * - col2 FROM tab0
----
-2867
-6039
-610

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

query I rowsort
SELECT ALL - - 88 * - - col0 AS col0 FROM tab1 AS cor0
----
4488
7480
8008

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT - MIN( ALL + col2 ) * + + COUNT( * ) + - 75 FROM tab2 cor0
----
-144

skipif mysql # not compatible
query I rowsort label-610
SELECT - MIN ( ALL + col2 ) * + + COUNT ( * ) + - 75 FROM tab2 cor0
----
-144

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-614
SELECT ALL ( col2 ) col0 FROM tab1 AS cor0 WHERE col1 * + CAST( NULL AS DECIMAL ) IS NULL
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-614
SELECT ALL ( col2 ) col0 FROM tab1 AS cor0 WHERE col1 * + CAST ( NULL AS REAL ) IS NULL
----
59
68
96

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

query I rowsort
SELECT ALL 30 * ( + ( col2 ) ) AS col0 FROM tab2
----
1200
1740
690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-617
SELECT DISTINCT MAX( ALL + + 74 ) * + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
222

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT MAX ( ALL + + 74 ) * + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
222

query I rowsort
SELECT ALL - col1 * + 9 * col0 AS col0 FROM tab2
----
-21114
-44352
-45225

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT DISTINCT 7 * + MIN( col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-619
SELECT DISTINCT 7 * + MIN ( col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + - col2 FROM tab1 AS cor0 WHERE NOT + 56 + col2 + + col1 BETWEEN + col1 AND - - 47
----
-59
-68
-96

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

query I rowsort
SELECT + - col1 + 50 FROM tab0 AS cor0
----
-31
29
49

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

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

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

query I rowsort
SELECT DISTINCT ( - 43 ) AS col1 FROM tab1
----
-43

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

query III rowsort
SELECT * FROM tab1 WHERE - ( 9 ) NOT BETWEEN - 4 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 * + - col2 AS col0 FROM tab0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-630
SELECT DISTINCT - ( + CAST( + col0 AS SIGNED ) ) * + + 16 FROM tab2
----
-1024
-1200
-736

skipif mysql # not compatible
query I rowsort label-630
SELECT DISTINCT - ( + CAST ( + col0 AS INTEGER ) ) * + + 16 FROM tab2
----
-1024
-1200
-736

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 62 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-633
SELECT ALL 3 + + + MAX( - col0 ) * + COUNT( * ) FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-633
SELECT ALL 3 + + + MAX ( - col0 ) * + COUNT ( * ) FROM tab2 AS cor0
----
-135

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

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

query I rowsort
SELECT - col2 + 85 FROM tab2 cor0
----
27
45
62

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT NULL IN ( - + col1, - col1, - col0, + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-636
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT NULL IN ( - + col1, - col1, - col0, + - col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT MAX( ALL - 33 ) * - + 78 + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
2583

skipif mysql # not compatible
query I rowsort label-637
SELECT MAX ( ALL - 33 ) * - + 78 + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
2583

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-638
SELECT + 54 * - col0 + - 22 * + col2 FROM tab1 AS cor0 WHERE - 48 * - + CAST( NULL AS SIGNED ) IS NULL
----
-4866
-5888
-6410

skipif mysql # not compatible
query I rowsort label-638
SELECT + 54 * - col0 + - 22 * + col2 FROM tab1 AS cor0 WHERE - 48 * - + CAST ( NULL AS INTEGER ) IS NULL
----
-4866
-5888
-6410

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT DISTINCT ( - COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-643
SELECT DISTINCT ( - COUNT ( * ) ) FROM tab0
----
-3

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 IS NULL
----

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

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

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

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

query I rowsort
SELECT ALL + - ( - + col1 ) FROM tab1 cor0
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-650
SELECT - 91 * COUNT( * ) DIV + + CAST( + + 30 AS SIGNED ) col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-650
SELECT - 91 * COUNT ( * ) / + + CAST ( + + 30 AS INTEGER ) col1 FROM tab2 AS cor0
----
-9

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + - - ( - col0 ) <= - 64
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT DISTINCT 9 * ( - - COUNT( * ) ) AS col2 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-655
SELECT DISTINCT 9 * ( - - COUNT ( * ) ) AS col2 FROM tab1
----
27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT - + SUM( + 10 ) AS col1 FROM tab0 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-657
SELECT - + SUM ( + 10 ) AS col1 FROM tab0 cor0
----
-30

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

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

query I rowsort
SELECT - col2 * + - col0 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-660
SELECT ALL + + ( ( + col1 ) ) + + 15 DIV + col1 - col2 FROM tab0 AS cor0
----
-83
11
34

skipif mysql # not compatible
query I rowsort label-660
SELECT ALL + + ( ( + col1 ) ) + + 15 / + col1 - col2 FROM tab0 AS cor0
----
-83
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT ALL - + MIN( DISTINCT - + col0 ) * + 47 * - + 28 * 89 AS col2 FROM tab1 AS cor0
----
-10658284

skipif mysql # not compatible
query I rowsort label-661
SELECT ALL - + MIN ( DISTINCT - + col0 ) * + 47 * - + 28 * 89 AS col2 FROM tab1 AS cor0
----
-10658284

query I rowsort
SELECT + ( ( col1 ) ) * col2 AS col2 FROM tab1 AS cor0
----
1344
295
3196

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

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

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

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

query I rowsort
SELECT ( + col0 ) + 75 * + col2 AS col1 FROM tab0 WHERE NULL <= NULL
----

query II rowsort
SELECT ALL - col0 * 63, col1 FROM tab2
----
-2898
51
-4032
77
-4725
67

query II rowsort
SELECT DISTINCT col2 * - col1 AS col1, + col1 + + ( col1 ) + 79 + + - ( + col1 ) FROM tab2
----
-1173
130
-3080
156
-3886
146

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT 36 + - + COUNT( * ) * + - ( - + 42 ) FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-668
SELECT 36 + - + COUNT ( * ) * + - ( - + 42 ) FROM tab0
----
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-669
SELECT ALL col2 FROM tab1 WHERE NOT ( NOT ( NULL ) NOT BETWEEN - 51 AND + CAST( - 56 AS DECIMAL ) * + col2 + - + col2 )
----

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL col2 FROM tab1 WHERE NOT ( NOT ( NULL ) NOT BETWEEN - 51 AND + CAST ( - 56 AS REAL ) * + col2 + - + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-670
SELECT DISTINCT - 32 DIV col2 * col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-670
SELECT DISTINCT - 32 / col2 * col0 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-671
SELECT ALL 18 DIV + 86 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-671
SELECT ALL 18 / + 86 AS col0 FROM tab0
----
0
0
0

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

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

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

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

query I rowsort
SELECT + col2 * + - ( + + col1 ) + - col2 AS col2 FROM tab2 AS cor0
----
-1196
-3120
-3944

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

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

query I rowsort
SELECT - + col1 * - col0 FROM tab0 WHERE + - col2 + - col1 NOT IN ( - - col0, + 10, - col0 + - 49 )
----
1215
1827
97

query I rowsort
SELECT - 19 - 77 FROM tab0
----
-96
-96
-96

query II rowsort
SELECT + col2 AS col1, col2 + ( + 30 ) FROM tab0
----
10
40
47
77
99
129

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

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

query II rowsort
SELECT DISTINCT 45 AS col1, + ( - col1 ) * - col2 AS col2 FROM tab1 AS cor0
----
45
1344
45
295
45
3196

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 47 IS NULL
----

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

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

query II rowsort
SELECT - ( + + col0 ), - col0 FROM tab0
----
-15
-15
-87
-87
-97
-97

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

skipif mysql # not compatible
query I rowsort label-686
SELECT DISTINCT + MAX ( ALL - col0 ) FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-687
SELECT - COUNT( * ) * - - 23, 36 AS col1 FROM tab1
----
-69
36

skipif mysql # not compatible
query II rowsort label-687
SELECT - COUNT ( * ) * - - 23, 36 AS col1 FROM tab1
----
-69
36

query II rowsort
SELECT + col1 * + col1 AS col1, col2 AS col1 FROM tab1
----
196
96
2209
68
25
59

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-690
SELECT 73 DIV - + SUM( - 35 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-690
SELECT 73 / - + SUM ( - 35 ) AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + 26 * + col0 * + + col0 FROM tab0 AS cor0
----
196794
244634
5850

query I rowsort
SELECT ALL col1 * - col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-693
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-696
SELECT DISTINCT - - 32 + - COUNT( * ) + ( + COUNT( * ) ) * + 37 * - - COUNT( * ) col1, ( + 80 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
3020
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-696
SELECT DISTINCT - - 32 + - COUNT ( * ) + ( + COUNT ( * ) ) * + 37 * - - COUNT ( * ) col1, ( + 80 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
3020
80

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT DISTINCT COUNT( * ) + + - 1 FROM tab0, tab0 cor0
----
8

skipif mysql # not compatible
query I rowsort label-697
SELECT DISTINCT COUNT ( * ) + + - 1 FROM tab0, tab0 cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT ALL + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-698
SELECT ALL + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 * 54 + + col1 FROM tab2 AS cor0
----
1293
2237
3199

query I rowsort
SELECT - ( + col0 ) - - col2 + - col1 * + 29 AS col1 FROM tab2 cor0 WHERE NULL < - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-703
SELECT DISTINCT + col2 + - 87 DIV + + col2 + col1 FROM tab1 AS cor0
----
110
114
63

skipif mysql # not compatible
query I rowsort label-703
SELECT DISTINCT + col2 + - 87 / + + col2 + col1 FROM tab1 AS cor0
----
110
114
63

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

query II rowsort
SELECT ALL - ( - col2 ) + col2 AS col1, 30 AS col2 FROM tab2 AS cor0
----
116
30
46
30
80
30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT DISTINCT - COUNT( ALL + 59 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-707
SELECT DISTINCT - COUNT ( ALL + 59 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 * ( + + 12 ) col0 FROM tab2
----
180
180
180

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

skipif mysql # not compatible
query I rowsort label-711
SELECT DISTINCT + 4 - COUNT ( * ) FROM tab1
----
1

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

query II rowsort
SELECT col2 * + 44 * - col1 * + ( ( - col1 ) ), 43 * 11 AS col0 FROM tab2
----
10435040
473
11455928
473
2632212
473

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT - MIN( ALL 42 ) FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-714
SELECT - MIN ( ALL 42 ) FROM tab1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT 56 * - MIN( - col0 ) AS col1 FROM tab2
----
4200

skipif mysql # not compatible
query I rowsort label-715
SELECT 56 * - MIN ( - col0 ) AS col1 FROM tab2
----
4200

query III rowsort
SELECT * FROM tab1 WHERE + + col0 * col0 + 21 + + + ( + 75 ) IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-718
SELECT 2 FROM tab0 WHERE NULL < + col0 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-718
SELECT 2 FROM tab0 WHERE NULL < + col0 * + CAST ( NULL AS INTEGER )
----

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

query I rowsort
SELECT DISTINCT 32 + col2 AS col1 FROM tab2 AS cor0
----
55
72
90

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 BETWEEN - + 42 AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + - col0 + - - 9 * + ( - col2 ) col2 FROM tab2 AS cor0
----
-276
-464
-655

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT + COUNT( * ) + - + 34 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
-34

skipif mysql # not compatible
query I rowsort label-725
SELECT + COUNT ( * ) + - + 34 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
-34

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

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

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

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

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE NOT col2 < + col0
----
47
99

query I rowsort
SELECT DISTINCT + ( ( + col1 ) ) FROM tab1 AS cor0
----
14
47
5

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

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

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

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

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

query I rowsort
SELECT DISTINCT 4 AS col0 FROM tab0
----
4

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 / 4 ) < NULL
----

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

query II rowsort
SELECT DISTINCT col1, col2 FROM tab0 cor0 WHERE NOT + col2 IS NULL
----
1
99
21
10
81
47

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

skipif mysql # not compatible
query I rowsort label-740
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 36 NOT BETWEEN - 96 * + col2 AND + col0
----
0

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 >= ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-744
SELECT - ( COUNT ( * ) ) AS col0 FROM tab0 WHERE NOT NULL <> NULL
----
0

query I rowsort
SELECT col2 + + 68 FROM tab0
----
115
167
78

query I rowsort
SELECT DISTINCT + 5 * + col0 AS col0 FROM tab2
----
230
320
375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-747
SELECT COUNT( * ) DIV 49 + - COUNT( * ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-747
SELECT COUNT ( * ) / 49 + - COUNT ( * ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT + 15 + + 49 * - COUNT( * ) FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-748
SELECT + 15 + + 49 * - COUNT ( * ) FROM tab0
----
-132

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + 8 / col2 BETWEEN col0 * - col1 AND + col2 / + col2
----

query I rowsort
SELECT ALL + 46 * + col1 FROM tab1
----
2162
230
644

query I rowsort
SELECT + ( + 90 ) AS col1 FROM tab1
----
90
90
90

query I rowsort
SELECT ALL 61 * 28 FROM tab0
----
1708
1708
1708

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + col2 - 93 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 / col0 ) = - col2 * - 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-756
SELECT 40 / - COUNT ( * ) AS col1 FROM tab0
----
-13

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col0 + + 55 ) NOT BETWEEN + 27 AND ( 68 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * 9 FROM tab0 WHERE ( col2 ) IS NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) IN ( 40 )
----

query I rowsort
SELECT + col1 * 52 FROM tab1
----
2444
260
728

query I rowsort
SELECT - col1 * + 31 AS col2 FROM tab2
----
-1581
-2077
-2387

onlyif mysql # DIV for integer division: 
query I rowsort label-764
SELECT - col0 + + col1 DIV col0 col2 FROM tab2
----
-45
-63
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-764
SELECT - col0 + + col1 / col0 col2 FROM tab2
----
-45
-63
-75

query I rowsort
SELECT + col0 + 69 FROM tab0
----
156
166
84

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 22 * + col2 FROM tab1
----
-1298
-1496
-2112

query I rowsort
SELECT DISTINCT - 60 + col0 * ( col1 ) AS col0 FROM tab1 AS cor0
----
365
4217
654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-772
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) + 25 BETWEEN - 67 AND col2
----

skipif mysql # not compatible
query I rowsort label-772
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) + 25 BETWEEN - 67 AND col2
----

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 = + 66 + + col1
----

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-778
SELECT DISTINCT - SUM ( + col2 ) col1 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT 1 * - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-779
SELECT 1 * - COUNT ( * ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT COUNT( * ) * + 47 AS col2 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-780
SELECT COUNT ( * ) * + 47 AS col2 FROM tab1 AS cor0
----
141

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

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

query I rowsort
SELECT + col0 * 16 AS col0 FROM tab2 AS cor0
----
1024
1200
736

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT COUNT( * ) + + MIN( + 24 ) AS col2 FROM tab1 cor0 WHERE NOT NULL IN ( - 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-783
SELECT COUNT ( * ) + + MIN ( + 24 ) AS col2 FROM tab1 cor0 WHERE NOT NULL IN ( - 84 )
----
NULL

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

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

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

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

query I rowsort
SELECT ALL - col2 * - 27 FROM tab1 AS cor0 WHERE col1 + 46 IS NOT NULL
----
1593
1836
2592

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT ALL - MIN( - ( + col2 ) ) * + 93 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 90 / col0 + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL - MIN ( - ( + col2 ) ) * + 93 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 90 / col0 + col1 )
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-790
SELECT - CAST( + - col1 AS SIGNED ) DIV + 56 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-790
SELECT - CAST ( + - col1 AS INTEGER ) / + 56 FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT + 98 AS col0 FROM tab1 WHERE NOT ( col2 + - col1 * col0 ) IN ( - 51 * - 34 - ( col0 ) * - 80 )
----
98

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

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

query I rowsort
SELECT + ( col2 ) FROM tab1 WHERE NOT NULL <= - col2 * - ( - 26 )
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-795
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - - 60 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-795
SELECT DISTINCT CAST ( NULL AS REAL ) * - - 60 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-796
SELECT ALL - 21 DIV col1 + - 76 col0 FROM tab1
----
-76
-77
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-796
SELECT ALL - 21 / col1 + - 76 col0 FROM tab1
----
-76
-77
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-797
SELECT DISTINCT - col0 + - col0 DIV 6 AS col2 FROM tab1
----
-106
-59
-99

skipif mysql # not compatible
query I rowsort label-797
SELECT DISTINCT - col0 + - col0 / 6 AS col2 FROM tab1
----
-106
-59
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT DISTINCT + - MIN( DISTINCT 61 ) AS col0 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-798
SELECT DISTINCT + - MIN ( DISTINCT 61 ) AS col0 FROM tab0 AS cor0
----
-61

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-800
SELECT - col1 * - 7 FROM tab2 WHERE ( NULL ) BETWEEN - CAST( NULL AS DECIMAL ) / col2 AND 16
----

skipif mysql # not compatible
query I rowsort label-800
SELECT - col1 * - 7 FROM tab2 WHERE ( NULL ) BETWEEN - CAST ( NULL AS REAL ) / col2 AND 16
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-801
SELECT + CAST( + 61 AS SIGNED ) + + col0 DIV col2 FROM tab2
----
62
62
63

skipif mysql # not compatible
query I rowsort label-801
SELECT + CAST ( + 61 AS INTEGER ) + + col0 / col2 FROM tab2
----
62
62
63

query I rowsort
SELECT + + 17 / 42 FROM tab2 AS cor0 WHERE + col0 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-803
SELECT col1 DIV + col2 AS col0 FROM tab1 AS cor0 WHERE 83 * - col1 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-803
SELECT col1 / + col2 AS col0 FROM tab1 AS cor0 WHERE 83 * - col1 IS NOT NULL
----
0
0
0

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

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

query I rowsort
SELECT ALL - + col2 - 15 * - 57 AS col1 FROM tab2 cor0
----
797
815
832

query I rowsort
SELECT - col0 + + col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-77
2
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-808
SELECT ALL - CAST( + 56 AS SIGNED ) * + MIN( DISTINCT col1 ) * 17 + 60 FROM tab0 AS cor0
----
-892

skipif mysql # not compatible
query I rowsort label-808
SELECT ALL - CAST ( + 56 AS INTEGER ) * + MIN ( DISTINCT col1 ) * 17 + 60 FROM tab0 AS cor0
----
-892

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

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

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

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE 51 NOT IN ( + col2 )
----
-1
-21
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 4 ) IS NULL
----

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

query II rowsort
SELECT ALL + 37 AS col1, 98 FROM tab1 AS cor0
----
37
98
37
98
37
98

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE + col2 <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-815
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE + col2 <> ( NULL )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT DISTINCT + 47 * COUNT( * ) AS col0 FROM tab1 WHERE ( NULL ) NOT IN ( 66 )
----
0

skipif mysql # not compatible
query I rowsort label-817
SELECT DISTINCT + 47 * COUNT ( * ) AS col0 FROM tab1 WHERE ( NULL ) NOT IN ( 66 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 87 col0 FROM tab0 WHERE NOT ( + + 16 ) IS NULL
----
87
87
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT DISTINCT COUNT( DISTINCT + 70 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-821
SELECT DISTINCT COUNT ( DISTINCT + 70 ) AS col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT DISTINCT - 88 + - COUNT( 19 ) FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-822
SELECT DISTINCT - 88 + - COUNT ( 19 ) FROM tab0
----
-91

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

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

skipif mysql # not compatible
query I rowsort label-824
SELECT ALL + col1 * + - CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-825
SELECT MIN( ALL + 34 ) DIV 11 + 66 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-825
SELECT MIN ( ALL + 34 ) / 11 + 66 FROM tab1 AS cor0
----
69

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > - col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT ALL + 66 * MAX( ALL col2 ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
3831

skipif mysql # not compatible
query I rowsort label-828
SELECT ALL + 66 * MAX ( ALL col2 ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3831

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 IN ( - 46 + 89 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-830
SELECT COUNT( * ), + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-830
SELECT COUNT ( * ), + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
9

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

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

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

query I rowsort
SELECT - + 22 * - - col0 AS col0 FROM tab0 AS cor0
----
-1914
-2134
-330

query I rowsort
SELECT ALL - col1 * + + col0 * + col2 * - col2 FROM tab2 cor0
----
1241034
16904100
7884800

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 22 col1, col0 + + col0 FROM tab0 AS cor0
----
22
174
22
194
22
30

onlyif mysql # DIV for integer division: 
query I rowsort label-838
SELECT - col2 DIV + + 85 - + - col2 * 26 FROM tab0 AS cor0
----
1222
2573
260

skipif mysql # not compatible
query I rowsort label-838
SELECT - col2 / + + 85 - + - col2 * 26 FROM tab0 AS cor0
----
1222
2573
260

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

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

query I rowsort
SELECT ALL - 94 * - col2 + + - 98 AS col1 FROM tab0 AS cor0
----
4320
842
9208

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT SUM( - col1 ) col0 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-842
SELECT SUM ( - col1 ) col0 FROM tab1
----
-66

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

query I rowsort
SELECT ALL 30 AS col0 FROM tab1 WHERE col2 IS NOT NULL
----
30
30
30

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

query I rowsort
SELECT 29 AS col2 FROM tab2 WHERE col2 * col0 - - col2 + - col2 IS NOT NULL
----
29
29
29

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

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

skipif mysql # not compatible
query I rowsort label-848
SELECT + 12 * - col2 * - 89 - col2 * - - CAST ( NULL AS INTEGER ) + + + col2 * 76 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-849
SELECT DISTINCT COUNT( * ) * 15 FROM tab0 AS cor0 WHERE 71 + col2 + - - CAST( NULL AS DECIMAL ) + + col1 NOT BETWEEN 6 + 16 * 53 AND - 22 * + col0
----
0

skipif mysql # not compatible
query I rowsort label-849
SELECT DISTINCT COUNT ( * ) * 15 FROM tab0 AS cor0 WHERE 71 + col2 + - - CAST ( NULL AS REAL ) + + col1 NOT BETWEEN 6 + 16 * 53 AND - 22 * + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT ALL + MAX( ALL + col0 ) * + 75 AS col1 FROM tab1 AS cor0
----
6825

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL + MAX ( ALL + col0 ) * + 75 AS col1 FROM tab1 AS cor0
----
6825

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

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

query I rowsort
SELECT - + 20 - - 37 * - col2 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
-2203
-2536
-3572

query I rowsort
SELECT ALL + col2 FROM tab1 cor0 WHERE ( + col2 ) <> ( + 29 / col2 * + 93 )
----
59
68
96

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

query I rowsort
SELECT + col2 + col0 + + + 23 + col2 AS col2 FROM tab1 AS cor0
----
226
250
266

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 51 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-857
SELECT ALL col0 - - col1 + - + CAST( col0 AS SIGNED ) * ( col0 ) FROM tab2 cor0
----
-2019
-3955
-5483

skipif mysql # not compatible
query I rowsort label-857
SELECT ALL col0 - - col1 + - + CAST ( col0 AS INTEGER ) * ( col0 ) FROM tab2 cor0
----
-2019
-3955
-5483

query I rowsort
SELECT DISTINCT - 50 - - ( col2 ) FROM tab2 AS cor0
----
-10
-27
8

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-860
SELECT ALL - col1 DIV - 87 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-860
SELECT ALL - col1 / - 87 FROM tab1
----
0
0
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-862
SELECT - col1 FROM tab2 WHERE NOT + - col0 + col1 NOT IN ( + + CAST( 24 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-862
SELECT - col1 FROM tab2 WHERE NOT + - col0 + col1 NOT IN ( + + CAST ( 24 AS INTEGER ) )
----

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-868
SELECT DISTINCT - - ( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-868
SELECT DISTINCT - - ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab1 cor0
----
NULL

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

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

query I rowsort
SELECT ALL - 87 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 91 * 3 col2, 90 FROM tab2 AS cor0
----
273
90
273
90
273
90

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( + col2 <= ( + ( - col0 ) ) * - col0 - - col2 ) OR NOT col2 * col2 IS NOT NULL
----

query I rowsort
SELECT - col1 + - - 50 AS col0 FROM tab2 AS cor0
----
-1
-17
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-878
SELECT col1 DIV col2 * + - col0 * - col1 FROM tab0
----
0
1215
3654

skipif mysql # not compatible
query I rowsort label-878
SELECT col1 / col2 * + - col0 * - col1 FROM tab0
----
0
1215
3654

query III rowsort
SELECT * FROM tab1 WHERE ( - 32 ) = NULL
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-882
SELECT + COUNT ( ALL 57 ) FROM tab2
----
3

query I rowsort
SELECT ALL ( - - col2 ) * + 19 * 97 AS col2 FROM tab2
----
106894
42389
73720

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT COUNT( * ) * - SUM( DISTINCT + - col2 ) FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-885
SELECT COUNT ( * ) * - SUM ( DISTINCT + - col2 ) FROM tab2
----
363

query I rowsort
SELECT ALL col1 + - col0 + + - col1 * - col1 FROM tab0
----
-95
375
6627

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

query I rowsort
SELECT DISTINCT + - 43 * + - 96 FROM tab0 AS cor0
----
4128

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

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

query I rowsort
SELECT - 46 + - - col1 FROM tab1 AS cor0
----
-32
-41
1

query I rowsort
SELECT DISTINCT - 22 * + col2 AS col1 FROM tab2
----
-1276
-506
-880

query I rowsort
SELECT 36 * - col0 * + - col2 + + col1 FROM tab1
----
176270
180545
222815

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

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

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

query II rowsort
SELECT ALL - col1 + col2 AS col0, col1 FROM tab0 cor0
----
-11
21
-34
81
98
1

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

query I rowsort
SELECT ALL col1 * - 88 - col2 AS col0 FROM tab1 AS cor0
----
-1328
-4204
-499

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-899
SELECT DISTINCT - - MIN( + ( + 77 ) ) + COUNT( * ) DIV - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-899
SELECT DISTINCT - - MIN ( + ( + 77 ) ) + COUNT ( * ) / - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
78

query I rowsort
SELECT DISTINCT - col2 - + ( col2 ) - - - col1 * - 52 AS col0 FROM tab0 cor0
----
-146
1072
4118

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

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

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

query I rowsort
SELECT DISTINCT - - col0 * - 61 + col2 AS col0 FROM tab0 AS cor0
----
-5297
-5818
-868

query I rowsort
SELECT col0 * col1 * - 90 AS col1 FROM tab1
----
-38250
-384930
-64260

onlyif mysql # DIV for integer division: 
query I rowsort label-905
SELECT ALL - 99 DIV col2 AS col2 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-905
SELECT ALL - 99 / col2 AS col2 FROM tab2
----
-1
-2
-4

query I rowsort
SELECT col2 * - 37 AS col1 FROM tab2
----
-1480
-2146
-851

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

query III rowsort
SELECT ALL - 58, - 55 * - col2 + col2 - - col2 + - col1, - - 76 AS col2 FROM tab2 cor0 WHERE col1 IS NULL
----

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

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

query I rowsort
SELECT ( - - col0 ) AS col2 FROM tab1 AS cor0
----
51
85
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT MIN( DISTINCT - + col0 ) FROM tab1
----
-91

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-914
SELECT DISTINCT - 22 AS col2, - COUNT( DISTINCT col0 ) AS col2 FROM tab1
----
-22
-3

skipif mysql # not compatible
query II rowsort label-914
SELECT DISTINCT - 22 AS col2, - COUNT ( DISTINCT col0 ) AS col2 FROM tab1
----
-22
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 * - col2 + col1 - - col1 col0 FROM tab2 AS cor0
----
-2152
-3766
-5550

query I rowsort
SELECT DISTINCT col1 + + - 49 AS col2 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN col1 * - + col2 AND + - col0 - - - 91 * + - col1 - 47
----

query I rowsort
SELECT + 83 * - - col0 * + + col1 + + + 28 AS col0 FROM tab2 AS cor0
----
194746
409052
417103

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT DISTINCT + MIN( - + col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-918
SELECT DISTINCT + MIN ( - + col0 ) AS col1 FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-919
SELECT + 82 * col2 + + CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
1932
3344
4831

skipif mysql # not compatible
query I rowsort label-919
SELECT + 82 * col2 + + CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
1932
3344
4831

query II rowsort
SELECT - 62 + + col2 AS col1, + col2 FROM tab2 WHERE NULL IS NULL
----
-22
40
-39
23
-4
58

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-924
SELECT ALL + MIN( ALL - ( - col1 ) ) + - + 68 / - - COUNT( * ) - - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-924
SELECT ALL + MIN ( ALL - ( - col1 ) ) + - + 68 / - - COUNT ( * ) - - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL

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

query I rowsort
SELECT ALL + + col1 + + + col1 AS col2 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-927
SELECT - + 66 * + CAST( NULL AS DECIMAL ) * + 99, + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 + col1 * - col0 AND NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-927
SELECT - + 66 * + CAST ( NULL AS REAL ) * + 99, + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 + col1 * - col0 AND NULL
----
NULL
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 * + col2 col1 FROM tab1 AS cor0
----
2655
3060
4320

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-930
SELECT col1 DIV - + 91 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-930
SELECT col1 / - + 91 AS col1 FROM tab0 AS cor0
----
0
0
0

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

query I rowsort
SELECT ALL + + col0 * + + col2 AS col0 FROM tab2 cor0
----
1058
2560
4350

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

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

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

query I rowsort
SELECT ALL + 66 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
66
66
66

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-937
SELECT COUNT( * ) * - - CAST( - 95 AS SIGNED ) FROM tab2
----
-285

skipif mysql # not compatible
query I rowsort label-937
SELECT COUNT ( * ) * - - CAST ( - 95 AS INTEGER ) FROM tab2
----
-285

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

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

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

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

query II rowsort
SELECT + col1 AS col0, col0 FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT ALL - col2 * + - 26 FROM tab0
----
1222
2574
260

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-943
SELECT DISTINCT col0 AS col1, + 34 / + CAST( NULL AS SIGNED ) / 69 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-943
SELECT DISTINCT col0 AS col1, + 34 / + CAST ( NULL AS INTEGER ) / 69 FROM tab1
----
51
NULL
85
NULL
91
NULL

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

query II rowsort
SELECT DISTINCT 16 AS col1, col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IN ( + col0, + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT DISTINCT ( COUNT( DISTINCT - - 25 ) ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-946
SELECT DISTINCT ( COUNT ( DISTINCT - - 25 ) ) AS col0 FROM tab0 AS cor0
----
1

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 20 + - 21 IS NOT NULL
----

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

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

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

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

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
51
67
77

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

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

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 III rowsort
SELECT ALL * FROM tab2 WHERE NOT 19 + - 60 IS NOT NULL
----

query I rowsort
SELECT + col2 * + + col1 AS col1 FROM tab1
----
1344
295
3196

query I rowsort
SELECT ALL + col1 + + 37 AS col2 FROM tab0
----
118
38
58

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

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

query I rowsort
SELECT - col0 - + 27 FROM tab2
----
-102
-73
-91

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-963
SELECT DISTINCT + ( 54 ) * col0 DIV - col1 + - col2 FROM tab1
----
-172
-292
-977

skipif mysql # not compatible
query I rowsort label-963
SELECT DISTINCT + ( 54 ) * col0 / - col1 + - col2 FROM tab1
----
-172
-292
-977

onlyif mysql # DIV for integer division: 
query I rowsort label-964
SELECT 27 DIV col1 * + 60 AS col2 FROM tab0 AS cor0
----
0
1620
60

skipif mysql # not compatible
query I rowsort label-964
SELECT 27 / col1 * + 60 AS col2 FROM tab0 AS cor0
----
0
1620
60

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

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

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

query I rowsort
SELECT - 31 * - - col0 FROM tab1
----
-1581
-2635
-2821

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

query II rowsort
SELECT ALL - 5, + col0 FROM tab1 WHERE + - col2 * - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT + MIN( ALL + - col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-970
SELECT + MIN ( ALL + - col1 ) FROM tab2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-971
SELECT col0 + col1 + + - 47 FROM tab2 WHERE NOT - col1 IN ( CAST( + 3 AS SIGNED ), - col1, col1 + + - col0 * + - ( col1 ) )
----

skipif mysql # not compatible
query I rowsort label-971
SELECT col0 + col1 + + - 47 FROM tab2 WHERE NOT - col1 IN ( CAST ( + 3 AS INTEGER ), - col1, col1 + + - col0 * + - ( col1 ) )
----

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

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

query I rowsort
SELECT DISTINCT + col1 * - col2 - col0 AS col0 FROM tab1 AS cor0
----
-1395
-3287
-380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, + 81 - - - col1 col2 FROM tab2 AS cor0
----
23
30
40
4
58
14

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-977
SELECT - - 18 + + + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
117
28
65

skipif mysql # not compatible
query I rowsort label-977
SELECT - - 18 + + + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
117
28
65

onlyif mysql # DIV for integer division: 
query I rowsort label-978
SELECT + col0 DIV + col0 + col0 AS col1 FROM tab2 AS cor0
----
47
65
76

skipif mysql # not compatible
query I rowsort label-978
SELECT + col0 / + col0 + col0 AS col1 FROM tab2 AS cor0
----
47
65
76

query I rowsort
SELECT - 57 * - col1 * - + col1 * - 85 - - col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10702696
121210
949671

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

query I rowsort
SELECT ALL 34 + - 39 AS col1 FROM tab2 AS cor0
----
-5
-5
-5

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE - col2 >= NULL
----

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-985
SELECT + CAST( - + MIN( DISTINCT + ( - col0 ) ) AS SIGNED ) * - 70 + - ( + + 76 ) col2 FROM tab0 AS cor0
----
-6866

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-985
SELECT + CAST ( - + MIN ( DISTINCT + ( - col0 ) ) AS INTEGER ) * - 70 + - ( + + 76 ) col2 FROM tab0 AS cor0
----
-6866

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-988
SELECT + col0 DIV + col0 + - col1 FROM tab2 AS cor0
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-988
SELECT + col0 / + col0 + - col1 FROM tab2 AS cor0
----
-50
-66
-76

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

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

query I rowsort
SELECT DISTINCT 22 - col2 AS col2 FROM tab1
----
-37
-46
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT ALL - COUNT( ALL - - col1 ) * + ( 2 ) AS col2 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-991
SELECT ALL - COUNT ( ALL - - col1 ) * + ( 2 ) AS col2 FROM tab0
----
-6

query I rowsort
SELECT - ( + col0 ) + + + col1 AS col1 FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT DISTINCT + SUM( DISTINCT + 29 ) FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-993
SELECT DISTINCT + SUM ( DISTINCT + 29 ) FROM tab1
----
29

query I rowsort
SELECT col0 * - 14 AS col0 FROM tab2 cor0
----
-1050
-644
-896

query I rowsort
SELECT col1 - + ( - - 37 ) AS col0 FROM tab0 AS cor0
----
-16
-36
44

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

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

query I rowsort
SELECT 46 * - + 85 AS col2 FROM tab0
----
-3910
-3910
-3910

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

query I rowsort
SELECT + - 89 * 73 FROM tab1 AS cor0
----
-6497
-6497
-6497

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

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

query II rowsort
SELECT ALL + 82, col0 FROM tab1 AS cor0
----
82
51
82
85
82
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) < 20
----

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

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

query I rowsort
SELECT ALL + 87 * + - 21 AS col0 FROM tab0 AS cor0
----
-1827
-1827
-1827

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

query II rowsort
SELECT ALL 81 * - col0, - col0 AS col2 FROM tab1
----
-4131
-51
-6885
-85
-7371
-91

query I rowsort
SELECT ALL + col2 * - col2 * 14 FROM tab1
----
-129024
-48734
-64736

query I rowsort
SELECT - 13 * col1 FROM tab0
----
-1053
-13
-273

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 95 * + 11 NOT BETWEEN NULL AND NULL
----

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

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

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

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

query I rowsort
SELECT ALL 10 * + col2 - + col0 AS col0 FROM tab2 WHERE NOT + + col1 * - - col2 + - col0 = - col0
----
184
336
505

query I rowsort
SELECT ALL col0 + + + 85 FROM tab1
----
136
170
176

query I rowsort
SELECT ALL - 91 + + col2 AS col1 FROM tab2 cor0
----
-33
-51
-68

query I rowsort
SELECT DISTINCT - col1 + col2 + 59 FROM tab2 AS cor0
----
22
31
50

query I rowsort
SELECT ALL - + 36 + + col0 AS col0 FROM tab1 AS cor0
----
15
49
55

onlyif mysql # aggregate syntax: 
query II rowsort label-1019
SELECT DISTINCT + + 21 AS col1, SUM( col1 ) AS col0 FROM tab0 AS cor0
----
21
103

skipif mysql # not compatible
query II rowsort label-1019
SELECT DISTINCT + + 21 AS col1, SUM ( col1 ) AS col0 FROM tab0 AS cor0
----
21
103

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

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

query II rowsort
SELECT + 78 AS col1, - 64 FROM tab1
----
78
-64
78
-64
78
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-1023
SELECT 72 DIV + col1 AS col2 FROM tab0
----
0
3
72

skipif mysql # not compatible
query I rowsort label-1023
SELECT 72 / + col1 AS col2 FROM tab0
----
0
3
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1024
SELECT ALL - SUM( DISTINCT + 9 ) DIV + 42 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL - SUM ( DISTINCT + 9 ) / + 42 AS col2 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE - - 86 * + col1 + - + ( col1 ) NOT BETWEEN - col1 / + 16 * col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT DISTINCT COUNT( * ) * - MIN( DISTINCT + - 31 ) FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-1026
SELECT DISTINCT COUNT ( * ) * - MIN ( DISTINCT + - 31 ) FROM tab1
----
93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT + ( - - COUNT( * ) ) - 56 * COUNT( * ) col2 FROM tab0
----
-165

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT - COUNT( * ) - + COUNT( * ) * 23 * - COUNT( * ) FROM tab1
----
204

skipif mysql # not compatible
query I rowsort label-1030
SELECT - COUNT ( * ) - + COUNT ( * ) * 23 * - COUNT ( * ) FROM tab1
----
204

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - ( - 57 ) <> NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT + MAX( ALL col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1033
SELECT + MAX ( ALL col1 ) AS col2 FROM tab1 AS cor0
----
47

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

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

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

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

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

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

query I rowsort
SELECT ALL 78 * + col0 AS col2 FROM tab2
----
3588
4992
5850

query I rowsort
SELECT DISTINCT col2 * - + col2 AS col1 FROM tab2
----
-1600
-3364
-529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1041
SELECT - - 49 * - col2 + + + ( - CAST( - + 49 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-1078
-1911
-2793

skipif mysql # not compatible
query I rowsort label-1041
SELECT - - 49 * - col2 + + + ( - CAST ( - + 49 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-1078
-1911
-2793

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1044
SELECT + 90 * - - CAST( - ( + SUM( + 79 ) ) AS SIGNED ) FROM tab0
----
-21330

skipif mysql # not compatible
query I rowsort label-1044
SELECT + 90 * - - CAST ( - ( + SUM ( + 79 ) ) AS INTEGER ) FROM tab0
----
-21330

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

skipif mysql # not compatible
query I rowsort label-1045
SELECT DISTINCT - ( - 82 ) * - COUNT ( * ) FROM tab2
----
-246

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

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

query I rowsort
SELECT + - col0 - - 80 AS col1 FROM tab1 AS cor0
----
-11
-5
29

query II rowsort
SELECT DISTINCT col1 + + 43 AS col1, + col0 FROM tab0 AS cor0
----
124
15
44
97
64
87

query I rowsort
SELECT ALL - - col1 - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT + - col1 - - ( + - col2 ) FROM tab2 AS cor0
----
-117
-125
-74

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1052
SELECT + 12 + - MIN( - CAST( - col2 AS SIGNED ) ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1052
SELECT + 12 + - MIN ( - CAST ( - col2 AS INTEGER ) ) FROM tab1 AS cor0
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-1053
SELECT DISTINCT ( + + col0 ) + + col0 DIV - ( + col0 ) AS col0 FROM tab2 AS cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-1053
SELECT DISTINCT ( + + col0 ) + + col0 / - ( + col0 ) AS col0 FROM tab2 AS cor0
----
45
63
74

query I rowsort
SELECT + + 31 + - 56 AS col2 FROM tab0 AS cor0
----
-25
-25
-25

query I rowsort
SELECT DISTINCT - + 22 - - + 14 + + col0 FROM tab1 cor0
----
43
77
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT COUNT( 14 ) col1 FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1056
SELECT COUNT ( 14 ) col1 FROM tab0, tab2 AS cor0
----
9

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1058
SELECT ALL col2 DIV - 94 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1058
SELECT ALL col2 / - 94 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - col2 + - ( col1 ) AS col0 FROM tab0
----
-100
-128
-31

query I rowsort
SELECT col2 * 37 AS col2 FROM tab2
----
1480
2146
851

onlyif mysql # aggregate syntax: 
query I rowsort label-1061
SELECT DISTINCT + ( COUNT( * ) ) * MAX( ALL - col1 ) + - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1061
SELECT DISTINCT + ( COUNT ( * ) ) * MAX ( ALL - col1 ) + - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT COUNT( * ) col2 FROM tab1 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-1062
SELECT COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT DISTINCT - COUNT( * ) + - ( + ( + 41 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-50

skipif mysql # not compatible
query I rowsort label-1064
SELECT DISTINCT - COUNT ( * ) + - ( + ( + 41 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT - MAX( ALL - + 6 ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-1065
SELECT - MAX ( ALL - + 6 ) AS col1 FROM tab1
----
6

query II rowsort
SELECT ALL - - col1 AS col2, - col2 - + - 16 + - col0 * + 45 FROM tab0 AS cor0
----
1
-4448
21
-3909
81
-706

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> 11
----

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

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

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

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

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

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

query III rowsort
SELECT ALL - col2 AS col0, - col2 + ( + col0 ) AS col1, - + 48 * + 11 AS col1 FROM tab0 AS cor0
----
9 values hashing to f49995e1fcdeaad5f8b8c4560e9f5018

query I rowsort
SELECT col2 + col1 + - ( + col1 ) * + 71 AS col1 FROM tab2 AS cor0 WHERE NOT - ( col0 ) NOT IN ( - 22, + col2, col1, 63 )
----

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NULL > - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) + - col1 + col0 col0 FROM tab2
----
-56
-59
-90

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

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

query I rowsort
SELECT + col0 + + 4 AS col1 FROM tab1
----
55
89
95

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1081
SELECT AVG ( - + CAST ( NULL AS INTEGER ) ) col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT MIN( ALL - ( - col1 ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1082
SELECT MIN ( ALL - ( - col1 ) ) FROM tab2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-1083
SELECT ALL - 46 DIV - + col1 AS col2 FROM tab0
----
0
2
46

skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL - 46 / - + col1 AS col2 FROM tab0
----
0
2
46

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1086
SELECT DISTINCT - 95 DIV + + col2 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-1086
SELECT DISTINCT - 95 / + + col2 AS col1 FROM tab1
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1087
SELECT + 24 DIV - + 61 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1087
SELECT + 24 / - + 61 FROM tab2
----
0
0
0

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

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

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

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

query I rowsort
SELECT ALL + ( + - 98 ) AS col2 FROM tab1 cor0
----
-98
-98
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 83 col0 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
83
83
83

query I rowsort
SELECT ALL + - col0 * col1 + + + 62 AS col1 FROM tab0 AS cor0
----
-1153
-1765
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT 27 * - COUNT( * ) FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1093
SELECT 27 * - COUNT ( * ) FROM tab1 AS cor0
----
-81

query I rowsort
SELECT ALL - - col1 + + + col1 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT col0 + 19 * - + col1 FROM tab2
----
-1198
-1399
-923

query I rowsort
SELECT DISTINCT + 81 * - - col1 + - ( - 35 ) AS col0 FROM tab2
----
4166
5462
6272

query III rowsort
SELECT * FROM tab1 WHERE 99 < ( 36 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1098
SELECT - col0 + - - CAST( - 36 AS SIGNED ) FROM tab2
----
-100
-111
-82

skipif mysql # not compatible
query I rowsort label-1098
SELECT - col0 + - - CAST ( - 36 AS INTEGER ) FROM tab2
----
-100
-111
-82

query I rowsort
SELECT DISTINCT + col1 * col0 + 90 FROM tab1
----
4367
515
804

query I rowsort
SELECT ALL + 50 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 38 <= NULL
----

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

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

query I rowsort
SELECT ALL - col0 + - - ( + 59 ) * + 17 FROM tab2
----
928
939
957

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 * - col1 col2, 18 FROM tab0 AS cor0
----
1215
18
1827
18
97
18

query I rowsort
SELECT ALL + ( - + 81 ) / + col1 FROM tab1 cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT + 13 * - + col0 FROM tab1
----
-1105
-1183
-663

query II rowsort
SELECT + col0, col1 AS col2 FROM tab1
----
51
14
85
5
91
47

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

query I rowsort
SELECT DISTINCT + 12 * col1 AS col1 FROM tab1
----
168
564
60

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN 75 AND 36 * + + 70 * - 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT ALL - MIN( - 43 ) FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL - MIN ( - 43 ) FROM tab1
----
43

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

query II rowsort
SELECT + - col1 AS col2, - ( + 42 ) FROM tab0 AS cor0
----
-1
-42
-21
-42
-81
-42

query I rowsort
SELECT - 15 * - 11 + 91 FROM tab0
----
256
256
256

onlyif mysql # DIV for integer division: 
query II rowsort label-1119
SELECT 61 DIV + - 14 + 62 + - 61 AS col1, - 71 * + col1 FROM tab0 AS cor0
----
-3
-1491
-3
-5751
-3
-71

skipif mysql # not compatible
query II rowsort label-1119
SELECT 61 / + - 14 + 62 + - 61 AS col1, - 71 * + col1 FROM tab0 AS cor0
----
-3
-1491
-3
-5751
-3
-71

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) + + col1 col1 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1122
SELECT ALL - 20 FROM tab1 AS cor0 WHERE NOT - CAST( + - col1 AS SIGNED ) * - - 11 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1122
SELECT ALL - 20 FROM tab1 AS cor0 WHERE NOT - CAST ( + - col1 AS INTEGER ) * - - 11 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * 86 * col0 AS col1 FROM tab1
----
421056
431290
532168

query I rowsort
SELECT ALL + + col0 FROM tab2 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL 67 * - + col0 + 20 AS col2 FROM tab2
----
-3062
-4268
-5005

query I rowsort
SELECT DISTINCT + - col1 + + col1 AS col1 FROM tab1 WHERE - col1 * + 65 + + + 28 IS NOT NULL
----
0

query I rowsort
SELECT ALL + col0 + - 10 * col1 + + + col0 + - col2 AS col0 FROM tab1
----
-134
-356
61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT DISTINCT COUNT( * ) * MIN( DISTINCT + col2 ) + - 20 AS col0 FROM tab1
----
157

skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT COUNT ( * ) * MIN ( DISTINCT + col2 ) + - 20 AS col0 FROM tab1
----
157

query I rowsort
SELECT + - col1 + + 26 FROM tab0 AS cor0
----
-55
25
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 40 * - col0 + + col1 col1 FROM tab1 cor0
----
2054
3405
3687

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1133
SELECT ALL col0 + CAST( col2 AS SIGNED ) AS col0 FROM tab0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-1133
SELECT ALL col0 + CAST ( col2 AS INTEGER ) AS col0 FROM tab0
----
196
62
97

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

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

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

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

query II rowsort
SELECT DISTINCT + + 54 AS col0, col2 * 88 * - - col0 * + - col1 FROM tab2 cor0
----
54
-17346560
54
-25647600
54
-4748304

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT - 45 * - COUNT( * ) AS col2 FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-1140
SELECT - 45 * - COUNT ( * ) AS col2 FROM tab2
----
135

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

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

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

skipif mysql # not compatible
query I rowsort label-1142
SELECT DISTINCT - MIN ( ALL - - col0 ) FROM tab1
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 45 col2 FROM tab0
----
-3915
-4365
-675

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * - - 40 * - - 53 col0, - col1 col2 FROM tab0
----
-209880
-1
-21200
-21
-99640
-81

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

query I rowsort
SELECT ALL + + 77 * 53 + + col1 AS col0 FROM tab1 WHERE NOT + col1 - + col2 IN ( 10 + - col1, col0 )
----
4086
4095
4128

query I rowsort
SELECT DISTINCT - col0 * - - col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

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

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

query I rowsort
SELECT DISTINCT - + col2 * - 78 * - col2 * - col2 AS col2 FROM tab1 cor0
----
16019562
24525696
69009408

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1154
SELECT ALL + + CAST( COUNT( * ) AS SIGNED ) + + 50 AS col2 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-1154
SELECT ALL + + CAST ( COUNT ( * ) AS INTEGER ) + + 50 AS col2 FROM tab2 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT COUNT( * ) + + + MAX( DISTINCT + col2 ) FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-1155
SELECT COUNT ( * ) + + + MAX ( DISTINCT + col2 ) FROM tab0 AS cor0
----
102

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

query I rowsort
SELECT - col2 + + 67 FROM tab0
----
-32
20
57

query III rowsort
SELECT ALL * FROM tab0 WHERE + 48 = - ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1159
SELECT DISTINCT + ( 0 ) AS col0 FROM tab2 WHERE + - col0 BETWEEN NULL AND - CAST( NULL AS SIGNED ) / + ( col1 ) + - - 62 + - 60 * - - 86 + + + col0
----

skipif mysql # not compatible
query I rowsort label-1159
SELECT DISTINCT + ( 0 ) AS col0 FROM tab2 WHERE + - col0 BETWEEN NULL AND - CAST ( NULL AS INTEGER ) / + ( col1 ) + - - 62 + - 60 * - - 86 + + + col0
----

query I rowsort
SELECT DISTINCT + 95 - + 61 + - col0 AS col0 FROM tab1
----
-17
-51
-57

query III rowsort
SELECT * FROM tab2 WHERE 98 = NULL
----

query I rowsort
SELECT DISTINCT - 34 + - + 12 AS col0 FROM tab1
----
-46

query I rowsort
SELECT + 67 + - + col2 FROM tab0
----
-32
20
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1164
SELECT DISTINCT - 13 DIV + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-1164
SELECT DISTINCT - 13 / + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-4

query I rowsort
SELECT ( + col2 ) * + 42 AS col0 FROM tab1 AS cor0
----
2478
2856
4032

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1169
SELECT DISTINCT - 63 AS col1, ( + 44 ) DIV - + MAX( DISTINCT + + 70 ) * - + COUNT( * ) FROM tab2
----
-63
0

skipif mysql # not compatible
query II rowsort label-1169
SELECT DISTINCT - 63 AS col1, ( + 44 ) / - + MAX ( DISTINCT + + 70 ) * - + COUNT ( * ) FROM tab2
----
-63
0

query II rowsort
SELECT DISTINCT 72 AS col0, 33 AS col0 FROM tab0
----
72
33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT DISTINCT - COUNT( * ) * SUM( DISTINCT - + 97 ) FROM tab2 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-1172
SELECT DISTINCT - COUNT ( * ) * SUM ( DISTINCT - + 97 ) FROM tab2 AS cor0
----
291

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

query I rowsort
SELECT ALL - - col1 * 28 + - col0 AS col1 FROM tab1 AS cor0
----
1225
341
55

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1177
SELECT DISTINCT 22 * ( + col0 ) DIV col1 - - - 71 FROM tab0 AS cor0
----
-67
20
2063

skipif mysql # not compatible
query I rowsort label-1177
SELECT DISTINCT 22 * ( + col0 ) / col1 - - - 71 FROM tab0 AS cor0
----
-67
20
2063

query I rowsort
SELECT ALL - 0 * col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - + 9 * - - 24 AS col1 FROM tab0 WHERE NULL IS NULL
----
-216
-216
-216

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1181
SELECT col2 - col0 * - + ( col2 ) col2, + CAST( - + col0 AS SIGNED ) - + col2 FROM tab1
----
4992
-147
5074
-144
6256
-159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1181
SELECT col2 - col0 * - + ( col2 ) col2, + CAST ( - + col0 AS INTEGER ) - + col2 FROM tab1
----
4992
-147
5074
-144
6256
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT ALL COUNT( * ) * - - COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 WHERE + + 96 * + - col0 IS NOT NULL
----
27

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL COUNT ( * ) * - - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 WHERE + + 96 * + - col0 IS NOT NULL
----
27

query I rowsort
SELECT ALL col0 * + col2 + - col2 + + + col1 AS col0 FROM tab0
----
739
881
9505

query III rowsort
SELECT * FROM tab2 WHERE - - col2 <> - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT DISTINCT ( + ( + - col1 ) ) - + 8 AS col2 FROM tab2 AS cor0
----
-59
-75
-85

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

skipif mysql # not compatible
query II rowsort label-1188
SELECT ALL + COUNT ( * ), ( - COUNT ( + 6 ) ) AS col1 FROM tab0 AS cor0
----
3
-3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT ALL COUNT( * ) * - ( COUNT( ALL + col2 ) ) col1 FROM tab1
----
-9

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

query I rowsort
SELECT DISTINCT - 52 FROM tab2 WHERE NULL <> + col2
----

query I rowsort
SELECT - 39 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col0 + 97 * col1 FROM tab0
----
194
2124
7872

query I rowsort
SELECT ALL - ( + col1 ) + + 42 AS col2 FROM tab1
----
-5
28
37

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1198
SELECT - col2 + col1 DIV col2 FROM tab2
----
-21
-39
-57

skipif mysql # not compatible
query I rowsort label-1198
SELECT - col2 + col1 / col2 FROM tab2
----
-21
-39
-57

query I rowsort
SELECT - col0 + - 17 AS col0 FROM tab0
----
-104
-114
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT 85 + COUNT( ALL col0 ) AS col1 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-1200
SELECT 85 + COUNT ( ALL col0 ) AS col1 FROM tab1
----
88

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

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

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

skipif mysql # not compatible
query I rowsort label-1202
SELECT DISTINCT 16 + - COUNT ( * ) * 8 FROM tab1
----
-8

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) * + 48 + col2 * + col2 col2 FROM tab1
----
3721
6880
9888

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT MIN( ALL 20 ) * 46 + + 76 * 57 AS col2 FROM tab0
----
5252

skipif mysql # not compatible
query I rowsort label-1207
SELECT MIN ( ALL 20 ) * 46 + + 76 * 57 AS col2 FROM tab0
----
5252

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

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

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

query I rowsort
SELECT 42 * - col1 - - col1 FROM tab2
----
-2091
-2747
-3157

query I rowsort
SELECT - 62 / 13 AS col2 FROM tab2 WHERE NOT + 19 IS NOT NULL
----

query I rowsort
SELECT col2 * - col0 + + col1 AS col2 FROM tab0
----
-624
-849
-9602

query I rowsort
SELECT DISTINCT + 98 FROM tab2 WHERE ( col0 + + 31 * - ( + 26 * 68 ) ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN - 45 AND ( NULL )
----

query I rowsort
SELECT ALL - col1 - - col2 * col2 FROM tab1
----
3476
4577
9202

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT DISTINCT - 42 + - MIN( DISTINCT col1 + - col2 * + col1 ) FROM tab2
----
3777

skipif mysql # not compatible
query I rowsort label-1216
SELECT DISTINCT - 42 + - MIN ( DISTINCT col1 + - col2 * + col1 ) FROM tab2
----
3777

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT DISTINCT - MAX( col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1218
SELECT DISTINCT - MAX ( col0 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT 96 AS col1 FROM tab2 cor0
----
96

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( - col2 ) IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1222
SELECT ALL - CAST( col1 AS SIGNED ) * + 1 + col1 FROM tab1 WHERE ( NULL ) IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL - CAST ( col1 AS INTEGER ) * + 1 + col1 FROM tab1 WHERE ( NULL ) IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT DISTINCT COUNT( DISTINCT col0 ) AS col2 FROM tab0 WHERE NOT 22 * col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1223
SELECT DISTINCT COUNT ( DISTINCT col0 ) AS col2 FROM tab0 WHERE NOT 22 * col2 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 ) NOT BETWEEN col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( 16 ) AS col0 FROM tab2
----
16

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

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

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

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

query I rowsort
SELECT + col0 * - ( col1 + col0 * + 32 ) + 60 FROM tab0 AS cor0
----
-243975
-301125
-8355

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 84 > 65 * - 95
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1232
SELECT - col2 DIV 28 + - 84 DIV + col1 AS col0 FROM tab1 AS cor0
----
-18
-3
-9

skipif mysql # not compatible
query I rowsort label-1232
SELECT - col2 / 28 + - 84 / + col1 AS col0 FROM tab1 AS cor0
----
-18
-3
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-1233
SELECT + 85 + - col0 DIV + col1 AS col0 FROM tab1 AS cor0
----
68
82
84

skipif mysql # not compatible
query I rowsort label-1233
SELECT + 85 + - col0 / + col1 AS col0 FROM tab1 AS cor0
----
68
82
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1234
SELECT col2 + - + 6 + ( 84 + col1 DIV + col0 ) FROM tab2
----
102
119
136

skipif mysql # not compatible
query I rowsort label-1234
SELECT col2 + - + 6 + ( 84 + col1 / + col0 ) FROM tab2
----
102
119
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1235
SELECT + 54 DIV - MAX( col0 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1235
SELECT + 54 / - MAX ( col0 ) AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1236
SELECT SUM( DISTINCT - + col2 ) DIV 85 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1236
SELECT SUM ( DISTINCT - + col2 ) / 85 FROM tab0
----
-1

query I rowsort
SELECT ALL + 68 + - + col0 * + 92 FROM tab2
----
-4164
-5820
-6832

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1240
SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1241
SELECT - col0 DIV 62 + + col2 FROM tab2 WHERE ( 8 ) NOT BETWEEN col0 + col1 AND col1 - + col2 * - 12
----
23
39
57

skipif mysql # not compatible
query I rowsort label-1241
SELECT - col0 / 62 + + col2 FROM tab2 WHERE ( 8 ) NOT BETWEEN col0 + col1 AND col1 - + col2 * - 12
----
23
39
57

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

query I rowsort
SELECT 46 FROM tab0 WHERE 13 IS NULL
----

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

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5

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

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

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

query I rowsort
SELECT - 41 - ( + col0 ) * + col0 FROM tab1 AS cor0
----
-2642
-7266
-8322

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1250
SELECT ALL * FROM tab0 cor0 WHERE NOT + CAST( NULL AS SIGNED ) BETWEEN 42 AND NULL
----

skipif mysql # not compatible
query III rowsort label-1250
SELECT ALL * FROM tab0 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN 42 AND NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1252
SELECT DISTINCT + 60 * col0 + - CAST( 64 AS SIGNED ) FROM tab1 cor0 WHERE NULL IS NULL
----
2996
5036
5396

skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT + 60 * col0 + - CAST ( 64 AS INTEGER ) FROM tab1 cor0 WHERE NULL IS NULL
----
2996
5036
5396

query I rowsort
SELECT ALL + col2 * - - col1 * col1 AS col1 FROM tab2 AS cor0
----
237160
260362
59823

query I rowsort
SELECT DISTINCT 8 * 47 FROM tab2
----
376

query I rowsort
SELECT - 23 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

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

query I rowsort
SELECT DISTINCT - ( - col0 ) * + col1 + - 51 FROM tab0 WHERE ( 73 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1258
SELECT + + col2 col1, 76 DIV col2 FROM tab2 AS cor0
----
23
3
40
1
58
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1258
SELECT + + col2 col1, 76 / col2 FROM tab2 AS cor0
----
23
3
40
1
58
1

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

query II rowsort
SELECT + + col1, col2 * + + 24 + + col0 * - col2 FROM tab0 AS cor0
----
1
-7227
21
-630
81
423

query I rowsort
SELECT DISTINCT 98 - col1 FROM tab2 AS cor0 WHERE + col1 + col0 IS NOT NULL
----
21
31
47

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - 84 + - col2 ) = + 20
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE + col2 * 53 <> col2 + - col2
----
14
47
5

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT 1 = - col2
----
1
21
81

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

skipif mysql # not compatible
query I rowsort label-1266
SELECT ALL + 73 * + CAST ( NULL AS INTEGER ) * + 10 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 40 * - + col1 * + col0 FROM tab2
----
197120
201000
93840

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 NOT IN ( - 12 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1269
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + + col0 + CAST( NULL AS SIGNED ) <> + col0
----

skipif mysql # not compatible
query III rowsort label-1269
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + + col0 + CAST ( NULL AS INTEGER ) <> + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 73 + - ( - col0 ) col1 FROM tab1
----
3774
6290
6734

query I rowsort
SELECT DISTINCT col1 * 55 AS col0 FROM tab0 WHERE NOT - 81 * + - 23 * 73 IS NULL
----
1155
4455
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1272
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT + + col0 BETWEEN col2 - col0 AND ( NULL )
----

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

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

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

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT + - 31 / - + col1 NOT IN ( - col1 )
----

query I rowsort
SELECT + 8 * + col1 - + - 56 FROM tab2 AS cor0
----
464
592
672

onlyif mysql # aggregate syntax: 
query II rowsort label-1276
SELECT ALL - COUNT( DISTINCT col2 ), COUNT( * ) * + 75 AS col1 FROM tab0 cor0
----
-3
225

skipif mysql # not compatible
query II rowsort label-1276
SELECT ALL - COUNT ( DISTINCT col2 ), COUNT ( * ) * + 75 AS col1 FROM tab0 cor0
----
-3
225

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT COUNT( * ) + + + 31 AS col1 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-1279
SELECT COUNT ( * ) + + + 31 AS col1 FROM tab2
----
34

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1282
SELECT ALL - MAX ( - 98 ) AS col2 FROM tab0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT + + COUNT( + col0 ) * + MIN( + col0 ) AS col1 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-1283
SELECT + + COUNT ( + col0 ) * + MIN ( + col0 ) AS col1 FROM tab0 AS cor0
----
45

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

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

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

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

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

query I rowsort
SELECT + col2 * + col0 * - - col2 * - col1 + + col0 AS col2 FROM tab2 AS cor0
----
-1240988
-16904025
-7884736

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * - 45 <= - col0
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1290
SELECT DISTINCT - 54 * - col0 FROM tab1 cor0 WHERE NOT NULL BETWEEN ( + CAST( 65 AS DECIMAL ) ) AND - col0
----

skipif mysql # not compatible
query I rowsort label-1290
SELECT DISTINCT - 54 * - col0 FROM tab1 cor0 WHERE NOT NULL BETWEEN ( + CAST ( 65 AS REAL ) ) AND - col0
----

query III rowsort
SELECT * FROM tab1 WHERE + 95 = - - col1 - - col0
----

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

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

query I rowsort
SELECT - 71 + 50 AS col2 FROM tab2
----
-21
-21
-21

query I rowsort
SELECT DISTINCT ( - + col1 ) + - col1 + - + col0 AS col2 FROM tab0
----
-129
-177
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT + MIN( ALL - col0 ) * + 31 + 41 AS col2 FROM tab1
----
-2780

skipif mysql # not compatible
query I rowsort label-1295
SELECT + MIN ( ALL - col0 ) * + 31 + 41 AS col2 FROM tab1
----
-2780

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1298
SELECT - - 36 col0, - col2 DIV - col1 FROM tab0 AS cor0
----
36
0
36
0
36
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1298
SELECT - - 36 col0, - col2 / - col1 FROM tab0 AS cor0
----
36
0
36
0
36
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 * + col0 - 64 col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 66 AND NULL
----

query I rowsort
SELECT ALL - + col2 AS col1 FROM tab1 AS cor0 WHERE ( + + col1 IN ( + 38, col0 ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT DISTINCT + 70 - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----
70

skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT + 70 - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----
70

query I rowsort
SELECT - col2 / 77 FROM tab0 AS cor0 WHERE NOT ( - col1 + + - 9 / - col2 ) NOT IN ( col0 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 32 col2 FROM tab1
----
-37
-46
-79

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

query I rowsort
SELECT col2 + + + col0 + + + col1 * 14 AS col0 FROM tab1
----
214
343
817

query II rowsort
SELECT DISTINCT - col2 + col0 - col2 + - + 97 * + 37 * - 82, col0 FROM tab0
----
294197
97
294219
15
294365
87

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

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

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

query I rowsort
SELECT + 90 * + col1 AS col0 FROM tab0 cor0
----
1890
7290
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1313
SELECT ALL * FROM tab0 AS cor0 WHERE ( 69 * - col1 + - col1 ) IN ( - CAST( NULL AS SIGNED ) * 55 * col0 * - + col2 )
----

skipif mysql # not compatible
query III rowsort label-1313
SELECT ALL * FROM tab0 AS cor0 WHERE ( 69 * - col1 + - col1 ) IN ( - CAST ( NULL AS INTEGER ) * 55 * col0 * - + col2 )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1315
SELECT DISTINCT - 95 + 47 + - + MIN( + col1 ), COUNT( * ) * - ( + - MAX( + col2 ) ) AS col2 FROM tab1
----
-53
288

skipif mysql # not compatible
query II rowsort label-1315
SELECT DISTINCT - 95 + 47 + - + MIN ( + col1 ), COUNT ( * ) * - ( + - MAX ( + col2 ) ) AS col2 FROM tab1
----
-53
288

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + + + 94 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT 57 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-1319
SELECT 57 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
60

query I rowsort
SELECT 87 FROM tab0 AS cor0 WHERE NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1321
SELECT DISTINCT - col2 DIV col2 + - col0 AS col0 FROM tab2 AS cor0
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-1321
SELECT DISTINCT - col2 / col2 + - col0 AS col0 FROM tab2 AS cor0
----
-47
-65
-76

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 = 68
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1326
SELECT - col0 DIV + 32 FROM tab0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-1326
SELECT - col0 / + 32 FROM tab0
----
-2
-3
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1328
SELECT DISTINCT ( + + COUNT( DISTINCT + + 56 ) ) DIV - + 20 + + ( + COUNT( * ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1328
SELECT DISTINCT ( + + COUNT ( DISTINCT + + 56 ) ) / - + 20 + + ( + COUNT ( * ) ) AS col0 FROM tab2
----
3

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

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * 41 <> NULL
----

query II rowsort
SELECT DISTINCT + ( - col0 ), - col1 AS col1 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1333
SELECT + col1 DIV col1 AS col0, 60 FROM tab0 AS cor0
----
1
60
1
60
1
60

skipif mysql # not compatible
query II rowsort label-1333
SELECT + col1 / col1 AS col0, 60 FROM tab0 AS cor0
----
1
60
1
60
1
60

query I rowsort
SELECT + - col0 * - 91 AS col2 FROM tab2 AS cor0
----
4186
5824
6825

query I rowsort
SELECT ALL + 11 * - col2 FROM tab1 AS cor0
----
-1056
-649
-748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1336
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE NOT - CAST( - 60 AS SIGNED ) + - + 73 IN ( + - col2, - col2, + + col2 * - 62 )
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1336
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE NOT - CAST ( - 60 AS INTEGER ) + - + 73 IN ( + - col2, - col2, + + col2 * - 62 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT DISTINCT - + COUNT( * ) * + - 93 AS col1 FROM tab1 cor0
----
279

skipif mysql # not compatible
query I rowsort label-1337
SELECT DISTINCT - + COUNT ( * ) * + - 93 AS col1 FROM tab1 cor0
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT DISTINCT ( + SUM( ALL + 89 ) ) AS col0 FROM tab1, tab0 AS cor0
----
801

skipif mysql # not compatible
query I rowsort label-1338
SELECT DISTINCT ( + SUM ( ALL + 89 ) ) AS col0 FROM tab1, tab0 AS cor0
----
801

query I rowsort
SELECT + 92 * + ( + 22 ) FROM tab2
----
2024
2024
2024

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

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

query I rowsort
SELECT DISTINCT 60 + - col2 * + col0 + + col0 AS col2 FROM tab2
----
-2436
-4215
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT DISTINCT - MAX( - - col0 ) + + 87 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-1342
SELECT DISTINCT - MAX ( - - col0 ) + + 87 FROM tab2
----
12

query I rowsort
SELECT ALL + + 50 * + + col1 - + col2 AS col0 FROM tab0 AS cor0
----
-49
1040
4003

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

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

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

query II rowsort
SELECT col2, col0 - 12 + + col0 + - ( - col1 ) FROM tab1
----
59
163
68
217
96
104

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE + 86 - - 16 / + - 36 IS NOT NULL
----
10
47
99

query I rowsort
SELECT + col2 - - 27 - + - col2 + 99 AS col2 FROM tab1 AS cor0
----
244
262
318

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT DISTINCT - - COUNT( * ) - ( - 44 ) + + 1 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-1349
SELECT DISTINCT - - COUNT ( * ) - ( - 44 ) + + 1 FROM tab2 AS cor0
----
48

onlyif mysql # DIV for integer division: 
query II rowsort label-1350
SELECT DISTINCT ( - col1 ) DIV + col2 * - col0, + 92 AS col2 FROM tab1 AS cor0
----
0
92

skipif mysql # not compatible
query II rowsort label-1350
SELECT DISTINCT ( - col1 ) / + col2 * - col0, + 92 AS col2 FROM tab1 AS cor0
----
0
92

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

query I rowsort
SELECT DISTINCT + + col1 - - col1 FROM tab0 cor0
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1353
SELECT - + CAST( + ( + + col2 ) AS SIGNED ) AS col1 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1353
SELECT - + CAST ( + ( + + col2 ) AS INTEGER ) AS col1 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1354
SELECT DISTINCT CAST( - ( + + col0 ) AS SIGNED ) AS col0 FROM tab1
----
-51
-85
-91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT - 32 * + + COUNT( * ) AS col1 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-1355
SELECT - 32 * + + COUNT ( * ) AS col1 FROM tab2
----
-96

query II rowsort
SELECT + col1 * - - col0, + 58 AS col2 FROM tab0
----
1215
58
1827
58
97
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT MIN( + 36 ) AS col0 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-1357
SELECT MIN ( + 36 ) AS col0 FROM tab2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT COUNT( * ) * - 2 * - 75 AS col2 FROM tab0
----
450

skipif mysql # not compatible
query I rowsort label-1358
SELECT COUNT ( * ) * - 2 * - 75 AS col2 FROM tab0
----
450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1359
SELECT ALL - COUNT( * ) + - 2 + - 35 FROM tab1 WHERE - - CAST( NULL AS SIGNED ) <> col1
----
-37

skipif mysql # not compatible
query I rowsort label-1359
SELECT ALL - COUNT ( * ) + - 2 + - 35 FROM tab1 WHERE - - CAST ( NULL AS INTEGER ) <> col1
----
-37

query I rowsort
SELECT + 30 * + 96 FROM tab1 AS cor0
----
2880
2880
2880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1361
SELECT DISTINCT COUNT( * ) DIV 2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
4

skipif mysql # not compatible
query I rowsort label-1361
SELECT DISTINCT COUNT ( * ) / 2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT - MAX( DISTINCT + col0 ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-1362
SELECT - MAX ( DISTINCT + col0 ) AS col2 FROM tab2
----
-75

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

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

query I rowsort
SELECT - - col1 AS col1 FROM tab1 cor0 WHERE NOT ( 35 + + col2 ) BETWEEN 34 * - 97 * 44 * + 79 + - col2 AND NULL
----

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

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

query I rowsort
SELECT DISTINCT + 1 AS col1 FROM tab1 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT ALL - 43 * MAX( ALL col2 ) AS col0 FROM tab0 AS cor0
----
-4257

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL - 43 * MAX ( ALL col2 ) AS col0 FROM tab0 AS cor0
----
-4257

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

query I rowsort
SELECT DISTINCT 23 * + 15 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----

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

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

query II rowsort
SELECT - - col0 * - + 35 - + 71 * + 31 + - col0, col1 FROM tab0 AS cor0
----
-2741
81
-5333
21
-5693
1

query I rowsort
SELECT ALL - col2 + - + col0 AS col2 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # DIV for integer division: 
query I rowsort label-1373
SELECT col1 DIV + + col2 + - 53 + + col1 * col0 col1 FROM tab2
----
2295
4876
4973

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1373
SELECT col1 / + + col2 + - 53 + + col1 * col0 col1 FROM tab2
----
2295
4876
4973

query I rowsort
SELECT - 52 + + - col0 AS col2 FROM tab0
----
-139
-149
-67

query I rowsort
SELECT ALL + 64 - + - col0 FROM tab0 WHERE NULL IS NULL
----
151
161
79

query I rowsort
SELECT - 84 + - col2 * - col2 AS col2 FROM tab1
----
3397
4540
9132

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

query I rowsort
SELECT ALL + col2 + + 77 + + 12 AS col2 FROM tab2
----
112
129
147

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT DISTINCT COUNT( * ) - MAX( - 14 ) AS col1 FROM tab0 WHERE + 81 * - 95 + 0 = col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1379
SELECT DISTINCT COUNT ( * ) - MAX ( - 14 ) AS col1 FROM tab0 WHERE + 81 * - 95 + 0 = col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT - MIN( - 74 ) FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-1381
SELECT - MIN ( - 74 ) FROM tab1 AS cor0
----
74

query I rowsort
SELECT - 39 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1384
SELECT ALL + MAX( DISTINCT + - 45 ) AS col0, - COUNT( * ) FROM tab1 AS cor0
----
-45
-3

skipif mysql # not compatible
query II rowsort label-1384
SELECT ALL + MAX ( DISTINCT + - 45 ) AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
-45
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT ALL - SUM( ALL + + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-1386
SELECT ALL - SUM ( ALL + + col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1387
SELECT ALL - 48 FROM tab0 cor0 WHERE NOT col1 * + col2 / CAST( + col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL - 48 FROM tab0 cor0 WHERE NOT col1 * + col2 / CAST ( + col0 AS INTEGER ) IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT col2 * - + col1 AS col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-1391
SELECT ALL col1 DIV + - 93 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL col1 / + - 93 AS col0 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1392
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + COUNT( * ) / 46 FROM tab0 WHERE NOT - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1392
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) / 46 FROM tab0 WHERE NOT - col0 IS NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT DISTINCT - SUM( 40 ) AS col1 FROM tab0 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-1394
SELECT DISTINCT - SUM ( 40 ) AS col1 FROM tab0 AS cor0
----
-120

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

query I rowsort
SELECT DISTINCT - - col1 * - 62 * - + 53 + - col0 FROM tab2 AS cor0
----
167540
220087
252958

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1399
SELECT DISTINCT - col2 DIV - - CAST( - col2 AS SIGNED ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1399
SELECT DISTINCT - col2 / - - CAST ( - col2 AS INTEGER ) AS col0 FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1400
SELECT + 14 + - CAST( - col1 AS SIGNED ) AS col2 FROM tab0
----
15
35
95

skipif mysql # not compatible
query I rowsort label-1400
SELECT + 14 + - CAST ( - col1 AS INTEGER ) AS col2 FROM tab0
----
15
35
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT COUNT( + 59 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1401
SELECT COUNT ( + 59 ) FROM tab2
----
3

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 * + - col2 col2 FROM tab1
----
-4779
-5508
-7776

onlyif mysql # DIV for integer division: 
query I rowsort label-1405
SELECT - col0 DIV + col1 col0 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1405
SELECT - col0 / + col1 col0 FROM tab0 AS cor0
----
-4
-97
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1407
SELECT + + col1 DIV - - col2 AS col2, - 12 FROM tab0 cor0
----
0
-12
1
-12
2
-12

skipif mysql # not compatible
query II rowsort label-1407
SELECT + + col1 / - - col2 AS col2, - 12 FROM tab0 cor0
----
0
-12
1
-12
2
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-1408
SELECT ALL - col1 DIV + col2 + + col1 AS col0 FROM tab2 AS cor0
----
49
66
76

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL - col1 / + col2 + + col1 AS col0 FROM tab2 AS cor0
----
49
66
76

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

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

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

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

query I rowsort
SELECT ALL col0 * + - ( - col0 ) + + 99 FROM tab1
----
2700
7324
8380

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1412
SELECT DISTINCT 51 * + col2 + col1 + 15 * col2 * + CAST( NULL AS SIGNED ) AS col0, CAST( + - 98 AS SIGNED ) FROM tab0
----
NULL
-98

skipif mysql # not compatible
query II rowsort label-1412
SELECT DISTINCT 51 * + col2 + col1 + 15 * col2 * + CAST ( NULL AS INTEGER ) AS col0, CAST ( + - 98 AS INTEGER ) FROM tab0
----
NULL
-98

query I rowsort
SELECT ALL 79 + - col2 FROM tab0
----
-20
32
69

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

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

query I rowsort
SELECT ALL - col2 + 19 FROM tab2
----
-21
-39
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-1416
SELECT ALL col2 + 63 + - + col2 + col1 + + 41, 25 DIV - - col0 * + col1 AS col1 FROM tab1
----
109
0
118
0
151
0

skipif mysql # not compatible
query II rowsort label-1416
SELECT ALL col2 + 63 + - + col2 + col1 + + 41, 25 / - - col0 * + col1 AS col1 FROM tab1
----
109
0
118
0
151
0

query I rowsort
SELECT col0 + - 90 FROM tab0
----
-3
-75
7

query I rowsort
SELECT DISTINCT + col0 - + col2 * - col1 + - col2 AS col2 FROM tab1
----
1299
321
3219

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT - MAX( ALL - col0 ) + - COUNT( * ) FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-1420
SELECT - MAX ( ALL - col0 ) + - COUNT ( * ) FROM tab2 AS cor0
----
43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT ALL + SUM( ALL 95 ) FROM tab2, tab1 AS cor0 WHERE ( NULL ) IS NULL
----
855

skipif mysql # not compatible
query I rowsort label-1423
SELECT ALL + SUM ( ALL 95 ) FROM tab2, tab1 AS cor0 WHERE ( NULL ) IS NULL
----
855

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL 13 + - 17 + 40 AS col0 FROM tab0
----
36
36
36

query II rowsort
SELECT DISTINCT col0, col0 + col1 AS col2 FROM tab2
----
46
97
64
141
75
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 col2 FROM tab2 AS cor0 WHERE + 87 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT ALL SUM( ALL 12 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
36

skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL SUM ( ALL 12 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
36

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

skipif mysql # not compatible
query I rowsort label-1429
SELECT ALL + COUNT ( DISTINCT - col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + 2 * + + col2 - + 69 FROM tab0 AS cor0
----
-49
129
25

query I rowsort
SELECT DISTINCT 60 * + col0 FROM tab2 cor0
----
2760
3840
4500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1432
SELECT ALL + COUNT( * ) * - + COUNT( * ) + 0 DIV - COUNT( * ) * + - 84 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1432
SELECT ALL + COUNT ( * ) * - + COUNT ( * ) + 0 / - COUNT ( * ) * + - 84 FROM tab1 cor0
----
-9

query I rowsort
SELECT DISTINCT 52 * + 93 AS col0 FROM tab0
----
4836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1434
SELECT - CAST( NULL AS SIGNED ) / + col1 * + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1434
SELECT - CAST ( NULL AS INTEGER ) / + col1 * + col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - 85 BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT - col2 * + + col0 AS col1, col1 AS col0 FROM tab0
----
-705
81
-870
21
-9603
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1437
SELECT col1 DIV - + 96 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1437
SELECT col1 / - + 96 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT 25 - + ( 42 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 <> - col2 / - - 25
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 NOT BETWEEN - col0 + 51 AND + 34 + + col1 + - col0
----

query I rowsort
SELECT ALL + 13 + + + col1 AS col0 FROM tab1
----
18
27
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1442
SELECT DISTINCT + MIN( col0 ) + COUNT( * ) * - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1442
SELECT DISTINCT + MIN ( col0 ) + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - 32 + + - col1 FROM tab1 AS cor0
----
-37
-46
-79

query I rowsort
SELECT + 72 * col1 + - col2 FROM tab0 AS cor0
----
-27
1502
5785

query I rowsort
SELECT col0 + + - col2 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT + col1 + - 83 + + + 22 AS col0 FROM tab1 AS cor0
----
-14
-47
-56

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col1 + + + 82 > - col2 * - + col1 * col1
----

query I rowsort
SELECT ALL - col1 + - 31 * - 53 FROM tab2
----
1566
1576
1592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1449
SELECT DISTINCT col0 / col1 + ( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT col0 / col1 + ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT col2 * - + ( 11 ) FROM tab1
----
-1056
-649
-748

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1451
SELECT * FROM tab2 WHERE + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1451
SELECT * FROM tab2 WHERE + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1452
SELECT ALL - CAST( NULL AS DECIMAL ) + + 6 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1452
SELECT ALL - CAST ( NULL AS REAL ) + + 6 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT + col2 - - 87 AS col2, col0 FROM tab0 cor0
----
134
15
186
97
97
87

query II rowsort
SELECT - + col1 AS col1, - col1 * + + col2 + - col2 AS col2 FROM tab1 AS cor0 WHERE col0 * + col1 BETWEEN NULL AND - 30
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 55 IS NOT NULL
----

query II rowsort
SELECT ALL - col0 + - col0, + col0 FROM tab0 AS cor0
----
-174
87
-194
97
-30
15

query I rowsort
SELECT - 4 * + - col2 / - + 61 AS col1 FROM tab1 AS cor0 WHERE NOT + 91 >= + col1
----

query I rowsort
SELECT DISTINCT + + ( - - col1 ) FROM tab0 AS cor0 WHERE NOT - col1 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 23 * - col1 > + 77 / + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1460
SELECT + + COUNT( * ) col2, 39 FROM tab1 AS cor0
----
3
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1460
SELECT + + COUNT ( * ) col2, 39 FROM tab1 AS cor0
----
3
39

query I rowsort
SELECT ALL 58 * col2 * + col2 FROM tab1 AS cor0 WHERE ( + 37 - - 57 IS NOT NULL )
----
201898
268192
534528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1462
SELECT - MIN( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1462
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1463
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= + col1 + col0 * + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1463
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= + col1 + col0 * + CAST ( NULL AS REAL )
----

query II rowsort
SELECT + col0 AS col2, + col1 AS col2 FROM tab2 cor0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT ALL + + MAX( col0 ) * + MIN( ALL + - col2 ) FROM tab0 AS cor0
----
-9603

skipif mysql # not compatible
query I rowsort label-1465
SELECT ALL + + MAX ( col0 ) * + MIN ( ALL + - col2 ) FROM tab0 AS cor0
----
-9603

query I rowsort
SELECT DISTINCT 83 * + 83 FROM tab2
----
6889

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT + ( + - SUM( DISTINCT - col2 ) ) col0 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1467
SELECT + ( + - SUM ( DISTINCT - col2 ) ) col0 FROM tab2
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1468
SELECT ALL - col0 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL - col0 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT ALL - MAX( ALL - col0 ) col2 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1469
SELECT ALL - MAX ( ALL - col0 ) col2 FROM tab0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 AS col2, col1 * - + 26 col1 FROM tab2
----
51
-1326
67
-1742
77
-2002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1471
SELECT DISTINCT CAST( + ( - 61 ) AS SIGNED ) FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-1471
SELECT DISTINCT CAST ( + ( - 61 ) AS INTEGER ) FROM tab0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT - ( COUNT( * ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1472
SELECT - ( COUNT ( * ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT - col1 * + - 2 FROM tab0
----
162
2
42

query II rowsort
SELECT DISTINCT + col2, 64 - + col1 FROM tab1
----
59
59
68
17
96
50

query II rowsort
SELECT col0, 80 AS col2 FROM tab1
----
51
80
85
80
91
80

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( + + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 58 + col0 col2 FROM tab2 AS cor0
----
2714
3776
4425

query I rowsort
SELECT + col0 * ( 91 ) AS col0 FROM tab0 AS cor0
----
1365
7917
8827

query I rowsort
SELECT - ( col2 ) + 26 FROM tab1 AS cor0
----
-33
-42
-70

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 cor0 WHERE col1 * + 11 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + col2, + 60 )
----

query I rowsort
SELECT - col1 * - + col0 - col1 FROM tab0 AS cor0
----
1134
1806
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 * + col1 col2 FROM tab1 AS cor0
----
2397
255
714

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT DISTINCT - COUNT( * ) * 26 AS col2 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-1484
SELECT DISTINCT - COUNT ( * ) * 26 AS col2 FROM tab0 AS cor0
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1485
SELECT + + COUNT( * ) * - COUNT( * ) AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-1485
SELECT + + COUNT ( * ) * - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
-9
NULL

query I rowsort
SELECT DISTINCT + 56 * + ( 40 ) AS col1 FROM tab1 AS cor0
----
2240

onlyif mysql # DIV for integer division: 
query I rowsort label-1487
SELECT + col1 DIV ( col0 ) AS col0 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-1487
SELECT + col1 / ( col0 ) AS col0 FROM tab0 AS cor0
----
0
0
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1488
SELECT ALL 33 DIV ( COUNT( * ) ) AS col1 FROM tab0 cor0
----
11

skipif mysql # not compatible
query I rowsort label-1488
SELECT ALL 33 / ( COUNT ( * ) ) AS col1 FROM tab0 cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT DISTINCT - 87 + + 18 * SUM( + + col0 ) + - COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
3252

skipif mysql # not compatible
query I rowsort label-1489
SELECT DISTINCT - 87 + + 18 * SUM ( + + col0 ) + - COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
3252

query III rowsort
SELECT * FROM tab1 WHERE 69 * + col0 - - 46 - + 69 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1491
SELECT ALL 54 DIV + 66 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL 54 / + 66 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1492
SELECT + 20 + + COUNT( * ) + - 20 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1492
SELECT + 20 + + COUNT ( * ) + - 20 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1493
SELECT ALL + CAST( NULL AS SIGNED ) + - + 32 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL + CAST ( NULL AS INTEGER ) + - + 32 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1494
SELECT col2 * col2 + + col0 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1494
SELECT col2 * col2 + + col0 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - - col2 ) + - col0 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT ALL - col0 - + + 53 AS col1 FROM tab0
----
-140
-150
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1497
SELECT + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1497
SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 74 + - 70 + - 42 col2 FROM tab1
----
-38

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 col1 FROM tab2 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT - 96 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to c89b545346f99713888a7934e4caa539

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT - COUNT( - 9 ) * - 87 * - 68 + + ( - - COUNT( * ) ) * - - 43 - - 20 AS col2 FROM tab0
----
-17599

skipif mysql # not compatible
query I rowsort label-1502
SELECT - COUNT ( - 9 ) * - 87 * - 68 + + ( - - COUNT ( * ) ) * - - 43 - - 20 AS col2 FROM tab0
----
-17599

query I rowsort
SELECT DISTINCT - - 99 AS col1 FROM tab1 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 col0 FROM tab2
----
80

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 BETWEEN + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab0 WHERE NOT - + col1 * - - 32 IS NULL
----
1
21
81

query II rowsort
SELECT DISTINCT col0, - 47 FROM tab1
----
51
-47
85
-47
91
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT ALL SUM( DISTINCT - + 61 ) AS col2 FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-1508
SELECT ALL SUM ( DISTINCT - + 61 ) AS col2 FROM tab0
----
-61

query II rowsort
SELECT DISTINCT + + ( + col1 ) * 77 AS col0, 29 AS col1 FROM tab1 AS cor0
----
1078
29
3619
29
385
29

query I rowsort
SELECT ALL ( - 8 ) * + ( - 65 ) FROM tab1 AS cor0
----
520
520
520

query II rowsort
SELECT + - col1 AS col0, + col1 + + 90 FROM tab0 AS cor0
----
-1
91
-21
111
-81
171

query I rowsort
SELECT ALL - 27 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT - COUNT( DISTINCT + col0 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1513
SELECT - COUNT ( DISTINCT + col0 ) AS col0 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - + col2 + 4
----

query I rowsort
SELECT - - 30 + - col2 FROM tab0 AS cor0
----
-17
-69
20

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 47 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1517
SELECT ALL + COUNT( * ) DIV + SUM( 3 ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL + COUNT ( * ) / + SUM ( 3 ) AS col1 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-1518
SELECT DISTINCT - 4, - SUM( + ( - col0 ) ) AS col2, - - 58 col1 FROM tab0 AS cor0
----
-4
199
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-1518
SELECT DISTINCT - 4, - SUM ( + ( - col0 ) ) AS col2, - - 58 col1 FROM tab0 AS cor0
----
-4
199
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1519
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col2 * + col1 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1519
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col2 * + col1 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 86 * + col1 FROM tab2 AS cor0
----
4386
5762
6622

query II rowsort
SELECT ALL - 73 AS col2, - col1 AS col1 FROM tab2 AS cor0
----
-73
-51
-73
-67
-73
-77

query I rowsort
SELECT ALL ( - col2 ) FROM tab2 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT - col2 * - 27 FROM tab0
----
1269
2673
270

query III rowsort
SELECT DISTINCT + col2 + + 69 AS col1, col2 + 77 + col0 AS col0, - col0 FROM tab1
----
9 values hashing to 0cfe2e95e08a47ce14036bc0821668d7

onlyif mysql # DIV for integer division: 
query I rowsort label-1525
SELECT ALL + col0 DIV col1 + col1 AS col2 FROM tab1
----
17
22
48

skipif mysql # not compatible
query I rowsort label-1525
SELECT ALL + col0 / col1 + col1 AS col2 FROM tab1
----
17
22
48

query I rowsort
SELECT - col0 * 75 * col1 FROM tab1
----
-31875
-320775
-53550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 10 col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1528
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

query I rowsort
SELECT DISTINCT 55 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
55

query II rowsort
SELECT ALL + 34 AS col1, + col2 AS col2 FROM tab1 AS cor0
----
34
59
34
68
34
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1531
SELECT + CAST( - - 5 AS SIGNED ) FROM tab1 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-1531
SELECT + CAST ( - - 5 AS INTEGER ) FROM tab1 AS cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT ALL MAX( ALL + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-1532
SELECT ALL MAX ( ALL + col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1533
SELECT + 77 DIV + - col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-1533
SELECT + 77 / + - col0 FROM tab0 AS cor0
----
-5
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 51 col0, - col2 AS col1 FROM tab2 WHERE + 14 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 NOT IN ( + - ( col0 ), - 66 )
----

query I rowsort
SELECT DISTINCT - 37 * col1 AS col2 FROM tab1
----
-1739
-185
-518

query I rowsort
SELECT DISTINCT + 20 AS col0 FROM tab0
----
20

query I rowsort
SELECT 94 * - col1 FROM tab0
----
-1974
-7614
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT ALL COUNT( * ) * - 61 AS col0 FROM tab0
----
-183

skipif mysql # not compatible
query I rowsort label-1539
SELECT ALL COUNT ( * ) * - 61 AS col0 FROM tab0
----
-183

query I rowsort
SELECT col1 + - + col0 AS col2 FROM tab2 cor0
----
-8
13
5

query III rowsort
SELECT * FROM tab2 WHERE - + col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1542
SELECT + CAST( 44 AS SIGNED ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1542
SELECT + CAST ( 44 AS INTEGER ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 20 col0, 55 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 01206e4b4f5b2b0af651259fd79b7c6d

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT ALL - COUNT( + col2 ) + + 91 AS col2 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL - COUNT ( + col2 ) + + 91 AS col2 FROM tab1 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT - - ( + COUNT( * ) ) - + 66 AS col1 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-1545
SELECT - - ( + COUNT ( * ) ) - + 66 AS col1 FROM tab2 AS cor0
----
-63

query I rowsort
SELECT ALL + + 78 AS col2 FROM tab1 AS cor0
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1547
SELECT 73 FROM tab0 WHERE NOT - col2 BETWEEN ( + ( CAST( NULL AS SIGNED ) ) + + col1 + 63 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-1547
SELECT 73 FROM tab0 WHERE NOT - col2 BETWEEN ( + ( CAST ( NULL AS INTEGER ) ) + + col1 + 63 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 * + col1 col1 FROM tab0
----
1701
6561
81

query I rowsort
SELECT ALL - 97 * + 40 FROM tab1
----
-3880
-3880
-3880

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT DISTINCT SUM( - 3 ) * - 24 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-1550
SELECT DISTINCT SUM ( - 3 ) * - 24 FROM tab1
----
216

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 14 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-1552
SELECT - COUNT( * ) AS col1, + 48 FROM tab2
----
-3
48

skipif mysql # not compatible
query II rowsort label-1552
SELECT - COUNT ( * ) AS col1, + 48 FROM tab2
----
-3
48

query I rowsort
SELECT ( + 59 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT ( + + ( + ( + col0 ) ) ) * + 65 FROM tab0
----
5655
6305
975

onlyif mysql # DIV for integer division: 
query I rowsort label-1555
SELECT ALL 94 DIV + col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL 94 / + col1 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT + COUNT( * ) + COUNT( * ) AS col1 FROM tab2 WHERE NOT - 95 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1556
SELECT + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 WHERE NOT - 95 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 49 + col2 BETWEEN NULL AND - col2 + + - 69
----

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE - col0 + + + 65 IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + + 22 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT DISTINCT + SUM( ALL col2 ) AS col1 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT + SUM ( ALL col2 ) AS col1 FROM tab0 cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT - COUNT( * ) + - COUNT( ALL + 4 ) col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1561
SELECT - COUNT ( * ) + - COUNT ( ALL + 4 ) col0 FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT ALL ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE + col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1562
SELECT ALL ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE + col1 < NULL
----
0

query I rowsort
SELECT 72 + + col1 FROM tab1 AS cor0
----
119
77
86

query I rowsort
SELECT + col0 + - - col0 FROM tab0
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1565
SELECT ALL + ( + 39 ) + + 88 AS col1 FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1565
SELECT ALL + ( + 39 ) + + 88 AS col1 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 + + 4 * - + ( 96 ) col1 FROM tab0
----
-308
-308
-308

query I rowsort
SELECT DISTINCT 51 + 61 FROM tab1
----
112

query II rowsort
SELECT DISTINCT + col1, - col0 AS col2 FROM tab0
----
1
-97
21
-87
81
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-1569
SELECT ALL + 89 DIV col1 + + col0 AS col0 FROM tab0
----
16
186
91

skipif mysql # not compatible
query I rowsort label-1569
SELECT ALL + 89 / col1 + + col0 AS col0 FROM tab0
----
16
186
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 + col0 col1 FROM tab2
----
145
163
174

query I rowsort
SELECT ALL ( + - 93 ) AS col2 FROM tab2
----
-93
-93
-93

query I rowsort
SELECT DISTINCT col2 + 9 AS col0 FROM tab2
----
32
49
67

query II rowsort
SELECT 38 AS col0, + 51 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

query I rowsort
SELECT + 2 - + + col2 FROM tab1 AS cor0
----
-57
-66
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT - 72 * - COUNT( * ) * + 41 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
26568

skipif mysql # not compatible
query I rowsort label-1576
SELECT - 72 * - COUNT ( * ) * + 41 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
26568

query II rowsort
SELECT ALL + 31 + col2 AS col2, col2 * - ( 85 ) AS col1 FROM tab1
----
127
-8160
90
-5015
99
-5780

query I rowsort
SELECT ALL ( + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col2 - + ( - col0 ) FROM tab1 cor0
----
144
147
159

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 = NULL
----

query I rowsort
SELECT DISTINCT + col1 * - + col1 * + - 78 * + 71 - - col2 AS col2 FROM tab0 AS cor0 WHERE NOT col1 BETWEEN ( col1 * - col0 ) AND - 18
----
2442268
36334865
5637

query I rowsort
SELECT col1 * - 31 AS col0 FROM tab2 AS cor0
----
-1581
-2077
-2387

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT ALL - COUNT( * ) * + ( 14 ) FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-1583
SELECT ALL - COUNT ( * ) * + ( 14 ) FROM tab1 AS cor0
----
-42

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN - - 71 AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 * + + col0 col0 FROM tab1
----
-3570
-5950
-6370

query I rowsort
SELECT ALL + + col2 + - + col0 FROM tab1 WHERE 32 IS NOT NULL
----
-23
-26
45

query II rowsort
SELECT DISTINCT - col2, - col1 AS col2 FROM tab0 AS cor0
----
-10
-21
-47
-81
-99
-1

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-14
-47
-5

query I rowsort
SELECT + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 > + col1
----
-10
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT DISTINCT + 12 * + COUNT( - col1 ) AS col0 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-1590
SELECT DISTINCT + 12 * + COUNT ( - col1 ) AS col0 FROM tab0 AS cor0
----
36

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1592
SELECT ALL + 71 - CAST( + COUNT( * ) AS SIGNED ) FROM tab1 WHERE NULL = NULL
----
71

skipif mysql # not compatible
query I rowsort label-1592
SELECT ALL + 71 - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 WHERE NULL = NULL
----
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, + col2 col1 FROM tab2
----
46
23
64
40
75
58

query I rowsort
SELECT DISTINCT 53 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
53

query II rowsort
SELECT DISTINCT - - col2 AS col0, col1 AS col0 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query III rowsort label-1596
SELECT + - 42 AS col1, + 10 + - 10 + 78 + + ( ( + COUNT( * ) ) ) AS col0, + - COUNT( DISTINCT - - col1 ) AS col0 FROM tab2 AS cor0
----
-42
81
-3

skipif mysql # not compatible
query III rowsort label-1596
SELECT + - 42 AS col1, + 10 + - 10 + 78 + + ( ( + COUNT ( * ) ) ) AS col0, + - COUNT ( DISTINCT - - col1 ) AS col0 FROM tab2 AS cor0
----
-42
81
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT SUM( + - ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-1597
SELECT SUM ( + - ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL + col0 * col0 * col1 AS col0 FROM tab1 AS cor0
----
36125
36414
389207

query I rowsort
SELECT DISTINCT - col1 + - - col2 AS col0 FROM tab0 cor0
----
-11
-34
98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 61 * + 79 * + 31 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 + + col0 + + - 5 AS col0 FROM tab0
----
-71
61
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1602
SELECT DISTINCT col1 + - col0 DIV + - col1 col2 FROM tab1
----
17
22
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1602
SELECT DISTINCT col1 + - col0 / + - col1 col2 FROM tab1
----
17
22
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT ALL - ( + COUNT( * ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL - ( + COUNT ( * ) ) AS col0 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + 54 + - col1 AS col2, - 26 col0 FROM tab0
----
-108
-26
12
-26
52
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT DISTINCT COUNT( - col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1605
SELECT DISTINCT COUNT ( - col0 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + 13 * + col0 + - col0 AS col2 FROM tab0 AS cor0
----
1044
1164
180

onlyif mysql # DIV for integer division: 
query I rowsort label-1607
SELECT ALL + 58 + ( + 55 ) DIV - col0 FROM tab0
----
55
58
58

skipif mysql # not compatible
query I rowsort label-1607
SELECT ALL + 58 + ( + 55 ) / - col0 FROM tab0
----
55
58
58

query I rowsort
SELECT DISTINCT + col1 + col1 + 86 FROM tab2
----
188
220
240

query I rowsort
SELECT ALL + col2 + - - 80 AS col1 FROM tab2
----
103
120
138

query II rowsort
SELECT ALL + col0 AS col0, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE ( NOT + col2 IS NULL )
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + 24 * + + 66 AS col1 FROM tab0 AS cor0
----
1584

query II rowsort
SELECT DISTINCT + col0, - col2 - + col2 FROM tab0 cor0
----
15
-94
87
-20
97
-198

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1614
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 <= - - 86 * col2 + - col2 / + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1614
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 <= - - 86 * col2 + - col2 / + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ( - 30 ) * - col2 FROM tab0 AS cor0
----
1410
2970
300

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 18 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) NOT IN ( col2, + col2 * - + 62 + + col0 * col1 )
----

query I rowsort
SELECT 37 * - col0 AS col0 FROM tab1
----
-1887
-3145
-3367

query I rowsort
SELECT 73 FROM tab2 WHERE NOT ( + col2 ) + col1 IS NULL
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT - ( SUM( + col1 ) ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-1620
SELECT - ( SUM ( + col1 ) ) FROM tab1 AS cor0
----
-66

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + + col0 * col1 col2 FROM tab0 AS cor0
----
1296
1848
98

query I rowsort
SELECT - 87 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT + col0 * + 35 FROM tab1
----
1785
2975
3185

query I rowsort
SELECT ALL + - col1 * + col2 * - 78 * - 25 FROM tab2 cor0
----
-2287350
-6006000
-7577700

query I rowsort
SELECT DISTINCT - 49 * - 71 + - col2 FROM tab1 AS cor0
----
3383
3411
3420

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT DISTINCT - + COUNT( * ) * 8 FROM tab1 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-1627
SELECT DISTINCT - + COUNT ( * ) * 8 FROM tab1 cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT ALL SUM( ALL col0 ) * 1 * - + 80 AS col2 FROM tab0 AS cor0
----
-15920

skipif mysql # not compatible
query I rowsort label-1628
SELECT ALL SUM ( ALL col0 ) * 1 * - + 80 AS col2 FROM tab0 AS cor0
----
-15920

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-1630
SELECT DISTINCT - 40 DIV + 59 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1630
SELECT DISTINCT - 40 / + 59 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1631
SELECT ALL - + CAST( + col0 AS SIGNED ) + + - ( - 44 ) FROM tab1 AS cor0
----
-41
-47
-7

skipif mysql # not compatible
query I rowsort label-1631
SELECT ALL - + CAST ( + col0 AS INTEGER ) + + - ( - 44 ) FROM tab1 AS cor0
----
-41
-47
-7

query I rowsort
SELECT ( + + ( 44 ) ) + + 13 FROM tab1
----
57
57
57

onlyif mysql # DIV for integer division: 
query I rowsort label-1633
SELECT DISTINCT col0 DIV + + 49 + 69 AS col2 FROM tab0
----
69
70

skipif mysql # not compatible
query I rowsort label-1633
SELECT DISTINCT col0 / + + 49 + 69 AS col2 FROM tab0
----
69
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 col0 FROM tab2
----
98
98
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 53 - 45 col2 FROM tab2
----
8
8
8

query I rowsort
SELECT DISTINCT - 19 * 75 AS col0 FROM tab1
----
-1425

query I rowsort
SELECT DISTINCT col1 * + + col2 + + col2 + - + col0 AS col0 FROM tab1 AS cor0
----
1389
269
3173

query II rowsort
SELECT col0, - col2 AS col0 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 90 - col0 col1 FROM tab0 AS cor0
----
-7
3
75

query I rowsort
SELECT - 81 - - col2 FROM tab1 AS cor0
----
-13
-22
15

query I rowsort
SELECT + - col1 - 90 FROM tab2 AS cor0
----
-141
-157
-167

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - - 54 + + 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT - COUNT( * ) - - 68 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-1643
SELECT - COUNT ( * ) - - 68 FROM tab2 AS cor0
----
65

query II rowsort
SELECT ALL col2 AS col0, 66 AS col0 FROM tab0 AS cor0
----
10
66
47
66
99
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT DISTINCT COUNT( - ( - 5 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1645
SELECT DISTINCT COUNT ( - ( - 5 ) ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT col2 * + col1 * - 81 FROM tab2
----
-249480
-314766
-95013

onlyif mysql # aggregate syntax: 
query II rowsort label-1647
SELECT ALL - COUNT( + - col0 ) AS col2, + 27 FROM tab0 AS cor0
----
-3
27

skipif mysql # not compatible
query II rowsort label-1647
SELECT ALL - COUNT ( + - col0 ) AS col2, + 27 FROM tab0 AS cor0
----
-3
27

query I rowsort
SELECT ALL - - 83 FROM tab1 AS cor0
----
83
83
83

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN NULL AND - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + + col0 - - - ( col2 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT 95 AS col0, 13 FROM tab1
----
95
13

query I rowsort
SELECT ALL + 60 * + col2 * + col1 AS col1 FROM tab2
----
184800
233160
70380

query I rowsort
SELECT DISTINCT col0 + - col2 * - + col2 FROM tab2 cor0
----
1664
3439
575

query I rowsort
SELECT ALL - col1 + - + col0 AS col2 FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 16 * + 93 + - col2 / col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 99 * 74 AS col2 FROM tab1
----
-7326
-7326
-7326

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1658
SELECT ALL * FROM tab1 WHERE CAST( ( - col1 ) AS SIGNED ) * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1658
SELECT ALL * FROM tab1 WHERE CAST ( ( - col1 ) AS INTEGER ) * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE - 77 * col1 + + col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL >= col0 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT COUNT( * ) * 35 col1 FROM tab1
----
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1661
SELECT COUNT ( * ) * 35 col1 FROM tab1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT COUNT( col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1662
SELECT COUNT ( col1 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT ALL 68 + + SUM( DISTINCT 52 ) AS col1 FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-1663
SELECT ALL 68 + + SUM ( DISTINCT 52 ) AS col1 FROM tab2
----
120

query III rowsort
SELECT * FROM tab1 WHERE - col1 * - col1 IS NULL
----

query I rowsort
SELECT + col2 FROM tab2 WHERE 65 + - col1 IS NOT NULL
----
23
40
58

query I rowsort
SELECT - col1 + - 24 AS col2 FROM tab2
----
-101
-75
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + AVG ( + col2 ) col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1668
SELECT COUNT( * ) + MIN( DISTINCT + 46 ) AS col0 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-1668
SELECT COUNT ( * ) + MIN ( DISTINCT + 46 ) AS col0 FROM tab2
----
49

query I rowsort
SELECT ALL + ( - col1 ) * col2 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT 12 * - col1 + + 1 FROM tab0
----
-11
-251
-971

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 WHERE - 73 * col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1672
SELECT - col1 DIV - 31 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1672
SELECT - col1 / - 31 FROM tab1
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1673
SELECT + 72 DIV - 95 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1673
SELECT + 72 / - 95 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE ( NULL ) >= ( col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1675
SELECT + COUNT( * ) DIV 84 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1675
SELECT + COUNT ( * ) / 84 AS col1 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1676
SELECT DISTINCT - col0 + col2 DIV col2 col0 FROM tab2 WHERE NULL IS NULL
----
-45
-63
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1676
SELECT DISTINCT - col0 + col2 / col2 col0 FROM tab2 WHERE NULL IS NULL
----
-45
-63
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1677
SELECT + CAST( col1 AS SIGNED ) / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1677
SELECT + CAST ( col1 AS INTEGER ) / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1678
SELECT - CAST( NULL AS SIGNED ) * + 69 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1678
SELECT - CAST ( NULL AS INTEGER ) * + 69 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 35 + - col1 FROM tab0
----
-46
14
34

query I rowsort
SELECT col1 + + 18 AS col2 FROM tab2
----
69
85
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT DISTINCT 41 * COUNT( * ) AS col0 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-1681
SELECT DISTINCT 41 * COUNT ( * ) AS col0 FROM tab2
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1682
SELECT * FROM tab2 WHERE ( - col0 + + CAST( ( - 9 ) AS SIGNED ) ) = ( col0 )
----

skipif mysql # not compatible
query III rowsort label-1682
SELECT * FROM tab2 WHERE ( - col0 + + CAST ( ( - 9 ) AS INTEGER ) ) = ( col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col1 + col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 67 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 AS col2 FROM tab0 cor0 WHERE - col2 + col2 IN ( + 78 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT DISTINCT - MAX( 9 ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1686
SELECT DISTINCT - MAX ( 9 ) FROM tab1 cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 ) col1 FROM tab0 cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT COUNT( * ) * 98 FROM tab0 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-1688
SELECT COUNT ( * ) * 98 FROM tab0 AS cor0
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NOT col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1689
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT col1 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT ALL - MIN( ALL col0 ) * COUNT( * ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL - MIN ( ALL col0 ) * COUNT ( * ) FROM tab1
----
-153

query I rowsort
SELECT col1 * - col0 FROM tab2 WHERE NOT ( col0 ) >= ( + col1 )
----
-2346
-4928

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NULL IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> col2
----

query I rowsort
SELECT ALL - 31 AS col1 FROM tab2 cor0 WHERE ( col1 * - col0 ) <> ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 + + col1 / + 36 ) NOT IN ( - col0 + + col1 / - 53 )
----

query I rowsort
SELECT 85 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1698
SELECT DISTINCT COUNT( * ) DIV + 49 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1698
SELECT DISTINCT COUNT ( * ) / + 49 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col0 * + 77 FROM tab2 AS cor0
----
3542
4928
5775

onlyif mysql # DIV for integer division: 
query I rowsort label-1700
SELECT + col1 * 34 DIV col2 FROM tab1
----
2
23
4

skipif mysql # not compatible
query I rowsort label-1700
SELECT + col1 * 34 / col2 FROM tab1
----
2
23
4

query I rowsort
SELECT DISTINCT ( - 84 ) AS col2 FROM tab0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1702
SELECT + CAST( NULL AS SIGNED ) * + 52 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1702
SELECT + CAST ( NULL AS INTEGER ) * + 52 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 27 * + 62 * + col2 AS col1 FROM tab0
----
165726
16740
78678

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + col1 ) col1 FROM tab2
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND 2
----

query I rowsort
SELECT - 94 * + - 46 AS col1 FROM tab1
----
4324
4324
4324

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT DISTINCT COUNT( * ) * + 75 AS col2 FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-1707
SELECT DISTINCT COUNT ( * ) * + 75 AS col2 FROM tab1
----
225

query I rowsort
SELECT DISTINCT + ( + - col1 ) AS col2 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT 38 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT DISTINCT + MAX( + 84 ) col2 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1710
SELECT DISTINCT + MAX ( + 84 ) col2 FROM tab0 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT 26 - - COUNT( * ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
26

skipif mysql # not compatible
query I rowsort label-1711
SELECT 26 - - COUNT ( * ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
26

query II rowsort
SELECT - col2, - ( + col1 ) AS col1 FROM tab2
----
-23
-51
-40
-77
-58
-67

query I rowsort
SELECT ALL - 44 - + 12 AS col0 FROM tab0 WHERE NOT ( NOT 75 * 84 IN ( + col0 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1714
SELECT + COUNT( * ) DIV COUNT( * ) - + 48 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-47

skipif mysql # not compatible
query I rowsort label-1714
SELECT + COUNT ( * ) / COUNT ( * ) - + 48 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-47

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE + 21 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT - + 32 * col1 * col1 + col2 * col2 FROM tab1 AS cor0
----
-66064
2681
2944

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( + col0 ) IN ( 81 * 17 )
----

query I rowsort
SELECT - + 55 + - 65 FROM tab1 cor0
----
-120
-120
-120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 39 ) + - col0 + 9 * + col2 col2 FROM tab2 AS cor0
----
200
335
486

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1720
SELECT ALL MIN( ( - 37 ) ) * - COUNT( * ) + + ( + 98 ) DIV SUM( ALL + col1 + + col2 ) col0 FROM tab1 AS cor0
----
111

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1720
SELECT ALL MIN ( ( - 37 ) ) * - COUNT ( * ) + + ( + 98 ) / SUM ( ALL + col1 + + col2 ) col0 FROM tab1 AS cor0
----
111

query I rowsort
SELECT - col1 * - col0 + + 47 AS col1 FROM tab2 AS cor0
----
2393
4975
5072

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT MIN( DISTINCT + 92 ) + + SUM( col1 ) FROM tab1 AS cor0
----
158

skipif mysql # not compatible
query I rowsort label-1722
SELECT MIN ( DISTINCT + 92 ) + + SUM ( col1 ) FROM tab1 AS cor0
----
158

query III rowsort
SELECT * FROM tab1 WHERE + - ( - col0 ) = NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col2 * col2 * - 91 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1725
SELECT DISTINCT 66 + - COUNT( * ) + + 41 * + ( 9 ) DIV COUNT( * ) FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-1725
SELECT DISTINCT 66 + - COUNT ( * ) + + 41 * + ( 9 ) / COUNT ( * ) FROM tab0
----
186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) + col0 col0 FROM tab2
----
104
133
69

query I rowsort
SELECT ALL + col2 + - col1 + - + col0 + - col0 AS col2 FROM tab1
----
-116
-161
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1728
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) + ( + col1 ) AS col0 FROM tab1 WHERE 11 * - 59 + 4 * col0 - 27 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1728
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) + ( + col1 ) AS col0 FROM tab1 WHERE 11 * - 59 + 4 * col0 - 27 IS NOT NULL
----
NULL

query I rowsort
SELECT col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 - - - 0 * + ( - + col2 ) col2 FROM tab0
----
-30

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT + 21 * + + SUM( + + col2 ) * MAX( DISTINCT 5 ) + COUNT( * ) FROM tab1 AS cor0
----
23418

skipif mysql # not compatible
query I rowsort label-1732
SELECT + 21 * + + SUM ( + + col2 ) * MAX ( DISTINCT 5 ) + COUNT ( * ) FROM tab1 AS cor0
----
23418

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT DISTINCT 1 * + - 15 + + 85 + COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-1733
SELECT DISTINCT 1 * + - 15 + + 85 + COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
76

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - - col0 ) = + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1735
SELECT DISTINCT 72 * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT 72 * - CAST ( NULL AS REAL ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col0 * - col2 > - col0 * + col0
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1737
SELECT DISTINCT COUNT( * ) DIV + 89 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1737
SELECT DISTINCT COUNT ( * ) / + 89 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT + + MIN( DISTINCT + + col0 ) col1 FROM tab2 cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1738
SELECT + + MIN ( DISTINCT + + col0 ) col1 FROM tab2 cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT DISTINCT - + SUM( ALL - 56 ) FROM tab1 cor0
----
168

skipif mysql # not compatible
query I rowsort label-1739
SELECT DISTINCT - + SUM ( ALL - 56 ) FROM tab1 cor0
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1740
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1740
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT MIN( col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-1741
SELECT MIN ( col2 ) AS col2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL - 39 * col2 AS col0 FROM tab0 cor0 WHERE ( NULL ) > ( - col2 )
----

query II rowsort
SELECT + col0 AS col2, - col1 AS col0 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT col2 * + col0 * - - 44 * - col1 FROM tab2 AS cor0
----
-12823800
-2374152
-8673280

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + - col2 >= - col2 * - - col1 * 41 + - col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * col0 / - + 12 + + col0 BETWEEN col0 AND 59 / 34 + 91
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 70 AS col1 FROM tab0 WHERE NOT ( ( ( col1 ) <> NULL ) )
----

query II rowsort
SELECT + 90 AS col1, col1 AS col1 FROM tab0
----
90
1
90
21
90
81

query II rowsort
SELECT ALL - col1 AS col0, - 90 AS col0 FROM tab2
----
-51
-90
-67
-90
-77
-90

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + + col0, - col2, - 37 )
----

query I rowsort
SELECT - 44 * + 67 FROM tab2
----
-2948
-2948
-2948

query I rowsort
SELECT + + 46 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 * col2 * - + col1 col1 FROM tab2
----
234080
295336
89148

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT - + COUNT( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1754
SELECT - + COUNT ( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 76 NOT BETWEEN NULL AND + 70
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 52 * - col1 FROM tab1 AS cor0 WHERE NOT ( - col0 ) + col1 IS NULL
----
-2444
-260
-728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1757
SELECT + CAST( + - col0 AS SIGNED ) - + col1 * col1 FROM tab1 AS cor0
----
-110
-2300
-247

skipif mysql # not compatible
query I rowsort label-1757
SELECT + CAST ( + - col0 AS INTEGER ) - + col1 * col1 FROM tab1 AS cor0
----
-110
-2300
-247

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT col0 >= ( - col0 + + col2 + + - col0 ) )
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1759
SELECT DISTINCT - - col2 / + 41 + + col2 + - CAST( 35 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT - - col2 / + 41 + + col2 + - CAST ( 35 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT + col0 + - ( - col1 ) FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 + - + 1 col0 FROM tab1
----
42
42
42

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) >= + col1 * - - col0 * + col2
----

query I rowsort
SELECT ALL - 97 + col1 FROM tab0
----
-16
-76
-96

query I rowsort
SELECT ALL + 91 - - 84 AS col1 FROM tab2
----
175
175
175

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT DISTINCT ( COUNT( * ) ) AS col1 FROM tab2 WHERE NOT col1 IS NOT NULL OR ( ( ( + 43 ) NOT BETWEEN ( - 52 ) AND ( NULL ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-1765
SELECT DISTINCT ( COUNT ( * ) ) AS col1 FROM tab2 WHERE NOT col1 IS NOT NULL OR ( ( ( + 43 ) NOT BETWEEN ( - 52 ) AND ( NULL ) ) )
----
0

query I rowsort
SELECT + 15 + - 47 FROM tab1
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT ALL - 70 * + COUNT( * ) FROM tab2
----
-210

skipif mysql # not compatible
query I rowsort label-1767
SELECT ALL - 70 * + COUNT ( * ) FROM tab2
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT DISTINCT MIN( - col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-1768
SELECT DISTINCT MIN ( - col1 ) AS col1 FROM tab1
----
-47

query II rowsort
SELECT + - col2, col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT + + SUM( ALL - - 35 ) FROM tab0 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-1770
SELECT + + SUM ( ALL - - 35 ) FROM tab0 AS cor0
----
105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 0 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1772
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( - + col1 AS SIGNED ) / - col0 / + col1 + - - col0 < - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1772
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( - + col1 AS INTEGER ) / - col0 / + col1 + - - col0 < - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - + 84 AS col0 FROM tab0
----
-1764
-6804
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1774
SELECT DISTINCT - CAST( - - 48 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-48

skipif mysql # not compatible
query I rowsort label-1774
SELECT DISTINCT - CAST ( - - 48 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1775
SELECT ALL + CAST( - 33 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-1775
SELECT ALL + CAST ( - 33 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT + COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1776
SELECT + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT NULL = NULL
----
0

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * - col1 + col0 * + col0 FROM tab2 AS cor0 WHERE col1 * - 15 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 NOT BETWEEN NULL AND + 43 + + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + + col2 col1 FROM tab0
----
100
128
31

query III rowsort
SELECT ALL * FROM tab0 WHERE - 17 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1782
SELECT - 15 * CAST( NULL AS SIGNED ) * - ( + ( - - col1 ) ) + + ( - col2 ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1782
SELECT - 15 * CAST ( NULL AS INTEGER ) * - ( + ( - - col1 ) ) + + ( - col2 ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 49 + - + col0 * 36 - - - 59 + - 99 * + + col2 + + 9 + - col1 FROM tab1
----
-10056
-11355
-8907

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT ALL - 64 + - MAX( - col0 ) FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL - 64 + - MAX ( - col0 ) FROM tab0
----
-49

query II rowsort
SELECT ALL 75, + col2 AS col1 FROM tab1
----
75
59
75
68
75
96

query I rowsort
SELECT ALL - col1 * 15 + - col2 - - + col0 FROM tab1
----
-255
-49
-682

query I rowsort
SELECT DISTINCT ( - col2 ) * + 21 + + col0 FROM tab0 cor0
----
-123
-1982
-972

onlyif mysql # DIV for integer division: 
query I rowsort label-1788
SELECT - + 26 DIV + + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1788
SELECT - + 26 / + + col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 * - 95 + + col0 - + col2 FROM tab2 AS cor0
----
-4347
-6056
-7108

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - + col2 AND - - ( - + 98 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1791
SELECT CAST( NULL AS SIGNED ) - - 49 * + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1791
SELECT CAST ( NULL AS INTEGER ) - - 49 * + col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col1, + col0 AS col1 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT + col1 + - 27 - + ( col2 ) * + col0 FROM tab0 AS cor0
----
-651
-876
-9629

query I rowsort
SELECT ALL col0 + - col1 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + 61 + + col0 AND NULL
----
37
44
80

query I rowsort
SELECT DISTINCT - - 3 - + col1 AS col1 FROM tab2 AS cor0
----
-48
-64
-74

query I rowsort
SELECT 48 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - col2
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query I rowsort
SELECT + 52 * + + 7 AS col2 FROM tab2
----
364
364
364

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT DISTINCT + MAX( DISTINCT col0 ) FROM tab1 WHERE - col0 NOT IN ( - col1, 53 - + + col0, - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1799
SELECT DISTINCT + MAX ( DISTINCT col0 ) FROM tab1 WHERE - col0 NOT IN ( - col1, 53 - + + col0, - col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT ALL - MAX( DISTINCT + - 33 ) AS col0 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-1800
SELECT ALL - MAX ( DISTINCT + - 33 ) AS col0 FROM tab1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1801
SELECT ALL CAST( 73 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
73
73
73

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL CAST ( 73 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT ALL COUNT( * ) * + COUNT( 37 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-1802
SELECT ALL COUNT ( * ) * + COUNT ( 37 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT + ( + + MIN( DISTINCT - col0 ) ) col2 FROM tab0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1803
SELECT + ( + + MIN ( DISTINCT - col0 ) ) col2 FROM tab0
----
-97

query II rowsort
SELECT col2 AS col1, col2 AS col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1805
SELECT ALL - CAST( NULL AS SIGNED ) + MAX( + col1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL - CAST ( NULL AS INTEGER ) + MAX ( + col1 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 96 FROM tab0 AS cor0 WHERE NOT col1 + - col2 IS NULL
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT DISTINCT - 3 * + COUNT( * ) * - 82 AS col1 FROM tab2
----
738

skipif mysql # not compatible
query I rowsort label-1807
SELECT DISTINCT - 3 * + COUNT ( * ) * - 82 AS col1 FROM tab2
----
738

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 = - 74 + col2 * + - col2 OR + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 76 + - ( + 51 ) AS col0 FROM tab0
----
25
25
25

query III rowsort
SELECT * FROM tab0 WHERE NULL > - 12 / + - col0 * - - col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 * col2 + col2 = - 57
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1812
SELECT DISTINCT + COUNT( * ) + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1812
SELECT DISTINCT + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 89 * ( + col0 ) * - + col2 col0 FROM tab1
----
-22222944
-37938475
-50116612

query I rowsort
SELECT col1 + + 47 AS col1 FROM tab1
----
52
61
94

query III rowsort
SELECT * FROM tab0 WHERE + - col1 < - 27 * - - col2
----

query I rowsort
SELECT + col0 + col2 + - 80 * - col2 AS col2 FROM tab0
----
3822
8116
897

query I rowsort
SELECT + col0 + + + col2 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT DISTINCT - COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col0 AND - col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1818
SELECT DISTINCT - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col0 AND - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT DISTINCT + - COUNT( * ) * - 97 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
873

skipif mysql # not compatible
query I rowsort label-1819
SELECT DISTINCT + - COUNT ( * ) * - 97 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
873

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 26 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1821
SELECT ALL 65 DIV + col1 - - - col0 + - col0 AS col2 FROM tab0
----
-129
-171
-30

skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL 65 / + col1 - - - col0 + - col0 AS col2 FROM tab0
----
-129
-171
-30

query III rowsort
SELECT * FROM tab1 WHERE + col1 <= 53
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - - ( col1 ) ) - 7 FROM tab1
----
-2
40
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1824
SELECT ALL + 35 * - - CAST( NULL AS SIGNED ) - - COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL + 35 * - - CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL - 18 + - col1 AS col0 FROM tab2 AS cor0
----
-69
-85
-95

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 - - - 48 * - + 86 FROM tab0 AS cor0
----
4143
4215
4225

onlyif mysql # aggregate syntax: 
query II rowsort label-1828
SELECT - ( + MIN( 43 ) ) * + 20 - + - 15 AS col1, + 50 AS col0 FROM tab0 AS cor0 WHERE 4 / - - col1 IS NULL
----
NULL
50

skipif mysql # not compatible
query II rowsort label-1828
SELECT - ( + MIN ( 43 ) ) * + 20 - + - 15 AS col1, + 50 AS col0 FROM tab0 AS cor0 WHERE 4 / - - col1 IS NULL
----
NULL
50

onlyif mysql # DIV for integer division: 
query I rowsort label-1829
SELECT DISTINCT - col2 DIV - col0 * + col1 * + col1 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1829
SELECT DISTINCT - col2 / - col0 * + col1 * + col1 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + - col1 AS col1 FROM tab1 AS cor0 WHERE NOT - ( + col2 ) IS NULL
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 34 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT ALL MIN( DISTINCT + col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL MIN ( DISTINCT + col2 ) AS col1 FROM tab2
----
23

query I rowsort
SELECT + 51 * col1 AS col2 FROM tab1
----
2397
255
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col2, ( - col2 ) * - col0 col1 FROM tab1
----
14
4896
47
6188
5
5015

onlyif mysql # DIV for integer division: 
query I rowsort label-1836
SELECT - col2 DIV + + col0 AS col1 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-1836
SELECT - col2 / + + col0 AS col1 FROM tab0
----
-1
-3
0

query I rowsort
SELECT + 35 * 69 AS col1 FROM tab1
----
2415
2415
2415

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT DISTINCT SUM( + col1 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT SUM ( + col1 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT COUNT( ALL + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1839
SELECT COUNT ( ALL + col0 ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 NOT IN ( 91 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 58 + + - 17 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + + 45 AS col1, - col0 AS col2 FROM tab2 cor0
----
45
-46
45
-64
45
-75

query III rowsort
SELECT * FROM tab1 WHERE NOT 55 / - + col2 + 39 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1844
SELECT DISTINCT CAST( - CAST( 46 AS SIGNED ) AS SIGNED ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT CAST ( - CAST ( 46 AS INTEGER ) AS INTEGER ) AS col1 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT ALL ( - COUNT( * ) ) * - 33 col1 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1845
SELECT ALL ( - COUNT ( * ) ) * - 33 col1 FROM tab0
----
99

query I rowsort
SELECT ALL col0 * - 54 AS col0 FROM tab0 AS cor0
----
-4698
-5238
-810

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1847
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT IN ( col0, - col2, + - 94 * - + col1 - col1 + + - col2 * col2 + - 29 )
----

skipif mysql # not compatible
query III rowsort label-1847
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT IN ( col0, - col2, + - 94 * - + col1 - col1 + + - col2 * col2 + - 29 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT DISTINCT + + COUNT( * ) + + 56 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT + + COUNT ( * ) + + 56 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT ALL - SUM( - + col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL - SUM ( - + col1 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT - + 32 + + col2 FROM tab2 cor0
----
-9
26
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT 30 + MAX( + col0 ) FROM tab1 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-1851
SELECT 30 + MAX ( + col0 ) FROM tab1 AS cor0
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 + + col2 col1 FROM tab0
----
107
109
295

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT DISTINCT COUNT( * ) + + - 59 FROM tab2 WHERE NULL IS NULL
----
-56

skipif mysql # not compatible
query I rowsort label-1853
SELECT DISTINCT COUNT ( * ) + + - 59 FROM tab2 WHERE NULL IS NULL
----
-56

query I rowsort
SELECT ALL 7 + - 7 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 46 <> col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col2 AS col2, + col1 AS col0 FROM tab1
----
-59
5
-68
47
-96
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1857
SELECT ALL MIN( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1, tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT + MAX( - - col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-1858
SELECT + MAX ( - - col1 ) AS col2 FROM tab0
----
81

query I rowsort
SELECT DISTINCT 61 - - + 65 AS col0 FROM tab0
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1860
SELECT COUNT( + CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1860
SELECT COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

query I rowsort
SELECT ALL + 10 AS col2 FROM tab0 WHERE NULL IS NULL
----
10
10
10

query I rowsort
SELECT ALL col0 * col2 * + - ( - col1 ) FROM tab2 AS cor0
----
197120
291450
53958

query I rowsort
SELECT DISTINCT + col0 * + 67 AS col0 FROM tab1 AS cor0
----
3417
5695
6097

query I rowsort
SELECT DISTINCT + 41 * col1 FROM tab1 AS cor0
----
1927
205
574

query I rowsort
SELECT + 37 - - col2 FROM tab2 AS cor0
----
60
77
95

query I rowsort
SELECT + col0 * - + col2 * - col0 * + 44 FROM tab0 AS cor0
----
3330360
40985604
465300

query I rowsort
SELECT ALL - + col2 * - 32 * + + col0 FROM tab2 AS cor0
----
139200
33856
81920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 40 col1 FROM tab1 cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT ALL + MAX( ALL - col0 ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL + MAX ( ALL - col0 ) FROM tab1 cor0
----
-51

query I rowsort
SELECT + 73 * - col2 FROM tab1 AS cor0
----
-4307
-4964
-7008

query I rowsort
SELECT + 18 + + ( + col0 ) FROM tab0 cor0 WHERE NOT - col1 IN ( - - col0, + col0 )
----
105
115
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT ALL + MIN( ALL - + 39 ) AS col2 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL + MIN ( ALL - + 39 ) AS col2 FROM tab0 AS cor0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1873
SELECT ALL CAST( NULL AS SIGNED ) * + + 84 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL CAST ( NULL AS INTEGER ) * + + 84 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 17 AS col1 FROM tab2 WHERE NOT NULL <> + col2
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 WHERE NOT 5 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - - 35 ) * 70 FROM tab0
----
2450

onlyif mysql # DIV for integer division: 
query I rowsort label-1877
SELECT DISTINCT 66 DIV + col2 AS col1 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-1877
SELECT DISTINCT 66 / + col2 AS col1 FROM tab2
----
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1878
SELECT - ( - col1 ) DIV col1 + - col0 AS col0 FROM tab1
----
-50
-84
-90

skipif mysql # not compatible
query I rowsort label-1878
SELECT - ( - col1 ) / col1 + - col0 AS col0 FROM tab1
----
-50
-84
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-1879
SELECT DISTINCT - col1 DIV + + col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1879
SELECT DISTINCT - col1 / + + col1 FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1880
SELECT + col0 / + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1880
SELECT + col0 / + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1881
SELECT DISTINCT - col1 DIV + - col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1881
SELECT DISTINCT - col1 / + - col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1883
SELECT + CAST( + + ( 14 ) AS SIGNED ), + col1 * + - col2 + col2 col2 FROM tab2 cor0 WHERE NOT NULL < col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1883
SELECT + CAST ( + + ( 14 ) AS INTEGER ), + col1 * + - col2 + col2 col2 FROM tab2 cor0 WHERE NOT NULL < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT DISTINCT + MIN( - 99 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col2 * - ( - - col1 ) AND - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-1884
SELECT DISTINCT + MIN ( - 99 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col2 * - ( - - col1 ) AND - 32
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1885
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col0 AS col2, - 25 FROM tab2 AS cor0
----
46
-25
64
-25
75
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT ALL - COUNT( * ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT + COUNT( * ) * - COUNT( * ) + - + 39 AS col1 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-1888
SELECT + COUNT ( * ) * - COUNT ( * ) + - + 39 AS col1 FROM tab0 AS cor0
----
-48

query I rowsort
SELECT DISTINCT + + ( - 23 ) FROM tab1 AS cor0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1890
SELECT - COUNT( * ) AS col1, MIN( ALL - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-1890
SELECT - COUNT ( * ) AS col1, MIN ( ALL - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1891
SELECT CAST( col0 AS SIGNED ) + - 87 - + 74 * 26 AS col2 FROM tab0 AS cor0 WHERE ( - col0 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1891
SELECT CAST ( col0 AS INTEGER ) + - 87 - + 74 * 26 AS col2 FROM tab0 AS cor0 WHERE ( - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT + - MAX( - col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1892
SELECT + - MAX ( - col1 ) FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1893
SELECT + col2 * - col1 AS col1, CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-210
21
-3807
81
-99
1

skipif mysql # not compatible
query II rowsort label-1893
SELECT + col2 * - col1 AS col1, CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-210
21
-3807
81
-99
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1894
SELECT + - 49 DIV col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1894
SELECT + - 49 / col0 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1895
SELECT ALL 71 + - - COUNT( * ) + - - 62 + - 75 * 71 * - 86 * + 8 col2, + 28 AS col0 FROM tab1
----
3663736
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1895
SELECT ALL 71 + - - COUNT ( * ) + - - 62 + - 75 * 71 * - 86 * + 8 col2, + 28 AS col0 FROM tab1
----
3663736
28

query I rowsort
SELECT DISTINCT - col1 + 23 FROM tab0
----
-58
2
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT + 86 * COUNT( * ) + + + 36 col1 FROM tab0
----
294

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1897
SELECT + 86 * COUNT ( * ) + + + 36 col1 FROM tab0
----
294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1898
SELECT ALL CAST( + - 95 AS SIGNED ) AS col1 FROM tab2 cor0
----
-95
-95
-95

skipif mysql # not compatible
query I rowsort label-1898
SELECT ALL CAST ( + - 95 AS INTEGER ) AS col1 FROM tab2 cor0
----
-95
-95
-95

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( + + 43 * + 58 * + col0 + - col0 = col0 )
----

query I rowsort
SELECT - col2 * - 1 FROM tab0
----
10
47
99

query I rowsort
SELECT + col1 * + col2 * - col1 * + 12 FROM tab0
----
-1188
-3700404
-52920

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT + COUNT( 28 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1902
SELECT + COUNT ( 28 ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> col1 * col0
----

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 20 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1906
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( - + col2 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-1906
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( - + col2 AS INTEGER ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1907
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + + col2 BETWEEN NULL AND - - col0 + + col2 / + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1907
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + + col2 BETWEEN NULL AND - - col0 + + col2 / + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1908
SELECT DISTINCT - 27 DIV col1 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1908
SELECT DISTINCT - 27 / col1 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT DISTINCT COUNT( - col0 ) * + - MIN( col2 ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT COUNT ( - col0 ) * + - MIN ( col2 ) FROM tab2
----
-69

query I rowsort
SELECT DISTINCT - col0 * 44 FROM tab1
----
-2244
-3740
-4004

query I rowsort
SELECT DISTINCT ( - 70 ) AS col1 FROM tab0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT ALL + COUNT( ALL + 0 ) * + - COUNT( DISTINCT + - col2 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-1912
SELECT ALL + COUNT ( ALL + 0 ) * + - COUNT ( DISTINCT + - col2 ) FROM tab1
----
-9

query I rowsort
SELECT + 90 FROM tab1 WHERE NOT ( 18 IS NULL )
----
90
90
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1914
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) / 87 * + 72 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1914
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) / 87 * + 72 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 21 IS NULL
----

query I rowsort
SELECT - 95 + + 70 * col0 AS col1 FROM tab2
----
3125
4385
5155

query II rowsort
SELECT DISTINCT + col1 AS col2, 34 FROM tab2 cor0
----
51
34
67
34
77
34

query I rowsort
SELECT ALL + ( + 16 ) AS col2 FROM tab2 AS cor0
----
16
16
16

query I rowsort
SELECT - - 46 + + col1 FROM tab0 AS cor0
----
127
47
67

onlyif mysql # aggregate syntax: 
query II rowsort label-1920
SELECT - 9 + - SUM( ALL col1 ), - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-204
-3

skipif mysql # not compatible
query II rowsort label-1920
SELECT - 9 + - SUM ( ALL col1 ), - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-204
-3

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT NULL BETWEEN - 49 AND NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1923
SELECT col1 AS col1, + 40 + - - col0 + col2 - - ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-1923
SELECT col1 AS col1, + 40 + - - col0 + col2 - - ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT MIN( ALL + col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-1924
SELECT MIN ( ALL + col0 ) AS col2 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-1925
SELECT COUNT( * ) AS col2, MAX( - col1 ) AS col2 FROM tab1
----
3
-5

skipif mysql # not compatible
query II rowsort label-1925
SELECT COUNT ( * ) AS col2, MAX ( - col1 ) AS col2 FROM tab1
----
3
-5

query III rowsort
SELECT * FROM tab0 WHERE + + 36 NOT BETWEEN - col0 AND col1
----
87
21
10
97
1
99

query II rowsort
SELECT + col2, col0 + col2 FROM tab2
----
23
69
40
104
58
133

query I rowsort
SELECT DISTINCT 94 * + col2 + - - col1 FROM tab0
----
4499
9307
961

query II rowsort
SELECT DISTINCT - col2 + + ( + col0 ) + + col1 AS col0, col1 AS col0 FROM tab0
----
-1
1
49
81
98
21

query I rowsort
SELECT ALL col1 + + col0 + col1 * - 25 + + - col1 FROM tab0
----
-2010
-438
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, - 0 col0 FROM tab1
----
-51
0
-85
0
-91
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1932
SELECT ALL + ( + COUNT( * ) ) - COUNT( col2 ) / - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL + ( + COUNT ( * ) ) - COUNT ( col2 ) / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT - - COUNT( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1933
SELECT - - COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + 87 - - col2 + - col0 + + + col1 AS col1 FROM tab2 AS cor0
----
115
137
140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1935
SELECT + + 29 DIV COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1935
SELECT + + 29 / COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL - col2 * - 32 AS col1 FROM tab2
----
1280
1856
736

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - ( 25 ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 57 IN ( - - col1 * + 35, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT DISTINCT - + 70 + COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1940
SELECT DISTINCT - + 70 + COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT + MAX( + col2 ) * - MAX( - + 88 ) + 65 FROM tab2 AS cor0
----
5169

skipif mysql # not compatible
query I rowsort label-1941
SELECT + MAX ( + col2 ) * - MAX ( - + 88 ) + 65 FROM tab2 AS cor0
----
5169

query I rowsort
SELECT + - col1 * + 23 * - ( 86 ) AS col2 FROM tab1 AS cor0
----
27692
92966
9890

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT DISTINCT + MIN( ALL - 96 ) * - 87 * ( COUNT( * ) ) AS col2 FROM tab2 cor0
----
25056

skipif mysql # not compatible
query I rowsort label-1943
SELECT DISTINCT + MIN ( ALL - 96 ) * - 87 * ( COUNT ( * ) ) AS col2 FROM tab2 cor0
----
25056

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT ALL 73 * - COUNT( * ) AS col1 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-1944
SELECT ALL 73 * - COUNT ( * ) AS col1 FROM tab1
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT ALL - MIN( - col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-1945
SELECT ALL - MIN ( - col0 ) FROM tab0
----
97

query I rowsort
SELECT ALL - 4 AS col2 FROM tab2
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT ALL COUNT( * ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + + col2 col0 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT DISTINCT - col1 * - - 84 * - 97 * - 15 * + col1 FROM tab1
----
-23955120
-269983980
-3055500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - ( + col0 ) col2 FROM tab0 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1951
SELECT - 19 DIV - col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1951
SELECT - 19 / - col2 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NOT NULL > ( + 29 )
----

query I rowsort
SELECT DISTINCT + 33 AS col1 FROM tab1 AS cor0 WHERE NULL >= - col1 AND col1 * + col2 * - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 * - col1 col0 FROM tab1 AS cor0
----
-201019
-2125
-9996

query I rowsort
SELECT col1 + + col1 + 2 FROM tab0
----
164
4
44

query I rowsort
SELECT col2 + - ( - - col0 ) * - col2 FROM tab0
----
752
880
9702

query I rowsort
SELECT + col0 * + col1 + - 11 - - - col2 AS col1 FROM tab0
----
-13
1157
1806

onlyif mysql # DIV for integer division: 
query I rowsort label-1958
SELECT ALL col2 + - col1 + - 71 + col2 DIV 78 AS col1 FROM tab0
----
-105
-82
28

skipif mysql # not compatible
query I rowsort label-1958
SELECT ALL col2 + - col1 + - 71 + col2 / 78 AS col1 FROM tab0
----
-105
-82
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - - 94 col2 FROM tab1
----
153
162
190

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - ( + - 19 ) IN ( - col2, + ( - + col2 ), + - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 - 30 col0 FROM tab2
----
26
26
26

onlyif mysql # DIV for integer division: 
query I rowsort label-1962
SELECT DISTINCT + 4 DIV + col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1962
SELECT DISTINCT + 4 / + col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT 90 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col0, - col1 * + col2 + + - 51 - col1 FROM tab2
----
46
-1275
64
-3208
75
-4004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 col0 FROM tab1
----
63
63
63

query I rowsort
SELECT DISTINCT - - ( - col0 ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1967
SELECT DISTINCT - 71 AS col0, CAST( NULL AS SIGNED ) + + + col0 AS col0 FROM tab0 cor0
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-1967
SELECT DISTINCT - 71 AS col0, CAST ( NULL AS INTEGER ) + + + col0 AS col0 FROM tab0 cor0
----
-71
NULL

query I rowsort
SELECT ALL - col0 * + col2 + 74 + + - col0 AS col0 FROM tab2 cor0
----
-1030
-2550
-4351

query II rowsort
SELECT col2 AS col0, col1 AS col1 FROM tab0 cor0
----
10
21
47
81
99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + + 8 col1 FROM tab0 AS cor0
----
107
18
55

query I rowsort
SELECT DISTINCT + 62 * + + col2 + col1 AS col2 FROM tab2
----
1477
2557
3663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( + 30 ) col1 FROM tab1
----
115
121
81

query I rowsort
SELECT col1 * col0 + + ( - col1 ) FROM tab0
----
1134
1806
96

query I rowsort
SELECT + col2 * + col1 + + col0 AS col0 FROM tab1
----
1395
3287
380

query II rowsort
SELECT DISTINCT + col0 * - col2, - 55 + - 1 AS col2 FROM tab2
----
-1058
-56
-2560
-56
-4350
-56

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE NOT - 23 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1977
SELECT 35 * - CAST( NULL AS SIGNED ) + - 44 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1977
SELECT 35 * - CAST ( NULL AS INTEGER ) + - 44 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1978
SELECT col1 + - 49 * - + col0 DIV col0 FROM tab0
----
130
50
70

skipif mysql # not compatible
query I rowsort label-1978
SELECT col1 + - 49 * - + col0 / col0 FROM tab0
----
130
50
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 + - - col1 col2 FROM tab2
----
52
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT - ( + MIN( - + ( - col0 ) ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-1980
SELECT - ( + MIN ( - + ( - col0 ) ) ) FROM tab0
----
-15

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col2 * - 84 = + + 81
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col1 * + - col0, - 0 AS col0 FROM tab2
----
-2346
0
-4928
0
-5025
0

query I rowsort
SELECT ALL - col0 * 43 AS col0 FROM tab0 cor0
----
-3741
-4171
-645

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT 70 + COUNT( * ) col0 FROM tab1
----
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1984
SELECT 70 + COUNT ( * ) col0 FROM tab1
----
73

query I rowsort
SELECT - 23 * 18 + - + col1 FROM tab2
----
-465
-481
-491

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 <> + + col2
----

query I rowsort
SELECT ( + col0 ) + 90 FROM tab0 AS cor0
----
105
177
187

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT ALL 0 - + + COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL 0 - + + COUNT ( * ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1989
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) NOT BETWEEN + col0 AND + - col0
----

skipif mysql # not compatible
query III rowsort label-1989
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN + col0 AND + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT MAX( - col0 ) * + 86 FROM tab2
----
-3956

skipif mysql # not compatible
query I rowsort label-1990
SELECT MAX ( - col0 ) * + 86 FROM tab2
----
-3956

query I rowsort
SELECT DISTINCT 75 - col0 + + col1 FROM tab2
----
67
80
88

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 64 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT + MAX( - col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1993
SELECT + MAX ( - col1 ) FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT ALL - + MAX( ALL col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL - + MAX ( ALL col1 ) FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1995
SELECT ALL + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1995
SELECT ALL + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT - + 51 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT ALL ( + COUNT( - 21 ) ) * COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL ( + COUNT ( - 21 ) ) * COUNT ( * ) FROM tab0 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 23 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT DISTINCT + SUM( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-1999
SELECT DISTINCT + SUM ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
103

query II rowsort
SELECT - + 79 * + 2 + col0 * - col1 + + col2 - + col1, - col0 AS col1 FROM tab2 AS cor0
----
-2532
-46
-5123
-64
-5192
-75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + - col0 NOT IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 / + col2 * 48 + + ( - col1 ) + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 3 * + 76 * 36 * - col2 AS col1 FROM tab2 WHERE + - ( + ( + - 26 ) ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT + COUNT( * ) + ( - 16 ) AS col0 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-2004
SELECT + COUNT ( * ) + ( - 16 ) AS col0 FROM tab2
----
-13

query I rowsort
SELECT + 99 + - col0 FROM tab0
----
12
2
84

query I rowsort
SELECT - col2 + + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1440
-3264
-354

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 51 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) >= - ( - 80 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - + col1 + - 1 col0 FROM tab0 AS cor0
----
0
440
6560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2010
SELECT DISTINCT - 65 * - + SUM( DISTINCT - CAST( + col0 AS SIGNED ) ) FROM tab1 AS cor0
----
-14755

skipif mysql # not compatible
query I rowsort label-2010
SELECT DISTINCT - 65 * - + SUM ( DISTINCT - CAST ( + col0 AS INTEGER ) ) FROM tab1 AS cor0
----
-14755

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT ALL - COUNT( - col1 ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL - COUNT ( - col1 ) AS col2 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2012
SELECT DISTINCT - COUNT( * ) AS col2, - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9
-9

skipif mysql # not compatible
query II rowsort label-2012
SELECT DISTINCT - COUNT ( * ) AS col2, - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + - 89 ) col0, col0 FROM tab1
----
-89
51
-89
85
-89
91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2014
SELECT ALL CAST( col1 AS SIGNED ) DIV col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-2014
SELECT ALL CAST ( col1 AS INTEGER ) / col0 FROM tab0
----
0
0
5

query I rowsort
SELECT - col1 * - 79 - - + col2 AS col1 FROM tab2 AS cor0
----
4052
5351
6123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 - + ( col0 ) col0 FROM tab0 AS cor0
----
690
783
9506

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT NULL = + 29 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 = - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * + 45 FROM tab2 cor0 WHERE NULL IS NULL
----
2070
2880
3375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT ALL MAX( DISTINCT col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-2021
SELECT ALL MAX ( DISTINCT col1 ) AS col1 FROM tab2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2022
SELECT ALL + 56 * CAST( NULL AS SIGNED ) * + 19 / + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL + 56 * CAST ( NULL AS INTEGER ) * + 19 / + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2023
SELECT DISTINCT 39 DIV 66 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2023
SELECT DISTINCT 39 / 66 AS col1 FROM tab1
----
0

query II rowsort
SELECT ALL + col1 AS col0, col2 - + col1 FROM tab1
----
14
82
47
21
5
54

query II rowsort
SELECT DISTINCT + 18, col1 * + - 31 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT - 71 * + col2 FROM tab0
----
-3337
-7029
-710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2027
SELECT COUNT( * ), AVG ( + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2027
SELECT COUNT ( * ), AVG ( + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
3
NULL

query I rowsort
SELECT 2 * + + 96 AS col1 FROM tab2
----
192
192
192

query I rowsort
SELECT DISTINCT 86 * + ( + col0 ) AS col1 FROM tab0
----
1290
7482
8342

query II rowsort
SELECT ALL col0, col2 AS col0 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT ALL + - COUNT( + col0 ) * - 66 col0 FROM tab0 AS cor0
----
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2031
SELECT ALL + - COUNT ( + col0 ) * - 66 col0 FROM tab0 AS cor0
----
198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col1 FROM tab0 AS cor0 WHERE NOT col1 * - col1 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 - col1 + + col1 / col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2035
SELECT * FROM tab1 AS cor0 WHERE NOT 77 < CAST( - - col2 AS SIGNED )
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-2035
SELECT * FROM tab1 AS cor0 WHERE NOT 77 < CAST ( - - col2 AS INTEGER )
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2036
SELECT ALL + - ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL + - ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 51 + + + 75 + + + col0 col1 FROM tab2 AS cor0
----
172
190
201

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT - COUNT( * ) + + + 80 AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2038
SELECT - COUNT ( * ) + + + 80 AS col2 FROM tab2 AS cor0
----
77

query III rowsort
SELECT * FROM tab1 WHERE - col2 + - + col0 < - - 79 * col2 + + col2 * + + 64 - + 94
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT - MAX( DISTINCT + col0 ) + + - COUNT( * ) AS col1 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-2040
SELECT - MAX ( DISTINCT + col0 ) + + - COUNT ( * ) AS col1 FROM tab1
----
-94

query I rowsort
SELECT ALL 43 + - col2 + - 15 AS col2 FROM tab1
----
-31
-40
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2042
SELECT ALL - - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL BETWEEN - col2 * - 39 - - ( + ( - 9 ) ) + + col1 AND + - col1
----

skipif mysql # not compatible
query I rowsort label-2042
SELECT ALL - - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL BETWEEN - col2 * - 39 - - ( + ( - 9 ) ) + + col1 AND + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2043
SELECT DISTINCT col1 + - col0 - + 92 DIV 22 AS col2 FROM tab1
----
-41
-48
-84

skipif mysql # not compatible
query I rowsort label-2043
SELECT DISTINCT col1 + - col0 - + 92 / 22 AS col2 FROM tab1
----
-41
-48
-84

query I rowsort
SELECT + ( + ( ( + col0 ) ) ) + + + col1 AS col2 FROM tab2
----
141
142
97

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT DISTINCT + - MIN( DISTINCT - 52 ) FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-2046
SELECT DISTINCT + - MIN ( DISTINCT - 52 ) FROM tab2 AS cor0
----
52

query I rowsort
SELECT ALL + + ( 42 ) FROM tab1 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT 61 + + - col2 FROM tab0
----
-38
14
51

query I rowsort
SELECT - - 79 AS col1 FROM tab0 WHERE + - col2 * + col1 IS NOT NULL
----
79
79
79

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 71 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 - - + col1 + col1 AS col0 FROM tab1 AS cor0
----
124
162
69

query II rowsort
SELECT - + 25 AS col1, + 59 AS col1 FROM tab2 AS cor0
----
-25
59
-25
59
-25
59

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 + 7 IN ( col1, col0, + col1, - + 72 * - 8, - 95 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2054
SELECT DISTINCT + col1, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-2054
SELECT DISTINCT + col1, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT ALL + col0 * col2 + - 6 FROM tab2 AS cor0
----
1052
2554
4344

query I rowsort
SELECT + col2 * col0 * - col1 + + + 49 AS col1 FROM tab1 cor0
----
-25026
-290787
-68495

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT col2 * - + col0 * - - 29 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2058
SELECT + ( col0 ) * col0 AS col0, + col2 - CAST( NULL AS SIGNED ) col0 FROM tab1
----
2601
NULL
7225
NULL
8281
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2058
SELECT + ( col0 ) * col0 AS col0, + col2 - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
2601
NULL
7225
NULL
8281
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + ( + + col1 ) * col1 col1 FROM tab2
----
237160
260362
59823

query I rowsort
SELECT + col1 * - col2 * + 1 AS col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ALL + col0 * 58 FROM tab2
----
2668
3712
4350

query I rowsort
SELECT DISTINCT - + 43 + - col0 + col1 FROM tab1 WHERE - - col0 * + col0 + col2 + + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT ALL 68 * - COUNT( - 5 ) AS col0 FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL 68 * - COUNT ( - 5 ) AS col0 FROM tab1
----
-204

query I rowsort
SELECT 24 FROM tab1, tab2 cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT ALL - 3 * - col0 AS col0 FROM tab0 WHERE 86 IS NOT NULL
----
261
291
45

query I rowsort
SELECT ALL + 0 * col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2067
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + + CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2067
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + + CAST ( + col2 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 - + col2 + - + 44 IS NULL
----

query I rowsort
SELECT DISTINCT + + col0 * - ( - 43 ) * - col2 * + col1 FROM tab2 AS cor0
----
-12532350
-2320194
-8476160

onlyif mysql # DIV for integer division: 
query I rowsort label-2070
SELECT ALL + col1 + col2 DIV col2 + - + 92 AS col1 FROM tab1
----
-44
-77
-86

skipif mysql # not compatible
query I rowsort label-2070
SELECT ALL + col1 + col2 / col2 + - + 92 AS col1 FROM tab1
----
-44
-77
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2071
SELECT col1 * - CAST( - ( - - 24 ) AS SIGNED ) AS col1 FROM tab1
----
1128
120
336

skipif mysql # not compatible
query I rowsort label-2071
SELECT col1 * - CAST ( - ( - - 24 ) AS INTEGER ) AS col1 FROM tab1
----
1128
120
336

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - - 57 + - + col0 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2073
SELECT 6 DIV 28 + - + col2 - + - col0 AS col2 FROM tab2 cor0
----
17
23
24

skipif mysql # not compatible
query I rowsort label-2073
SELECT 6 / 28 + - + col2 - + - col0 AS col2 FROM tab2 cor0
----
17
23
24

query I rowsort
SELECT DISTINCT + col2 + - + ( 26 ) AS col0 FROM tab1 cor0
----
33
42
70

query II rowsort
SELECT ALL + col1, - col0 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 * - col0 = NULL
----

query I rowsort
SELECT + col0 * col0 + - ( col1 ) * - col2 * + col2 FROM tab2 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT + 60 + - + col1 FROM tab0 AS cor0
----
-21
39
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2079
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2079
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - 56 AS col0 FROM tab1 AS cor0
----
-56
-56
-56

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN ( - col1 ) + - + col1 AND - - col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - - col1 <= + + 9 * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - 9 + - col2 FROM tab2 AS cor0
----
-32
-49
-67

query II rowsort
SELECT ALL 87 + - 68 AS col2, - col2 * - 17 FROM tab0
----
19
1683
19
170
19
799

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 + - + 50 AS col1 FROM tab1
----
-55
-64
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT COUNT( * ) * + COUNT( * ) + 46 FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-2087
SELECT COUNT ( * ) * + COUNT ( * ) + 46 FROM tab0
----
55

query I rowsort
SELECT 16 + + 25 * col1 AS col0 FROM tab0
----
2041
41
541

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT ALL COUNT( * ) + ( + COUNT( * ) ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL COUNT ( * ) + ( + COUNT ( * ) ) FROM tab0
----
6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 39 IS NULL
----

query I rowsort
SELECT ALL - ( - 66 ) - 5 FROM tab1 AS cor0
----
61
61
61

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT 79 * - - MIN( col1 ) FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-2093
SELECT 79 * - - MIN ( col1 ) FROM tab0 AS cor0
----
79

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * - 87 * + 73 NOT BETWEEN NULL AND + ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2095
SELECT DISTINCT + - 3 AS col0 FROM tab2 WHERE NULL <> + 80 + CAST( + + col2 AS SIGNED ) + - 87 * - col1
----

skipif mysql # not compatible
query I rowsort label-2095
SELECT DISTINCT + - 3 AS col0 FROM tab2 WHERE NULL <> + 80 + CAST ( + + col2 AS INTEGER ) + - 87 * - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2096
SELECT + CAST( NULL AS SIGNED ) - - COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2096
SELECT + CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 col2 FROM tab1 AS cor0
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT ALL SUM( ALL + + col0 ) * 18 * COUNT( * ) * + COUNT( * ) + - + 48 AS col0 FROM tab0 AS cor0
----
32190

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL SUM ( ALL + + col0 ) * 18 * COUNT ( * ) * + COUNT ( * ) + - + 48 AS col0 FROM tab0 AS cor0
----
32190

query I rowsort
SELECT ALL + 7 * - + 29 AS col2 FROM tab0 AS cor0
----
-203
-203
-203

query I rowsort
SELECT col1 * + - col1 AS col2 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT + col0 * + + 55 FROM tab1
----
2805
4675
5005

query II rowsort
SELECT - 12 AS col0, col1 AS col0 FROM tab0
----
-12
1
-12
21
-12
81

query II rowsort
SELECT col0, 30 AS col0 FROM tab0
----
15
30
87
30
97
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2104
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT - MIN( 65 ) AS col0 FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-2105
SELECT - MIN ( 65 ) AS col0 FROM tab2
----
-65

query II rowsort
SELECT ALL - col1, - 57 AS col2 FROM tab2
----
-51
-57
-67
-57
-77
-57

query II rowsort
SELECT + col2, 20 + 67 AS col1 FROM tab2
----
23
87
40
87
58
87

query II rowsort
SELECT ALL - 66, - 57 - - 56 + + 84 - col1 AS col2 FROM tab1
----
-66
36
-66
69
-66
78

query II rowsort
SELECT DISTINCT - col2 AS col1, col2 + - col1 AS col1 FROM tab1
----
-59
54
-68
21
-96
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2110
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + - col0 * - - col1 BETWEEN + - col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2110
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + - col0 * - - col1 BETWEEN + - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
3

query I rowsort
SELECT + - 78 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query I rowsort
SELECT ALL col2 + - + 85 FROM tab1
----
-17
-26
11

query I rowsort
SELECT + - 99 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT ALL MAX( + col1 ) * + 41 + - COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
1927

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL MAX ( + col1 ) * + 41 + - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
1927

query II rowsort
SELECT DISTINCT - - 11 * + col0 AS col2, + 88 FROM tab1 AS cor0
----
1001
88
561
88
935
88

query I rowsort
SELECT ALL - 72 * col2 AS col1 FROM tab1 AS cor0
----
-4248
-4896
-6912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) * col0 col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT col0 + - - 30 AS col1 FROM tab0 AS cor0
----
117
127
45

query I rowsort
SELECT - ( + 9 ) AS col2 FROM tab2
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT DISTINCT MIN( ALL 66 ) + - 4 AS col1 FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT MIN ( ALL 66 ) + - 4 AS col1 FROM tab0
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2122
SELECT DISTINCT COUNT( * ) DIV + 37 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2122
SELECT DISTINCT COUNT ( * ) / + 37 AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL - col0 + - - col0 - col0 * col2 AS col1 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT DISTINCT + 78 - + + 82 * + - 57 + + + COUNT( * ) + - COUNT( * ) AS col2 FROM tab2
----
4752

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT + 78 - + + 82 * + - 57 + + + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2
----
4752

query I rowsort
SELECT DISTINCT col2 + col0 + - col2 + col1 + - 93 * col2 * + + col2 AS col1 FROM tab1
----
-323643
-429894
-857023

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT DISTINCT - COUNT( * ) FROM tab0, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-2126
SELECT DISTINCT - COUNT ( * ) FROM tab0, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

query I rowsort
SELECT 26 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) <> + col0
----

query I rowsort
SELECT + col2 - - + 56 * - col2 FROM tab0 AS cor0
----
-2585
-5445
-550

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * - - col1 * col2 <> - + 55
----

query I rowsort
SELECT DISTINCT + 89 + ( + col1 ) - + col0 * 87 AS col0 FROM tab0 AS cor0
----
-1135
-7459
-8349

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + + 61, col1 AS col0 FROM tab0 AS cor0
----
61
1
61
21
61
81

query I rowsort
SELECT + - 21 / - + col1 - col0 * col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col0, col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query I rowsort
SELECT + + col1 + - col2 * - - 97 FROM tab0 AS cor0
----
-4478
-949
-9602

onlyif mysql # DIV for integer division: 
query I rowsort label-2136
SELECT ALL + col0 + - 84 DIV - + col2 AS col1 FROM tab2 AS cor0
----
49
66
76

skipif mysql # not compatible
query I rowsort label-2136
SELECT ALL + col0 + - 84 / - + col2 AS col1 FROM tab2 AS cor0
----
49
66
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT DISTINCT ( - COUNT( * ) ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2137
SELECT DISTINCT ( - COUNT ( * ) ) col1 FROM tab2
----
-3

query I rowsort
SELECT + 86 * 77 AS col0 FROM tab2
----
6622
6622
6622

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT ALL + COUNT( * ) FROM tab2 WHERE col0 NOT IN ( 39 * col0 )
----
3

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL + COUNT ( * ) FROM tab2 WHERE col0 NOT IN ( 39 * col0 )
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( col1 - - 77 )
----

query I rowsort
SELECT 97 + col2 AS col0 FROM tab1
----
156
165
193

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 61 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NOT - col1 BETWEEN NULL AND 35
----

query I rowsort
SELECT - 91 + + col1 * + col1 AS col2 FROM tab1 WHERE col1 <= ( col0 )
----
-66
105
2118

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 IN ( 14 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 - 77 * - col2 AS col0 FROM tab0
----
3666
7722
780

query I rowsort
SELECT DISTINCT col1 * - col2 + - col1 FROM tab2
----
-1224
-3157
-3953

onlyif mysql # DIV for integer division: 
query I rowsort label-2148
SELECT DISTINCT ( + col0 ) DIV col0 - - col0 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-2148
SELECT DISTINCT ( + col0 ) / col0 - - col0 FROM tab2
----
47
65
76

query I rowsort
SELECT 1 + 92 FROM tab2
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT DISTINCT COUNT( * ) + MIN( - col1 ) FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-2150
SELECT DISTINCT COUNT ( * ) + MIN ( - col1 ) FROM tab1
----
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab1 WHERE ( NULL ) < - 27
----

query I rowsort
SELECT ALL 22 AS col2 FROM tab1 WHERE + col2 IS NOT NULL
----
22
22
22

query III rowsort
SELECT * FROM tab2 WHERE col0 IN ( - 30 * 7 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 * + col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( + 84 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND col0 + + 67 / - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2157
SELECT col1 * - CAST( 2 AS SIGNED ) + - 38 AS col0 FROM tab0
----
-200
-40
-80

skipif mysql # not compatible
query I rowsort label-2157
SELECT col1 * - CAST ( 2 AS INTEGER ) + - 38 AS col0 FROM tab0
----
-200
-40
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT ALL - MIN( col1 ) col1 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2158
SELECT ALL - MIN ( col1 ) col1 FROM tab2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2159
SELECT COUNT( * ) * 33 + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) * + 2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2159
SELECT COUNT ( * ) * 33 + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + 2 FROM tab0
----
NULL

query I rowsort
SELECT 38 * ( - col1 ) + col2 FROM tab1
----
-131
-1718
-436

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT DISTINCT - MAX( col2 ) + + 87 AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT - MAX ( col2 ) + + 87 AS col1 FROM tab1
----
-9

query I rowsort
SELECT col1 - col2 * col1 AS col0 FROM tab0
----
-189
-3726
-98

query I rowsort
SELECT DISTINCT 42 * col0 AS col2 FROM tab0 AS cor0
----
3654
4074
630

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT 28 * - MIN( DISTINCT col1 * col0 ) + + COUNT( * ) col0 FROM tab1 AS cor0
----
-11897

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2164
SELECT 28 * - MIN ( DISTINCT col1 * col0 ) + + COUNT ( * ) col0 FROM tab1 AS cor0
----
-11897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2165
SELECT - COUNT( * ) + - 85 FROM tab2 AS cor0 WHERE NOT CAST( col0 AS SIGNED ) * + 99 NOT IN ( - col2 )
----
-85

skipif mysql # not compatible
query I rowsort label-2165
SELECT - COUNT ( * ) + - 85 FROM tab2 AS cor0 WHERE NOT CAST ( col0 AS INTEGER ) * + 99 NOT IN ( - col2 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT + ( + COUNT( * ) ) + MAX( - col1 ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-2166
SELECT + ( + COUNT ( * ) ) + MAX ( - col1 ) FROM tab0 AS cor0
----
2

query I rowsort
SELECT ALL + ( col1 ) * - 94 FROM tab2 cor0
----
-4794
-6298
-7238

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2169
SELECT DISTINCT col1 + col0 DIV + col1 AS col0 FROM tab2
----
51
68
77

skipif mysql # not compatible
query I rowsort label-2169
SELECT DISTINCT col1 + col0 / + col1 AS col0 FROM tab2
----
51
68
77

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE ( NULL ) IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2171
SELECT ALL col1 * - CAST( - 58 DIV - col2 + ( 82 ) AS SIGNED ) FROM tab2 AS cor0
----
-4284
-5561
-6391

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL col1 * - CAST ( - 58 / - col2 + ( 82 ) AS INTEGER ) FROM tab2 AS cor0
----
-4284
-5561
-6391

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 0 col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2173
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( col1 + col0 )
----

skipif mysql # not compatible
query I rowsort label-2173
SELECT DISTINCT CAST ( NULL AS REAL ) * col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( col1 + col0 )
----

query I rowsort
SELECT DISTINCT + ( - 2 ) * - col1 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT - MIN( 42 ) * + 63 FROM tab1 AS cor0
----
-2646

skipif mysql # not compatible
query I rowsort label-2175
SELECT - MIN ( 42 ) * + 63 FROM tab1 AS cor0
----
-2646

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 90 ) NOT IN ( ( 72 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 84 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 + - col1 / + ( + col1 * + 73 ) NOT BETWEEN ( - col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT - MAX( - 59 ) FROM tab2 AS cor0 WHERE ( 9 * col0 - col2 ) IN ( 15 * + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2178
SELECT - MAX ( - 59 ) FROM tab2 AS cor0 WHERE ( 9 * col0 - col2 ) IN ( 15 * + col0 )
----
NULL

query I rowsort
SELECT DISTINCT - - col0 + + col1 AS col2 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT DISTINCT - col0 * + col1 FROM tab2 AS cor0 WHERE 13 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - ( + col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col2 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 * + 21 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 29 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2185
SELECT DISTINCT + col0 + - CAST( NULL AS SIGNED ) * + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT + col0 + - CAST ( NULL AS INTEGER ) * + col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT COUNT( * ) + 30 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-2186
SELECT COUNT ( * ) + 30 FROM tab1
----
33

query I rowsort
SELECT 37 + - - 99 FROM tab1
----
136
136
136

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2188
SELECT DISTINCT * FROM tab1 WHERE CAST( col0 AS SIGNED ) IS NOT NULL OR col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2188
SELECT DISTINCT * FROM tab1 WHERE CAST ( col0 AS INTEGER ) IS NOT NULL OR col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 16 + - 27 * - 73 AS col0 FROM tab2
----
1987
1987
1987

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN + col1 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2191
SELECT - - col0 + col1 DIV + 60 AS col0 FROM tab2 AS cor0
----
46
65
76

skipif mysql # not compatible
query I rowsort label-2191
SELECT - - col0 + col1 / + 60 AS col0 FROM tab2 AS cor0
----
46
65
76

query I rowsort
SELECT DISTINCT - col0 * + 67 FROM tab0 AS cor0 WHERE col1 * 82 > + 21
----
-1005
-5829
-6499

query I rowsort
SELECT DISTINCT - 21 - - 96 AS col1 FROM tab2 AS cor0
----
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 28 + - 45 * 29 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 38 * - 93 * col1 AS col0 FROM tab1
----
166098
17670
49476

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2196
SELECT DISTINCT CAST( + - col1 AS SIGNED ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2196
SELECT DISTINCT CAST ( + - col1 AS INTEGER ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT + ( + col2 ) * 90 - + col2 FROM tab0
----
4183
8811
890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2198
SELECT CAST( - - col1 AS SIGNED ) * + col1 FROM tab0
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-2198
SELECT CAST ( - - col1 AS INTEGER ) * + col1 FROM tab0
----
1
441
6561

onlyif mysql # DIV for integer division: 
query II rowsort label-2199
SELECT col1, + col0 DIV + + 1 FROM tab2
----
51
46
67
75
77
64

skipif mysql # not compatible
query II rowsort label-2199
SELECT col1, + col0 / + + 1 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # DIV for integer division: 
query I rowsort label-2200
SELECT - col0 DIV + col2 * - col1 DIV + col1 FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-2200
SELECT - col0 / + col2 * - col1 / + col1 FROM tab0 AS cor0
----
0
0
8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN 68 AND - 5 - 64
----

query I rowsort
SELECT - col1 + + - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <= 13
----

query II rowsort
SELECT ALL - - 65, - 49 AS col2 FROM tab0 AS cor0
----
65
-49
65
-49
65
-49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 19 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 + - 13 IS NOT NULL
----

query II rowsort
SELECT ALL col1 AS col2, - 51 + - col2 FROM tab1 AS cor0
----
14
-147
47
-119
5
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT 66 * 0 * + + ( COUNT( * ) ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2208
SELECT 66 * 0 * + + ( COUNT ( * ) ) AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2209
SELECT ALL - CAST( - - col0 AS SIGNED ), col1 AS col1 FROM tab0
----
-15
81
-87
21
-97
1

skipif mysql # not compatible
query II rowsort label-2209
SELECT ALL - CAST ( - - col0 AS INTEGER ), col1 AS col1 FROM tab0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT DISTINCT - 15 * + - col1 * + ( - + col1 ) AS col0 FROM tab2
----
-39015
-67335
-88935

query II rowsort
SELECT col0 * col2 AS col0, - 24 FROM tab1
----
4896
-24
5015
-24
6188
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2212
SELECT ALL COUNT( CAST( + + col2 AS SIGNED ) ) + 32 - + MAX( 89 + 36 ) AS col2 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL COUNT ( CAST ( + + col2 AS INTEGER ) ) + 32 - + MAX ( 89 + 36 ) AS col2 FROM tab2
----
-90

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= 90
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2214
SELECT ALL - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 WHERE NOT - - ( + 55 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL - CAST ( NULL AS REAL ) AS col0 FROM tab0 WHERE NOT - - ( + 55 ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2215
SELECT COUNT( ALL - - CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2215
SELECT COUNT ( ALL - - CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + 64 <= + 82
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2217
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2217
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2218
SELECT ALL COUNT( * ) FROM tab0 cor0 WHERE NOT ( ( - - col1 ) NOT BETWEEN 80 - CAST( NULL AS SIGNED ) AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL COUNT ( * ) FROM tab0 cor0 WHERE NOT ( ( - - col1 ) NOT BETWEEN 80 - CAST ( NULL AS INTEGER ) AND NULL )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT ALL ( - + COUNT( DISTINCT + + ( - 21 ) ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL ( - + COUNT ( DISTINCT + + ( - 21 ) ) ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL ( - + col0 ) + - col2 * - 72 AS col0 FROM tab1
----
4163
4805
6861

query I rowsort
SELECT ALL - col2 * + col2 FROM tab1 WHERE NOT ( - - 38 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + ( + col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2224
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col1 + + CAST( NULL AS SIGNED ) / col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2224
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col1 + + CAST ( NULL AS INTEGER ) / col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT ALL + COUNT( * ) + MAX( - - col1 ) FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL + COUNT ( * ) + MAX ( - - col1 ) FROM tab1 AS cor0
----
50

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + ( - col0 ) / - col0 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2227
SELECT DISTINCT + + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2227
SELECT DISTINCT + + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT 67 * - 19 * - - SUM( DISTINCT - - 37 ) AS col1 FROM tab0 AS cor0
----
-47101

skipif mysql # not compatible
query I rowsort label-2228
SELECT 67 * - 19 * - - SUM ( DISTINCT - - 37 ) AS col1 FROM tab0 AS cor0
----
-47101

query I rowsort
SELECT ALL col2 + - - 73 + + col1 AS col2 FROM tab1 AS cor0
----
137
183
188

query II rowsort
SELECT - - 3 AS col0, col2 - 37 FROM tab1 AS cor0
----
3
22
3
31
3
59

onlyif mysql # DIV for integer division: 
query I rowsort label-2231
SELECT - col1 DIV - 94 * col2 + 12 + + col2 FROM tab0 AS cor0
----
111
22
59

skipif mysql # not compatible
query I rowsort label-2231
SELECT - col1 / - 94 * col2 + 12 + + col2 FROM tab0 AS cor0
----
111
22
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT + MIN( - col2 ) * + - COUNT( * ) FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-2232
SELECT + MIN ( - col2 ) * + - COUNT ( * ) FROM tab0 AS cor0
----
297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 8, col2 * + + 90 * col2 - - ( - ( col2 ) ) col1 FROM tab2
----
8
143960
8
302702
8
47587

onlyif mysql # DIV for integer division: 
query I rowsort label-2234
SELECT - col2 DIV + 73 col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2234
SELECT - col2 / + 73 col0 FROM tab0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2235
SELECT DISTINCT + 82 - + col1 DIV col0 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-2235
SELECT DISTINCT + 82 - + col1 / col0 FROM tab1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT ALL MIN( + ( + - col1 ) ) + - + 97 AS col2 FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-2236
SELECT ALL MIN ( + ( + - col1 ) ) + - + 97 AS col2 FROM tab1
----
-144

query I rowsort
SELECT + col0 - 85 AS col1 FROM tab1
----
-34
0
6

query I rowsort
SELECT DISTINCT + col2 - + 97 + - + col2 AS col0 FROM tab0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0 WHERE ( NULL ) IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT DISTINCT col1 - col0 - - - col1 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2242
SELECT + CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2242
SELECT + CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 93 col0 FROM tab0 AS cor0
----
-93
-93
-93

onlyif mysql # DIV for integer division: 
query II rowsort label-2244
SELECT + 43 * - - 67, - col0 DIV + col1 AS col1 FROM tab1
----
2881
-1
2881
-17
2881
-3

skipif mysql # not compatible
query II rowsort label-2244
SELECT + 43 * - - 67, - col0 / + col1 AS col1 FROM tab1
----
2881
-1
2881
-17
2881
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT - + ( + 50 ) + 54 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= 7
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2248
SELECT DISTINCT col1 * ( - 69 ) AS col2 FROM tab1 WHERE NOT ( CAST( NULL AS DECIMAL ) + + - col0 + + col2 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2248
SELECT DISTINCT col1 * ( - 69 ) AS col2 FROM tab1 WHERE NOT ( CAST ( NULL AS REAL ) + + - col0 + + col2 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2249
SELECT - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0, - ( - SUM( + 28 ) ) * + 92 * COUNT( * ) * - 21 FROM tab2 AS cor0
----
NULL
-486864

skipif mysql # not compatible
query II rowsort label-2249
SELECT - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0, - ( - SUM ( + 28 ) ) * + 92 * COUNT ( * ) * - 21 FROM tab2 AS cor0
----
NULL
-486864

query II rowsort
SELECT ALL ( - col0 ), col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2251
SELECT + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0 WHERE NOT + 11 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2251
SELECT + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 WHERE NOT + 11 IS NULL
----
NULL
NULL
NULL

query II rowsort
SELECT - col2 * + - col2, - col2 * + + col2 AS col0 FROM tab0 AS cor0
----
100
-100
2209
-2209
9801
-9801

query I rowsort
SELECT ALL - - col2 FROM tab0 cor0 WHERE NULL <= + col0 + - 96 * 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT ALL - + ( + COUNT( * ) ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2254
SELECT ALL - + ( + COUNT ( * ) ) col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT ALL + COUNT( + - col1 ) + ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2255
SELECT ALL + COUNT ( + - col1 ) + ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2256
SELECT DISTINCT CAST( - + 30 AS SIGNED ) col2 FROM tab2
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2256
SELECT DISTINCT CAST ( - + 30 AS INTEGER ) col2 FROM tab2
----
-30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( - + 72 )
----

query I rowsort
SELECT ALL + 55 + col2 AS col1 FROM tab1
----
114
123
151

onlyif mysql # DIV for integer division: 
query I rowsort label-2259
SELECT ALL + 49 DIV + 45 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2259
SELECT ALL + 49 / + 45 AS col1 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2260
SELECT 78 AS col2 FROM tab0 WHERE NOT - CAST( - col0 AS SIGNED ) - CAST( - - col0 AS SIGNED ) IN ( col2 )
----
78
78
78

skipif mysql # not compatible
query I rowsort label-2260
SELECT 78 AS col2 FROM tab0 WHERE NOT - CAST ( - col0 AS INTEGER ) - CAST ( - - col0 AS INTEGER ) IN ( col2 )
----
78
78
78

query I rowsort
SELECT - col1 + + 81 + + col0 + - + col2 FROM tab1 AS cor0
----
102
22
57

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 25 + - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT - COUNT( * ) + - COUNT( ALL + col0 ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2263
SELECT - COUNT ( * ) + - COUNT ( ALL + col0 ) FROM tab1 AS cor0
----
-6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 NOT IN ( + + col2 / - 75 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT COUNT( * ) * 19 + - + 34 FROM tab0 cor0
----
23

skipif mysql # not compatible
query I rowsort label-2266
SELECT COUNT ( * ) * 19 + - + 34 FROM tab0 cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT 66 * 93 - COUNT( * ) col1 FROM tab0 AS cor0
----
6135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2267
SELECT 66 * 93 - COUNT ( * ) col1 FROM tab0 AS cor0
----
6135

query I rowsort
SELECT - ( ( + 88 ) ) - + - col2 AS col0 FROM tab2 AS cor0
----
-30
-48
-65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 45 * - 68 ) >= - 38
----

query I rowsort
SELECT ALL + 4 * col0 + col1 FROM tab1 AS cor0
----
218
345
411

query I rowsort
SELECT ALL + ( + - ( + col1 ) ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT ALL - - SUM( 73 ) AS col0 FROM tab1 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL - - SUM ( 73 ) AS col0 FROM tab1 AS cor0
----
219

query I rowsort
SELECT DISTINCT col2 + + col0 * + 11 * col1 + + col0 / col2 FROM tab0 WHERE NULL IS NOT NULL AND NULL NOT IN ( + col1, + col1 * + + col2, - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2274
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, 82 * + col1 FROM tab1
----
NULL
1148
NULL
3854
NULL
410

skipif mysql # not compatible
query II rowsort label-2274
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 82 * + col1 FROM tab1
----
NULL
1148
NULL
3854
NULL
410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 90 + col0 col2 FROM tab0
----
152
187
286

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2276
SELECT - - 21 - + 47 + - col1 FROM tab0 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN + 21 + - CAST( NULL AS SIGNED ) AND 28 * - col2
----

skipif mysql # not compatible
query I rowsort label-2276
SELECT - - 21 - + 47 + - col1 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN + 21 + - CAST ( NULL AS INTEGER ) AND 28 * - col2
----

query III rowsort
SELECT * FROM tab1 WHERE + + col1 + - - 18 + + - col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2278
SELECT ( - ( - 47 ) ) * - ( - 71 ) + - CAST( NULL AS DECIMAL ) + - + 25 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2278
SELECT ( - ( - 47 ) ) * - ( - 71 ) + - CAST ( NULL AS REAL ) + - + 25 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + + + 18 AS col0 FROM tab1
----
-29
13
4

query I rowsort
SELECT ALL 40 * - col2 FROM tab2
----
-1600
-2320
-920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 50 ) col0 FROM tab0
----
50
50
50

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( 93 ) = - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 82 AS col0 FROM tab1 AS cor0 WHERE NOT 31 * - + col0 <= NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 40 > NULL
----

query II rowsort
SELECT + - col2, col2 AS col2 FROM tab0 cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT DISTINCT - 22 * - 52 FROM tab0 AS cor0
----
1144

onlyif mysql # DIV for integer division: 
query I rowsort label-2287
SELECT + col1 DIV - - col1 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2287
SELECT + col1 / - - col1 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - - 88 FROM tab1 AS cor0 WHERE NOT col0 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 88 + + col2 IS NULL
----

query I rowsort
SELECT ALL 6 * + ( + 26 ) FROM tab2 cor0
----
156
156
156

query II rowsort
SELECT DISTINCT col1, - col2 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 <= - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2293
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( CAST( + col1 AS SIGNED ), 35, + + col0 / + 49 )
----

skipif mysql # not compatible
query III rowsort label-2293
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( CAST ( + col1 AS INTEGER ), 35, + + col0 / + 49 )
----

query I rowsort
SELECT + + 79 + 98 + + col1 * col0 * + - 42 AS col2 FROM tab2 AS cor0
----
-206799
-210873
-98355

query I rowsort
SELECT 7 FROM tab0 WHERE NOT + - col1 IS NULL
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2296
SELECT DISTINCT + 88 + + + CAST( 59 AS SIGNED ) - + col0 col2 FROM tab2
----
101
72
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2296
SELECT DISTINCT + 88 + + + CAST ( 59 AS INTEGER ) - + col0 col2 FROM tab2
----
101
72
83

query II rowsort
SELECT col1 + + + 24 AS col1, - col2 AS col1 FROM tab2
----
101
-40
75
-23
91
-58

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT - col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - - col0 col1 FROM tab0 WHERE col2 IS NOT NULL
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2300
SELECT ALL + col2 + - CAST( col1 AS SIGNED ) FROM tab1
----
21
54
82

skipif mysql # not compatible
query I rowsort label-2300
SELECT ALL + col2 + - CAST ( col1 AS INTEGER ) FROM tab1
----
21
54
82

query III rowsort
SELECT * FROM tab1 WHERE + - col0 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 73 col2 FROM tab2 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT - MAX( ALL + ( col1 ) ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2303
SELECT - MAX ( ALL + ( col1 ) ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + - col0 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT ALL - SUM( ALL + + 22 ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL - SUM ( ALL + + 22 ) AS col0 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT DISTINCT COUNT( * ) + + - 52 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-43

skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT COUNT ( * ) + + - 52 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-43

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 87 IS NULL
----

query I rowsort
SELECT ALL - 43 AS col2 FROM tab2 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL col1 * col2 * - ( col0 ) - + col2 FROM tab1
----
-25134
-290904
-68640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 47 col1 FROM tab1 AS cor0
----
47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( NULL ) IN ( col1 * + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT + SUM( col2 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-2311
SELECT + SUM ( col2 ) FROM tab2 cor0
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2312
SELECT - + COUNT( * ) * - + 51 + + + 49 * CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
300

skipif mysql # not compatible
query I rowsort label-2312
SELECT - + COUNT ( * ) * - + 51 + + + 49 * CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2313
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2313
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2314
SELECT ALL ( - SUM( + 76 ) ) AS col1, + COUNT( * ) FROM tab2 cor0
----
-228
3

skipif mysql # not compatible
query II rowsort label-2314
SELECT ALL ( - SUM ( + 76 ) ) AS col1, + COUNT ( * ) FROM tab2 cor0
----
-228
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT COUNT( DISTINCT + ( - col0 ) ) * + - 65 AS col0 FROM tab1
----
-195

skipif mysql # not compatible
query I rowsort label-2315
SELECT COUNT ( DISTINCT + ( - col0 ) ) * + - 65 AS col0 FROM tab1
----
-195

onlyif mysql # aggregate syntax: 
query II rowsort label-2316
SELECT + ( - COUNT( * ) ), MIN( DISTINCT - col2 ) AS col1 FROM tab1
----
-3
-96

skipif mysql # not compatible
query II rowsort label-2316
SELECT + ( - COUNT ( * ) ), MIN ( DISTINCT - col2 ) AS col1 FROM tab1
----
-3
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2317
SELECT + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2317
SELECT + CAST ( NULL AS REAL ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= + + 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT - COUNT( * ) * + 15 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-2319
SELECT - COUNT ( * ) * + 15 FROM tab2 AS cor0
----
-45

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col0, 42 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 27 * col0 IS NULL
----

query II rowsort
SELECT + col1 AS col2, 83 * 8 FROM tab2 AS cor0
----
51
664
67
664
77
664

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT DISTINCT - - MAX( - 6 ) col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2323
SELECT DISTINCT - - MAX ( - 6 ) col1 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT ALL - + col0 FROM tab1 cor0 WHERE 78 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT ALL - col1 * + 5 + + + 15 AS col0 FROM tab1 AS cor0
----
-10
-220
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-2326
SELECT - col0 DIV - 47 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2326
SELECT - col0 / - 47 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT DISTINCT - ( + - 77 ) + - - MIN( + + col1 ) AS col1 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-2327
SELECT DISTINCT - ( + - 77 ) + - - MIN ( + + col1 ) AS col1 FROM tab0 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT ALL 83 + COUNT( * ) FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL 83 + COUNT ( * ) FROM tab2 AS cor0
----
86

query I rowsort
SELECT DISTINCT + col2 * + + 88 FROM tab2 cor0
----
2024
3520
5104

query I rowsort
SELECT DISTINCT + col0 + 22 FROM tab1 AS cor0
----
107
113
73

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 94 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT ALL + COUNT( * ) + - + COUNT( * ) + - - COUNT( * ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2333
SELECT col2, col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-2333
SELECT col2, col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT 7 * - - 86 + + col1 * - 77 FROM tab0
----
-1015
-5635
525

query II rowsort
SELECT ALL col0 AS col1, - col1 FROM tab1
----
51
-14
85
-5
91
-47

query I rowsort
SELECT - 41 + + 99 AS col1 FROM tab0
----
58
58
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2337
SELECT ( - COUNT( * ) ) DIV + 46 * - MIN( ALL - - col0 ) + + 41 AS col1 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-2337
SELECT ( - COUNT ( * ) ) / + 46 * - MIN ( ALL - - col0 ) + + 41 AS col1 FROM tab1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT ALL - 89 * + SUM( DISTINCT + + 18 ) * + 53 + + + 67 AS col2 FROM tab1 AS cor0
----
-84839

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL - 89 * + SUM ( DISTINCT + + 18 ) * + 53 + + + 67 AS col2 FROM tab1 AS cor0
----
-84839

query I rowsort
SELECT ALL 44 * + + col0 AS col0 FROM tab2 AS cor0
----
2024
2816
3300

query I rowsort
SELECT ALL + - 61 * + + col0 + - 84 FROM tab0 AS cor0
----
-5391
-6001
-999

query I rowsort
SELECT DISTINCT + + col2 + - ( + 54 ) FROM tab0 cor0
----
-44
-7
45

query I rowsort
SELECT DISTINCT 64 * - 43 + - + 19 * - 42 AS col2 FROM tab2
----
-1954

query I rowsort
SELECT DISTINCT - ( - 80 ) * - - col1 - - col1 * 43 * - col2 FROM tab1 AS cor0
----
-12285
-133668
-56672

onlyif mysql # DIV for integer division: 
query I rowsort label-2344
SELECT + col2 DIV - col1 - - - col0 DIV + + 63 AS col1 FROM tab0 AS cor0
----
-1
-100
0

skipif mysql # not compatible
query I rowsort label-2344
SELECT + col2 / - col1 - - - col0 / + + 63 AS col1 FROM tab0 AS cor0
----
-1
-100
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT + 62 - + ( COUNT( * ) ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2345
SELECT + 62 - + ( COUNT ( * ) ) FROM tab1 AS cor0
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 col1 FROM tab2 AS cor0
----
7
7
7

query I rowsort
SELECT ALL + - col2 AS col1 FROM tab0 AS cor0 WHERE + col0 > + col0
----

query III rowsort
SELECT DISTINCT col2 * - - 44 AS col1, col0, 31 AS col2 FROM tab0 cor0
----
9 values hashing to dbdd2493d3954843dabf57451e69e1dd

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT ALL + MIN( ( + col2 ) ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL + MIN ( ( + col2 ) ) FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2350
SELECT ALL - - COUNT( * ) DIV - - 53 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL - - COUNT ( * ) / - - 53 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2352
SELECT COUNT( * ) DIV - - COUNT( * ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2352
SELECT COUNT ( * ) / - - COUNT ( * ) AS col2 FROM tab1
----
1

query II rowsort
SELECT DISTINCT col0 AS col1, col2 AS col2 FROM tab0
----
15
47
87
10
97
99

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 = - + 52
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-2355
SELECT DISTINCT - 57 AS col2, + 84 + + + COUNT( * ) * - + 58 * - COUNT( * ) AS col0 FROM tab0
----
-57
606

skipif mysql # not compatible
query II rowsort label-2355
SELECT DISTINCT - 57 AS col2, + 84 + + + COUNT ( * ) * - + 58 * - COUNT ( * ) AS col0 FROM tab0
----
-57
606

query I rowsort
SELECT DISTINCT - + 54 * col2 AS col2 FROM tab0 cor0
----
-2538
-5346
-540

query I rowsort
SELECT 71 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2358
SELECT 59 + - 17 DIV 43 FROM tab2 AS cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-2358
SELECT 59 + - 17 / 43 FROM tab2 AS cor0
----
59
59
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + - col1 IS NULL
----

query I rowsort
SELECT - - col1 + col1 FROM tab1 WHERE col2 + + col0 * col1 IS NULL
----

query I rowsort
SELECT ALL + col1 + - col2 * + + col1 FROM tab2
----
-1122
-3003
-3819

query I rowsort
SELECT - ( + - 82 ) FROM tab2
----
82
82
82

query I rowsort
SELECT DISTINCT col1 * + 47 + - col0 AS col2 FROM tab1 WHERE + 24 * col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 + col0 BETWEEN - - 41 AND NULL
----

query I rowsort
SELECT DISTINCT 84 * + + 71 FROM tab2
----
5964

query I rowsort
SELECT DISTINCT - 30 * - + 13 FROM tab0 AS cor0 WHERE NOT 28 / + col1 - + - col2 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2368
SELECT DISTINCT 18 DIV 73 col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2368
SELECT DISTINCT 18 / 73 col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 67 + col1 FROM tab1 cor0
----
114
72
81

query I rowsort
SELECT + col0 FROM tab1 WHERE - col0 = NULL
----

query I rowsort
SELECT DISTINCT 4 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE - - col2 <> col2 * - col1 - col2 - - + 7
----
3

skipif mysql # not compatible
query I rowsort label-2372
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE - - col2 <> col2 * - col1 - col2 - - + 7
----
3

query II rowsort
SELECT 98 AS col2, 38 AS col0 FROM tab0, tab1 AS cor0
----
18 values hashing to 0b8e827fe798dedbb329a6d1eb80045d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col1 col2, + col0 + + col0 * + + ( + - col1 ) AS col1 FROM tab1 AS cor0
----
-14
-663
-47
-4186
-5
-340

onlyif mysql # aggregate syntax: 
query II rowsort label-2375
SELECT + + 3, COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2375
SELECT + + 3, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2376
SELECT * FROM tab1 cor0 WHERE NOT - 74 - - col1 / - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2376
SELECT * FROM tab1 cor0 WHERE NOT - 74 - - col1 / - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT + - 50 * + - 29 FROM tab1 AS cor0
----
1450
1450
1450

query II rowsort
SELECT ALL - - col0 AS col2, col2 * - 48 FROM tab0 AS cor0
----
15
-2256
87
-480
97
-4752

query I rowsort
SELECT - col2 * - col1 + - col2 + + ( - + col0 ) AS col2 FROM tab2 AS cor0
----
1104
2976
3753

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT DISTINCT - ( + MAX( ALL + + col2 ) ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2380
SELECT DISTINCT - ( + MAX ( ALL + + col2 ) ) FROM tab2 AS cor0
----
-58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 >= NULL
----

query II rowsort
SELECT + + col1 AS col1, col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT + COUNT( ALL col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2383
SELECT + COUNT ( ALL col2 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * - 99 FROM tab0
----
-4653
-9801
-990

query III rowsort
SELECT * FROM tab2 WHERE NOT - 18 NOT BETWEEN col0 AND + - ( col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2387
SELECT DISTINCT + col0 DIV + col2 AS col1, + 42 col1 FROM tab2
----
1
42
2
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2387
SELECT DISTINCT + col0 / + col2 AS col1, + 42 col1 FROM tab2
----
1
42
2
42

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 74 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + - - 51 AS col1 FROM tab2 AS cor0
----
-16
-26
0

query I rowsort
SELECT + col1 * col0 + + - col1 AS col0 FROM tab0 AS cor0
----
1134
1806
96

query I rowsort
SELECT DISTINCT - ( + 9 ) FROM tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2392
SELECT + - COUNT( * ) AS col1, CAST( + 15 AS DECIMAL ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-2392
SELECT + - COUNT ( * ) AS col1, CAST ( + 15 AS REAL ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 27 <> - - 21
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 25 IS NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col2, col0 * + 91 FROM tab1 AS cor0
----
51
4641
85
7735
91
8281

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + 23
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2397
SELECT DISTINCT + 54 * + + CAST( - 39 AS SIGNED ) + - + CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-2157
-2191
-2197

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT + 54 * + + CAST ( - 39 AS INTEGER ) + - + CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-2157
-2191
-2197

query II rowsort
SELECT DISTINCT col0, - col0 AS col0 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2399
SELECT ALL - CAST( NULL AS DECIMAL ) + - - CAST( NULL AS SIGNED ) * - col1 + - col2 - col1 * - col0 / - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL - CAST ( NULL AS REAL ) + - - CAST ( NULL AS INTEGER ) * - col1 + - col2 - col1 * - col0 / - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT ALL 44 + - + MIN( col0 ) col2 FROM tab1 WHERE ( NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2400
SELECT ALL 44 + - + MIN ( col0 ) col2 FROM tab1 WHERE ( NULL IS NOT NULL )
----
NULL

query I rowsort
SELECT + col1 * + col1 + + col0 AS col2 FROM tab2
----
2647
4564
5993

query I rowsort
SELECT DISTINCT 34 * col1 + col0 AS col2 FROM tab1
----
1689
255
527

onlyif mysql # DIV for integer division: 
query I rowsort label-2403
SELECT + 30 + + - 42 DIV - col0 col1 FROM tab1
----
30
30
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2403
SELECT + 30 + + - 42 / - col0 col1 FROM tab1
----
30
30
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2404
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2404
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 93 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2406
SELECT ALL + + 22, COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
22
0

skipif mysql # not compatible
query II rowsort label-2406
SELECT ALL + + 22, COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
22
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col1 >= col2
----

query II rowsort
SELECT - + 60, 31 AS col2 FROM tab2 AS cor0
----
-60
31
-60
31
-60
31

onlyif mysql # aggregate syntax: 
query II rowsort label-2409
SELECT ALL COUNT( ALL - col1 ) * + 24, 90 + + COUNT( - col0 ) AS col1 FROM tab0 AS cor0
----
72
93

skipif mysql # not compatible
query II rowsort label-2409
SELECT ALL COUNT ( ALL - col1 ) * + 24, 90 + + COUNT ( - col0 ) AS col1 FROM tab0 AS cor0
----
72
93

query I rowsort
SELECT DISTINCT + ( - + col2 ) AS col0 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT ALL MIN( DISTINCT + col2 ) * - MAX( - col1 ) FROM tab2
----
1173

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL MIN ( DISTINCT + col2 ) * - MAX ( - col1 ) FROM tab2
----
1173

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - 80 * - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2414
SELECT DISTINCT - 75 AS col2 FROM tab0 WHERE NOT + col2 + + col1 * + ( - 62 ) >= CAST( + - col1 AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-2414
SELECT DISTINCT - 75 AS col2 FROM tab0 WHERE NOT + col2 + + col1 * + ( - 62 ) >= CAST ( + - col1 AS INTEGER )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT - 67 * + - ( - MIN( DISTINCT - 77 ) ) FROM tab2
----
5159

skipif mysql # not compatible
query I rowsort label-2415
SELECT - 67 * + - ( - MIN ( DISTINCT - 77 ) ) FROM tab2
----
5159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 10 col0, col0 FROM tab2
----
10
46
10
64
10
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2417
SELECT - col2 DIV + 91 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2417
SELECT - col2 / + 91 AS col0 FROM tab1
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2418
SELECT DISTINCT col1 DIV + 9 FROM tab0
----
0
2
9

skipif mysql # not compatible
query I rowsort label-2418
SELECT DISTINCT col1 / + 9 FROM tab0
----
0
2
9

query I rowsort
SELECT + 33 * - 60 * + + col0 FROM tab2
----
-126720
-148500
-91080

onlyif mysql # DIV for integer division: 
query I rowsort label-2420
SELECT ( - 50 ) DIV - - col0 col2 FROM tab0
----
-3
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2420
SELECT ( - 50 ) / - - col0 col2 FROM tab0
----
-3
0
0

query II rowsort
SELECT DISTINCT col2, - 43 - - + col1 AS col1 FROM tab2
----
23
8
40
34
58
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 50 ) col0 FROM tab1 AS cor0
----
50

query I rowsort
SELECT + 79 * + col2 AS col2 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
3713
7821
790

query I rowsort
SELECT DISTINCT - ( + 26 ) + - 92 + + - 62 FROM tab1 AS cor0
----
-180

query I rowsort
SELECT ALL + 92 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT ALL - MAX( DISTINCT + 22 ) * - 89 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1958

skipif mysql # not compatible
query I rowsort label-2426
SELECT ALL - MAX ( DISTINCT + 22 ) * - 89 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1958

onlyif mysql # aggregate syntax: 
query II rowsort label-2427
SELECT DISTINCT - COUNT( * ) AS col1, - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3
-3

skipif mysql # not compatible
query II rowsort label-2427
SELECT DISTINCT - COUNT ( * ) AS col1, - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + - 25 ) col1 FROM tab1 AS cor0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2429
SELECT - - col0 * - + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-2429
SELECT - - col0 * - + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-225
-7569
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - + 91 * - ( + col0 ) col0 FROM tab0
----
1446
7938
8828

query I rowsort
SELECT DISTINCT + col1 + - - col2 AS col2 FROM tab1
----
110
115
64

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 = NULL
----

query II rowsort
SELECT col1, col2 AS col0 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT ALL - col0 + + 69 FROM tab0
----
-18
-28
54

query III rowsort
SELECT * FROM tab0 WHERE + + 87 * ( - - col2 ) - ( - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 46 * + col1 - + 73 * - col1 - + + col1 * + - col2 * + col2 FROM tab1
----
129402
17540
218597

query II rowsort
SELECT ALL - col0 AS col0, - col1 AS col2 FROM tab2 AS cor0
----
-46
-51
-64
-77
-75
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2438
SELECT col0 * 43 AS col1, CAST( NULL AS SIGNED ) FROM tab1
----
2193
NULL
3655
NULL
3913
NULL

skipif mysql # not compatible
query II rowsort label-2438
SELECT col0 * 43 AS col1, CAST ( NULL AS INTEGER ) FROM tab1
----
2193
NULL
3655
NULL
3913
NULL

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) >= NULL
----

query II rowsort
SELECT ( + - col0 ), - 78 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT ALL - - COUNT( - 75 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2441
SELECT ALL - - COUNT ( - 75 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 96 AS col0 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT - + SUM( DISTINCT col0 ) col1 FROM tab1 cor0
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2443
SELECT - + SUM ( DISTINCT col0 ) col1 FROM tab1 cor0
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2444
SELECT CAST( NULL AS SIGNED ) / - + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col2 / col0 * col2 IN ( + ( - col0 ), + col2 * - 38 / + + col1 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2444
SELECT CAST ( NULL AS INTEGER ) / - + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col2 / col0 * col2 IN ( + ( - col0 ), + col2 * - 38 / + + col1 )
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( 32 ) FROM tab0
----
32
32
32

query I rowsort
SELECT ALL col0 * ( - + col0 ) AS col0 FROM tab0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2447
SELECT DISTINCT SUM( - col1 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2447
SELECT DISTINCT SUM ( - col1 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 19 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT - + ( - - col0 ) * + 22 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT 59 - + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col2 + - col1 * + - 52 col0 FROM tab0 AS cor0
----
1092
4212
52

query I rowsort
SELECT - 50 + - 40 FROM tab2 cor0
----
-90
-90
-90

query II rowsort
SELECT DISTINCT - col2 AS col2, col0 FROM tab0
----
-10
87
-47
15
-99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT ALL - MIN( + col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2454
SELECT ALL - MIN ( + col2 ) AS col2 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-2455
SELECT ALL COUNT( * ) AS col2, 12 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
3
-36

skipif mysql # not compatible
query II rowsort label-2455
SELECT ALL COUNT ( * ) AS col2, 12 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT COUNT( * ) - - + MIN( + col1 ) * + + ( - 0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2456
SELECT COUNT ( * ) - - + MIN ( + col1 ) * + + ( - 0 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2457
SELECT DISTINCT + col0 * - col1 * - + col0 * - + CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
2131375
26466076
3495744

skipif mysql # not compatible
query I rowsort label-2457
SELECT DISTINCT + col0 * - col1 * - + col0 * - + CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
2131375
26466076
3495744

query I rowsort
SELECT + 75 - + 51 AS col0 FROM tab1 AS cor0
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT ALL - + COUNT( * ) * - 34 AS col0 FROM tab2 cor0
----
102

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL - + COUNT ( * ) * - 34 AS col0 FROM tab2 cor0
----
102

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT NULL <> NULL )
----

query I rowsort
SELECT ALL col1 * - - ( + 18 ) + 26 FROM tab0 AS cor0
----
1484
404
44

query III rowsort
SELECT * FROM tab1 WHERE + col0 + - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT DISTINCT MAX( col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2463
SELECT DISTINCT MAX ( col2 ) FROM tab2
----
58

query I rowsort
SELECT ALL + 40 + + - col1 * - - ( - col0 ) AS col2 FROM tab1
----
4317
465
754

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2465
SELECT + 88 + - col2 col1, + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
30
NULL
48
NULL
65
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2465
SELECT + 88 + - col2 col1, + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
30
NULL
48
NULL
65
NULL

query I rowsort
SELECT DISTINCT 67 + 20 FROM tab2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2467
SELECT - CAST( + + col2 AS SIGNED ) AS col2, col0 * + + 68 FROM tab0
----
-10
5916
-47
1020
-99
6596

skipif mysql # not compatible
query II rowsort label-2467
SELECT - CAST ( + + col2 AS INTEGER ) AS col2, col0 * + + 68 FROM tab0
----
-10
5916
-47
1020
-99
6596

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT ALL - 77 + 67 + COUNT( * ) FROM tab2 WHERE col0 IS NOT NULL
----
-7

skipif mysql # not compatible
query I rowsort label-2468
SELECT ALL - 77 + 67 + COUNT ( * ) FROM tab2 WHERE col0 IS NOT NULL
----
-7

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 84 = NULL
----

query I rowsort
SELECT ALL + 19 * col0 * + + 47 FROM tab2 AS cor0
----
41078
57152
66975

onlyif mysql # DIV for integer division: 
query II rowsort label-2471
SELECT + col2 DIV + + 54 AS col0, col2 AS col0 FROM tab2 AS cor0
----
0
23
0
40
1
58

skipif mysql # not compatible
query II rowsort label-2471
SELECT + col2 / + + 54 AS col0, col2 AS col0 FROM tab2 AS cor0
----
0
23
0
40
1
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2472
SELECT ALL - COUNT( * ) AS col0, + 68 FROM tab1
----
-3
68

skipif mysql # not compatible
query II rowsort label-2472
SELECT ALL - COUNT ( * ) AS col0, + 68 FROM tab1
----
-3
68

onlyif mysql # aggregate syntax: 
query II rowsort label-2473
SELECT DISTINCT - COUNT( * ) * + + COUNT( * ), - COUNT( * ) + COUNT( * ) AS col1 FROM tab1, tab0 AS cor0
----
-81
0

skipif mysql # not compatible
query II rowsort label-2473
SELECT DISTINCT - COUNT ( * ) * + + COUNT ( * ), - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1, tab0 AS cor0
----
-81
0

query I rowsort
SELECT ALL ( 20 ) AS col0 FROM tab0
----
20
20
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2475
SELECT DISTINCT ( - CAST( COUNT( * ) AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2475
SELECT DISTINCT ( - CAST ( COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + 99 * - + 33 * - 35 + + 95 + col0 + 14 FROM tab1 AS cor0
----
114505
114539
114545

query I rowsort
SELECT + - col1 + + col1 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2478
SELECT ALL + MAX( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL + MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 79 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2480
SELECT DISTINCT + 46 * CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2480
SELECT DISTINCT + 46 * CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2481
SELECT COUNT( * ) * + 80 + + - 84 DIV - + SUM( DISTINCT col2 ) FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-2481
SELECT COUNT ( * ) * + 80 + + - 84 / - + SUM ( DISTINCT col2 ) FROM tab1
----
240

query I rowsort
SELECT ALL + 13 + - col0 + - + col1 FROM tab1
----
-125
-52
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2483
SELECT ALL CAST( + 78 AS SIGNED ) FROM tab0
----
78
78
78

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL CAST ( + 78 AS INTEGER ) FROM tab0
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + col2 * - - col1 * + 58 col1 FROM tab2
----
11432960
16904100
3129564

query I rowsort
SELECT col2 * + 28 FROM tab1
----
1652
1904
2688

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT 90 * COUNT( * ) * - - COUNT( * ) AS col2 FROM tab2
----
810

skipif mysql # not compatible
query I rowsort label-2486
SELECT 90 * COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab2
----
810

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT ALL - COUNT( + col2 ) AS col1 FROM tab2 AS cor0 WHERE ( NOT - + 75 <> ( - - col0 ) + - - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL - COUNT ( + col2 ) AS col1 FROM tab2 AS cor0 WHERE ( NOT - + 75 <> ( - - col0 ) + - - col0 )
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 <> - - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 * col1 * 36 * + col0 + col1 + col1 FROM tab0 cor0
----
-1381170
-3490
-3542778

query I rowsort
SELECT ALL + col0 + col1 * - - 97 FROM tab2 AS cor0
----
4993
6574
7533

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 20 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 4 col0 FROM tab1 AS cor0
----
-188
-20
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2493
SELECT ALL - COUNT( * ) * - COUNT( * ) * - + SUM( + CAST( 60 AS SIGNED ) ) FROM tab1 AS cor0
----
-1620

skipif mysql # not compatible
query I rowsort label-2493
SELECT ALL - COUNT ( * ) * - COUNT ( * ) * - + SUM ( + CAST ( 60 AS INTEGER ) ) FROM tab1 AS cor0
----
-1620

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <= + col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 58 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2496
SELECT DISTINCT ( col2 ) * + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2496
SELECT DISTINCT ( col2 ) * + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2497
SELECT DISTINCT COUNT( * ) DIV SUM( 66 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2497
SELECT DISTINCT COUNT ( * ) / SUM ( 66 ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2498
SELECT + + col1 DIV + + 66 * + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2498
SELECT + + col1 / + + 66 * + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2499
SELECT - 54 DIV + 13 FROM tab1 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-2499
SELECT - 54 / + 13 FROM tab1 AS cor0
----
-4
-4
-4

query I rowsort
SELECT ALL - col0 / + + col1 - + + col0 FROM tab1 cor0 WHERE NOT NULL = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col1 + 20 FROM tab0
----
101
21
41

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col2 col0 FROM tab1
----
-3481
-4624
-9216

query II rowsort
SELECT 24, col2 AS col2 FROM tab1
----
24
59
24
68
24
96

query I rowsort
SELECT DISTINCT + + 38 FROM tab0 cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT + SUM( ALL + + col0 ) AS col2 FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-2507
SELECT + SUM ( ALL + + col0 ) AS col2 FROM tab0 cor0
----
199

query II rowsort
SELECT DISTINCT - col0 AS col0, + col1 * col1 AS col1 FROM tab1 AS cor0
----
-51
196
-85
25
-91
2209

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT - ( - SUM( DISTINCT - + 27 ) ) AS col2 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-2509
SELECT - ( - SUM ( DISTINCT - + 27 ) ) AS col2 FROM tab1 AS cor0
----
-27

query I rowsort
SELECT + 18 + 12 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # DIV for integer division: 
query III rowsort label-2511
SELECT ALL * FROM tab0 AS cor0 WHERE col1 DIV + ( - 37 ) < - - col0 + - col0
----
15
81
47

skipif mysql # not compatible
query III rowsort label-2511
SELECT ALL * FROM tab0 AS cor0 WHERE col1 / + ( - 37 ) < - - col0 + - col0
----
15
81
47

query I rowsort
SELECT + ( + 75 ) AS col0 FROM tab1 AS cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2513
SELECT MAX( + + 3 ) AS col2, - ( COUNT( * ) ) FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-2513
SELECT MAX ( + + 3 ) AS col2, - ( COUNT ( * ) ) FROM tab1 AS cor0
----
3
-3

query I rowsort
SELECT DISTINCT - col0 * - col0 + - - col1 AS col0 FROM tab1 AS cor0
----
2615
7230
8328

query I rowsort
SELECT DISTINCT + 29 * col2 + + 45 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1408
2916
335

query I rowsort
SELECT DISTINCT col1 * + 50 FROM tab1
----
2350
250
700

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + col0 / + 67 + - - col2 AND - col1 / + 11 + - col0 - - - 26
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2518
SELECT ALL col2 + + - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL col2 + + - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT + COUNT( col0 ) FROM tab1 WHERE - - ( + col2 ) <> col0 * - col2 * - - 31
----
3

skipif mysql # not compatible
query I rowsort label-2519
SELECT + COUNT ( col0 ) FROM tab1 WHERE - - ( + col2 ) <> col0 * - col2 * - - 31
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-2520
SELECT DISTINCT col0 * - 1 + - 20 col2, - 88 DIV - - col2 AS col1 FROM tab0
----
-107
-8
-117
0
-35
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2520
SELECT DISTINCT col0 * - 1 + - 20 col2, - 88 / - - col2 AS col1 FROM tab0
----
-107
-8
-117
0
-35
-1

query I rowsort
SELECT col1 + - + 79 AS col1 FROM tab0
----
-58
-78
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 86 + - 85 col2 FROM tab2 AS cor0
----
-171
-171
-171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2523
SELECT - col0 * CAST( NULL AS SIGNED ) + - - 98 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2523
SELECT - col0 * CAST ( NULL AS INTEGER ) + - - 98 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + - ( + 53 ) FROM tab0 cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2525
SELECT + + CAST( + col2 AS SIGNED ) * - + col0 + - col1 FROM tab1 AS cor0
----
-4910
-5020
-6235

skipif mysql # not compatible
query I rowsort label-2525
SELECT + + CAST ( + col2 AS INTEGER ) * - + col0 + - col1 FROM tab1 AS cor0
----
-4910
-5020
-6235

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT ALL - + MAX( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL - + MAX ( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT ALL 25 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL = ( 51 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2528
SELECT * FROM tab1 WHERE + 2 NOT BETWEEN - CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2528
SELECT * FROM tab1 WHERE + 2 NOT BETWEEN - CAST ( NULL AS REAL ) AND NULL
----

query I rowsort
SELECT col0 * col2 - - col1 * 6 + + + col2 + + ( col0 ) FROM tab0
----
1093
1253
9805

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT + COUNT( * ) - + - MAX( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-2530
SELECT + COUNT ( * ) - + - MAX ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-7

query I rowsort
SELECT - + 87 - + + col2 AS col1 FROM tab2 AS cor0
----
-110
-127
-145

query I rowsort
SELECT DISTINCT + ( - - col1 ) FROM tab0 AS cor0
----
1
21
81

query II rowsort
SELECT ALL col2, col2 AS col0 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT ALL + col1 * - 20 AS col2 FROM tab0
----
-1620
-20
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT + 81 * + 49 * + COUNT( * ) FROM tab1
----
11907

skipif mysql # not compatible
query I rowsort label-2535
SELECT + 81 * + 49 * + COUNT ( * ) FROM tab1
----
11907

query II rowsort
SELECT 2, - col2 + ( + col0 ) AS col0 FROM tab2
----
2
17
2
23
2
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2537
SELECT ALL col1 DIV + - 69 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2537
SELECT ALL col1 / + - 69 AS col2 FROM tab2
----
-1
0
0

query I rowsort
SELECT DISTINCT + 51 * - col0 * 12 FROM tab2
----
-28152
-39168
-45900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2539
SELECT - 74 / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2539
SELECT - 74 / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + - ( 63 ) AS col0 FROM tab2
----
-2898
-4032
-4725

query I rowsort
SELECT + + col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2542
SELECT - COUNT( - + col0 ) DIV - COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2542
SELECT - COUNT ( - + col0 ) / - COUNT ( * ) FROM tab1
----
1

query II rowsort
SELECT - col2, 29 - + col1 * + col1 AS col2 FROM tab0
----
-10
-412
-47
-6532
-99
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT ALL + MIN( DISTINCT - 7 ) FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-2544
SELECT ALL + MIN ( DISTINCT - 7 ) FROM tab1
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2545
SELECT - CAST( NULL AS SIGNED ) * + 90 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2545
SELECT - CAST ( NULL AS INTEGER ) * + 90 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-2546
SELECT 61 AS col2, + 58 AS col2, + - 88 * - + MIN( ALL + 14 ) AS col1 FROM tab2
----
61
58
1232

skipif mysql # not compatible
query III rowsort label-2546
SELECT 61 AS col2, + 58 AS col2, + - 88 * - + MIN ( ALL + 14 ) AS col1 FROM tab2
----
61
58
1232

onlyif mysql # aggregate syntax: 
query II rowsort label-2547
SELECT ALL + SUM( - - 68 ) AS col1, - SUM( ALL - 14 ) FROM tab2 WHERE NOT - col0 * - col2 + - - col2 IS NULL
----
204
42

skipif mysql # not compatible
query II rowsort label-2547
SELECT ALL + SUM ( - - 68 ) AS col1, - SUM ( ALL - 14 ) FROM tab2 WHERE NOT - col0 * - col2 + - - col2 IS NULL
----
204
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2548
SELECT ALL COUNT( * ) DIV - 58 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL COUNT ( * ) / - 58 AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT + - 13 * + MIN( DISTINCT + col2 ) + - 29 FROM tab2 AS cor0
----
-328

skipif mysql # not compatible
query I rowsort label-2549
SELECT + - 13 * + MIN ( DISTINCT + col2 ) + - 29 FROM tab2 AS cor0
----
-328

query I rowsort
SELECT DISTINCT + + ( + 44 ) FROM tab2 AS cor0
----
44

query II rowsort
SELECT ALL + + col1 AS col2, + 39 AS col2 FROM tab1 AS cor0
----
14
39
47
39
5
39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 27 + + + 22 + - col2 AS col1 FROM tab1 cor0
----
-101
-64
-73

query I rowsort
SELECT DISTINCT 24 FROM tab1 cor0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2555
SELECT ALL + CAST( - - col2 AS SIGNED ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL + CAST ( - - col2 AS INTEGER ) FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT - + col0 AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2557
SELECT DISTINCT - - COUNT( * ) AS col2, 91 AS col2 FROM tab0 cor0
----
3
91

skipif mysql # not compatible
query II rowsort label-2557
SELECT DISTINCT - - COUNT ( * ) AS col2, 91 AS col2 FROM tab0 cor0
----
3
91

query II rowsort
SELECT DISTINCT col0 AS col1, + 0 FROM tab0 AS cor0
----
15
0
87
0
97
0

query I rowsort
SELECT ALL - AVG ( + + col1 ) FROM tab1 AS cor0 WHERE NULL >= ( col2 )
----
NULL

query I rowsort
SELECT - col1 + 53 * col0 - col2 AS col2 FROM tab0
----
4580
5041
667

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 > - ( col2 )
----
97
1
99

query I rowsort
SELECT DISTINCT + ( 72 ) AS col1 FROM tab2
----
72

query I rowsort
SELECT ALL 4 + - col2 * 82 - + 22 + - col2 * col2 * col2 * - 56 * + col2 FROM tab2 WHERE - 35 + - - 72 <> col1
----
143356702
15669192
633719002

query I rowsort
SELECT DISTINCT col2 + col0 * col0 * + 67 * + col1 AS col0 FROM tab2
----
21131304
25250683
7230395

query I rowsort
SELECT - col1 FROM tab2 WHERE - 22 / 89 + col1 + + col2 > + - ( col1 )
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + 85 * 63 + + 2 + + 4 AS col0 FROM tab1
----
5361

query I rowsort
SELECT ALL col1 * - col0 - + - 39 AS col2 FROM tab0
----
-1176
-1788
-58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 <= + col0 + - col2
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT + 84 AS col2 FROM tab1 AS cor0 WHERE NOT col0 * + 99 NOT BETWEEN NULL AND - + col0 * + col0 * + col0 + + col2 / 32 - + 63
----

query I rowsort
SELECT DISTINCT + col2 * + col0 + ( + - col1 ) AS col0 FROM tab1
----
4882
5010
6141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2571
SELECT - col0 + 26 * - + CAST( + 60 AS SIGNED ) AS col2 FROM tab2
----
-1606
-1624
-1635

skipif mysql # not compatible
query I rowsort label-2571
SELECT - col0 + 26 * - + CAST ( + 60 AS INTEGER ) AS col2 FROM tab2
----
-1606
-1624
-1635

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT ALL + 12 + COUNT( * ) + - COUNT( * ) * - - 52 * + COUNT( * ) FROM tab2
----
-453

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL + 12 + COUNT ( * ) + - COUNT ( * ) * - - 52 * + COUNT ( * ) FROM tab2
----
-453

query II rowsort
SELECT - col2 + - col0 AS col1, - col1 + - 6 FROM tab2 WHERE + 51 * - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - - 11 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2575
SELECT - - COUNT( * ), - 17 DIV + COUNT( * ) col1 FROM tab2 AS cor0
----
3
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2575
SELECT - - COUNT ( * ), - 17 / + COUNT ( * ) col1 FROM tab2 AS cor0
----
3
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2576
SELECT ALL CAST( + 67 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
67
67
67

skipif mysql # not compatible
query I rowsort label-2576
SELECT ALL CAST ( + 67 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT + COUNT( - ( 16 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2577
SELECT + COUNT ( - ( 16 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2578
SELECT + CAST( NULL AS SIGNED ) * + col0 / col0 * + 57 / col0 * - - col1 AS col2, 59 AS col1 FROM tab2 AS cor0
----
NULL
59
NULL
59
NULL
59

skipif mysql # not compatible
query II rowsort label-2578
SELECT + CAST ( NULL AS INTEGER ) * + col0 / col0 * + 57 / col0 * - - col1 AS col2, 59 AS col1 FROM tab2 AS cor0
----
NULL
59
NULL
59
NULL
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 15 * ( + col2 ), 67 col2 FROM tab1 AS cor0
----
1020
67
1440
67
885
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 27 * + col2 + + col0 * + 68 col1 FROM tab1 AS cor0
----
6060
7373
8024

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL >= col2 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT + COUNT( * ) * ( - COUNT( * ) ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2582
SELECT + COUNT ( * ) * ( - COUNT ( * ) ) FROM tab0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 84 * + col2 col0, + col1 + - - col2 AS col2 FROM tab0
----
3948
128
8316
100
840
31

query I rowsort
SELECT - col0 * - + 8 FROM tab1
----
408
680
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2585
SELECT + - CAST( + 73 AS SIGNED ) FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) * - ( col2 ) IS NOT NULL
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-2585
SELECT + - CAST ( + 73 AS INTEGER ) FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) * - ( col2 ) IS NOT NULL
----
-73
-73
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2586
SELECT ALL - col0 / - - 8 / + ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL - col0 / - - 8 / + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT DISTINCT - COUNT( ALL + 22 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT - COUNT ( ALL + 22 ) AS col1 FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 58 * + col1 col0, col2 * + 74 AS col2 FROM tab1
----
-2726
5032
-290
4366
-812
7104

query I rowsort
SELECT + ( + - ( + - col2 ) ) AS col1 FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 AS cor0 WHERE - col1 > + col0 + 52
----

query I rowsort
SELECT - + 28 + - 46 + + + 16 * + 9 * col1 FROM tab1 AS cor0
----
1942
646
6694

onlyif mysql # DIV for integer division: 
query I rowsort label-2592
SELECT ALL - col2 DIV + ( + col0 ) AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2592
SELECT ALL - col2 / + ( + col0 ) AS col1 FROM tab1 AS cor0
----
-1
0
0

query II rowsort
SELECT DISTINCT - + col1 AS col2, + 50 FROM tab0 AS cor0
----
-1
50
-21
50
-81
50

query II rowsort
SELECT ALL + col0 AS col0, + 4 AS col2 FROM tab2 AS cor0
----
46
4
64
4
75
4

query I rowsort
SELECT - + col2 * + col1 * - col0 * - col0 FROM tab0 AS cor0
----
-1589490
-856575
-931491

query II rowsort
SELECT DISTINCT - col0, + col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-15
47
-87
10
-97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 * - col2 - - col2 + - col0 col2 FROM tab0 AS cor0
----
-1284
-2770
-357

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT ALL + - COUNT( * ) + - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL + - COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 + + 83 col2 FROM tab1
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-2600
SELECT DISTINCT + COUNT( * ) AS col1, - 64 * COUNT( col0 ) AS col0 FROM tab2
----
3
-192

skipif mysql # not compatible
query II rowsort label-2600
SELECT DISTINCT + COUNT ( * ) AS col1, - 64 * COUNT ( col0 ) AS col0 FROM tab2
----
3
-192

query I rowsort
SELECT DISTINCT + col1 + 87 FROM tab2
----
138
154
164

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT ALL COUNT( * ) - + 94 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2602
SELECT ALL COUNT ( * ) - + 94 FROM tab1 AS cor0
----
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = - col0 - - col1 + - 33 * 46
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2604
SELECT + col2 * + + CAST( NULL AS SIGNED ) + - - 38 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2604
SELECT + col2 * + + CAST ( NULL AS INTEGER ) + - - 38 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 23 * - - 6 AS col0 FROM tab1 AS cor0
----
138
138
138

query III rowsort
SELECT * FROM tab0 WHERE + col0 * col1 BETWEEN + col0 AND - ( + ( + col0 ) )
----

query I rowsort
SELECT ALL col1 + - - 39 AS col1 FROM tab1
----
44
53
86

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * 36 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 AS cor0 WHERE col1 = NULL
----

query I rowsort
SELECT ALL + + 26 FROM tab1 cor0
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 cor0 WHERE col2 * + ( + col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2611
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 cor0 WHERE col2 * + ( + col2 ) IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 BETWEEN - col1 AND - col1 * - col0 * - col0
----

query I rowsort
SELECT col1 * - 69 FROM tab2 AS cor0
----
-3519
-4623
-5313

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2615
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( + + col0 AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-2615
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( + + col0 AS INTEGER ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( + col2 ) * + + col0 FROM tab1 AS cor0
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 * - - ( 4 ) col1 FROM tab1
----
12
12
12

query I rowsort
SELECT 91 * - col0 AS col2 FROM tab0
----
-1365
-7917
-8827

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL <> NULL )
----

query I rowsort
SELECT 32 * col0 FROM tab0
----
2784
3104
480

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * - col0 <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 + col1 col0 FROM tab0
----
16
36
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 74 + ( - 56 ) col0 FROM tab1 WHERE NOT 37 = ( NULL )
----

query I rowsort
SELECT DISTINCT col1 * + 91 FROM tab1
----
1274
4277
455

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 - ( + col2 ) * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 18 * - col1 FROM tab2 WHERE + col0 IN ( - 25 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT 26 * + COUNT( * ) AS col2 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-2628
SELECT 26 * + COUNT ( * ) AS col2 FROM tab1
----
78

query I rowsort
SELECT ALL col2 - - 81 AS col1 FROM tab2
----
104
121
139

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + ( - col0 ) ) IN ( - 41 )
----

query I rowsort
SELECT DISTINCT + 33 AS col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col0 + 1 FROM tab1
----
52
86
92

query I rowsort
SELECT 56 + - col1 AS col0 FROM tab0
----
-25
35
55

query I rowsort
SELECT 93 + + col0 * - col2 FROM tab2
----
-2467
-4257
-965

query I rowsort
SELECT DISTINCT ( 6 ) FROM tab2
----
6

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND + col0 + col0
----

query I rowsort
SELECT - 67 FROM tab1 WHERE NOT + col2 / + 1 BETWEEN 5 AND + col2 * col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN NULL AND ( 33 )
----

query I rowsort
SELECT ALL + 57 * - 90 AS col2 FROM tab0
----
-5130
-5130
-5130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2640
SELECT DISTINCT + 50 AS col1 FROM tab2 WHERE NOT col0 + CAST( NULL AS SIGNED ) * + col0 IS NOT NULL
----
50

skipif mysql # not compatible
query I rowsort label-2640
SELECT DISTINCT + 50 AS col1 FROM tab2 WHERE NOT col0 + CAST ( NULL AS INTEGER ) * + col0 IS NOT NULL
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2641
SELECT CAST( - 13 AS SIGNED ) - + col0 * 29 col2 FROM tab0
----
-2536
-2826
-448

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2641
SELECT CAST ( - 13 AS INTEGER ) - + col0 * 29 col2 FROM tab0
----
-2536
-2826
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT DISTINCT + 98 * COUNT( * ) FROM tab2
----
294

skipif mysql # not compatible
query I rowsort label-2642
SELECT DISTINCT + 98 * COUNT ( * ) FROM tab2
----
294

query I rowsort
SELECT DISTINCT - ( 19 ) * + 28 FROM tab2
----
-532

query I rowsort
SELECT ( - col1 ) AS col2 FROM tab2 WHERE col2 NOT BETWEEN ( col0 * - 20 ) AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN ( - col0 ) AND col1
----

query I rowsort
SELECT DISTINCT col1 * - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-196
-2209
-25

query I rowsort
SELECT ALL col2 * + col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( + col0 - + col2 ) IS NULL
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT DISTINCT MAX( col1 ) * + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> 44
----
NULL

skipif mysql # not compatible
query I rowsort label-2648
SELECT DISTINCT MAX ( col1 ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> 44
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - col2 * 89 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT + 80 + + MIN( col1 + col0 ) FROM tab0 AS cor0
----
176

skipif mysql # not compatible
query I rowsort label-2650
SELECT + 80 + + MIN ( col1 + col0 ) FROM tab0 AS cor0
----
176

query I rowsort
SELECT + col2 * ( 70 * + 40 ) AS col2 FROM tab2 AS cor0 WHERE + 38 BETWEEN ( + col1 * ( col2 ) ) AND ( 68 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * col0 + col2 >= ( + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2653
SELECT DISTINCT - 12 DIV MAX( ( col2 ) * col2 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2653
SELECT DISTINCT - 12 / MAX ( ( col2 ) * col2 ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 13 + 58 FROM tab1
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT MIN( ALL - 3 ) + - 8 col0 FROM tab0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2655
SELECT MIN ( ALL - 3 ) + - 8 col0 FROM tab0 WHERE col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT ( 38 ) FROM tab1
----
38

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 15 < col1 * - ( + col0 ) + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 44 FROM tab2 AS cor0 WHERE NOT - 97 + + 65 NOT IN ( 13 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 1 NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT + MIN( + 35 ) AS col1 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-2660
SELECT + MIN ( + 35 ) AS col1 FROM tab1 AS cor0
----
35

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 31 AS col0 FROM tab0 cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT - + 33 * - 60 AS col2 FROM tab0 AS cor0
----
1980
1980
1980

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * 63 + col2 BETWEEN NULL AND 6
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2665
SELECT DISTINCT - AVG ( + ( + 26 ) ) * 4 + + AVG ( ALL - 40 + - ( - col1 ) ) * + MAX( DISTINCT CAST( col0 AS SIGNED ) ) FROM tab0 WHERE NOT NULL IN ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2665
SELECT DISTINCT - AVG ( + ( + 26 ) ) * 4 + + AVG ( ALL - 40 + - ( - col1 ) ) * + MAX ( DISTINCT CAST ( col0 AS INTEGER ) ) FROM tab0 WHERE NOT NULL IN ( - col1 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2666
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) <= col1 + - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2666
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) <= col1 + - CAST ( NULL AS REAL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 < + col0 * col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 + - col0 IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 85 * - 61 * col1 AS col0 FROM tab0
----
-108885
-419985
-5185

onlyif mysql # DIV for integer division: 
query I rowsort label-2670
SELECT col1 DIV col2 * - col2 FROM tab2 AS cor0
----
-40
-46
-58

skipif mysql # not compatible
query I rowsort label-2670
SELECT col1 / col2 * - col2 FROM tab2 AS cor0
----
-40
-46
-58

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 37 BETWEEN ( + ( col0 ) ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 40 * + + col1 * - 98 + - ( + col0 ) FROM tab0 AS cor0
----
317505
3823
82233

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT - 15 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2673
SELECT - 15 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-18

query I rowsort
SELECT - col0 * - 55 - col1 + + col1 * col0 FROM tab0 AS cor0
----
1959
5431
6591

onlyif mysql # DIV for integer division: 
query I rowsort label-2675
SELECT DISTINCT + - col0 DIV + - col2 FROM tab2 cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT + - col0 / + - col2 FROM tab2 cor0
----
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2676
SELECT - 0 + + col1 + + ( 66 ) / - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2676
SELECT - 0 + + col1 + + ( 66 ) / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT - 92 + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
-89

skipif mysql # not compatible
query I rowsort label-2677
SELECT - 92 + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
-89

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 32 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( 37 )
----

query I rowsort
SELECT DISTINCT - col1 * - - col2 - 72 AS col2 FROM tab1 AS cor0
----
-1416
-3268
-367

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT ALL COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-81

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2682
SELECT ALL + + AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL + + AVG ( DISTINCT + CAST ( NULL AS REAL ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2683
SELECT ( - ( 11 ) ) * - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2683
SELECT ( - ( 11 ) ) * - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2684
SELECT DISTINCT + col0 DIV + 60 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-2684
SELECT DISTINCT + col0 / + 60 FROM tab2
----
0
1

query I rowsort
SELECT + 90 * + - col0 FROM tab0 AS cor0
----
-1350
-7830
-8730

query I rowsort
SELECT ALL - 41 * col1 + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT - 72 + 6 / - 15 IS NULL
----
-2045
-2672
-3093

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2687
SELECT DISTINCT CAST( 38 AS SIGNED ) - + + col0 AS col0 FROM tab2 AS cor0
----
-26
-37
-8

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT CAST ( 38 AS INTEGER ) - + + col0 AS col0 FROM tab2 AS cor0
----
-26
-37
-8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( 90 ) AND ( + col0 )
----

query I rowsort
SELECT col0 * 59 FROM tab0 cor0
----
5133
5723
885

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT ALL + SUM( - ( 6 ) ) FROM tab0 cor0 WHERE + col2 IS NOT NULL
----
-18

skipif mysql # not compatible
query I rowsort label-2690
SELECT ALL + SUM ( - ( 6 ) ) FROM tab0 cor0 WHERE + col2 IS NOT NULL
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT + COUNT( * ) - + - 4 AS col0 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-2691
SELECT + COUNT ( * ) - + - 4 AS col0 FROM tab1 AS cor0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2692
SELECT DISTINCT + 24 DIV + + col2 AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2692
SELECT DISTINCT + 24 / + + col2 AS col1 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT + + ( - - col2 ) * col1 + col2 AS col2 FROM tab0 AS cor0
----
198
220
3854

query I rowsort
SELECT DISTINCT col1 * + 36 + + 15 + col1 + col1 * 55 AS col2 FROM tab0
----
107
1947
7467

query I rowsort
SELECT ALL - col2 + + col2 + + col1 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2696
SELECT - COUNT( - col1 ) + COUNT( * ) - + COUNT( * ) + ( - CAST( 38 AS SIGNED ) ) * + 43 AS col2 FROM tab2
----
-1637

skipif mysql # not compatible
query I rowsort label-2696
SELECT - COUNT ( - col1 ) + COUNT ( * ) - + COUNT ( * ) + ( - CAST ( 38 AS INTEGER ) ) * + 43 AS col2 FROM tab2
----
-1637

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT ALL COUNT( * ) + - 79 AS col0 FROM tab0
----
-76

skipif mysql # not compatible
query I rowsort label-2697
SELECT ALL COUNT ( * ) + - 79 AS col0 FROM tab0
----
-76

query I rowsort
SELECT - col1 + + + col2 FROM tab0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2699
SELECT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) < ( + - col2 )
----

skipif mysql # not compatible
query III rowsort label-2699
SELECT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) < ( + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT ALL - 80 + - - MIN( DISTINCT + - 8 ) AS col1 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL - 80 + - - MIN ( DISTINCT + - 8 ) AS col1 FROM tab1
----
-88

query I rowsort
SELECT 92 * + + 53 AS col0 FROM tab0
----
4876
4876
4876

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) - - - col0 col0 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT - SUM( DISTINCT - 35 ) AS col0 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-2703
SELECT - SUM ( DISTINCT - 35 ) AS col0 FROM tab1 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT DISTINCT + COUNT( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-2704
SELECT DISTINCT + COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT COUNT( ALL - - col0 ) * + - 29 - + SUM( col0 ) FROM tab1
----
-314

skipif mysql # not compatible
query I rowsort label-2705
SELECT COUNT ( ALL - - col0 ) * + - 29 - + SUM ( col0 ) FROM tab1
----
-314

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT - COUNT( * ) + 74 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
65

skipif mysql # not compatible
query I rowsort label-2706
SELECT - COUNT ( * ) + 74 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
65

query I rowsort
SELECT DISTINCT + + col0 + 6 AS col2 FROM tab0 WHERE - + col2 IS NULL
----

query I rowsort
SELECT DISTINCT 3 + col0 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN ( + 81 * ( + - 65 ) ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT 29 * 4 + COUNT( * ) FROM tab0 WHERE NOT NULL NOT IN ( + 18 )
----
116

skipif mysql # not compatible
query I rowsort label-2709
SELECT 29 * 4 + COUNT ( * ) FROM tab0 WHERE NOT NULL NOT IN ( + 18 )
----
116

onlyif mysql # DIV for integer division: 
query II rowsort label-2710
SELECT DISTINCT col0 DIV - col1 + + 97, - col2 AS col0 FROM tab0 AS cor0
----
0
-99
93
-10
97
-47

skipif mysql # not compatible
query II rowsort label-2710
SELECT DISTINCT col0 / - col1 + + 97, - col2 AS col0 FROM tab0 AS cor0
----
0
-99
93
-10
97
-47

query I rowsort
SELECT DISTINCT 8 AS col2 FROM tab0 AS cor0 WHERE ( + col1 * 96 - + ( col0 ) ) <= ( - col0 - col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 10 / + col1 IN ( - + 79 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + + col1 * + col1 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * + ( col2 + - ( ( - col1 ) ) * col1 ) FROM tab1 AS cor0 WHERE NOT NULL IN ( + 29 + col0, 48 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2715
SELECT ALL CAST( - 27 AS SIGNED ) FROM tab0
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-2715
SELECT ALL CAST ( - 27 AS INTEGER ) FROM tab0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT - col0 * + + col1 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT 76 * col2 AS col0 FROM tab1
----
4484
5168
7296

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT + COUNT( * ) * + - 82 FROM tab1
----
-246

skipif mysql # not compatible
query I rowsort label-2718
SELECT + COUNT ( * ) * + - 82 FROM tab1
----
-246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2719
SELECT ALL CAST( + + COUNT( * ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2719
SELECT ALL CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1
----
3

query II rowsort
SELECT ALL 92 AS col2, col0 FROM tab0
----
92
15
92
87
92
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2721
SELECT DISTINCT 49 + + col0 * + 80 * + CAST( NULL AS SIGNED ) + - 35 / + - 96 * - 32 - + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2721
SELECT DISTINCT 49 + + col0 * + 80 * + CAST ( NULL AS INTEGER ) + - 35 / + - 96 * - 32 - + col1 FROM tab1
----
NULL

query I rowsort
SELECT - 61 + + col2 FROM tab1
----
-2
35
7

query III rowsort
SELECT * FROM tab1 WHERE NULL > - + col1 + - 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT ALL - + MAX( 41 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL - + MAX ( 41 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( - - 61 + col2 * - col0 )
----

query II rowsort
SELECT ALL + ( - col1 ) AS col1, - col0 AS col2 FROM tab1 AS cor0
----
-14
-51
-47
-91
-5
-85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2727
SELECT * FROM tab2 AS cor0 WHERE - col1 < ( - + col0 * CAST( + 86 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2727
SELECT * FROM tab2 AS cor0 WHERE - col1 < ( - + col0 * CAST ( + 86 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2728
SELECT + col1 DIV ( 76 ) FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2728
SELECT + col1 / ( 76 ) FROM tab2 cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2729
SELECT ALL col2 * - - CAST( NULL AS SIGNED ) + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2729
SELECT ALL col2 * - - CAST ( NULL AS INTEGER ) + - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE + 62 BETWEEN ( col1 ) AND + 69
----
-10
-99

query I rowsort
SELECT ALL ( - 68 ) * ( - + 27 ) + col2 FROM tab0
----
1846
1883
1935

query I rowsort
SELECT DISTINCT - ( + + col1 ) + + col2 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT col2 * col0 - - 70 + + + ( - col0 ) * - col0 * - 82 + - col2 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col1, col0 col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT DISTINCT ( + 29 ) FROM tab2 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT 47 * 55 + - + col2 <= + col0
----
3

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 47 * 55 + - + col2 <= + col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT - SUM( 12 ) FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-2737
SELECT - SUM ( 12 ) FROM tab1 AS cor0
----
-36

query I rowsort
SELECT ALL 73 * + col2 * + + 72 * - 8 FROM tab0 AS cor0
----
-1976256
-4162752
-420480

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT NULL < NULL
----

query II rowsort
SELECT + 81 * - + 45, + 68 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to d5765a69bacbb9220d50f3400d0359cb

query I rowsort
SELECT DISTINCT 34 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2742
SELECT + col1 DIV - - 48 AS col0, + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-2742
SELECT + col1 / - - 48 AS col0, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0
NULL
0
NULL
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2743
SELECT * FROM tab2 AS cor0 WHERE NOT 42 IN ( + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2743
SELECT * FROM tab2 AS cor0 WHERE NOT 42 IN ( + - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2744
SELECT + + SUM( ALL + - CAST( - CAST( NULL AS SIGNED ) 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-2744
SELECT + + SUM ( ALL + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT - 23 * - 32 * + ( - 63 ) * - + ( - MAX( - ( + + ( col1 ) ) ) ) AS col0 FROM tab2 AS cor0
----
2364768

skipif mysql # not compatible
query I rowsort label-2746
SELECT - 23 * - 32 * + ( - 63 ) * - + ( - MAX ( - ( + + ( col1 ) ) ) ) AS col0 FROM tab2 AS cor0
----
2364768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 39 * - col0 AS col2, - col2 col1 FROM tab1 AS cor0
----
-1989
-96
-3315
-59
-3549
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT 27 * - - COUNT( * ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-2748
SELECT 27 * - - COUNT ( * ) FROM tab2
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 13 + + ( col0 ) col2 FROM tab1
----
38
72
78

query I rowsort
SELECT ALL - col0 + - 79 FROM tab1
----
-130
-164
-170

query II rowsort
SELECT DISTINCT col1 + 21 * + 70 AS col2, + 33 FROM tab0
----
1471
33
1491
33
1551
33

query I rowsort
SELECT 52 + + col1 AS col0 FROM tab0
----
133
53
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2753
SELECT - 16 * - CAST( NULL AS SIGNED ) * + - col1 + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2753
SELECT - 16 * - CAST ( NULL AS INTEGER ) * + - col1 + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col2, col0 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT - MIN( ALL - + 39 ) * SUM( - col0 ) + - 73 AS col1 FROM tab1
----
-8926

skipif mysql # not compatible
query I rowsort label-2755
SELECT - MIN ( ALL - + 39 ) * SUM ( - col0 ) + - 73 AS col1 FROM tab1
----
-8926

query I rowsort
SELECT ( + AVG ( + col0 ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2757
SELECT DISTINCT + col1 DIV - - 48 * col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT + col1 / - - 48 * col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 74 col1 FROM tab2 cor0
----
-74
-74
-74

query I rowsort
SELECT + - col0 * + ( + col1 ) + col1 FROM tab2 AS cor0
----
-2295
-4851
-4958

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT ALL - 69 + - COUNT( * ) FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL - 69 + - COUNT ( * ) FROM tab1 AS cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2762
SELECT + + CAST( 45 AS SIGNED ) + + + col1 AS col0 FROM tab0 AS cor0
----
126
46
66

skipif mysql # not compatible
query I rowsort label-2762
SELECT + + CAST ( 45 AS INTEGER ) + + + col1 AS col0 FROM tab0 AS cor0
----
126
46
66

query I rowsort
SELECT DISTINCT - - ( ( col1 ) ) + - col1 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT ( MAX( - 15 ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2764
SELECT ( MAX ( - 15 ) ) FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT DISTINCT + COUNT( * ) - + + 85 FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-2765
SELECT DISTINCT + COUNT ( * ) - + + 85 FROM tab2 AS cor0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT DISTINCT ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2766
SELECT DISTINCT ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + col0 + - 26 * + + 57 FROM tab1 AS cor0
----
-1391
-1397
-1431

query I rowsort
SELECT DISTINCT col1 + - - col2 AS col0 FROM tab0
----
100
128
31

query II rowsort
SELECT ALL - ( - col2 ), - col1 AS col0 FROM tab0
----
10
-21
47
-81
99
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 col1 FROM tab0 WHERE - col2 * - col1 / - col2 * + - 9 * - ( + 46 ) NOT BETWEEN col0 * col2 AND - col2
----
-210
-3807
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 / - 59 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + + + 8 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT + 51 + - - col1 * + 71 * 18 NOT BETWEEN ( + 58 + - + col1 ) AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2774
SELECT ALL - 43 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL - 43 / + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + 39 AS col0 FROM tab1 AS cor0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-2776
SELECT DISTINCT + 16 DIV + 96 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT + 16 / + 96 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT 11 * 85 * + + ( 32 ) FROM tab1
----
29920

query I rowsort
SELECT - 15 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-15
-15
-15

query II rowsort
SELECT ALL - 94 AS col0, col2 FROM tab0 AS cor0
----
-94
10
-94
47
-94
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT ALL - + MAX( DISTINCT 46 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL - + MAX ( DISTINCT 46 ) AS col2 FROM tab2 AS cor0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 99 col0, col1 AS col0 FROM tab0 AS cor0
----
-99
1
-99
21
-99
81

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 AS cor0 WHERE - col0 * + - col0 >= 1
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 - + col0 IS NULL
----

query I rowsort
SELECT ( - col1 ) - + col0 * - + 12 * col1 / + - col1 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 + ( + - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col0 AND - - ( + col1 )
----

query I rowsort
SELECT ALL + ( - col0 ) + col0 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE - - col0 NOT IN ( + col2, - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( col2 ), col2 - + col1 + col2 col1 FROM tab1
----
59
113
68
89
96
178

query III rowsort
SELECT * FROM tab2 WHERE - 53 + col1 NOT BETWEEN - + col2 AND + col1
----

query I rowsort
SELECT col1 * + - 33 FROM tab1 WHERE NULL IS NULL
----
-1551
-165
-462

query II rowsort
SELECT col0 * + col2, - col2 AS col1 FROM tab1
----
4896
-96
5015
-59
6188
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT ALL - MIN( DISTINCT + - col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL - MIN ( DISTINCT + - col0 ) AS col0 FROM tab0
----
97

query I rowsort
SELECT col1 * - - col0 * + col1 AS col0 FROM tab2
----
119646
336675
379456

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2795
SELECT ALL - MAX( ALL + col1 ) FROM tab2 WHERE NOT CAST( NULL AS DECIMAL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2795
SELECT ALL - MAX ( ALL + col1 ) FROM tab2 WHERE NOT CAST ( NULL AS REAL ) IS NULL
----
NULL

query I rowsort
SELECT ALL - + col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT + + 5 * - col1 + - 30 - + 96 * - col0 FROM tab0 cor0
----
1005
8217
9277

onlyif mysql # DIV for integer division: 
query I rowsort label-2798
SELECT DISTINCT col1 DIV + col0 + - col2 DIV - col2 + col1 AS col1 FROM tab2 AS cor0
----
53
68
79

skipif mysql # not compatible
query I rowsort label-2798
SELECT DISTINCT col1 / + col0 + - col2 / - col2 + col1 AS col1 FROM tab2 AS cor0
----
53
68
79

query I rowsort
SELECT - + ( col1 ) - + 67 AS col2 FROM tab2 AS cor0
----
-118
-134
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT - - SUM( - col1 ) FROM tab0 WHERE + col0 IS NOT NULL
----
-103

skipif mysql # not compatible
query I rowsort label-2800
SELECT - - SUM ( - col1 ) FROM tab0 WHERE + col0 IS NOT NULL
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT ALL 41 - MAX( 73 ) FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL 41 - MAX ( 73 ) FROM tab0
----
-32

query I rowsort
SELECT DISTINCT + col2 + + + col0 + + 64 AS col0 FROM tab0 AS cor0
----
126
161
260

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT ALL - + COUNT( * ) - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2803
SELECT ALL - + COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT DISTINCT + ( - col0 ) - + - col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2805
SELECT + 76 AS col2, + COUNT( * ) DIV + 27 FROM tab0 AS cor0
----
76
0

skipif mysql # not compatible
query II rowsort label-2805
SELECT + 76 AS col2, + COUNT ( * ) / + 27 FROM tab0 AS cor0
----
76
0

query II rowsort
SELECT ALL - 24 AS col2, col2 AS col2 FROM tab1 AS cor0
----
-24
59
-24
68
-24
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT DISTINCT + SUM( DISTINCT + - col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2807
SELECT DISTINCT + SUM ( DISTINCT + - col2 ) AS col2 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT + + 78 AS col2 FROM tab0 cor0
----
78

query I rowsort
SELECT ALL + - col2 - - col2 * + 93 FROM tab1 AS cor0
----
5428
6256
8832

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT ALL + COUNT( DISTINCT + + col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL + COUNT ( DISTINCT + + col2 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT DISTINCT COUNT( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2811
SELECT DISTINCT COUNT ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 > - col0 * - ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT + COUNT( - col2 ) * + - MIN( col1 ) FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-2813
SELECT + COUNT ( - col2 ) * + - MIN ( col1 ) FROM tab2
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT - COUNT( - col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2814
SELECT - COUNT ( - col2 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2815
SELECT DISTINCT * FROM tab1 WHERE NOT - + ( - - col2 ) + - CAST( NULL AS SIGNED ) / + 85 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2815
SELECT DISTINCT * FROM tab1 WHERE NOT - + ( - - col2 ) + - CAST ( NULL AS INTEGER ) / + 85 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT DISTINCT - - 73 + MAX( + - 73 ) AS col1 FROM tab1 WHERE NOT NULL IN ( - 42, col0 + - 55 * col2 + - col1 - + 66, + + 52, - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT - - 73 + MAX ( + - 73 ) AS col1 FROM tab1 WHERE NOT NULL IN ( - 42, col0 + - 55 * col2 + - col1 - + 66, + + 52, - col0 )
----
NULL

query II rowsort
SELECT ALL - 46, + col0 AS col0 FROM tab0
----
-46
15
-46
87
-46
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2818
SELECT DISTINCT + - 52 + + COUNT( - 82 ) + + + SUM( DISTINCT - + col1 ) FROM tab0 WHERE NOT + CAST( col1 AS SIGNED ) > + col0 - - col1 + - 92
----
-52

skipif mysql # not compatible
query I rowsort label-2818
SELECT DISTINCT + - 52 + + COUNT ( - 82 ) + + + SUM ( DISTINCT - + col1 ) FROM tab0 WHERE NOT + CAST ( col1 AS INTEGER ) > + col0 - - col1 + - 92
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT + + COUNT( * ) * MAX( DISTINCT + + 60 ) AS col1 FROM tab1 WHERE NOT + 67 * + col0 IS NULL
----
180

skipif mysql # not compatible
query I rowsort label-2819
SELECT + + COUNT ( * ) * MAX ( DISTINCT + + 60 ) AS col1 FROM tab1 WHERE NOT + 67 * + col0 IS NULL
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE NOT + col0 + col0 * 82 + + 35 * - col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2820
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT + col0 + col0 * 82 + + 35 * - col2 <= NULL
----
0

query I rowsort
SELECT - ( + + col2 ) FROM tab2 cor0
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 + + 35 IN ( + 15, + col0 * - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2823
SELECT DISTINCT CAST( - 63 AS SIGNED ) * - col2 * - col1 AS col1 FROM tab2 AS cor0
----
-194040
-244818
-73899

skipif mysql # not compatible
query I rowsort label-2823
SELECT DISTINCT CAST ( - 63 AS INTEGER ) * - col2 * - col1 AS col1 FROM tab2 AS cor0
----
-194040
-244818
-73899

query I rowsort
SELECT DISTINCT + + 0 * - 96 * - col2 AS col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - - col0 col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query II rowsort
SELECT 9, col0 FROM tab2 AS cor0
----
9
46
9
64
9
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT - COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2827
SELECT - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 86 * 66 * + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * + 37 FROM tab1 AS cor0
----
-1887
-3145
-3367

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2830
SELECT - CAST( NULL AS SIGNED ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2830
SELECT - CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2831
SELECT - 95 DIV 24 - col0 AS col2 FROM tab2 AS cor0
----
-49
-67
-78

skipif mysql # not compatible
query I rowsort label-2831
SELECT - 95 / 24 - col0 AS col2 FROM tab2 AS cor0
----
-49
-67
-78

query II rowsort
SELECT - col2 * + ( - col0 ) * + ( - + 66 ) + col0 * + + col2 AS col0, 72 * - col1 AS col2 FROM tab0 AS cor0
----
-45825
-5832
-56550
-1512
-624195
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT + MIN( ALL + 57 ) col2 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2833
SELECT + MIN ( ALL + 57 ) col2 FROM tab2 AS cor0
----
57

query I rowsort
SELECT ALL + 44 + + 57 AS col2 FROM tab2 AS cor0
----
101
101
101

query I rowsort
SELECT ALL + 41 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT col2 * + + col2, + col2 AS col1, col2 AS col0 FROM tab2 AS cor0
----
9 values hashing to 02df031b05539a5444ede882cd6c8a71

query I rowsort
SELECT ALL + - ( - + 97 ) + - col1 * + col0 + + 70 + - + 38 FROM tab2 AS cor0
----
-2217
-4799
-4896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 + col0 col2 FROM tab1
----
-25
15
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2839
SELECT - CAST( + 28 AS SIGNED ) + + COUNT( * ) DIV ( ( + - 65 ) ) AS col0 FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-2839
SELECT - CAST ( + 28 AS INTEGER ) + + COUNT ( * ) / ( ( + - 65 ) ) AS col0 FROM tab2
----
-28

query I rowsort
SELECT ALL - col1 + - col0 + col0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL + 46 FROM tab2, tab1 cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2842
SELECT - 59 * + COUNT( + col2 ) AS col2, - 10 AS col2 FROM tab1 WHERE + + CAST( + col1 AS SIGNED ) > col0 * + col1
----
0
-10

skipif mysql # not compatible
query II rowsort label-2842
SELECT - 59 * + COUNT ( + col2 ) AS col2, - 10 AS col2 FROM tab1 WHERE + + CAST ( + col1 AS INTEGER ) > col0 * + col1
----
0
-10

query I rowsort
SELECT - col1 + + - col2 * + - col1 AS col2 FROM tab1
----
1330
290
3149

query I rowsort
SELECT ALL - col1 * + 72 AS col2 FROM tab0
----
-1512
-5832
-72

query I rowsort
SELECT DISTINCT 78 - + 89 AS col1 FROM tab0
----
-11

query I rowsort
SELECT DISTINCT - + col2 * ( col1 ) * - - 60 - 94 AS col2 FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + col0 <> ( + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2848
SELECT * FROM tab2 WHERE col1 >= + CAST( - 0 AS SIGNED ) - - 73
----
64
77
40

skipif mysql # not compatible
query III rowsort label-2848
SELECT * FROM tab2 WHERE col1 >= + CAST ( - 0 AS INTEGER ) - - 73
----
64
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - - 36 - - col1 + + col1 + - col0 col1 FROM tab1
----
-52
35
37

query II rowsort
SELECT + 62 * - col2, 38 + + - col1 AS col0 FROM tab2 AS cor0
----
-1426
-13
-2480
-39
-3596
-29

query I rowsort
SELECT ALL - col2 * + col2 + 40 + col1 * col0 * - col2 * 35 - - + col2 FROM tab1 AS cor0 WHERE + 61 IS NOT NULL
----
-10183776
-2408120
-881007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2852
SELECT - col2 / - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2852
SELECT - col2 / - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2853
SELECT - SUM( ALL + - CAST( + + col0 AS SIGNED ) ) AS col2, + COUNT( * ) FROM tab1
----
227
3

skipif mysql # not compatible
query II rowsort label-2853
SELECT - SUM ( ALL + - CAST ( + + col0 AS INTEGER ) ) AS col2, + COUNT ( * ) FROM tab1
----
227
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT COUNT( * ) * - 18 AS col2 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-2854
SELECT COUNT ( * ) * - 18 AS col2 FROM tab1
----
-54

query I rowsort
SELECT ALL - + col2 + - col2 FROM tab1 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2856
SELECT - col1 DIV + + ( 2 ) FROM tab0
----
-10
-40
0

skipif mysql # not compatible
query I rowsort label-2856
SELECT - col1 / + + ( 2 ) FROM tab0
----
-10
-40
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2857
SELECT - 99 DIV + 36 + + 26 AS col1 FROM tab2 WHERE ( NULL ) IS NOT NULL OR - + col2 * + - col2 + col2 + + col0 IS NOT NULL
----
24
24
24

skipif mysql # not compatible
query I rowsort label-2857
SELECT - 99 / + 36 + + 26 AS col1 FROM tab2 WHERE ( NULL ) IS NOT NULL OR - + col2 * + - col2 + col2 + + col0 IS NOT NULL
----
24
24
24

query II rowsort
SELECT DISTINCT + - 8 AS col0, col0 FROM tab2 AS cor0
----
-8
46
-8
64
-8
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 >= col1
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE col1 * + + 74 + - col0 IN ( + col1 + + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 8 * - col0 FROM tab2 cor0
----
-368
-512
-600

onlyif mysql # aggregate syntax: 
query II rowsort label-2863
SELECT ALL + ( - COUNT( * ) ) AS col2, - 54 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
-54

skipif mysql # not compatible
query II rowsort label-2863
SELECT ALL + ( - COUNT ( * ) ) AS col2, - 54 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
-54

query I rowsort
SELECT + col0 * + col0 + + col2 FROM tab0
----
272
7579
9508

query II rowsort
SELECT ALL col0, + 79 AS col1 FROM tab0 AS cor0
----
15
79
87
79
97
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 + + col1 + - col0 col2 FROM tab1 cor0
----
-119
-134
-65

query I rowsort
SELECT DISTINCT - - col2 + - - 87 FROM tab0 cor0
----
134
186
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2868
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2868
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT - SUM( DISTINCT - + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2869
SELECT - SUM ( DISTINCT - + col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL col2 + 2 * col0 + + + col1 + + col1 AS col1 FROM tab1
----
226
239
344

query I rowsort
SELECT DISTINCT col2 * - 60 * - 80 FROM tab0
----
225600
475200
48000

query III rowsort
SELECT * FROM tab0 WHERE - + 70 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 col0 FROM tab1
----
36
36
36

query I rowsort
SELECT + 56 * - col2 AS col0 FROM tab2 WHERE - - 57 > ( + ( + + 69 ) - - col0 - - col2 * - col0 - col1 )
----
-1288
-2240
-3248

query I rowsort
SELECT DISTINCT - col0 + - 31 + + col1 * - ( - - ( - 59 ) ) FROM tab2
----
2932
3847
4448

query I rowsort
SELECT - - col1 - - 23 FROM tab1 AS cor0
----
28
37
70

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2877
SELECT DISTINCT col0 * + col0 AS col2, CAST( - col2 AS DECIMAL ) * + + 53 * - + CAST( NULL AS SIGNED ) + + 89 FROM tab2 AS cor0
----
2116
NULL
4096
NULL
5625
NULL

skipif mysql # not compatible
query II rowsort label-2877
SELECT DISTINCT col0 * + col0 AS col2, CAST ( - col2 AS REAL ) * + + 53 * - + CAST ( NULL AS INTEGER ) + + 89 FROM tab2 AS cor0
----
2116
NULL
4096
NULL
5625
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 96 + + 10 * + + 25 + + col0 * col1 col0, - ( + col0 ) AS col1 FROM tab1 AS cor0
----
1060
-51
4623
-91
771
-85

onlyif mysql # DIV for integer division: 
query II rowsort label-2879
SELECT col2 + - + col0 AS col2, - ( col2 ) * col0 DIV 8 FROM tab0 cor0
----
-77
-108
2
-1200
32
-88

skipif mysql # not compatible
query II rowsort label-2879
SELECT col2 + - + col0 AS col2, - ( col2 ) * col0 / 8 FROM tab0 cor0
----
-77
-108
2
-1200
32
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-2880
SELECT DISTINCT 76 DIV + col0 AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2880
SELECT DISTINCT 76 / + col0 AS col1 FROM tab2
----
1

query I rowsort
SELECT + + 31 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # DIV for integer division: 
query I rowsort label-2882
SELECT DISTINCT - col1 DIV col1 AS col1 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2882
SELECT DISTINCT - col1 / col1 AS col1 FROM tab1 cor0
----
-1

query II rowsort
SELECT - 27 AS col0, col1 FROM tab0 AS cor0
----
-27
1
-27
21
-27
81

query II rowsort
SELECT - + 83, ( + col0 ) FROM tab2 AS cor0
----
-83
46
-83
64
-83
75

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col2 * col2 * - 90 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + ( + - 92 ) AS col2 FROM tab2 AS cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT + COUNT( ALL + - col1 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2887
SELECT + COUNT ( ALL + - col1 ) AS col0 FROM tab2 cor0
----
3

query II rowsort
SELECT ALL - - 21 AS col2, col1 * + 12 FROM tab1 AS cor0
----
21
168
21
564
21
60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2889
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 78 > + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2889
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 78 > + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + 39 * 66 FROM tab1 AS cor0
----
2574
2574
2574

onlyif mysql # DIV for integer division: 
query I rowsort label-2891
SELECT + 28 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2891
SELECT + 28 / col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2892
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2892
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 + col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT ALL ( + + COUNT( * ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2894
SELECT ALL ( + + COUNT ( * ) ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT - + SUM( ALL - + 35 ) FROM tab2 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-2895
SELECT - + SUM ( ALL - + 35 ) FROM tab2 AS cor0
----
105

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2896
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / + 42 + col2 col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2896
SELECT DISTINCT - CAST ( NULL AS REAL ) / + 42 + col2 col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT + MIN( DISTINCT - col2 ) * + 64 FROM tab0 cor0
----
-6336

skipif mysql # not compatible
query I rowsort label-2897
SELECT + MIN ( DISTINCT - col2 ) * + 64 FROM tab0 cor0
----
-6336

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT ALL + COUNT( - col2 ) * + 81 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL + COUNT ( - col2 ) * + 81 FROM tab0 AS cor0
----
243

query I rowsort
SELECT ( + + col1 ) AS col1 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT ALL - 20 + - 23 AS col0 FROM tab1 AS cor0
----
-43
-43
-43

query I rowsort
SELECT - 7 * + col0 * ( - ( ( - col2 ) ) ) * col0 * 76 + - col0 FROM tab0 AS cor0
----
-40267167
-495553309
-5625915

query I rowsort
SELECT ALL ( - 73 ) + - + 96 FROM tab2
----
-169
-169
-169

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT 75 + - COUNT( ALL - col1 ) AS col0 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-2904
SELECT 75 + - COUNT ( ALL - col1 ) AS col0 FROM tab0
----
72

query I rowsort
SELECT - 39 + - + col0 FROM tab2
----
-103
-114
-85

query I rowsort
SELECT DISTINCT - 98 - + 82 + + col2 AS col2 FROM tab2
----
-122
-140
-157

query I rowsort
SELECT - ( + 40 ) + + - col0 AS col0 FROM tab1
----
-125
-131
-91

query I rowsort
SELECT + col0 * + + col1 * - 87 AS col2 FROM tab2
----
-204102
-428736
-437175

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NULL NOT IN ( 9, - 61, col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2909
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL NOT IN ( 9, - 61, col2 )
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - 66 * - col0 + - + col2 IN ( 75, ( + col1 ) / col2 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 76 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT ALL - SUM( DISTINCT - 93 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
93

skipif mysql # not compatible
query I rowsort label-2912
SELECT ALL - SUM ( DISTINCT - 93 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
93

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 85 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2914
SELECT DISTINCT + ( - COUNT( * ) ), - COUNT( * ) AS col1 FROM tab2 cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-2914
SELECT DISTINCT + ( - COUNT ( * ) ), - COUNT ( * ) AS col1 FROM tab2 cor0
----
-3
-3

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT + col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2916
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 * col2 col1 FROM tab0
----
-178929
-2100
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2918
SELECT 48 / + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2918
SELECT 48 / + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2919
SELECT ALL CAST( NULL AS SIGNED ) * + col1 * - - ( - col0 ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL CAST ( NULL AS INTEGER ) * + col1 * - - ( - col0 ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + col1 * - - col2 + - 11 FROM tab2 WHERE NOT NULL < col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2921
SELECT DISTINCT + MAX( ALL - ( + + ( 86 ) ) ) FROM tab0 WHERE NOT + CAST( + - col1 AS SIGNED ) * 15 + - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2921
SELECT DISTINCT + MAX ( ALL - ( + + ( 86 ) ) ) FROM tab0 WHERE NOT + CAST ( + - col1 AS INTEGER ) * 15 + - col0 IS NOT NULL
----
NULL

query I rowsort
SELECT col1 * - 1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT col1 * - + ( + col0 ) AS col0 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT ALL - - 57 + 12 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + ( - 47 ) AS col1 FROM tab1
----
-47

query I rowsort
SELECT 15 * + col1 FROM tab1
----
210
705
75

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 88 * - 83 * + col1 NOT IN ( + 10 / + 14 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - + col1 AS col0, 2 AS col1 FROM tab0 cor0
----
-1
2
-21
2
-81
2

query I rowsort
SELECT DISTINCT + ( - 10 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT + COUNT( * ) + 47 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-2930
SELECT + COUNT ( * ) + 47 FROM tab2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT - 77 + MAX( - col2 ) AS col0 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-2931
SELECT - 77 + MAX ( - col2 ) AS col0 FROM tab0
----
-87

query I rowsort
SELECT DISTINCT - + 14 + + col1 + + col1 FROM tab2 AS cor0
----
120
140
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT ALL + - COUNT( - 28 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2933
SELECT ALL + - COUNT ( - 28 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2934
SELECT ALL ( + COUNT( ALL - 89 ) ) DIV - 94 AS col2 FROM tab0 AS cor0 WHERE col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL ( + COUNT ( ALL - 89 ) ) / - 94 AS col2 FROM tab0 AS cor0 WHERE col0 <> NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2935
SELECT + col0 DIV - col1 + + col1 AS col1 FROM tab0 AS cor0
----
-96
17
81

skipif mysql # not compatible
query I rowsort label-2935
SELECT + col0 / - col1 + + col1 AS col1 FROM tab0 AS cor0
----
-96
17
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2936
SELECT + col2 DIV 59 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2936
SELECT + col2 / 59 FROM tab1
----
1
1
1

query I rowsort
SELECT col0 * + + col0 AS col2 FROM tab2
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT ALL - 20 + - COUNT( * ) FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL - 20 + - COUNT ( * ) FROM tab0
----
-23

query I rowsort
SELECT 88 - + col2 AS col1 FROM tab0
----
-11
41
78

query I rowsort
SELECT col1 + 93 + + col0 FROM tab1 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2941
SELECT ALL - 38 + + SUM( - col2 ) AS col1, - 37 * + - 16 AS col0 FROM tab2
----
-159
592

skipif mysql # not compatible
query II rowsort label-2941
SELECT ALL - 38 + + SUM ( - col2 ) AS col1, - 37 * + - 16 AS col0 FROM tab2
----
-159
592

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT DISTINCT - COUNT( * ) - - 42 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT - COUNT ( * ) - - 42 FROM tab0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT DISTINCT - + COUNT( * ) FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2943
SELECT DISTINCT - + COUNT ( * ) FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-3

query II rowsort
SELECT ALL + col0, - 65 * col1 + col0 AS col1 FROM tab1 AS cor0
----
51
-859
85
-240
91
-2964

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT COUNT( + - ( - 97 ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2945
SELECT COUNT ( + - ( - 97 ) ) FROM tab0 cor0
----
3

query II rowsort
SELECT ALL col1 AS col2, + 26 AS col1 FROM tab0
----
1
26
21
26
81
26

query II rowsort
SELECT + + col1, - col0 - - col1 * - col0 * col1 + + - 55 FROM tab1 AS cor0
----
14
-10102
47
-201165
5
-2265

query II rowsort
SELECT - col2 AS col1, col2 AS col1 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 44 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 col1 FROM tab2 AS cor0
----
42
42
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col1, - 15 col0 FROM tab2 AS cor0
----
23
-15
40
-15
58
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT COUNT( - 17 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2952
SELECT COUNT ( - 17 ) AS col1 FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT + 91, + col0 AS col0 FROM tab2 AS cor0
----
91
46
91
64
91
75

query II rowsort
SELECT - col1, col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query I rowsort
SELECT ALL 53 * - col0 FROM tab1 AS cor0
----
-2703
-4505
-4823

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT SUM( ALL + 34 ) col1 FROM tab2 AS cor0
----
102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2956
SELECT SUM ( ALL + 34 ) col1 FROM tab2 AS cor0
----
102

query II rowsort
SELECT ALL 60 * + 58 + + + col1 * - 11, 63 AS col2 FROM tab0 AS cor0
----
2589
63
3249
63
3469
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2958
SELECT DISTINCT - 32 DIV - COUNT( 31 ) FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT - 32 / - COUNT ( 31 ) FROM tab2
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2959
SELECT DISTINCT MAX( ALL - - 39 ) * + + CAST( NULL AS DECIMAL ) * - + COUNT( * ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2959
SELECT DISTINCT MAX ( ALL - - 39 ) * + + CAST ( NULL AS REAL ) * - + COUNT ( * ) col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - + col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND col2
----

query I rowsort
SELECT + 87 AS col2 FROM tab2 WHERE NOT col0 IS NULL
----
87
87
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 col1 FROM tab0
----
38
38
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2963
SELECT - 94 * + - col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2963
SELECT - 94 * + - col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT - - COUNT( * ) + ( + 67 ) AS col0 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-2964
SELECT - - COUNT ( * ) + ( + 67 ) AS col0 FROM tab1 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT DISTINCT - + COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE 66 BETWEEN + + 88 AND col2
----
0

skipif mysql # not compatible
query I rowsort label-2965
SELECT DISTINCT - + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE 66 BETWEEN + + 88 AND col2
----
0

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 AS cor0 WHERE - col2 - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2967
SELECT SUM( - col1 ), + 52 AS col0 FROM tab1 AS cor0
----
-66
52

skipif mysql # not compatible
query II rowsort label-2967
SELECT SUM ( - col1 ), + 52 AS col0 FROM tab1 AS cor0
----
-66
52

query I rowsort
SELECT ALL + 6 FROM tab1 WHERE ( ( NULL ) IS NULL )
----
6
6
6

query II rowsort
SELECT - + col0, col2 FROM tab2 cor0
----
-46
23
-64
40
-75
58

query II rowsort
SELECT - + 89 - + col0 - - - 19, + col0 AS col0 FROM tab0 AS cor0
----
-123
15
-195
87
-205
97

query I rowsort
SELECT DISTINCT 61 AS col0 FROM tab0 AS cor0 WHERE + 26 BETWEEN NULL AND col2
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL > 21
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2973
SELECT 16 + - + 91, + SUM( - col1 ) AS col2 FROM tab1
----
-75
-66

skipif mysql # not compatible
query II rowsort label-2973
SELECT 16 + - + 91, + SUM ( - col1 ) AS col2 FROM tab1
----
-75
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-2974
SELECT - 52 * col0 DIV + col1 + - 58 + - 48 FROM tab2
----
-149
-152
-164

skipif mysql # not compatible
query I rowsort label-2974
SELECT - 52 * col0 / + col1 + - 58 + - 48 FROM tab2
----
-149
-152
-164

query I rowsort
SELECT ALL col1 + + 2 AS col1 FROM tab1
----
16
49
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2976
SELECT - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2976
SELECT - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 col0 FROM tab1 AS cor0
----
24
24
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2978
SELECT - ( + CAST( NULL AS SIGNED ) ), - col1 col1 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2978
SELECT - ( + CAST ( NULL AS INTEGER ) ), - col1 col1 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

query I rowsort
SELECT + col0 FROM tab0 cor0 WHERE NOT col0 / + col2 BETWEEN + col1 AND NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - + 21 * + 75 - + col2 * col1 AS col1 FROM tab1 AS cor0 WHERE ( NOT + col1 IS NOT NULL )
----

query II rowsort
SELECT DISTINCT + + col0 AS col2, ( + col2 ) / col2 * col1 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 + 91 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2982
SELECT ALL + 48 * - MAX( DISTINCT + col1 ) AS col2, CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
-3696
NULL

skipif mysql # not compatible
query II rowsort label-2982
SELECT ALL + 48 * - MAX ( DISTINCT + col1 ) AS col2, CAST ( NULL AS REAL ) AS col0 FROM tab2
----
-3696
NULL

query I rowsort
SELECT ALL + - 47 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT DISTINCT - + 30 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2985
SELECT DISTINCT + 35 FROM tab2 AS cor0 WHERE col1 >= col2 * CAST( NULL AS SIGNED ) + - col0
----

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT + 35 FROM tab2 AS cor0 WHERE col1 >= col2 * CAST ( NULL AS INTEGER ) + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2986
SELECT - - CAST( - - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2986
SELECT - - CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT ALL - MIN( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL - MIN ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT + - 59 AS col2 FROM tab2 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2989
SELECT + ( + ( + CAST( NULL AS SIGNED ) ) ) + 57 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2989
SELECT + ( + ( + CAST ( NULL AS INTEGER ) ) ) + 57 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT DISTINCT MAX( DISTINCT + + 57 ) + + COUNT( * ) FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-2990
SELECT DISTINCT MAX ( DISTINCT + + 57 ) + + COUNT ( * ) FROM tab1
----
60

onlyif mysql # DIV for integer division: 
query II rowsort label-2991
SELECT - 17 AS col0, col1 DIV + 45 FROM tab1
----
-17
0
-17
0
-17
1

skipif mysql # not compatible
query II rowsort label-2991
SELECT - 17 AS col0, col1 / + 45 FROM tab1
----
-17
0
-17
0
-17
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT - 64 * - + COUNT( col0 ) AS col1 FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-2992
SELECT - 64 * - + COUNT ( col0 ) AS col1 FROM tab0
----
192

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 BETWEEN - 17 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2994
SELECT - SUM( + CAST( NULL AS SIGNED ) ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2994
SELECT - SUM ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 34 AS col2 FROM tab1, tab2 AS cor0
----
34

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL > col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2997
SELECT ALL + 87 DIV + col1 + - col2 AS col1 FROM tab1 AS cor0
----
-42
-67
-90

skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL + 87 / + col1 + - col2 AS col1 FROM tab1 AS cor0
----
-42
-67
-90

query II rowsort
SELECT + 24 * - col2, col0 FROM tab1 AS cor0
----
-1416
85
-1632
91
-2304
51

query I rowsort
SELECT ALL + - col0 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
-51
-85
-91

query II rowsort
SELECT DISTINCT 94 * + 63 AS col1, 97 FROM tab1 AS cor0
----
5922
97

query I rowsort
SELECT + col2 + + + col0 AS col0 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT - 78 * col0 + col1 AS col1 FROM tab1 AS cor0
----
-3964
-6625
-7051

query I rowsort
SELECT + col0 * 85 + + - col1 AS col1 FROM tab0 AS cor0
----
1194
7374
8244

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT MAX( DISTINCT + - col2 ) + - 89 col1 FROM tab1
----
-148

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3004
SELECT MAX ( DISTINCT + - col2 ) + - 89 col1 FROM tab1
----
-148

query I rowsort
SELECT DISTINCT 22 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT - + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE - 30 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3006
SELECT - + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE - 30 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT + + ( - COUNT( * ) ) FROM tab2 AS cor0 WHERE ( NOT NULL NOT BETWEEN NULL AND - + 22 )
----
0

skipif mysql # not compatible
query I rowsort label-3007
SELECT + + ( - COUNT ( * ) ) FROM tab2 AS cor0 WHERE ( NOT NULL NOT BETWEEN NULL AND - + 22 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3008
SELECT - col1 DIV 4 AS col2 FROM tab2 AS cor0
----
-12
-16
-19

skipif mysql # not compatible
query I rowsort label-3008
SELECT - col1 / 4 AS col2 FROM tab2 AS cor0
----
-12
-16
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-3009
SELECT ALL + + 21 DIV 95 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL + + 21 / 95 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * + ( + col2 ) - - col1 * - + col0 * + 51 AS col0 FROM tab0 AS cor0
----
-61260
-92307
4656

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT DISTINCT + COUNT( * ) + - + 80 + - + 74 * COUNT( * ) FROM tab0 AS cor0
----
-299

skipif mysql # not compatible
query I rowsort label-3011
SELECT DISTINCT + COUNT ( * ) + - + 80 + - + 74 * COUNT ( * ) FROM tab0 AS cor0
----
-299

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT DISTINCT ( - COUNT( DISTINCT col1 ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3012
SELECT DISTINCT ( - COUNT ( DISTINCT col1 ) ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT - col0 * + 72 AS col1 FROM tab0
----
-1080
-6264
-6984

query II rowsort
SELECT DISTINCT + 21 AS col2, 86 AS col1 FROM tab0
----
21
86

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE + + 61 >= - 4 / 76
----
-23
-40
-58

query II rowsort
SELECT DISTINCT 49, + col1 AS col2 FROM tab0
----
49
1
49
21
49
81

query II rowsort
SELECT ALL col0 AS col2, + col0 AS col2 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT 16 * - 59 FROM tab1
----
-944
-944
-944

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT + MAX( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3019
SELECT + MAX ( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT ( MIN( - 33 ) ) FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3020
SELECT ( MIN ( - 33 ) ) FROM tab1 AS cor0
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-3021
SELECT + - col2 DIV + 92 col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3021
SELECT + - col2 / + 92 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - 51 FROM tab0 cor0
----
-51
-51
-51

query I rowsort
SELECT ALL - 10 + col2 + + + 56 AS col2 FROM tab0 AS cor0
----
145
56
93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3024
SELECT ALL - + CAST( - col0 AS SIGNED ) DIV + + col2 - - 16 + - 99 FROM tab2 cor0
----
-81
-82
-82

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL - + CAST ( - col0 AS INTEGER ) / + + col2 - - 16 + - 99 FROM tab2 cor0
----
-81
-82
-82

query I rowsort
SELECT DISTINCT - + ( - + 52 ) FROM tab2 cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT + MIN( ALL col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3026
SELECT + MIN ( ALL col1 ) FROM tab0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3027
SELECT DISTINCT SUM( + col0 ) + - - 0 * - - 29 * 6 + + SUM( ALL + + CAST( NULL AS SIGNED ) ) - + + SUM( ALL - col0 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT SUM ( + col0 ) + - - 0 * - - 29 * 6 + + SUM ( ALL + + CAST ( NULL AS INTEGER ) ) - + + SUM ( ALL - col0 ) AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3028
SELECT ALL - col1 DIV + + col0 + - 55 AS col2 FROM tab0
----
-55
-55
-60

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL - col1 / + + col0 + - 55 AS col2 FROM tab0
----
-55
-55
-60

query I rowsort
SELECT DISTINCT + 76 * - 84 * + 91 * - col0 AS col1 FROM tab2
----
26723424
37180416
43570800

query I rowsort
SELECT ALL col1 * - col1 * 57 FROM tab2
----
-148257
-255873
-337953

query I rowsort
SELECT DISTINCT 58 * - + col2 * 59 * col2 + - col2 FROM tab2
----
-11511666
-1810261
-5475240

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE 31 NOT BETWEEN + + col2 AND NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3032
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE 31 NOT BETWEEN + + col2 AND NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3033
SELECT DISTINCT col0 * - - col2 * + - 41 + - ( col2 ) DIV + col2, 1 DIV col1 * col2 - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-104961
NULL
-178351
NULL
-43379
NULL

skipif mysql # not compatible
query II rowsort label-3033
SELECT DISTINCT col0 * - - col2 * + - 41 + - ( col2 ) / + col2, 1 / col1 * col2 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-104961
NULL
-178351
NULL
-43379
NULL

query I rowsort
SELECT col2 - + col2 - + col1 AS col0 FROM tab2
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 93 col2 FROM tab0 WHERE - col2 <> + 47
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3036
SELECT DISTINCT 66 DIV - col1 AS col2 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT 66 / - col1 AS col2 FROM tab2
----
-1
0

query I rowsort
SELECT ALL + 69 * col0 - col0 * + col0 AS col0 FROM tab2 AS cor0
----
-450
1058
320

query I rowsort
SELECT + 26 + + + col1 FROM tab2 AS cor0
----
103
77
93

query I rowsort
SELECT DISTINCT - col1 - - - col2 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT - - 95 + - 7 AS col0 FROM tab2 AS cor0
----
88
88
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3041
SELECT ALL + COUNT( * ) DIV 14 * 51 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL + COUNT ( * ) / 14 * 51 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3042
SELECT + - COUNT( * ) * COUNT( * ) + 89 DIV COUNT( * ) FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-3042
SELECT + - COUNT ( * ) * COUNT ( * ) + 89 / COUNT ( * ) FROM tab1 AS cor0
----
20

query I rowsort
SELECT + - 26 + - col1 + + 8 FROM tab2 cor0
----
-69
-85
-95

query II rowsort
SELECT ALL - col0, col0 AS col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT - - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND ( NULL ) IS NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 14 col1 FROM tab2 cor0
----
-14

query II rowsort
SELECT ALL + - col0 AS col1, - col1 + - 92 FROM tab2 AS cor0
----
-46
-143
-64
-169
-75
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3048
SELECT ALL CAST( NULL AS SIGNED ) - + - col2 AS col0 FROM tab0 WHERE NOT 63 * col2 + CAST( NULL AS SIGNED ) + col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL CAST ( NULL AS INTEGER ) - + - col2 AS col0 FROM tab0 WHERE NOT 63 * col2 + CAST ( NULL AS INTEGER ) + col1 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + col2 ) * - 54 * col1 FROM tab0
----
-11340
-205578
-5346

onlyif mysql # DIV for integer division: 
query I rowsort label-3050
SELECT ALL 39 DIV col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL 39 / col0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT MIN( - 75 ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-3051
SELECT MIN ( - 75 ) AS col0 FROM tab2
----
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3052
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3053
SELECT DISTINCT - + col0 DIV + 49 FROM tab2 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3053
SELECT DISTINCT - + col0 / + 49 FROM tab2 cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3054
SELECT col1 * 24 * - - CAST( - - col0 AS SIGNED ) FROM tab0
----
2328
29160
43848

skipif mysql # not compatible
query I rowsort label-3054
SELECT col1 * 24 * - - CAST ( - - col0 AS INTEGER ) FROM tab0
----
2328
29160
43848

query I rowsort
SELECT - 27 + - + 70 FROM tab2 cor0
----
-97
-97
-97

query I rowsort
SELECT ALL - ( - 98 ) AS col0 FROM tab1 AS cor0
----
98
98
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3057
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT ALL + COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN 89 AND - - col2
----
0

skipif mysql # not compatible
query I rowsort label-3058
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN 89 AND - - col2
----
0

query I rowsort
SELECT ALL - 70 + - - 46 FROM tab0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT ALL ( - COUNT( * ) ) + + + 59 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL ( - COUNT ( * ) ) + + + 59 FROM tab2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3061
SELECT ALL + 49 + SUM( - + CAST( + 77 AS SIGNED ) ) FROM tab2
----
-182

skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL + 49 + SUM ( - + CAST ( + 77 AS INTEGER ) ) FROM tab2
----
-182

query I rowsort
SELECT 79 * + 58 FROM tab0
----
4582
4582
4582

onlyif mysql # aggregate syntax: 
query II rowsort label-3063
SELECT ( + 7 ) AS col2, + COUNT( * ) AS col2 FROM tab1
----
7
3

skipif mysql # not compatible
query II rowsort label-3063
SELECT ( + 7 ) AS col2, + COUNT ( * ) AS col2 FROM tab1
----
7
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT ALL + COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT ALL 90 * col1 AS col2, col1 FROM tab0
----
1890
21
7290
81
90
1

query I rowsort
SELECT DISTINCT + 37 - - + 92 * col0 + + 53 FROM tab0 AS cor0
----
1470
8094
9014

query I rowsort
SELECT DISTINCT 63 * - + 75 + + col2 + + 44 * - + col1 + - - 17 * + col1 FROM tab0 AS cor0
----
-4653
-5282
-6865

onlyif mysql # aggregate syntax: 
query II rowsort label-3068
SELECT 69 AS col0, - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
69
-9

skipif mysql # not compatible
query II rowsort label-3068
SELECT 69 AS col0, - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
69
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3069
SELECT DISTINCT MAX( - + col2 ) + 80 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT MAX ( - + col2 ) + 80 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( NULL ) >= + col0 )
----

query I rowsort
SELECT DISTINCT - 27 + - 22 AS col1 FROM tab1 cor0
----
-49

query I rowsort
SELECT ALL - - col1 - - 37 FROM tab0 AS cor0
----
118
38
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 27 ) - + col0 IS NULL
----

query I rowsort
SELECT + 0 * - ( + col0 ) * - col1 + + col0 AS col2 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT + + COUNT( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3075
SELECT + + COUNT ( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT COUNT( ALL col2 ) * + - ( + ( COUNT( * ) ) ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3076
SELECT COUNT ( ALL col2 ) * + - ( + ( COUNT ( * ) ) ) AS col0 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + 60 * - ( ( - col0 ) ) * + col2 FROM tab1
----
293760
300900
371280

query I rowsort
SELECT ALL - col1 * + - 55 AS col0 FROM tab2
----
2805
3685
4235

query I rowsort
SELECT DISTINCT + 16 * 70 FROM tab1
----
1120

query I rowsort
SELECT + 62 * - col1 AS col2 FROM tab2
----
-3162
-4154
-4774

query II rowsort
SELECT 16, 41 FROM tab0 AS cor0 WHERE NOT NULL <= col2 - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3082
SELECT ALL - - CAST( - 64 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-64
-64
-64

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL - - CAST ( - 64 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-3083
SELECT - 26 AS col1, + COUNT( * ) FROM tab0 AS cor0
----
-26
3

skipif mysql # not compatible
query II rowsort label-3083
SELECT - 26 AS col1, + COUNT ( * ) FROM tab0 AS cor0
----
-26
3

query I rowsort
SELECT - 92 * + 20 FROM tab1 AS cor0
----
-1840
-1840
-1840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3085
SELECT - ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3085
SELECT - ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + col0 - + col0 - - col2 + col0 FROM tab1 AS cor0
----
4992
5074
6256

query I rowsort
SELECT - + ( 92 ) FROM tab0 AS cor0
----
-92
-92
-92

query I rowsort
SELECT - 6 * col2 AS col2 FROM tab2 AS cor0
----
-138
-240
-348

query I rowsort
SELECT DISTINCT 77 * col1 * + + 10 + - col0 AS col2 FROM tab0 AS cor0
----
16083
62355
673

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT - COUNT( - + 46 ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3090
SELECT - COUNT ( - + 46 ) col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT col2 + - + ( + 24 ) AS col1 FROM tab0 AS cor0
----
-14
23
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3092
SELECT CAST( NULL AS SIGNED ) + - 79 * - - col0 * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3092
SELECT CAST ( NULL AS INTEGER ) + - 79 * - - col0 * col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT - 26, col1 * + + 24 AS col1 FROM tab0 cor0
----
-26
1944
-26
24
-26
504

query I rowsort
SELECT + col2 * + 61 * - col0 FROM tab0 cor0
----
-43005
-53070
-585783

onlyif mysql # DIV for integer division: 
query I rowsort label-3095
SELECT DISTINCT - col2 DIV + col1 - col0 FROM tab1
----
-57
-92
-96

skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT - col2 / + col1 - col0 FROM tab1
----
-57
-92
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3096
SELECT DISTINCT + COUNT( * ) DIV + 33 FROM tab0 WHERE 29 NOT IN ( + 31 )
----
0

skipif mysql # not compatible
query I rowsort label-3096
SELECT DISTINCT + COUNT ( * ) / + 33 FROM tab0 WHERE 29 NOT IN ( + 31 )
----
0

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) <> col1
----

query I rowsort
SELECT col1 * 43 FROM tab1 WHERE NOT - col1 <= 9
----

query I rowsort
SELECT - 84 + 48 FROM tab2
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT ALL + COUNT( * ) + - ( - ( 35 ) ) AS col0 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-3100
SELECT ALL + COUNT ( * ) + - ( - ( 35 ) ) AS col0 FROM tab2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT + 74 + + MIN( col0 ) FROM tab1
----
125

skipif mysql # not compatible
query I rowsort label-3101
SELECT + 74 + + MIN ( col0 ) FROM tab1
----
125

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col0 * - col0 + + col0
----

query I rowsort
SELECT col2 - + col2 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3104
SELECT 83 AS col2 FROM tab0 WHERE + 16 BETWEEN + CAST( NULL AS SIGNED ) / + 51 AND + col0
----

skipif mysql # not compatible
query I rowsort label-3104
SELECT 83 AS col2 FROM tab0 WHERE + 16 BETWEEN + CAST ( NULL AS INTEGER ) / + 51 AND + col0
----

query I rowsort
SELECT ALL col1 + + 53 AS col2 FROM tab1 WHERE NOT + col1 IN ( col2 )
----
100
58
67

query I rowsort
SELECT ALL - 45 + 1 AS col0 FROM tab2
----
-44
-44
-44

query III rowsort
SELECT * FROM tab0 WHERE + col1 BETWEEN ( col0 ) AND 62 * + col0 - + 69 * + 51
----

query I rowsort
SELECT 34 * - col1 + ( + col2 ) * - col1 FROM tab2
----
-2907
-5698
-6164

query I rowsort
SELECT 83 * 13 + col2 FROM tab1
----
1138
1147
1175

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 82 * col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + col2 ) + ( - col1 ) AS col2 FROM tab2
----
-28
-37
-9

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 / - 38 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3113
SELECT ALL 83 * 67 FROM tab1 WHERE NOT ( - CAST( NULL AS SIGNED ) ) BETWEEN 28 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL 83 * 67 FROM tab1 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) BETWEEN 28 AND NULL
----

query I rowsort
SELECT 84 * + col2 AS col0 FROM tab0 WHERE + ( col2 ) * ( - col2 * + col1 ) IS NOT NULL
----
3948
8316
840

query I rowsort
SELECT - col0 + + 39 FROM tab0
----
-48
-58
24

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE + col0 * + col2 IS NULL
----

query I rowsort
SELECT 9 + + col1 AS col0 FROM tab1
----
14
23
56

onlyif mysql # DIV for integer division: 
query I rowsort label-3118
SELECT - 6 DIV - col2 + + col2 AS col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3118
SELECT - 6 / - col2 + + col2 AS col2 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL 95 + - col0 AS col2 FROM tab1
----
10
4
44

query I rowsort
SELECT ( col0 ) + col2 * 88 AS col1 FROM tab0
----
4151
8809
967

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3121
SELECT + COUNT( * ) DIV 89 FROM tab2 WHERE NOT NULL > - 38
----
0

skipif mysql # not compatible
query I rowsort label-3121
SELECT + COUNT ( * ) / 89 FROM tab2 WHERE NOT NULL > - 38
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 83 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT ( - COUNT( * ) ) AS col0 FROM tab0 WHERE ( NULL ) <= col2 / col2
----
0

skipif mysql # not compatible
query I rowsort label-3123
SELECT ( - COUNT ( * ) ) AS col0 FROM tab0 WHERE ( NULL ) <= col2 / col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT ALL COUNT( * ) + 89 AS col0 FROM tab0 WHERE NULL IS NULL
----
92

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL COUNT ( * ) + 89 AS col0 FROM tab0 WHERE NULL IS NULL
----
92

query I rowsort
SELECT DISTINCT 40 AS col1 FROM tab0 WHERE NULL BETWEEN ( ( col2 ) * col0 ) AND col1
----

query I rowsort
SELECT DISTINCT col1 * - ( + col1 * col2 ) FROM tab2 AS cor0
----
-237160
-260362
-59823

query I rowsort
SELECT DISTINCT 73 AS col0 FROM tab0 AS cor0 WHERE NOT col2 * + col0 NOT IN ( - 31 + - 49 / + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT SUM( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3128
SELECT SUM ( DISTINCT - col0 ) AS col0 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT ALL 46 * - 19 AS col2 FROM tab1 AS cor0
----
-874
-874
-874

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 AND ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT DISTINCT COUNT( col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3131
SELECT DISTINCT COUNT ( col2 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + ( 69 ) * + col2 FROM tab2
----
1587
2760
4002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col0 ) * + col0 col2 FROM tab0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3134
SELECT - col1 + 11 * + CAST( col1 AS SIGNED ) FROM tab0
----
10
210
810

skipif mysql # not compatible
query I rowsort label-3134
SELECT - col1 + 11 * + CAST ( col1 AS INTEGER ) FROM tab0
----
10
210
810

onlyif mysql # DIV for integer division: 
query I rowsort label-3135
SELECT col1 DIV - col0 + + 42 AS col2 FROM tab1
----
42
42
42

skipif mysql # not compatible
query I rowsort label-3135
SELECT col1 / - col0 + + 42 AS col2 FROM tab1
----
42
42
42

query I rowsort
SELECT DISTINCT - 66 AS col1 FROM tab1 cor0
----
-66

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 / col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 27 * col2 NOT BETWEEN ( 91 * col1 ) AND - 68 * col0 + 82
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT BETWEEN - col1 / - col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col1 * - col0 AND col2 - col2 * col2
----

query I rowsort
SELECT + ( - 84 ) FROM tab1 AS cor0
----
-84
-84
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 33 col1 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT DISTINCT - col0 + + 32 FROM tab1
----
-19
-53
-59

query III rowsort
SELECT * FROM tab1 WHERE ( col0 - 51 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT ALL - 98 + + COUNT( * ) FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL - 98 + + COUNT ( * ) FROM tab1
----
-95

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT BETWEEN + col0 AND + 4
----

query I rowsort
SELECT - 25 + - 51 FROM tab0 WHERE NULL IS NULL
----
-76
-76
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + col2 * 97 col1 FROM tab1
----
-5718
-6549
-9298

query I rowsort
SELECT ALL 65 + col1 + col2 FROM tab0
----
165
193
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3150
SELECT DISTINCT MAX( DISTINCT - col2 ) - + CAST( - COUNT( * ) - + 19 AS SIGNED ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT MAX ( DISTINCT - col2 ) - + CAST ( - COUNT ( * ) - + 19 AS INTEGER ) AS col1 FROM tab2
----
-1

query I rowsort
SELECT ALL - + col0 * + 52 - + 53 * col1 FROM tab2 cor0
----
-5095
-7409
-7451

query I rowsort
SELECT - 0 + - - col1 AS col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN + col0 AND col2 / col2
----
0

skipif mysql # not compatible
query I rowsort label-3153
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN + col0 AND col2 / col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT DISTINCT - MIN( + 74 ) FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT - MIN ( + 74 ) FROM tab0 AS cor0
----
-74

query I rowsort
SELECT DISTINCT + + 26 * 45 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1170

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT ALL - 39 * - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
351

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL - 39 * - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
351

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col0, - 30 FROM tab0 AS cor0
----
-1
-30
-21
-30
-81
-30

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 34 / + + 36 < col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 + ( col0 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3160
SELECT ALL + AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL + AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 81 col2, 54 + - + col1 FROM tab2 AS cor0
----
81
-13
81
-23
81
3

query I rowsort
SELECT DISTINCT - col0 * + + col0 + col0 AS col2 FROM tab0 AS cor0
----
-210
-7482
-9312

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + col0 * ( 83 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN ( + col0 ) AND ( col1 * 70 - + col1 )
----

query I rowsort
SELECT DISTINCT col1 * + 75 FROM tab0 AS cor0
----
1575
6075
75

query II rowsort
SELECT DISTINCT - col0, + 53 AS col0 FROM tab2 AS cor0
----
-46
53
-64
53
-75
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT MIN( DISTINCT + ( ( - 78 ) ) ) * + COUNT( * ) AS col1 FROM tab1
----
-234

skipif mysql # not compatible
query I rowsort label-3167
SELECT MIN ( DISTINCT + ( ( - 78 ) ) ) * + COUNT ( * ) AS col1 FROM tab1
----
-234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * 93 col0, 2 AS col2 FROM tab2
----
2139
2
3720
2
5394
2

query I rowsort
SELECT - col0 * 42 * col1 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 97 + - col2 FROM tab2 WHERE NOT NULL NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT 76 * + COUNT( * ) FROM tab1 WHERE NOT col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-3171
SELECT 76 * + COUNT ( * ) FROM tab1 WHERE NOT col1 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT MAX( ALL col2 ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-3172
SELECT MAX ( ALL col2 ) AS col2 FROM tab2
----
58

query I rowsort
SELECT ALL col2 * + + 87 AS col0 FROM tab0 AS cor0
----
4089
8613
870

query I rowsort
SELECT ALL col2 FROM tab2 cor0 WHERE NOT ( NOT ( NOT ( col2 ) * col2 IS NOT NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3175
SELECT + col1 + col0 * + CAST( NULL AS SIGNED ) + 91 * + 58 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3175
SELECT + col1 + col0 * + CAST ( NULL AS INTEGER ) + 91 * + 58 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3176
SELECT + CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3176
SELECT + CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + + ( - col0 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3178
SELECT ALL - CAST( NULL AS SIGNED ) * - - col1 / - col0 - 29 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL - CAST ( NULL AS INTEGER ) * - - col1 / - col0 - 29 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - col0 ) * + + col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT ALL + col0 * col2 * - ( + col1 ) FROM tab1 AS cor0
----
-25075
-290836
-68544

onlyif mysql # DIV for integer division: 
query II rowsort label-3181
SELECT DISTINCT + - col1 + + + 26 col2, col0 DIV + - 44 AS col1 FROM tab0 AS cor0
----
-55
0
25
-2
5
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3181
SELECT DISTINCT + - col1 + + + 26 col2, col0 / + - 44 AS col1 FROM tab0 AS cor0
----
-55
0
25
-2
5
-1

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 84 BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT 38 * + 43 AS col2 FROM tab0
----
1634
1634
1634

query I rowsort
SELECT ALL col1 + - ( + 83 ) AS col2 FROM tab0
----
-2
-62
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT COUNT( * ) * 53 col0 FROM tab1
----
159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3185
SELECT COUNT ( * ) * 53 col0 FROM tab1
----
159

query I rowsort
SELECT ALL col2 * 93 AS col0 FROM tab2
----
2139
3720
5394

query I rowsort
SELECT - + col2 FROM tab0 AS cor0 WHERE NULL > - 32
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( 79 * - 66 + - col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 95 * + 66 * + + ( - + col0 ) FROM tab1 AS cor0
----
-319770
-532950
-570570

onlyif mysql # aggregate syntax: 
query II rowsort label-3190
SELECT - ( - - 45 ) * - 96 AS col1, - COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
4320
-9

skipif mysql # not compatible
query II rowsort label-3190
SELECT - ( - - 45 ) * - 96 AS col1, - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
4320
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( + + col0 ) * - col0 NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * 85 AS col2 FROM tab0 AS cor0 WHERE - 56 NOT IN ( 91 + col1 )
----
-3995
-8415
-850

query I rowsort
SELECT + col0 - + 71 FROM tab1 cor0
----
-20
14
20

query I rowsort
SELECT + col1 * - ( + + col2 ) + + 26 + - + 99 * 35 + - 62 AS col2 FROM tab1 AS cor0
----
-3796
-4845
-6697

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3195
SELECT ALL - MAX( ALL + 7 ) DIV + - 19 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL - MAX ( ALL + 7 ) / + - 19 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3196
SELECT DISTINCT 13 DIV - COUNT( * ) FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3196
SELECT DISTINCT 13 / - COUNT ( * ) FROM tab0 AS cor0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3197
SELECT 38 + CAST( + AVG ( DISTINCT + col2 ) AS SIGNED ) * - SUM( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
-16760

skipif mysql # not compatible
query I rowsort label-3197
SELECT 38 + CAST ( + AVG ( DISTINCT + col2 ) AS INTEGER ) * - SUM ( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
-16760

onlyif mysql # DIV for integer division: 
query II rowsort label-3198
SELECT ALL 26 + - col0 DIV + col2 AS col1, col0 AS col1 FROM tab1 AS cor0
----
25
85
25
91
26
51

skipif mysql # not compatible
query II rowsort label-3198
SELECT ALL 26 + - col0 / + col2 AS col1, col0 AS col1 FROM tab1 AS cor0
----
25
85
25
91
26
51

query I rowsort
SELECT ALL + + col2 * col1 FROM tab0 WHERE - col1 IS NOT NULL
----
210
3807
99

query III rowsort
SELECT * FROM tab1 WHERE + - 62 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 + - 16 + + 29 FROM tab2
----
-10
-27
-45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3202
SELECT DISTINCT SUM( + col1 ) - CAST( NULL AS DECIMAL ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3202
SELECT DISTINCT SUM ( + col1 ) - CAST ( NULL AS REAL ) col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + 38 + - ( - + col0 ) + + + 54 * + + col2 * 58 FROM tab2
----
125382
181769
72120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3204
SELECT - - col1 + - CAST( 27 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + - col2 AND 73
----

skipif mysql # not compatible
query I rowsort label-3204
SELECT - - col1 + - CAST ( 27 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + - col2 AND 73
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3205
SELECT ALL + col0 - + col0 + + - ( + CAST( 50 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL + col0 - + col0 + + - ( + CAST ( 50 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-50
-50
-50

query I rowsort
SELECT + 83 * + + ( 94 ) - + + col0 AS col1 FROM tab1 cor0
----
7711
7717
7751

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3207
SELECT ALL + COUNT( DISTINCT - col1 ) DIV 7 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL + COUNT ( DISTINCT - col1 ) / 7 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - ( - col1 ) * col0 AS col2 FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-3209
SELECT ALL 92 DIV - col1 FROM tab1 cor0
----
-1
-18
-6

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL 92 / - col1 FROM tab1 cor0
----
-1
-18
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3210
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / col2 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3210
SELECT DISTINCT + CAST ( NULL AS REAL ) / col2 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT + - MIN( + 63 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-63

skipif mysql # not compatible
query I rowsort label-3211
SELECT + - MIN ( + 63 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3212
SELECT DISTINCT COUNT( * ) * + 45 + 88 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) <= + - col0
----
88

skipif mysql # not compatible
query I rowsort label-3212
SELECT DISTINCT COUNT ( * ) * + 45 + 88 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) <= + - col0
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-3213
SELECT ALL - SUM( + col0 ), MIN( col2 ) + ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-199
13

skipif mysql # not compatible
query II rowsort label-3213
SELECT ALL - SUM ( + col0 ), MIN ( col2 ) + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-199
13

query I rowsort
SELECT + col1 / col0 - col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3215
SELECT ALL col1 * + col0 FROM tab0 AS cor0 WHERE ( - col0 * - 20 + CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL col1 * + col0 FROM tab0 AS cor0 WHERE ( - col0 * - 20 + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT + 40 + + - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-47
-57
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT DISTINCT MAX( ALL - col0 ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3217
SELECT DISTINCT MAX ( ALL - col0 ) AS col2 FROM tab0
----
-15

query III rowsort
SELECT * FROM tab0 WHERE NOT + 95 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 col2 FROM tab0
----
17
17
17

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT ( 16 + + + col0 ) IS NULL
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3221
SELECT 82 DIV + - ( + - ( + col0 ) ) FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3221
SELECT 82 / + - ( + - ( + col0 ) ) FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - ( - - ( - 50 ) ) ) col0 FROM tab1
----
50
50
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3223
SELECT DISTINCT MIN( - col1 ) FROM tab2 WHERE + 99 + col0 + + - col2 * - CAST( NULL AS SIGNED ) / + col0 <> + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT MIN ( - col1 ) FROM tab2 WHERE + 99 + col0 + + - col2 * - CAST ( NULL AS INTEGER ) / + col0 <> + col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3224
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT CAST( col1 AS SIGNED ) < 23 + 25 + + 92
----

skipif mysql # not compatible
query III rowsort label-3224
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT CAST ( col1 AS INTEGER ) < 23 + 25 + + 92
----

query I rowsort
SELECT DISTINCT + - 22 * + 81 * - - ( - + 24 ) FROM tab1 AS cor0 WHERE NOT 64 - - 71 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, 13 col1 FROM tab1 AS cor0
----
59
13
68
13
96
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 41 + + ( + col0 ) col2, - ( + + 2 ) * col1 + + col1 AS col2 FROM tab0 AS cor0
----
-26
-81
46
-21
56
-1

query I rowsort
SELECT ALL col1 + - col0 + col1 AS col1 FROM tab0
----
-45
-95
147

query I rowsort
SELECT ALL + col0 - - 29 AS col0 FROM tab0 AS cor0
----
116
126
44

query I rowsort
SELECT ALL + 5 AS col0 FROM tab2 cor0
----
5
5
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3231
SELECT ALL - + 56 DIV + + 50 * - COUNT( - + col0 ) DIV COUNT( * ) AS col2 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3231
SELECT ALL - + 56 / + + 50 * - COUNT ( - + col0 ) / COUNT ( * ) AS col2 FROM tab2 cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3232
SELECT - + SUM( - + col1 ) DIV - COUNT( - col1 ) AS col2 FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-3232
SELECT - + SUM ( - + col1 ) / - COUNT ( - col1 ) AS col2 FROM tab2 AS cor0
----
-65

query I rowsort
SELECT + + col0 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - 75 + 68 AS col2 FROM tab2 AS cor0
----
-7

query III rowsort
SELECT * FROM tab2 WHERE - + col0 + + col1 = + ( + + col1 ) - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT + 5 - MAX( + col0 ) FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-3236
SELECT + 5 - MAX ( + col0 ) FROM tab0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT - 72 - - COUNT( * ) - - MAX( col1 ) FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-3237
SELECT - 72 - - COUNT ( * ) - - MAX ( col1 ) FROM tab1
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-3238
SELECT DISTINCT 74 AS col2, 8 * MAX( DISTINCT - col2 ) * - + MAX( DISTINCT col1 ) FROM tab1
----
74
22184

skipif mysql # not compatible
query II rowsort label-3238
SELECT DISTINCT 74 AS col2, 8 * MAX ( DISTINCT - col2 ) * - + MAX ( DISTINCT col1 ) FROM tab1
----
74
22184

query I rowsort
SELECT ALL 59 + col0 AS col1 FROM tab0
----
146
156
74

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 <= - col0 AND 21 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 70 * col0 FROM tab1
----
3570
5950
6370

query I rowsort
SELECT ALL + col2 * + 28 FROM tab1 cor0
----
1652
1904
2688

query I rowsort
SELECT ALL + + ( + col0 ) FROM tab2 AS cor0 WHERE NOT col1 = - - ( - col2 )
----
46
64
75

query II rowsort
SELECT DISTINCT + - 64 AS col0, col0 FROM tab2 AS cor0
----
-64
46
-64
64
-64
75

query III rowsort
SELECT ALL + col0 AS col2, + col0 AS col1, - col0 + - 97 FROM tab2
----
9 values hashing to b72fc2ec9c616b22b9181ba583e61a0d

query II rowsort
SELECT + 19 AS col1, - col0 FROM tab1 AS cor0
----
19
-51
19
-85
19
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + 58 col2 FROM tab2 AS cor0
----
1334
2320
3364

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT + + SUM( - 97 ) AS col1 FROM tab0 cor0
----
-291

skipif mysql # not compatible
query I rowsort label-3248
SELECT + + SUM ( - 97 ) AS col1 FROM tab0 cor0
----
-291

onlyif mysql # DIV for integer division: 
query I rowsort label-3249
SELECT ALL - 60 DIV - 59 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL - 60 / - 59 AS col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3250
SELECT DISTINCT - col2, CAST( NULL AS SIGNED ) + - - col0 * + CAST( + + ( + 58 ) AS SIGNED ) / col0 col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3250
SELECT DISTINCT - col2, CAST ( NULL AS INTEGER ) + - - col0 * + CAST ( + + ( + 58 ) AS INTEGER ) / col0 col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT ALL 91 + + - col2 AS col0 FROM tab1 WHERE ( NULL ) < + 74 * + - col2
----

query I rowsort
SELECT ALL - col2 + - - col1 AS col0 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT 92 * - - 56 + 91 FROM tab1, tab2 AS cor0
----
9 values hashing to b770eac54ed78ae3e8143a87674f52e8

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT ALL - - MIN( ALL 33 ) * COUNT( * ) + - + 47 col2 FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3254
SELECT ALL - - MIN ( ALL 33 ) * COUNT ( * ) + - + 47 col2 FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 AND NULL
----
NULL

query I rowsort
SELECT DISTINCT + 56 FROM tab2 WHERE + - ( - col0 ) IS NULL
----

query I rowsort
SELECT ALL + ( - 81 ) AS col1 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
-81
-81
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 col2 FROM tab2 AS cor0 WHERE 10 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3258
SELECT DISTINCT + COUNT( * ) * - - COUNT( ALL + col0 ) + COUNT( * ) + + - 22 AS col0, MIN( DISTINCT + 86 ) * - MIN( ALL + + 21 ) * COUNT( * ) AS col1 FROM tab2 cor0
----
-10
-5418

skipif mysql # not compatible
query II rowsort label-3258
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( ALL + col0 ) + COUNT ( * ) + + - 22 AS col0, MIN ( DISTINCT + 86 ) * - MIN ( ALL + + 21 ) * COUNT ( * ) AS col1 FROM tab2 cor0
----
-10
-5418

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3259
SELECT ALL CAST( - 65 AS SIGNED ) - col2 AS col2, + col0 FROM tab2
----
-105
64
-123
75
-88
46

skipif mysql # not compatible
query II rowsort label-3259
SELECT ALL CAST ( - 65 AS INTEGER ) - col2 AS col2, + col0 FROM tab2
----
-105
64
-123
75
-88
46

query III rowsort
SELECT * FROM tab1 WHERE - col1 + 47 IS NULL
----

query I rowsort
SELECT DISTINCT + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 * 16 * + - 95 / - 47 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT ALL + SUM( DISTINCT - 29 ) AS col1 FROM tab0 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL + SUM ( DISTINCT - 29 ) AS col1 FROM tab0 AS cor0
----
-29

query II rowsort
SELECT DISTINCT - col2, - col2 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3264
SELECT - CAST( NULL AS SIGNED ) * - - COUNT( * ) - 98 * - SUM( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NULL > - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3264
SELECT - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) - 98 * - SUM ( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NULL > - col1
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 32 < NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col2, col1 FROM tab1 cor0
----
14
14
47
47
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col0 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3268
SELECT DISTINCT - col0 DIV - 89 * col0 + 48 AS col1 FROM tab2 WHERE NOT + - col0 + + col1 IS NULL
----
48

skipif mysql # not compatible
query I rowsort label-3268
SELECT DISTINCT - col0 / - 89 * col0 + 48 AS col1 FROM tab2 WHERE NOT + - col0 + + col1 IS NULL
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3269
SELECT DISTINCT - MIN( DISTINCT + col1 ) * - 9 AS col1 FROM tab1 WHERE NOT - col2 >= CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3269
SELECT DISTINCT - MIN ( DISTINCT + col1 ) * - 9 AS col1 FROM tab1 WHERE NOT - col2 >= CAST ( NULL AS INTEGER )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * + col2 < NULL
----

query II rowsort
SELECT 32 * - col2 AS col1, col0 AS col1 FROM tab0
----
-1504
15
-3168
97
-320
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT DISTINCT - SUM( DISTINCT + 70 ) AS col0 FROM tab2
----
-70

skipif mysql # not compatible
query I rowsort label-3272
SELECT DISTINCT - SUM ( DISTINCT + 70 ) AS col0 FROM tab2
----
-70

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3274
SELECT COUNT( * ) DIV - + COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-3274
SELECT COUNT ( * ) / - + COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT SUM( ALL + 46 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
414

skipif mysql # not compatible
query I rowsort label-3275
SELECT SUM ( ALL + 46 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
414

onlyif mysql # DIV for integer division: 
query I rowsort label-3276
SELECT ALL - col1 DIV - - 35 AS col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL - col1 / - - 35 AS col2 FROM tab2
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT DISTINCT - MIN( col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-3277
SELECT DISTINCT - MIN ( col2 ) FROM tab1
----
-59

query I rowsort
SELECT - - 10 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 ) WHERE 70 IS NOT NULL
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query II rowsort
SELECT ALL col2, - col0 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3280
SELECT ALL - col0 * - 66 + 59 - - + 54 - + col2 DIV + - 52 FROM tab2 cor0
----
3149
4337
5064

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL - col0 * - 66 + 59 - - + 54 - + col2 / + - 52 FROM tab2 cor0
----
3149
4337
5064

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + 29 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + 29 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT DISTINCT - SUM( DISTINCT col0 ) col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3282
SELECT DISTINCT - SUM ( DISTINCT col0 ) col2 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT + 64 * col1 + - col1 / - 94 FROM tab2 AS cor0 WHERE NOT NULL > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT DISTINCT - - 69 * COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-3284
SELECT DISTINCT - - 69 * COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
210

query I rowsort
SELECT DISTINCT + col1 + - 27 FROM tab1
----
-13
-22
20

query I rowsort
SELECT - ( - col1 ) * + - 93 AS col0 FROM tab2
----
-4743
-6231
-7161

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT + - 37 * col1 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT ALL + MIN( - + 79 ) AS col1 FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL + MIN ( - + 79 ) AS col1 FROM tab1
----
-79

query I rowsort
SELECT + 41 * - col1 * col0 FROM tab0
----
-3977
-49815
-74907

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 0 * col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3291
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT - ( + - col1 ) + + ( - col2 ) FROM tab2
----
28
37
9

query I rowsort
SELECT - col2 + 72 AS col1 FROM tab2
----
14
32
49

query I rowsort
SELECT ALL + 30 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query III rowsort
SELECT * FROM tab1 WHERE - 77 IS NULL
----

query I rowsort
SELECT ALL - col1 - - col0 FROM tab2 cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT DISTINCT - MIN( ALL + + 6 ) - - 59 AS col2 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT - MIN ( ALL + + 6 ) - - 59 AS col2 FROM tab1 AS cor0
----
53

query I rowsort
SELECT ALL - - 41 AS col0 FROM tab0 cor0
----
41
41
41

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND + ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * + col0 col0, + col2 + + - col0 + ( 41 ) - + col0 AS col1 FROM tab2 AS cor0
----
1058
-28
2560
-47
4350
-51

query I rowsort
SELECT ALL + ( - + 62 ) * 92 + - + col2 AS col1 FROM tab1 AS cor0
----
-5763
-5772
-5800

query I rowsort
SELECT - 61 * + 72 + - col2 FROM tab0 AS cor0
----
-4402
-4439
-4491

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT DISTINCT ( + - 39 ) * - COUNT( * ) AS col0 FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN ( NULL ) AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3303
SELECT DISTINCT ( + - 39 ) * - COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN ( NULL ) AND NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3304
SELECT col0 DIV + CAST( col0 AS SIGNED ) AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3304
SELECT col0 / + CAST ( col0 AS INTEGER ) AS col1 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3305
SELECT DISTINCT - 94 AS col0, - CAST( NULL AS DECIMAL ) FROM tab0
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-3305
SELECT DISTINCT - 94 AS col0, - CAST ( NULL AS REAL ) FROM tab0
----
-94
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3306
SELECT col2 DIV - + 23 FROM tab1
----
-2
-2
-4

skipif mysql # not compatible
query I rowsort label-3306
SELECT col2 / - + 23 FROM tab1
----
-2
-2
-4

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT - - 93 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 col0 FROM tab2
----
35
35
35

onlyif mysql # aggregate syntax: 
query II rowsort label-3309
SELECT + COUNT( * ) AS col0, + 85 + + 94 col2 FROM tab1 AS cor0
----
3
179

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3309
SELECT + COUNT ( * ) AS col0, + 85 + + 94 col2 FROM tab1 AS cor0
----
3
179

query II rowsort
SELECT ALL + + col1 AS col0, - col2 AS col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-3311
SELECT DISTINCT col0 * + - col2 DIV col2 AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT col0 * + - col2 / col2 AS col1 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT DISTINCT - + COUNT( col1 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3312
SELECT DISTINCT - + COUNT ( col1 ) AS col0 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT - ( + 14 ) * 93 AS col2, - ( - col1 ) FROM tab0 AS cor0
----
-1302
1
-1302
21
-1302
81

query I rowsort
SELECT ALL + col0 * + 82 * + 87 FROM tab0 AS cor0
----
107010
620658
691998

query I rowsort
SELECT + 62 * 44 AS col0 FROM tab1 AS cor0
----
2728
2728
2728

query I rowsort
SELECT DISTINCT col2 * - col0 * + col0 + - - 42 FROM tab0 AS cor0 WHERE NOT col2 >= NULL
----

query II rowsort
SELECT ALL + 6 * - 96 AS col1, + 99 FROM tab0 AS cor0
----
-576
99
-576
99
-576
99

query I rowsort
SELECT - - col1 * col0 * + + col0 + + col2 FROM tab1 cor0
----
36184
36510
389275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3319
SELECT DISTINCT + col2 * CAST( col2 AS SIGNED ) + col0 FROM tab0 AS cor0
----
187
2224
9898

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT + col2 * CAST ( col2 AS INTEGER ) + col0 FROM tab0 AS cor0
----
187
2224
9898

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 < ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( 18 ) FROM tab0 WHERE + col0 IS NOT NULL
----
-18
-18
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-3322
SELECT + 84 * - col2 + + col0 DIV - - col2 FROM tab1
----
-4955
-5711
-8064

skipif mysql # not compatible
query I rowsort label-3322
SELECT + 84 * - col2 + + col0 / - - col2 FROM tab1
----
-4955
-5711
-8064

query II rowsort
SELECT col2 + - - 93 - - col0 AS col1, - col2 * 56 FROM tab1
----
237
-3304
240
-5376
252
-3808

query I rowsort
SELECT - 44 FROM tab2 WHERE + col0 <> - + col0
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT + 36 + MAX( + 84 ) FROM tab0
----
120

skipif mysql # not compatible
query I rowsort label-3325
SELECT + 36 + MAX ( + 84 ) FROM tab0
----
120

query I rowsort
SELECT DISTINCT + col0 * + - col0 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT MIN( DISTINCT 52 ) FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-3327
SELECT MIN ( DISTINCT 52 ) FROM tab0 AS cor0
----
52

query I rowsort
SELECT DISTINCT col1 * + 62 FROM tab0 AS cor0
----
1302
5022
62

query I rowsort
SELECT DISTINCT + - col2 * - col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - - 36 AS col0 FROM tab1 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT - 76 - - 83 + + - col2 - + - col2 + + col0 FROM tab2
----
53
71
82

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE 46 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3333
SELECT + col0 - + col0 + + + col1 DIV - col2 col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3333
SELECT + col0 - + col0 + + + col1 / - col2 col2 FROM tab0
----
-1
-2
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT - SUM( - + col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-3335
SELECT - SUM ( - + col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, col2 AS col0 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3337
SELECT + - col2, + col2 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN + col0 AND + col2 * CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query II rowsort label-3337
SELECT + - col2, + col2 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN + col0 AND + col2 * CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT ( + SUM( DISTINCT + col0 ) ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3338
SELECT ( + SUM ( DISTINCT + col0 ) ) AS col2 FROM tab0 AS cor0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - - col1 + + col1 col2 FROM tab1 AS cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query III rowsort label-3340
SELECT - 67 AS col2, COUNT( - col0 ) + + - COUNT( * ) AS col0, COUNT( * ) FROM tab0 cor0
----
-67
0
3

skipif mysql # not compatible
query III rowsort label-3340
SELECT - 67 AS col2, COUNT ( - col0 ) + + - COUNT ( * ) AS col0, COUNT ( * ) FROM tab0 cor0
----
-67
0
3

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 84 col2 FROM tab0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3343
SELECT col2 / - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3343
SELECT col2 / - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + - 61 < + 51
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 7 AS col1 FROM tab1 cor0
----
7

query I rowsort
SELECT + ( + + col0 ) FROM tab2 cor0 WHERE NOT - col1 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT ALL + 76 * COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
684

skipif mysql # not compatible
query I rowsort label-3347
SELECT ALL + 76 * COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
684

query III rowsort
SELECT ALL * FROM tab0 WHERE + 44 + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3349
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3349
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT col2 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3350
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3350
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - + col1 * - col0 + - 12, col2 AS col0 FROM tab1 cor0
----
413
59
4265
68
702
96

query I rowsort
SELECT ALL + col2 * + 4 * - ( + - col0 ) FROM tab1 AS cor0
----
19584
20060
24752

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT MIN( DISTINCT col2 ) col2 FROM tab2 AS cor0 WHERE - 79 * + col2 IS NOT NULL
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3353
SELECT MIN ( DISTINCT col2 ) col2 FROM tab2 AS cor0 WHERE - 79 * + col2 IS NOT NULL
----
23

query I rowsort
SELECT DISTINCT + - col1 + col1 + - - ( 19 ) * + col1 * - - 34 * + - ( + - col0 ) + - + col1 * + col1 FROM tab2 AS cor0
----
1512915
3177559
3241661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 75 + - col0 col1 FROM tab1 AS cor0
----
-126
-160
-166

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 + - ( 93 ) col1 FROM tab2
----
-13

query I rowsort
SELECT DISTINCT ( col0 ) + + 95 FROM tab1
----
146
180
186

query II rowsort
SELECT col1 * + col0, col2 FROM tab0
----
1215
47
1827
10
97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + + col0, - 77 col2 FROM tab0
----
-66
-77
66
-77
96
-77

query I rowsort
SELECT 72 * - 44 FROM tab2
----
-3168
-3168
-3168

query I rowsort
SELECT 13 * 14 * + + col2 AS col2 FROM tab2
----
10556
4186
7280

query I rowsort
SELECT col0 - - col2 - 16 FROM tab0
----
180
46
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 10 col2 FROM tab0
----
-10
-10
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3364
SELECT ALL 90 / CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3364
SELECT ALL 90 / CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3365
SELECT ALL col1 DIV + CAST( + 73 AS SIGNED ) * + - 40 + col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3365
SELECT ALL col1 / + CAST ( + 73 AS INTEGER ) * + - 40 + col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3367
SELECT DISTINCT + 26 DIV 65 * + - col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3367
SELECT DISTINCT + 26 / 65 * + - col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 + col2 + - col0 * + col1 * + - 16 FROM tab2 AS cor0
----
37508
78811
80391

query II rowsort
SELECT + + col2 + - 37, col1 FROM tab1 AS cor0
----
22
5
31
47
59
14

query III rowsort
SELECT * FROM tab0 WHERE - col1 + + 80 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT ALL - 62 + COUNT( * ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-3371
SELECT ALL - 62 + COUNT ( * ) FROM tab1
----
-59

query I rowsort
SELECT ALL ( - 35 ) FROM tab1 cor0
----
-35
-35
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2, - 73 + - col2 col1 FROM tab0 AS cor0
----
10
-83
47
-120
99
-172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3374
SELECT ALL - CAST( + 42 AS SIGNED ) FROM tab0 AS cor0
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-3374
SELECT ALL - CAST ( + 42 AS INTEGER ) FROM tab0 AS cor0
----
-42
-42
-42

query I rowsort
SELECT - 7 AS col1 FROM tab2 AS cor0 WHERE NOT - 11 NOT BETWEEN NULL AND 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT MIN( - ( - 86 ) ) * - COUNT( ALL - 65 ) AS col0 FROM tab0 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-3376
SELECT MIN ( - ( - 86 ) ) * - COUNT ( ALL - 65 ) AS col0 FROM tab0 AS cor0
----
-258

onlyif mysql # aggregate syntax: 
query II rowsort label-3377
SELECT - COUNT( * ) AS col2, - 58 FROM tab2
----
-3
-58

skipif mysql # not compatible
query II rowsort label-3377
SELECT - COUNT ( * ) AS col2, - 58 FROM tab2
----
-3
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT + COUNT( ALL - + col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3378
SELECT + COUNT ( ALL - + col2 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT DISTINCT MAX( col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT MAX ( col1 ) AS col1 FROM tab2
----
77

query I rowsort
SELECT DISTINCT ( + + 88 ) AS col2 FROM tab1
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3381
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, 55 FROM tab2
----
NULL
55

skipif mysql # not compatible
query II rowsort label-3381
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, 55 FROM tab2
----
NULL
55

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) <> + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT DISTINCT - COUNT( ALL - + col1 ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT - COUNT ( ALL - + col1 ) FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3384
SELECT ALL 59 DIV - ( - col1 ) AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL 59 / - ( - col1 ) AS col1 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT DISTINCT COUNT( * ) + - + 90 FROM tab2 WHERE NULL > - col2 * - col0
----
-90

skipif mysql # not compatible
query I rowsort label-3385
SELECT DISTINCT COUNT ( * ) + - + 90 FROM tab2 WHERE NULL > - col2 * - col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT DISTINCT ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
3

query II rowsort
SELECT + + 19 * col2 + col0 + 41, col0 AS col2 FROM tab1 cor0
----
1247
85
1424
91
1916
51

query I rowsort
SELECT - + 57 + - + col1 FROM tab0 AS cor0
----
-138
-58
-78

query I rowsort
SELECT DISTINCT 14 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
14

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - col0 * - col1, - 71, - - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col1 IS NOT NULL )
----

query I rowsort
SELECT ALL - - col1 * 46 FROM tab0 AS cor0
----
3726
46
966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3393
SELECT ( col1 ) * + + CAST( + 95 AS SIGNED ) FROM tab1 AS cor0
----
1330
4465
475

skipif mysql # not compatible
query I rowsort label-3393
SELECT ( col1 ) * + + CAST ( + 95 AS INTEGER ) FROM tab1 AS cor0
----
1330
4465
475

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT DISTINCT - + COUNT( ( - + col2 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3394
SELECT DISTINCT - + COUNT ( ( - + col2 ) ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - col0 + col1 + - col1, - 2 AS col1 FROM tab1 AS cor0
----
-51
-2
-85
-2
-91
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3396
SELECT DISTINCT 70 * + - 70, 13 AS col0 FROM tab2 cor0 WHERE NOT + col1 = + - col1 + - CAST( + 31 AS SIGNED )
----
-4900
13

skipif mysql # not compatible
query II rowsort label-3396
SELECT DISTINCT 70 * + - 70, 13 AS col0 FROM tab2 cor0 WHERE NOT + col1 = + - col1 + - CAST ( + 31 AS INTEGER )
----
-4900
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3397
SELECT - col2 * CAST( NULL AS SIGNED ) - - - col0 + + 31 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3397
SELECT - col2 * CAST ( NULL AS INTEGER ) - - - col0 + + 31 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3398
SELECT ALL + - col0 DIV + ( - 33 ) + - - 53 DIV - col2 + col0 AS col0 FROM tab0 AS cor0
----
14
84
99

skipif mysql # not compatible
query I rowsort label-3398
SELECT ALL + - col0 / + ( - 33 ) + - - 53 / - col2 + col0 AS col0 FROM tab0 AS cor0
----
14
84
99

query I rowsort
SELECT ALL col1 + + - 48 FROM tab1
----
-1
-34
-43

query I rowsort
SELECT DISTINCT + col1 - - col0 + + col1 FROM tab0
----
129
177
99

query I rowsort
SELECT - col2 + col1 * + - col0 FROM tab1
----
-4345
-484
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT ALL COUNT( * ) FROM tab2 WHERE + + ( - col0 ) BETWEEN NULL AND + - col1
----
0

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL COUNT ( * ) FROM tab2 WHERE + + ( - col0 ) BETWEEN NULL AND + - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT ALL - 29 + + - COUNT( * ) AS col0 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL - 29 + + - COUNT ( * ) AS col0 FROM tab0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT SUM( 1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3404
SELECT SUM ( 1 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT + MAX( - 61 ) FROM tab1
----
-61

skipif mysql # not compatible
query I rowsort label-3405
SELECT + MAX ( - 61 ) FROM tab1
----
-61

query II rowsort
SELECT - - col1 * col2 + + col1 AS col0, - col1 FROM tab1 AS cor0
----
1358
-14
300
-5
3243
-47

query I rowsort
SELECT DISTINCT 52 - - 98 + col0 AS col0 FROM tab0 AS cor0
----
165
237
247

query I rowsort
SELECT DISTINCT + col1 + + 23 + + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT - SUM( + col2 ) AS col1 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3410
SELECT - SUM ( + col2 ) AS col1 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 col1 FROM tab0 AS cor0
----
62
62
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3412
SELECT ( + + CAST( + + col1 AS SIGNED ) ) AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3412
SELECT ( + + CAST ( + + col1 AS INTEGER ) ) AS col2 FROM tab0
----
1
21
81

query II rowsort
SELECT + 70 AS col2, + col1 + + col0 FROM tab0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 72 <> NULL
----

query I rowsort
SELECT + ( + 12 ) * + 1 FROM tab2
----
12
12
12

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3417
SELECT DISTINCT col1 DIV + 15 AS col2 FROM tab1
----
0
3

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT col1 / + 15 AS col2 FROM tab1
----
0
3

query I rowsort
SELECT + - 78 * - col1 AS col0 FROM tab1 AS cor0
----
1092
3666
390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3419
SELECT DISTINCT + - CAST( + - col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT + - CAST ( + - col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3420
SELECT * FROM tab2 AS cor0 WHERE NULL <> CAST( - - 0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3420
SELECT * FROM tab2 AS cor0 WHERE NULL <> CAST ( - - 0 AS INTEGER )
----

query I rowsort
SELECT 19 + + col1 + + col0 AS col2 FROM tab0
----
115
117
127

query I rowsort
SELECT DISTINCT - 0 + 12 AS col2 FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT 61 + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
70

skipif mysql # not compatible
query I rowsort label-3423
SELECT 61 + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
70

query III rowsort
SELECT * FROM tab0 WHERE + 20 * + col0 * - 92 IS NULL
----

query I rowsort
SELECT + col0 + - ( - 88 ) AS col0 FROM tab2 AS cor0
----
134
152
163

query II rowsort
SELECT ALL + col0 AS col2, 0 * - col1 FROM tab2 AS cor0
----
46
0
64
0
75
0

query I rowsort
SELECT + col0 * + + 85 AS col1 FROM tab0
----
1275
7395
8245

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT MAX( ALL - col0 ) - - COUNT( * ) col0 FROM tab2
----
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3428
SELECT MAX ( ALL - col0 ) - - COUNT ( * ) col0 FROM tab2
----
-43

query I rowsort
SELECT DISTINCT + 65 * col0 - + col0 FROM tab2
----
2944
4096
4800

query I rowsort
SELECT + col1 * - col2 - - 80 * + 40 * + col2 * 22 * + col1 + - - ( - 80 ) * col1 * ( - col1 ) FROM tab0
----
14819070
268533873
6969581

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3431
SELECT 57 * - col2 FROM tab0 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3431
SELECT 57 * - col2 FROM tab0 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT ALL + col1 + col2 + - col1 * - col0 AS col2 FROM tab1
----
4392
489
824

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT ALL + 94 - ( COUNT( 8 ) ) FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL + 94 - ( COUNT ( 8 ) ) FROM tab0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT DISTINCT MIN( DISTINCT col2 ) * - SUM( ALL + + col2 ) AS col1 FROM tab0 AS cor0
----
-1560

skipif mysql # not compatible
query I rowsort label-3434
SELECT DISTINCT MIN ( DISTINCT col2 ) * - SUM ( ALL + + col2 ) AS col1 FROM tab0 AS cor0
----
-1560

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= ( - - 83 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3436
SELECT + 47, + 0 DIV + 84 * - col0 AS col2 FROM tab1
----
47
0
47
0
47
0

skipif mysql # not compatible
query II rowsort label-3436
SELECT + 47, + 0 / + 84 * - col0 AS col2 FROM tab1
----
47
0
47
0
47
0

query II rowsort
SELECT DISTINCT - - 43 * col1, col2 AS col1 FROM tab2 WHERE NOT ( 96 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3438
SELECT ALL + - CAST( - + 62 AS SIGNED ) FROM tab0 AS cor0
----
62
62
62

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL + - CAST ( - + 62 AS INTEGER ) FROM tab0 AS cor0
----
62
62
62

query II rowsort
SELECT + + col1, - 50 AS col2 FROM tab1 AS cor0
----
14
-50
47
-50
5
-50

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 14 - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT ALL COUNT( * ) * - + 63 FROM tab1 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL COUNT ( * ) * - + 63 FROM tab1 AS cor0
----
-189

query II rowsort
SELECT + col1, 76 FROM tab0 AS cor0
----
1
76
21
76
81
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT DISTINCT + 47 * COUNT( * ) + + - COUNT( * ) col1 FROM tab0 AS cor0
----
138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3443
SELECT DISTINCT + 47 * COUNT ( * ) + + - COUNT ( * ) col1 FROM tab0 AS cor0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT COUNT( DISTINCT + + col0 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3444
SELECT COUNT ( DISTINCT + + col0 ) AS col0 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3445
SELECT DISTINCT + + col0 / + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3445
SELECT DISTINCT + + col0 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - ( - - col1 ) FROM tab0 WHERE NOT - + 57 < - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * + col0 AS col2, + col1 col0 FROM tab2
----
-2346
51
-4928
77
-5025
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT DISTINCT COUNT( * ) * MAX( - col2 ) AS col0 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT COUNT ( * ) * MAX ( - col2 ) AS col0 FROM tab1
----
-177

query III rowsort
SELECT * FROM tab1 WHERE NOT 43 - col2 IN ( + col0 + 81 * - + col0 - 22, + col2 * + col1 + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 + + + col0 col2 FROM tab1
----
117
151
157

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT COUNT( * ) + - MIN( - 14 ) col1 FROM tab2
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3451
SELECT COUNT ( * ) + - MIN ( - 14 ) col1 FROM tab2
----
17

query I rowsort
SELECT - col0 * + + col2 + + + col0 AS col1 FROM tab1
----
-4845
-4930
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT DISTINCT MAX( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT MAX ( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT col2 + + col0 AS col1, 30 FROM tab2 AS cor0
----
104
30
133
30
69
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 col0 FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT + + col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 65 * col0 / - col2 * + col1 AND + - col0
----

query I rowsort
SELECT ALL + - col2 AS col2 FROM tab2 cor0 WHERE - 39 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN - - col1 AND NULL
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL <> col2 * - 7
----

query I rowsort
SELECT ALL - col1 + 28 AS col0 FROM tab2
----
-23
-39
-49

query III rowsort
SELECT * FROM tab2 WHERE + col2 - - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT ALL + COUNT( * ) - COUNT( - col0 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL + COUNT ( * ) - COUNT ( - col0 ) AS col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 1 ) - - col1 * - col0 col2 FROM tab0 AS cor0
----
-1216
-1828
-98

query I rowsort
SELECT DISTINCT + ( - - 63 ) AS col0 FROM tab1 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT DISTINCT MAX( ALL + + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3465
SELECT DISTINCT MAX ( ALL + + col1 ) FROM tab1 AS cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + - col0 col2 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT DISTINCT MIN( - + col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3467
SELECT DISTINCT MIN ( - + col2 ) AS col2 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT + 32 * - col0 AS col2 FROM tab2 WHERE + + 67 IS NOT NULL
----
-1472
-2048
-2400

query I rowsort
SELECT - 46 + + col0 + + col1 AS col1 FROM tab2 WHERE NULL IS NULL
----
51
95
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3470
SELECT 54 + - CAST( - col2 AS SIGNED ) AS col1 FROM tab2 WHERE 14 IS NOT NULL
----
112
77
94

skipif mysql # not compatible
query I rowsort label-3470
SELECT 54 + - CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 WHERE 14 IS NOT NULL
----
112
77
94

query I rowsort
SELECT - ( - + 35 ) AS col0 FROM tab2
----
35
35
35

query II rowsort
SELECT + col0 AS col0, + 68 * 32 * - - col2 * - 60 + + col2 * 60 FROM tab2
----
46
-3001500
64
-5220000
75
-7569000

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT - MAX( ALL + 26 ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-3473
SELECT - MAX ( ALL + 26 ) FROM tab2
----
-26

query I rowsort
SELECT DISTINCT - 83 + col0 AS col2 FROM tab2 WHERE NULL > col1
----

query II rowsort
SELECT ALL col0 AS col0, 76 * - 6 AS col0 FROM tab2
----
46
-456
64
-456
75
-456

onlyif mysql # aggregate syntax: 
query II rowsort label-3476
SELECT ALL COUNT( * ), + COUNT( * ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-3476
SELECT ALL COUNT ( * ), + COUNT ( * ) AS col2 FROM tab1
----
3
3

query II rowsort
SELECT - col2 AS col0, 88 + - col2 FROM tab0 cor0
----
-10
78
-47
41
-99
-11

query III rowsort
SELECT - col2 AS col1, 53 + - 33 * + 30 AS col2, + col2 + col2 + - col2 AS col2 FROM tab2 cor0
----
9 values hashing to dd17867fe5614e459c32d14ff67a3d3c

query I rowsort
SELECT ALL col1 * - col0 / - + col0 * - + 58 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT DISTINCT + + COUNT( - ( + + col0 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3480
SELECT DISTINCT + + COUNT ( - ( + + col0 ) ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL col0 * - col2, - col0 AS col1 FROM tab0 cor0
----
-705
-15
-870
-87
-9603
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT DISTINCT 42 * - ( COUNT( * ) ) FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-3482
SELECT DISTINCT 42 * - ( COUNT ( * ) ) FROM tab2
----
-126

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 <> - 35
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + ( - + 79 ) ) * - - col1 col2 FROM tab0 AS cor0
----
1659
6399
79

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN - 49 / + + col0 AND + 76
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT - 10 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN - 56 * - col0 - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3487
SELECT - 50 AS col0, COUNT( * ) AS col0 FROM tab2
----
-50
3

skipif mysql # not compatible
query II rowsort label-3487
SELECT - 50 AS col0, COUNT ( * ) AS col0 FROM tab2
----
-50
3

query II rowsort
SELECT - col2 AS col2, - 88 AS col0 FROM tab0
----
-10
-88
-47
-88
-99
-88

query II rowsort
SELECT DISTINCT col0 AS col2, - col1 FROM tab2
----
46
-51
64
-77
75
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-3490
SELECT ALL 19, - COUNT( * ) AS col1 FROM tab1
----
19
-3

skipif mysql # not compatible
query II rowsort label-3490
SELECT ALL 19, - COUNT ( * ) AS col1 FROM tab1
----
19
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT MAX( - 92 ) * COUNT( + 15 ) FROM tab0
----
-276

skipif mysql # not compatible
query I rowsort label-3491
SELECT MAX ( - 92 ) * COUNT ( + 15 ) FROM tab0
----
-276

onlyif mysql # DIV for integer division: 
query I rowsort label-3492
SELECT ( 70 ) DIV - col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3492
SELECT ( 70 ) / - col2 FROM tab1
----
-1
-1
0

query II rowsort
SELECT ALL + col0 * + ( col1 ), + col0 AS col2 FROM tab0 AS cor0
----
1215
15
1827
87
97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3494
SELECT DISTINCT + col0 DIV 5 DIV 30 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3494
SELECT DISTINCT + col0 / 5 / 30 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3495
SELECT - 75 + + MIN( + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3495
SELECT - 75 + + MIN ( + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT ALL + 25 - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL + 25 - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-3497
SELECT DISTINCT col2 DIV + col0 * - 75 * col2 * - 87 FROM tab2 AS cor0 WHERE NOT + ( col0 ) + 41 + + 34 - + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3497
SELECT DISTINCT col2 / + col0 * - 75 * col2 * - 87 FROM tab2 AS cor0 WHERE NOT + ( col0 ) + 41 + + 34 - + col2 IS NULL
----
0

query I rowsort
SELECT ALL - - 53 + - 37 AS col2 FROM tab0 AS cor0
----
16
16
16

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 / + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3500
SELECT DISTINCT + MIN( DISTINCT + col0 ) DIV - MIN( col1 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3500
SELECT DISTINCT + MIN ( DISTINCT + col0 ) / - MIN ( col1 ) FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3501
SELECT ALL - COUNT( * ) + - + MAX( - + col0 ) + COUNT( * ), - ( + + MIN( col0 ) ) DIV + SUM( col2 ) - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
46
-3

skipif mysql # not compatible
query II rowsort label-3501
SELECT ALL - COUNT ( * ) + - + MAX ( - + col0 ) + COUNT ( * ), - ( + + MIN ( col0 ) ) / + SUM ( col2 ) - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
46
-3

query I rowsort
SELECT - col1 * - col1 - - col2 FROM tab1 AS cor0
----
2277
292
84

query I rowsort
SELECT col2 * - + col1 * + col0 FROM tab1
----
-25075
-290836
-68544

query III rowsort
SELECT * FROM tab2 WHERE NOT - 28 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, col1 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT DISTINCT ( 94 ) FROM tab1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT DISTINCT MIN( DISTINCT + + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3507
SELECT DISTINCT MIN ( DISTINCT + + col2 ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT DISTINCT - COUNT( * ) col0 FROM tab0 WHERE col2 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3508
SELECT DISTINCT - COUNT ( * ) col0 FROM tab0 WHERE col2 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3509
SELECT ALL + 61, COUNT( * ) AS col0 FROM tab1
----
61
3

skipif mysql # not compatible
query II rowsort label-3509
SELECT ALL + 61, COUNT ( * ) AS col0 FROM tab1
----
61
3

query I rowsort
SELECT DISTINCT + + 13 * - col0 * + col2 AS col2 FROM tab1 cor0 WHERE NOT col0 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON NULL > NULL
----
18 values hashing to 3bb2bca130a6dfa84e4c44460040062d

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3512
SELECT ALL CAST( CAST( - - 93 AS SIGNED ) AS SIGNED ) AS col2 FROM tab0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL CAST ( CAST ( - - 93 AS INTEGER ) AS INTEGER ) AS col2 FROM tab0
----
93
93
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3513
SELECT + CAST( NULL AS SIGNED ) * - + MAX( - - 26 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3513
SELECT + CAST ( NULL AS INTEGER ) * - + MAX ( - - 26 ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 * 72 col0 FROM tab2 AS cor0
----
-2232
-2232
-2232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3515
SELECT - + col2 * - 73 * - col2 - + 96 - - col2 FROM tab0 AS cor0 WHERE NOT col2 * - col2 IN ( - col0, + 22 * + 93, col1 + - 93 + - col1 + - col1 - + col2 * - + 86 * - col2 * - col0 / + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3515
SELECT - + col2 * - 73 * - col2 - + 96 - - col2 FROM tab0 AS cor0 WHERE NOT col2 * - col2 IN ( - col0, + 22 * + 93, col1 + - 93 + - col1 + - col1 - + col2 * - + 86 * - col2 * - col0 / + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - 61 * + col0 AS col0 FROM tab2 AS cor0
----
-2806
-3904
-4575

query I rowsort
SELECT - - col2 * - - 68 FROM tab0 AS cor0
----
3196
6732
680

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - - 79 * + - 25 * + 33 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT MAX( - 75 ) AS col1 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3519
SELECT MAX ( - 75 ) AS col1 FROM tab1 AS cor0
----
-75

query I rowsort
SELECT ALL + col0 + - + 85 AS col0 FROM tab0 AS cor0
----
-70
12
2

query II rowsort
SELECT + 87 AS col1, col0 FROM tab0 AS cor0
----
87
15
87
87
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3522
SELECT - + COUNT( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3522
SELECT - + COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3523
SELECT DISTINCT + col1 AS col2, - col1 DIV col0 * + - 55 + + + col2 AS col0 FROM tab0 AS cor0
----
1
99
21
10
81
322

skipif mysql # not compatible
query II rowsort label-3523
SELECT DISTINCT + col1 AS col2, - col1 / col0 * + - 55 + + + col2 AS col0 FROM tab0 AS cor0
----
1
99
21
10
81
322

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 14 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT ALL + COUNT( * ) + + MAX( ALL 3 ) col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3525
SELECT ALL + COUNT ( * ) + + MAX ( ALL 3 ) col1 FROM tab0 AS cor0
----
6

query II rowsort
SELECT + col2, 2 + col2 AS col1 FROM tab1 AS cor0
----
59
61
68
70
96
98

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( + + 25 ) = + ( + col1 )
----

query I rowsort
SELECT ALL col2 + - - 43 AS col0 FROM tab1
----
102
111
139

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT ( - 78 * col2 + - col2 ) IS NULL
----
1
21
81

query II rowsort
SELECT - col2 * + - col2 - - 79, - col2 FROM tab0 WHERE NULL = col0 - - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT DISTINCT SUM( + - col2 ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT SUM ( + - col2 ) AS col2 FROM tab1
----
-223

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 66 NOT BETWEEN NULL AND - 76
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 4 + + 37 - - 2 AS col0 FROM tab1
----
43

query III rowsort
SELECT * FROM tab0 WHERE - 33 * ( col1 ) <> col1 * col2 * ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 FROM tab0 WHERE NOT - col0 > NULL AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT ( + - col2 ) + - col0 AS col2 FROM tab0
----
-196
-62
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3537
SELECT ALL + AVG ( - col1 ) - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL + AVG ( - col1 ) - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3538
SELECT - CAST( NULL AS SIGNED ) + - + col0 - - 52 col2, - col0 + + - 60 FROM tab0 AS cor0
----
NULL
-147
NULL
-157
NULL
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3538
SELECT - CAST ( NULL AS INTEGER ) + - + col0 - - 52 col2, - col0 + + - 60 FROM tab0 AS cor0
----
NULL
-147
NULL
-157
NULL
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3539
SELECT DISTINCT - - COUNT( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3539
SELECT DISTINCT - - COUNT ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + - col0 - col2 AS col1 FROM tab1 cor0
----
-144
-147
-159

query I rowsort
SELECT ALL - - col2 * - col2 * + col0 + ( + col1 ) FROM tab0 AS cor0
----
-33054
-8679
-950696

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3542
SELECT ALL + + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL + + CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 82 / - - col2 + - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT COUNT( - col1 ) * - 40 AS col0 FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-3544
SELECT COUNT ( - col1 ) * - 40 AS col0 FROM tab1
----
-120

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT COUNT( * ) * + - 37 FROM tab1
----
-111

skipif mysql # not compatible
query I rowsort label-3546
SELECT COUNT ( * ) * + - 37 FROM tab1
----
-111

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3547
SELECT * FROM tab2 WHERE NOT - + col2 + - col0 - + col2 < - col0 * CAST( col2 AS DECIMAL ) + - 60 * + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3547
SELECT * FROM tab2 WHERE NOT - + col2 + - col0 - + col2 < - col0 * CAST ( col2 AS REAL ) + - 60 * + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 66 * - col2 AS col1 FROM tab1
----
3894
4488
6336

query I rowsort
SELECT ALL + col0 * - + 87 FROM tab0
----
-1305
-7569
-8439

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3550
SELECT DISTINCT 31 DIV COUNT( * ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT 31 / COUNT ( * ) AS col2 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT - MIN( - col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3551
SELECT - MIN ( - col2 ) AS col2 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT + MAX( ALL - 5 ) AS col2 FROM tab0 AS cor0 WHERE NOT 28 * col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3552
SELECT + MAX ( ALL - 5 ) AS col2 FROM tab0 AS cor0 WHERE NOT 28 * col1 IS NOT NULL
----
NULL

query I rowsort
SELECT + col2 * 43 AS col0 FROM tab0
----
2021
4257
430

query I rowsort
SELECT ALL 86 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT ALL + ( col1 ) * 31 + - + 63 FROM tab0 AS cor0
----
-32
2448
588

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL ) > 52 ) OR NOT NULL IS NULL
----

query I rowsort
SELECT ALL - - 39 + 82 + col1 * - - col0 AS col2 FROM tab0 AS cor0
----
1336
1948
218

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT + MAX( ALL - + col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3559
SELECT + MAX ( ALL - + col2 ) AS col0 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT ALL + 7 + + - 41 + COUNT( * ) FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL + 7 + + - 41 + COUNT ( * ) FROM tab0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3561
SELECT DISTINCT col2 + - col2 * + CAST( NULL AS SIGNED ) + + col1 * - col1 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT col2 + - col2 * + CAST ( NULL AS INTEGER ) + + col1 * - col1 AS col0 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT 47, - col1 AS col0 FROM tab1 WHERE NOT col0 IS NULL
----
47
-14
47
-47
47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT COUNT( ALL - ( - 47 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3564
SELECT COUNT ( ALL - ( - 47 ) ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT - 33 - - 52 AS col0 FROM tab0
----
19

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 / + - ( - - 23 ) BETWEEN + 29 AND + - 27
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 - + + 28 FROM tab2
----
-51
-68
-86

query I rowsort
SELECT col1 + + 35 + 50 AS col0 FROM tab2 AS cor0
----
136
152
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3569
SELECT DISTINCT + ( - + CAST( NULL AS SIGNED ) ) + + - 31 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3569
SELECT DISTINCT + ( - + CAST ( NULL AS INTEGER ) ) + + - 31 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query II rowsort
SELECT - 69 + - col1 AS col1, col2 * + col0 * + - ( + + 71 ) FROM tab1
----
-116
-439348
-74
-356065
-83
-347616

onlyif mysql # DIV for integer division: 
query II rowsort label-3571
SELECT ALL 55 DIV + col2, + 50 AS col1 FROM tab1
----
0
50
0
50
0
50

skipif mysql # not compatible
query II rowsort label-3571
SELECT ALL 55 / + col2, + 50 AS col1 FROM tab1
----
0
50
0
50
0
50

onlyif mysql # DIV for integer division: 
query II rowsort label-3572
SELECT DISTINCT col2 DIV 13 col2, col2 FROM tab0
----
0
10
3
47
7
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3572
SELECT DISTINCT col2 / 13 col2, col2 FROM tab0
----
0
10
3
47
7
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT - MIN( + - 51 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( 47 + - - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT - MIN ( + - 51 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( 47 + - - col0 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3574
SELECT DISTINCT + + col2 * 75 DIV col0 * - col0 FROM tab2 cor0
----
-1702
-2944
-4350

skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT + + col2 * 75 / col0 * - col0 FROM tab2 cor0
----
-1702
-2944
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT ALL COUNT( + ( - 51 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL COUNT ( + ( - 51 ) ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 col1 FROM tab1 AS cor0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3577
SELECT ALL + CAST( + col1 AS SIGNED ) + - col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL + CAST ( + col1 AS INTEGER ) + - col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 62 col0 FROM tab0 AS cor0
----
-62
-62
-62

query II rowsort
SELECT - col0 * 61, - col1 AS col2 FROM tab2 AS cor0
----
-2806
-51
-3904
-77
-4575
-67

query I rowsort
SELECT ALL + ( + - 74 ) * - - col2 AS col0 FROM tab2 AS cor0
----
-1702
-2960
-4292

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 60 < NULL
----

query II rowsort
SELECT DISTINCT + + col0 * 6 AS col2, + col2 AS col0 FROM tab2 AS cor0
----
276
23
384
40
450
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3583
SELECT DISTINCT + CAST( ( - COUNT( * ) ) AS SIGNED ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3583
SELECT DISTINCT + CAST ( ( - COUNT ( * ) ) AS INTEGER ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT ALL 1 * - 61 AS col2 FROM tab2
----
-61
-61
-61

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 * ( - - col0 ) - col2 - - col0 IN ( + col1 / - 89, col1 * - col1 / + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 * + + col0 * - ( col1 ) FROM tab0
----
-158949
-18225
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 col0 FROM tab2
----
37
37
37

query I rowsort
SELECT ALL + 72 * + col0 FROM tab0
----
1080
6264
6984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3589
SELECT + CAST( col1 AS SIGNED ) col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3589
SELECT + CAST ( col1 AS INTEGER ) col2 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3590
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col2 + col0 + - col2 / - + col2 * ( 35 ) * - - 23 * - - ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3590
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col2 + col0 + - col2 / - + col2 * ( 35 ) * - - 23 * - - ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3591
SELECT ALL - 39 DIV + SUM( 44 ) + - MIN( DISTINCT ( + col2 ) ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL - 39 / + SUM ( 44 ) + - MIN ( DISTINCT ( + col2 ) ) AS col1 FROM tab2
----
-23

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE NOT + 82 / 93 IN ( 79 + 24 )
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + col0 * col0 + + 91 AS col2 FROM tab2
----
2207
4187
5716

query I rowsort
SELECT ALL 87 * + col1 + col1 FROM tab2
----
4488
5896
6776

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT DISTINCT + SUM( 44 ) AS col1 FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-3595
SELECT DISTINCT + SUM ( 44 ) AS col1 FROM tab1
----
132

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 78 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 3 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT ALL + 45 * COUNT( * ) FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL + 45 * COUNT ( * ) FROM tab1
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-3599
SELECT + col2 DIV - col0 + ( + ( 8 ) ) AS col1 FROM tab1
----
7
8
8

skipif mysql # not compatible
query I rowsort label-3599
SELECT + col2 / - col0 + ( + ( 8 ) ) AS col1 FROM tab1
----
7
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT ALL - SUM( DISTINCT - col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL - SUM ( DISTINCT - col2 ) FROM tab0
----
156

query I rowsort
SELECT + ( 35 ) FROM tab1
----
35
35
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3602
SELECT CAST( 2 AS SIGNED ) FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-3602
SELECT CAST ( 2 AS INTEGER ) FROM tab2
----
2
2
2

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT ( col1 * + col0 ) IN ( 47 + col1 )
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( - col0 + col0 / col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) = ( 32 )
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 WHERE NOT col1 + 89 * col0 IS NOT NULL
----

query I rowsort
SELECT col1 * + 90 FROM tab1
----
1260
4230
450

onlyif mysql # DIV for integer division: 
query I rowsort label-3608
SELECT 28 + col2 DIV - 3 FROM tab1
----
-4
6
9

skipif mysql # not compatible
query I rowsort label-3608
SELECT 28 + col2 / - 3 FROM tab1
----
-4
6
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3609
SELECT ALL COUNT( * ) + - CAST( 63 AS SIGNED ) FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-3609
SELECT ALL COUNT ( * ) + - CAST ( 63 AS INTEGER ) FROM tab0
----
-60

query I rowsort
SELECT - col2 * 23 FROM tab0
----
-1081
-2277
-230

query I rowsort
SELECT ( col0 ) * + 87 FROM tab1
----
4437
7395
7917

query I rowsort
SELECT + col1 / + col0 AS col0 FROM tab0 WHERE NOT - col2 BETWEEN ( NULL ) AND 23 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT - ( + COUNT( * ) ) FROM tab0 WHERE NOT + col0 * col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3613
SELECT - ( + COUNT ( * ) ) FROM tab0 WHERE NOT + col0 * col0 < NULL
----
0

query I rowsort
SELECT - 53 * + 37 AS col0 FROM tab1
----
-1961
-1961
-1961

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT DISTINCT COUNT( - col2 ) col0 FROM tab2 WHERE 36 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3616
SELECT DISTINCT COUNT ( - col2 ) col0 FROM tab2 WHERE 36 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT - COUNT( * ) * 18 col1 FROM tab1
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3617
SELECT - COUNT ( * ) * 18 col1 FROM tab1
----
-54

query I rowsort
SELECT DISTINCT 55 + col2 AS col2 FROM tab2
----
113
78
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3619
SELECT - CAST( col2 AS SIGNED ) FROM tab1 WHERE NOT - 31 IS NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3619
SELECT - CAST ( col2 AS INTEGER ) FROM tab1 WHERE NOT - 31 IS NULL
----
-59
-68
-96

query I rowsort
SELECT col1 + 0 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT + 1 * - 59 FROM tab1
----
-59

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NULL
----
-14
-47
-5

query I rowsort
SELECT - ( - col2 ) * + col1 AS col0 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT col2 + - col1 AS col0 FROM tab1 WHERE col2 = - col2
----

query I rowsort
SELECT 12 * - col2 + col2 FROM tab2 WHERE NULL = ( col1 )
----

query I rowsort
SELECT 1 FROM tab1 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3627
SELECT ( + ( - AVG ( DISTINCT col1 ) ) ) - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3627
SELECT ( + ( - AVG ( DISTINCT col1 ) ) ) - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT ( + 58 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 WHERE NOT ( NULL ) IS NOT NULL
----
58

query I rowsort
SELECT 86 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT ALL - col1 * - col1 FROM tab0 cor0 WHERE col1 IS NOT NULL
----
1
441
6561

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 ) IN ( - 9 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 + col0 * 84 NOT BETWEEN col1 + + col0 * - col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + ( + col1 ) )
----

query I rowsort
SELECT DISTINCT + col0 * 23 FROM tab2 WHERE NOT ( - 55 ) IN ( + col0 )
----
1058
1472
1725

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT + COUNT( DISTINCT + 95 ) col1 FROM tab0 WHERE NOT ( 91 ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3635
SELECT + COUNT ( DISTINCT + 95 ) col1 FROM tab0 WHERE NOT ( 91 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT ( + + ( - MAX( + col2 ) ) ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3636
SELECT ( + + ( - MAX ( + col2 ) ) ) AS col0 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT - ( MAX( ALL col1 ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-3637
SELECT - ( MAX ( ALL col1 ) ) FROM tab0
----
-81

query I rowsort
SELECT 46 * - col1 FROM tab0
----
-3726
-46
-966

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3639
SELECT ALL CAST( - - COUNT( * ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT 65 * + + col0 * - 96 AS col0 FROM tab1
----
-318240
-530400
-567840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3641
SELECT DISTINCT CAST( + + col2 AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3641
SELECT DISTINCT CAST ( + + col2 AS INTEGER ) FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3642
SELECT ALL * FROM tab2 WHERE NOT - col0 IN ( - col2 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3642
SELECT ALL * FROM tab2 WHERE NOT - col0 IN ( - col2 * CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 + - col2 <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col2 ) < ( 61 * - col0 )
----

query I rowsort
SELECT ALL - 95 * - - 25 AS col0 FROM tab0 AS cor0
----
-2375
-2375
-2375

query I rowsort
SELECT ALL - 62 AS col0 FROM tab2 AS cor0 WHERE + 77 * ( 95 ) NOT BETWEEN ( NULL ) AND ( col0 )
----
-62
-62
-62

query I rowsort
SELECT ALL 41 * 10 - - 64 AS col0 FROM tab2 AS cor0 WHERE ( - 19 ) BETWEEN 23 + + col2 AND ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3648
SELECT ALL - 34 + - CAST( - + 24 AS SIGNED ) - - col2 AS col0 FROM tab2
----
13
30
48

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL - 34 + - CAST ( - + 24 AS INTEGER ) - - col2 AS col0 FROM tab2
----
13
30
48

query I rowsort
SELECT - 17 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT DISTINCT 79 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
79

query II rowsort
SELECT DISTINCT + - col2, + ( col2 ) FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3652
SELECT ALL - + SUM( ALL - col2 ) FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL - + SUM ( ALL - col2 ) FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----
NULL

query II rowsort
SELECT col2, col0 - + col1 FROM tab0 AS cor0
----
10
66
47
-66
99
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3654
SELECT DISTINCT - - CAST( - 88 AS SIGNED ) col0 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3654
SELECT DISTINCT - - CAST ( - 88 AS INTEGER ) col0 FROM tab1 AS cor0
----
-88

query I rowsort
SELECT DISTINCT - 88 * - col0 + + + 95 + col2 * col0 AS col0 FROM tab0 AS cor0
----
18234
2120
8621

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 IN ( + + 51 * col1 + + col2 )
----

query I rowsort
SELECT DISTINCT 25 + + + 38 FROM tab2 AS cor0
----
63

query I rowsort
SELECT ( - - col0 ) FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3659
SELECT + CAST( NULL AS SIGNED ) / + col1 * + CAST( NULL AS SIGNED ) / col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3659
SELECT + CAST ( NULL AS INTEGER ) / + col1 * + CAST ( NULL AS INTEGER ) / col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE 90 IN ( + + col2 / 71 )
----

query I rowsort
SELECT DISTINCT - 98 FROM tab2 WHERE NOT - 63 + col2 BETWEEN ( NULL ) AND ( ( col0 ) + - 78 ) AND col0 * col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 76 * ( 48 ) + + 63 + col0 FROM tab0
----
3726
3798
3808

query I rowsort
SELECT ALL - 23 - col1 + + 48 FROM tab2
----
-26
-42
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3664
SELECT ALL CAST( NULL AS SIGNED ) * + col2 + - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3664
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 + - col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + 20 ) - - col0 + - + ( ( 40 ) ) * col1 * - col1 FROM tab2
----
104106
179655
237244

query III rowsort
SELECT * FROM tab0 WHERE col0 / + 62 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 47 + col2 FROM tab1 cor0
----
106
115
143

query I rowsort
SELECT DISTINCT 91 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0 / - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3669
SELECT DISTINCT MAX( DISTINCT + + CAST( + ( + col0 ) AS SIGNED ) ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3669
SELECT DISTINCT MAX ( DISTINCT + + CAST ( + ( + col0 ) AS INTEGER ) ) FROM tab0 AS cor0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - + col1 col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3671
SELECT col0 * + col2 * - col2 * - CAST( NULL AS SIGNED ) * + 41 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3671
SELECT col0 * + col2 * - col2 * - CAST ( NULL AS INTEGER ) * + 41 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE ( + col2 ) IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT - COUNT( * ) * - 96 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
864

skipif mysql # not compatible
query I rowsort label-3673
SELECT - COUNT ( * ) * - 96 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
864

query I rowsort
SELECT DISTINCT + + col2 FROM tab2 WHERE NULL IS NULL
----
23
40
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN col2 AND ( - 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT ALL + 22 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL + 22 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT DISTINCT + COUNT( * ) * MIN( + col2 ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT + COUNT ( * ) * MIN ( + col2 ) FROM tab2 AS cor0
----
69

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL >= ( col0 ) + - + col1
----

query I rowsort
SELECT ALL col0 * - - 18 FROM tab0 AS cor0
----
1566
1746
270

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + - col2 NOT IN ( + col0 * - 42 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3681
SELECT + ( - AVG ( DISTINCT - col0 ) ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT + 5 NOT BETWEEN NULL AND - col1 * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3681
SELECT + ( - AVG ( DISTINCT - col0 ) ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT + 5 NOT BETWEEN NULL AND - col1 * col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT ALL SUM( - - col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL SUM ( - - col0 ) FROM tab1
----
227

query II rowsort
SELECT DISTINCT 41, - 85 AS col0 FROM tab0
----
41
-85

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL <= col2 * - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - + 83 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT DISTINCT 86 + COUNT( * ) AS col1 FROM tab1, tab2 cor0
----
95

skipif mysql # not compatible
query I rowsort label-3686
SELECT DISTINCT 86 + COUNT ( * ) AS col1 FROM tab1, tab2 cor0
----
95

onlyif mysql # aggregate syntax: 
query III rowsort label-3687
SELECT ALL - 69 col2, - COUNT( * ) AS col2, - 27 AS col2 FROM tab1
----
-69
-3
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3687
SELECT ALL - 69 col2, - COUNT ( * ) AS col2, - 27 AS col2 FROM tab1
----
-69
-3
-27

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT 46 * - + col0 + + - 95 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3689
SELECT ALL - + COUNT( * ) col2, 64 AS col2 FROM tab0 AS cor0
----
-3
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3689
SELECT ALL - + COUNT ( * ) col2, 64 AS col2 FROM tab0 AS cor0
----
-3
64

query I rowsort
SELECT 43 + + col1 + - + col1 FROM tab2 AS cor0
----
43
43
43

query II rowsort
SELECT - col0 + + col2 AS col1, col1 FROM tab1 AS cor0
----
-23
47
-26
5
45
14

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - 71
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3693
SELECT DISTINCT col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3693
SELECT DISTINCT col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col1 + + + 22 - 1 * + col0 + - 94 FROM tab2
----
-169
-213
-214

query I rowsort
SELECT + 48 FROM tab1 WHERE NULL < NULL
----

query I rowsort
SELECT + - col2 - - - col0 + + + 60 FROM tab0 cor0
----
-136
-2
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3697
SELECT DISTINCT + - SUM( ALL - col1 ) DIV COUNT( * ) AS col0, + 33 * - 69 * 37 AS col0 FROM tab0 AS cor0
----
34
-84249

skipif mysql # not compatible
query II rowsort label-3697
SELECT DISTINCT + - SUM ( ALL - col1 ) / COUNT ( * ) AS col0, + 33 * - 69 * 37 AS col0 FROM tab0 AS cor0
----
34
-84249

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT ALL + + MIN( + col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL + + MIN ( + col0 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT - col0 + - 68 AS col0 FROM tab2 AS cor0
----
-114
-132
-143

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( 80 + - - col2 + - 61 + - + col0 / + col1 ) = - ( col2 ) * - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT 47 + MIN( ALL + col1 ) FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3701
SELECT 47 + MIN ( ALL + col1 ) FROM tab0 AS cor0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3702
SELECT DISTINCT CAST( + SUM( ALL + 89 ) AS SIGNED ) * 12 + COUNT( ALL + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT CAST ( + SUM ( ALL + 89 ) AS INTEGER ) * 12 + COUNT ( ALL + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 + + col1, - 2 col1 FROM tab2 AS cor0
----
141
-2
142
-2
97
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3704
SELECT ALL + col0 DIV - 78 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3704
SELECT ALL + col0 / - 78 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT - col0 + + 16 + ( - col2 ) + + 98 * + - col1 * + + col1 * - col1 FROM tab1
----
10174511
12122
268781

onlyif mysql # DIV for integer division: 
query I rowsort label-3706
SELECT DISTINCT 84 DIV - - 74 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3706
SELECT DISTINCT 84 / - - 74 FROM tab1
----
1

query I rowsort
SELECT ALL - ( - 82 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3708
SELECT DISTINCT CAST( + + col1 AS SIGNED ) + col2, col0 * CAST( - col1 AS SIGNED ) AS col1 FROM tab2
----
117
-4928
125
-5025
74
-2346

skipif mysql # not compatible
query II rowsort label-3708
SELECT DISTINCT CAST ( + + col1 AS INTEGER ) + col2, col0 * CAST ( - col1 AS INTEGER ) AS col1 FROM tab2
----
117
-4928
125
-5025
74
-2346

onlyif mysql # DIV for integer division: 
query II rowsort label-3709
SELECT col1, + col0 DIV + + col1 + - col1 + - col2 DIV - + col1 AS col2 FROM tab2
----
51
-51
67
-66
77
-77

skipif mysql # not compatible
query II rowsort label-3709
SELECT col1, + col0 / + + col1 + - col1 + - col2 / - + col1 AS col2 FROM tab2
----
51
-51
67
-66
77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3710
SELECT - ( + CAST( col1 AS SIGNED ) ) AS col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3710
SELECT - ( + CAST ( col1 AS INTEGER ) ) AS col2 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL col1 - - ( + - 79 ) * - col2 + - col0 * + 94 FROM tab2
----
-2401
-2456
-2779

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT ALL - + COUNT( * ) AS col0 FROM tab2 WHERE - col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3712
SELECT ALL - + COUNT ( * ) AS col0 FROM tab2 WHERE - col0 = NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 * - 26 NOT BETWEEN col0 AND - 11 + col2 - - col0 * + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col0 >= - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 1 IN ( - - 55 * col2 + + + col1 * - col2, col1 + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col1 AS col1, col1 AS col2 FROM tab0 AS cor0 WHERE NULL <> - col1 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT DISTINCT - 5 * + MIN( - col1 ) AS col1 FROM tab2 AS cor0
----
385

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT - 5 * + MIN ( - col1 ) AS col1 FROM tab2 AS cor0
----
385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3718
SELECT + - COUNT( DISTINCT col0 ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL < - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-3718
SELECT + - COUNT ( DISTINCT col0 ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL < - 87
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 45 NOT IN ( + 80 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3720
SELECT * FROM tab1 cor0 WHERE NOT + CAST( NULL AS SIGNED ) * - - col1 * + col0 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3720
SELECT * FROM tab1 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * - - col1 * + col0 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - col2 * - 71 col1 FROM tab0
----
-14910
-270297
-7029

query I rowsort
SELECT DISTINCT + + col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 - + + 59 FROM tab0 WHERE NOT + + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT DISTINCT ( - MIN( + col2 ) ) col0 FROM tab0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3724
SELECT DISTINCT ( - MIN ( + col2 ) ) col0 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT COUNT( ALL + + col0 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3725
SELECT COUNT ( ALL + + col0 ) col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3726
SELECT col1 AS col2, CAST( NULL AS SIGNED ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-3726
SELECT col1 AS col2, CAST ( NULL AS INTEGER ) FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3727
SELECT ALL + CAST( - col1 AS SIGNED ) AS col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL + CAST ( - col1 AS INTEGER ) AS col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT + - 82 + + col0 FROM tab2 AS cor0
----
-18
-36
-7

query I rowsort
SELECT + col0 + + 87 AS col1 FROM tab1
----
138
172
178

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 64 * - col1 + - col1 / - col2 IS NULL
----

query I rowsort
SELECT ALL - col2 - - - col2 FROM tab1
----
-118
-136
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 80 AS col0, + 10 col2 FROM tab0 AS cor0
----
80
10
80
10
80
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3733
SELECT ALL + - CAST( NULL AS SIGNED ) / - col0 + col0 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL + - CAST ( NULL AS INTEGER ) / - col0 + col0 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> + col0 + + col2 + + col1 / + ( + - col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 68 * - + col2 IS NULL
----

query I rowsort
SELECT - col2 * + + ( - col2 ) FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT DISTINCT - + COUNT( + 87 ) * - + 18 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3737
SELECT DISTINCT - + COUNT ( + 87 ) * - + 18 FROM tab1 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3738
SELECT ALL - CAST( NULL AS SIGNED ) * + 63 * + 57 + + 23 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL - CAST ( NULL AS INTEGER ) * + 63 * + 57 + + 23 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT - COUNT( 53 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3739
SELECT - COUNT ( 53 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3740
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE CAST( 93 AS SIGNED ) >= + col2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3740
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE CAST ( 93 AS INTEGER ) >= + col2
----
23
40
58

query II rowsort
SELECT col0 - + + 78 AS col0, col1 FROM tab2
----
-14
77
-3
67
-32
51

query I rowsort
SELECT DISTINCT col2 * ( - + col2 ) AS col0 FROM tab2
----
-1600
-3364
-529

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 >= ( - - col2 )
----
97
1
99

query I rowsort
SELECT DISTINCT + 30 FROM tab0 AS cor0 WHERE NULL IS NULL
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - - col0 col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT DISTINCT - 88 FROM tab2 cor0
----
-88

query I rowsort
SELECT col2 + col2 AS col2 FROM tab2 cor0 WHERE NOT col2 IS NULL
----
116
46
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3748
SELECT ALL SUM( DISTINCT + ( + + CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT ALL SUM ( DISTINCT + ( + + CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + col2 * + col0, ( - 41 ) AS col1 FROM tab2 AS cor0
----
1058
-41
2560
-41
4350
-41

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN ( col2 ) AND - ( + - 83 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 52 + - + col2 + + - 35 + - col0 IN ( - 14 + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0, col0 + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
46
0
64
0
75
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3753
SELECT ALL 2 DIV - - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3753
SELECT ALL 2 / - - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT ALL + - COUNT( - - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL + - COUNT ( - - col0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT COUNT( * ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3755
SELECT COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

query II rowsort
SELECT + col0, 30 FROM tab2 AS cor0
----
46
30
64
30
75
30

query II rowsort
SELECT - + col0, + 7 AS col0 FROM tab0 AS cor0
----
-15
7
-87
7
-97
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT DISTINCT - + 52 + + - COUNT( * ) + 24 * + + 42 + + 81 AS col1 FROM tab1 AS cor0
----
1034

skipif mysql # not compatible
query I rowsort label-3758
SELECT DISTINCT - + 52 + + - COUNT ( * ) + 24 * + + 42 + + 81 AS col1 FROM tab1 AS cor0
----
1034

query II rowsort
SELECT - + col1 AS col2, + col2 AS col0 FROM tab0 cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT DISTINCT col1 * 44 + 97 AS col2 FROM tab1
----
2165
317
713

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT DISTINCT + 85 + 33 + - COUNT( * ) FROM tab0
----
115

skipif mysql # not compatible
query I rowsort label-3761
SELECT DISTINCT + 85 + 33 + - COUNT ( * ) FROM tab0
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3762
SELECT CAST( NULL AS SIGNED ) + - ( - 31 ) * - col0 + - - ( + - 82 ) * 38 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3762
SELECT CAST ( NULL AS INTEGER ) + - ( - 31 ) * - col0 + - - ( + - 82 ) * 38 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + - 83 + + 71 AS col2 FROM tab2
----
-3747
-5241
-6154

onlyif mysql # aggregate syntax: 
query II rowsort label-3764
SELECT ALL + MAX( ALL 91 ) AS col0, + 62 FROM tab1 WHERE NOT NULL IS NOT NULL
----
91
62

skipif mysql # not compatible
query II rowsort label-3764
SELECT ALL + MAX ( ALL 91 ) AS col0, + 62 FROM tab1 WHERE NOT NULL IS NOT NULL
----
91
62

query I rowsort
SELECT DISTINCT - col0 * - col0 + - ( + - 29 ) FROM tab2
----
2145
4125
5654

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 + - + ( + - col1 ) * - col1 * + 80 >= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3767
SELECT - CAST( - col2 AS SIGNED ) DIV - - 81 * col0 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3767
SELECT - CAST ( - col2 AS INTEGER ) / - - 81 * col0 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
0
0
0

query I rowsort
SELECT ALL ( - col0 ) * - col0 AS col1 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-3769
SELECT DISTINCT - + col2 * 35 * 89 * 38 DIV - col2 + col1 FROM tab0 AS cor0
----
118371
118391
118451

skipif mysql # not compatible
query I rowsort label-3769
SELECT DISTINCT - + col2 * 35 * 89 * 38 / - col2 + col1 FROM tab0 AS cor0
----
118371
118391
118451

query I rowsort
SELECT DISTINCT ( ( 45 ) ) AS col0 FROM tab2 AS cor0
----
45

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT ALL 60 - 39 AS col1 FROM tab0 AS cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT ( - - COUNT( * ) ) * 9 - + 1 + + - COUNT( * ) FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3773
SELECT ( - - COUNT ( * ) ) * 9 - + 1 + + - COUNT ( * ) FROM tab1 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3774
SELECT + col0 * + col1 + CAST( NULL AS SIGNED ) + 42 + + 36 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3774
SELECT + col0 * + col1 + CAST ( NULL AS INTEGER ) + 42 + + 36 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3775
SELECT ( - col1 ) + 24 + - - col0 * col2 DIV col0 FROM tab1 AS cor0
----
106
45
78

skipif mysql # not compatible
query I rowsort label-3775
SELECT ( - col1 ) + 24 + - - col0 * col2 / col0 FROM tab1 AS cor0
----
106
45
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT DISTINCT MAX( DISTINCT - col1 ) col0 FROM tab1 cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3776
SELECT DISTINCT MAX ( DISTINCT - col1 ) col0 FROM tab1 cor0
----
-5

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col2 > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 67 = ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + + ( 51 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 19 = 56 / 95
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 49 * + col1 AS col0 FROM tab0 cor0
----
1029
3969
49

query I rowsort
SELECT DISTINCT - 60 * + col1 AS col2 FROM tab0 AS cor0
----
-1260
-4860
-60

query I rowsort
SELECT DISTINCT + 26 FROM tab1 AS cor0 WHERE NULL IS NULL
----
26

query I rowsort
SELECT DISTINCT + - 0 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT ALL - SUM( DISTINCT + col2 ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL - SUM ( DISTINCT + col2 ) AS col2 FROM tab1
----
-223

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT + ( + ( + - 37 ) ) + - + COUNT( - 16 ) FROM tab1 WHERE NOT col1 IN ( - col0 * - col0 + - 10 + - - 63 * 51, + 98, + - 45 )
----
-40

skipif mysql # not compatible
query I rowsort label-3787
SELECT + ( + ( + - 37 ) ) + - + COUNT ( - 16 ) FROM tab1 WHERE NOT col1 IN ( - col0 * - col0 + - 10 + - - 63 * 51, + 98, + - 45 )
----
-40

query I rowsort
SELECT 92 * col1 * + 11 * - 16 FROM tab2
----
-1084864
-1246784
-825792

query I rowsort
SELECT ALL - col0 * ( + - col0 ) AS col2 FROM tab1
----
2601
7225
8281

query II rowsort
SELECT col2 + + col2, 79 AS col1 FROM tab2
----
116
79
46
79
80
79

query I rowsort
SELECT ( + + col1 ) + 16 FROM tab1 AS cor0
----
21
30
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT DISTINCT + MAX( DISTINCT + col2 ) col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3792
SELECT DISTINCT + MAX ( DISTINCT + col2 ) col2 FROM tab2 AS cor0
----
58

query I rowsort
SELECT DISTINCT col2 FROM tab2 cor0 WHERE NOT - col0 IS NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 87 col0 FROM tab1 AS cor0
----
-87
-87
-87

query I rowsort
SELECT ALL 52 + + ( - 88 ) AS col2 FROM tab0 AS cor0 WHERE 46 + + 39 NOT BETWEEN ( - col2 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 35 BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT DISTINCT 64 + + ( + - COUNT( ALL + col1 ) ) AS col2 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-3797
SELECT DISTINCT 64 + + ( + - COUNT ( ALL + col1 ) ) AS col2 FROM tab2
----
61

query I rowsort
SELECT + 16 * + 17 * - + col1 AS col1 FROM tab0
----
-22032
-272
-5712

query III rowsort
SELECT * FROM tab1 WHERE - + col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3800
SELECT CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * col2 / + - col2 < - col2 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 + + + col2 AS col2 FROM tab0
----
198
20
94

onlyif mysql # DIV for integer division: 
query II rowsort label-3803
SELECT ALL - col1 AS col2, + col1 DIV + col0 + + 15 AS col1 FROM tab1
----
-14
15
-47
15
-5
15

skipif mysql # not compatible
query II rowsort label-3803
SELECT ALL - col1 AS col2, + col1 / + col0 + + 15 AS col1 FROM tab1
----
-14
15
-47
15
-5
15

query I rowsort
SELECT + ( - + 99 ) AS col2 FROM tab0
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3805
SELECT COUNT( * ), 0 AS col2 FROM tab2
----
3
0

skipif mysql # not compatible
query II rowsort label-3805
SELECT COUNT ( * ), 0 AS col2 FROM tab2
----
3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * + col1 + + ( + col2 ) + + col2 * + col2 col2 FROM tab0 AS cor0
----
-100
-1551
9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3807
SELECT + CAST( 6 AS SIGNED ) + + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
15

skipif mysql # not compatible
query I rowsort label-3807
SELECT + CAST ( 6 AS INTEGER ) + + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
15

query I rowsort
SELECT ALL - 91 - col1 + - col0 + - col1 FROM tab2 AS cor0
----
-239
-300
-309

query I rowsort
SELECT DISTINCT - ( + + col2 ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT + col2 * - - ( - 30 ) AS col1 FROM tab1 AS cor0
----
-1770
-2040
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( - col0 ) NOT BETWEEN - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3811
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( - col0 ) NOT BETWEEN - col0 AND NULL
----
0

query I rowsort
SELECT + col0 * col1 + + col1 + - col1 * + + col1 FROM tab0 AS cor0 WHERE NOT NULL < 67
----

query I rowsort
SELECT ALL 51 * - ( - + col0 ) AS col2 FROM tab1 AS cor0
----
2601
4335
4641

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT DISTINCT + MAX( DISTINCT + col2 ) * + - MAX( col1 ) * - 93 FROM tab1 AS cor0
----
419616

skipif mysql # not compatible
query I rowsort label-3814
SELECT DISTINCT + MAX ( DISTINCT + col2 ) * + - MAX ( col1 ) * - 93 FROM tab1 AS cor0
----
419616

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT DISTINCT + SUM( ALL + + 76 ) FROM tab1
----
228

skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT + SUM ( ALL + + 76 ) FROM tab1
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT SUM( ALL 62 ) AS col0 FROM tab1
----
186

skipif mysql # not compatible
query I rowsort label-3816
SELECT SUM ( ALL 62 ) AS col0 FROM tab1
----
186

query III rowsort
SELECT * FROM tab1 WHERE NOT - 0 <> - + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 20 * + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 + - 85 <> - col0 - + - 54
----

query I rowsort
SELECT 46 FROM tab1 WHERE NOT - 32 IS NOT NULL
----

query I rowsort
SELECT ALL - 88 * + col2 AS col0 FROM tab0 AS cor0
----
-4136
-8712
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT DISTINCT 74 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT 74 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT - 3 + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-3823
SELECT - 3 + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
6

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NOT + 5 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 5 col1 FROM tab1
----
-5
-5
-5

query I rowsort
SELECT DISTINCT - + ( 97 ) FROM tab1 cor0
----
-97

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE 81 <= 47 / + - ( - col2 )
----

query I rowsort
SELECT ALL col2 * - 96 FROM tab0 AS cor0
----
-4512
-9504
-960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3829
SELECT - 4 * - + CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3829
SELECT - 4 * - + CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + - col2 * + - ( col1 ) FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query II rowsort label-3831
SELECT DISTINCT - COUNT( * ), + 39 AS col2 FROM tab2 AS cor0
----
-3
39

skipif mysql # not compatible
query II rowsort label-3831
SELECT DISTINCT - COUNT ( * ), + 39 AS col2 FROM tab2 AS cor0
----
-3
39

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE ( + col1 ) <> NULL
----

query II rowsort
SELECT - 42, col0 FROM tab0 AS cor0
----
-42
15
-42
87
-42
97

query I rowsort
SELECT + - 90 + - - 11 FROM tab2 AS cor0
----
-79
-79
-79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 5 / + col0 - + 26 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 + + + col1 * + - col1 FROM tab0
----
-431
-6514
98

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > + col0 + col2 + col0 * + + 65
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3838
SELECT DISTINCT * FROM tab1 WHERE col1 IN ( - col1 * - col1 * - col2 + - CAST( NULL AS DECIMAL ) - - - col2 )
----

skipif mysql # not compatible
query III rowsort label-3838
SELECT DISTINCT * FROM tab1 WHERE col1 IN ( - col1 * - col1 * - col2 + - CAST ( NULL AS REAL ) - - - col2 )
----

query I rowsort
SELECT + col0 + + + col1 + + - col2 AS col1 FROM tab2
----
101
74
84

query I rowsort
SELECT ALL - 63 + + + col1 * 67 AS col0 FROM tab1
----
272
3086
875

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT ALL + MAX( ALL + + col2 ) * + COUNT( * ) - + 10 AS col1 FROM tab0
----
287

skipif mysql # not compatible
query I rowsort label-3841
SELECT ALL + MAX ( ALL + + col2 ) * + COUNT ( * ) - + 10 AS col1 FROM tab0
----
287

onlyif mysql # DIV for integer division: 
query I rowsort label-3842
SELECT + col0 DIV - + col2 - - col1 FROM tab2 AS cor0
----
49
66
76

skipif mysql # not compatible
query I rowsort label-3842
SELECT + col0 / - + col2 - - col1 FROM tab2 AS cor0
----
49
66
76

query I rowsort
SELECT ALL + col2 * + ( + 45 ) FROM tab1 AS cor0
----
2655
3060
4320

query I rowsort
SELECT ALL + 14 * ( col0 ) AS col0 FROM tab1 AS cor0
----
1190
1274
714

query I rowsort
SELECT 53 FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 AND NULL
----

query II rowsort
SELECT col1 - + 62, - col0 + + + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-15
-6279
-48
-4947
-57
-5100

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT ALL + 53 + COUNT( * ) + + + 33 AS col0 FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL + 53 + COUNT ( * ) + + + 33 AS col0 FROM tab0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT + AVG ( + col0 ) + - SUM( - col1 ) AS col0 FROM tab0 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3848
SELECT + AVG ( + col0 ) + - SUM ( - col1 ) AS col0 FROM tab0 WHERE + col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3849
SELECT CAST( + + ( + col1 ) AS SIGNED ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3849
SELECT CAST ( + + ( + col1 ) AS INTEGER ) FROM tab0
----
1
21
81

query II rowsort
SELECT - 6, col1 AS col0 FROM tab1 AS cor0
----
-6
14
-6
47
-6
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab0 cor0 WHERE NULL < + col0
----
0

skipif mysql # not compatible
query I rowsort label-3851
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NULL < + col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 19 AND - 79
----

query II rowsort
SELECT - 91 AS col1, - col2 + + + 3 AS col0 FROM tab1 AS cor0
----
-91
-56
-91
-65
-91
-93

query I rowsort
SELECT ALL - - ( - 83 ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT DISTINCT + SUM( ALL - ( + ( + col0 ) ) ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3855
SELECT DISTINCT + SUM ( ALL - ( + ( + col0 ) ) ) AS col2 FROM tab2 AS cor0
----
-185

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 <> NULL )
----

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT + 81 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3858
SELECT DISTINCT + + col0 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) * col0 * col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3858
SELECT DISTINCT + + col0 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) * col0 * col2 IS NULL
----

query I rowsort
SELECT - + 63 AS col1 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT + ( - COUNT( + + col2 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3860
SELECT + ( - COUNT ( + + col2 ) ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT NULL <= + 15 + - col1 / col2 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3862
SELECT * FROM tab1 WHERE NOT + col1 / - + CAST( col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3862
SELECT * FROM tab1 WHERE NOT + col1 / - + CAST ( col0 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + 78 + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3864
SELECT - 52 DIV - 82 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3864
SELECT - 52 / - 82 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + - col1 / + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3866
SELECT DISTINCT - COUNT( * ) + + + 41 AS col0, ( + - 33 ) col0 FROM tab1 AS cor0
----
38
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3866
SELECT DISTINCT - COUNT ( * ) + + + 41 AS col0, ( + - 33 ) col0 FROM tab1 AS cor0
----
38
-33

query I rowsort
SELECT DISTINCT - col1 * + 41 + col0 AS col2 FROM tab1 AS cor0
----
-120
-1836
-523

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3868
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 32 - + - col1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3868
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 32 - + - col1 AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3869
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN + 31 * - CAST( NULL AS SIGNED ) AND - - col1
----

skipif mysql # not compatible
query III rowsort label-3869
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN + 31 * - CAST ( NULL AS INTEGER ) AND - - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col1 <= NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3872
SELECT ALL + - CAST( + 26 AS SIGNED ) + - CAST( NULL AS SIGNED ) * - + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL + - CAST ( + 26 AS INTEGER ) + - CAST ( NULL AS INTEGER ) * - + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 51 IS NULL
----

query I rowsort
SELECT DISTINCT - 37 * - - col0 FROM tab2 cor0
----
-1702
-2368
-2775

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3875
SELECT ALL - 41 - - - MIN( ALL - - col2 ) + + + MAX( ALL col2 ) DIV + 58 AS col1 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-3875
SELECT ALL - 41 - - - MIN ( ALL - - col2 ) + + + MAX ( ALL col2 ) / + 58 AS col1 FROM tab2
----
-63

query I rowsort
SELECT ALL + 30 + + + 77 AS col1 FROM tab0
----
107
107
107

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NULL <> - + col2 - + - ( + col1 ) - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3878
SELECT DISTINCT - 48 - + col1 DIV + + col1 FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT - 48 - + col1 / + + col1 FROM tab1
----
-49

query I rowsort
SELECT DISTINCT col2 * 28 FROM tab2
----
1120
1624
644

query I rowsort
SELECT DISTINCT 85 * - - col0 * col1 - col1 FROM tab0
----
103194
155274
8244

query I rowsort
SELECT DISTINCT ( - 67 ) + + col1 FROM tab2 AS cor0 WHERE col1 = ( NULL ) AND + - col0 * + col0 + + col2 IS NULL
----

query I rowsort
SELECT + 93 FROM tab2 cor0 WHERE ( + col2 ) + 6 IN ( col1 * - 80 + + col2, 61 )
----

query II rowsort
SELECT DISTINCT + col2 AS col0, + 34 FROM tab1 AS cor0
----
59
34
68
34
96
34

query I rowsort
SELECT + col2 + 99 AS col0 FROM tab1 AS cor0
----
158
167
195

onlyif mysql # DIV for integer division: 
query I rowsort label-3885
SELECT DISTINCT col1 DIV - 7 FROM tab0
----
-11
-3
0

skipif mysql # not compatible
query I rowsort label-3885
SELECT DISTINCT col1 / - 7 FROM tab0
----
-11
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3886
SELECT DISTINCT CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3886
SELECT DISTINCT CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT COUNT( + col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3887
SELECT COUNT ( + col2 ) AS col0 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 col1 FROM tab0
----
58

query I rowsort
SELECT ALL + 12 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE 11 NOT IN ( 51, col0 + 31 + + col1 - - col1 + + 56 + - ( col0 ) - + col1 / - + ( - col2 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE 11 NOT IN ( 51, col0 + 31 + + col1 - - col1 + + 56 + - ( col0 ) - + col1 / - + ( - col2 ) )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT ALL - - ( + COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3891
SELECT ALL - - ( + COUNT ( * ) ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3892
SELECT + + ( - 88 ), + MAX( + col0 ) AS col1 FROM tab1 cor0
----
-88
91

skipif mysql # not compatible
query II rowsort label-3892
SELECT + + ( - 88 ), + MAX ( + col0 ) AS col1 FROM tab1 cor0
----
-88
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT - SUM( ALL + + col1 ) AS col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3893
SELECT - SUM ( ALL + + col1 ) AS col2 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT - - MIN( ALL - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3894
SELECT - - MIN ( ALL - col0 ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT + 56 AS col1 FROM tab0 AS cor0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3896
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3896
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query II rowsort
SELECT + col2, + col2 AS col2 FROM tab0
----
10
10
47
47
99
99

query II rowsort
SELECT ALL 57, + col2 AS col1 FROM tab2
----
57
23
57
40
57
58

query I rowsort
SELECT 52 * - - col0 FROM tab2
----
2392
3328
3900

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT MAX( - + col2 ) * - COUNT( * ) FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-3901
SELECT MAX ( - + col2 ) * - COUNT ( * ) FROM tab1
----
177

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3902
SELECT - col0 / - CAST( + col2 AS SIGNED ) col0, - col1 AS col1 FROM tab2 WHERE NOT ( 50 * - - col0 + - col2 ) > NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3902
SELECT - col0 / - CAST ( + col2 AS INTEGER ) col0, - col1 AS col1 FROM tab2 WHERE NOT ( 50 * - - col0 + - col2 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3903
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <> + CAST( NULL AS SIGNED ) * + 94
----

skipif mysql # not compatible
query III rowsort label-3903
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <> + CAST ( NULL AS INTEGER ) * + 94
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3904
SELECT DISTINCT - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) <= + - 52
----

query I rowsort
SELECT ALL - 12 * col2 AS col1 FROM tab2 WHERE NOT - col0 / - - 97 IS NULL
----
-276
-480
-696

query I rowsort
SELECT ALL + col2 + + - col1 AS col0 FROM tab0
----
-11
-34
98

onlyif mysql # DIV for integer division: 
query I rowsort label-3908
SELECT DISTINCT + 59 * col1 DIV - col0 FROM tab0
----
-14
-318
0

skipif mysql # not compatible
query I rowsort label-3908
SELECT DISTINCT + 59 * col1 / - col0 FROM tab0
----
-14
-318
0

query I rowsort
SELECT ALL - col1 + - col2 + ( ( - col2 ) ) + col1 + + col1 + + col2 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT col0 * + - 21 AS col2 FROM tab2 AS cor0
----
-1344
-1575
-966

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3911
SELECT COUNT( * ) - - + COUNT( * ) + COUNT( * ) * + CAST( - 80 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-3911
SELECT COUNT ( * ) - - + COUNT ( * ) + COUNT ( * ) * + CAST ( - 80 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-234

query I rowsort
SELECT + + 74 + + 18 FROM tab2 AS cor0
----
92
92
92

query II rowsort
SELECT - 79 AS col2, + 28 FROM tab2 AS cor0 WHERE + ( - col1 ) IS NOT NULL
----
-79
28
-79
28
-79
28

query I rowsort
SELECT - 74 + + col0 * + col1 * - - ( 28 ) FROM tab0 AS cor0
----
2642
33946
51082

query I rowsort
SELECT + - ( col2 ) * col2 + 28 FROM tab1 cor0
----
-3453
-4596
-9188

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT + + 50 + + MIN( ALL + 21 ) col2 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3916
SELECT + + 50 + + MIN ( ALL + 21 ) col2 FROM tab0 AS cor0
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-3917
SELECT + - 0 DIV col0 + + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3917
SELECT + - 0 / col0 + + col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT col2 + - ( + - 59 ) FROM tab2 cor0
----
117
82
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT ALL COUNT( + 36 ) + - + 83 FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL COUNT ( + 36 ) + - + 83 FROM tab0
----
-80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL 97 AS col2, + col2 AS col2 FROM tab0 AS cor0
----
97
10
97
47
97
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3922
SELECT DISTINCT + 1 + col0 + - - col0 FROM tab0 AS cor0 WHERE NOT col0 * - - CAST( + + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3922
SELECT DISTINCT + 1 + col0 + - - col0 FROM tab0 AS cor0 WHERE NOT col0 * - - CAST ( + + col2 AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT ALL - - 25, - col2 AS col2 FROM tab2 AS cor0
----
25
-23
25
-40
25
-58

query I rowsort
SELECT DISTINCT - 21 * - col0 * 46 AS col2 FROM tab1 cor0
----
49266
82110
87906

query I rowsort
SELECT DISTINCT 31 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > + col2
----

query I rowsort
SELECT + 81 AS col0 FROM tab0 cor0
----
81
81
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3927
SELECT COUNT( * ) DIV COUNT( * ) AS col0, - COUNT( * ) AS col2 FROM tab2
----
1
-3

skipif mysql # not compatible
query II rowsort label-3927
SELECT COUNT ( * ) / COUNT ( * ) AS col0, - COUNT ( * ) AS col2 FROM tab2
----
1
-3

query I rowsort
SELECT ALL - ( + 61 ) * + 26 FROM tab2 AS cor0
----
-1586
-1586
-1586

query I rowsort
SELECT + + 15 * 48 AS col2 FROM tab2 cor0
----
720
720
720

query II rowsort
SELECT ALL - + 0, 64 AS col1 FROM tab1 AS cor0
----
0
64
0
64
0
64

query II rowsort
SELECT ALL + col0, col1 AS col2 FROM tab1 cor0
----
51
14
85
5
91
47

query I rowsort
SELECT ALL 20 AS col1 FROM tab2 cor0
----
20
20
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3933
SELECT DISTINCT col1 AS col1, + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

skipif mysql # not compatible
query II rowsort label-3933
SELECT DISTINCT col1 AS col1, + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3934
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( ( - - 65 ) AS SIGNED ) > + col1
----

skipif mysql # not compatible
query III rowsort label-3934
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( ( - - 65 ) AS INTEGER ) > + col1
----

query I rowsort
SELECT + - col0 FROM tab0 cor0 WHERE NOT ( - - col1 ) <= + - 12 + - col0
----
-15
-87
-97

query I rowsort
SELECT + ( - ( + + col0 ) ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT 80 * - - col0 FROM tab0
----
1200
6960
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * 39, col1 col1 FROM tab0
----
3393
21
3783
1
585
81

query I rowsort
SELECT DISTINCT 46 * + col1 FROM tab2
----
2346
3082
3542

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3940
SELECT CAST( NULL AS DECIMAL ) / col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3940
SELECT CAST ( NULL AS REAL ) / col1 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3941
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT ( + 11 ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-3941
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT ( + 11 ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3942
SELECT DISTINCT 73 DIV - col0 AS col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-3942
SELECT DISTINCT 73 / - col0 AS col0 FROM tab1
----
-1
0

query I rowsort
SELECT 21 * col0 * 18 AS col1 FROM tab0
----
32886
36666
5670

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 WHERE NOT - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT - col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT DISTINCT + MAX( DISTINCT - col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-3945
SELECT DISTINCT + MAX ( DISTINCT - col0 ) FROM tab1
----
-51

query I rowsort
SELECT + col1 * + + 76 AS col1 FROM tab2 AS cor0
----
3876
5092
5852

query I rowsort
SELECT - 42 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

query I rowsort
SELECT 18 + - - 45 FROM tab0
----
63
63
63

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3951
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3951
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + - 55 FROM tab1 cor0
----
-55
-55
-55

query I rowsort
SELECT ALL - col1 + - - col1 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT - 54, + col1 FROM tab0 AS cor0
----
-54
1
-54
21
-54
81

query II rowsort
SELECT - col0, col0 AS col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3956
SELECT 4 - - 96 * + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3956
SELECT 4 - - 96 * + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 79 - col1 FROM tab0
----
-100
-160
-80

query I rowsort
SELECT 94 - - col1 + + ( + 52 ) FROM tab2
----
197
213
223

query I rowsort
SELECT DISTINCT + 79 + + + 8 * + 55 FROM tab2
----
519

query I rowsort
SELECT - col2 - col0 * 15 AS col2 FROM tab1
----
-1334
-1433
-861

onlyif mysql # aggregate syntax: 
query II rowsort label-3961
SELECT DISTINCT 64 - + - 71 AS col0, - SUM( ALL col2 ) FROM tab1
----
135
-223

skipif mysql # not compatible
query II rowsort label-3961
SELECT DISTINCT 64 - + - 71 AS col0, - SUM ( ALL col2 ) FROM tab1
----
135
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT + MIN( DISTINCT - ( - 44 ) ) * + 85 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3962
SELECT + MIN ( DISTINCT - ( - 44 ) ) * + 85 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT ALL - + COUNT( * ) * - COUNT( * ) * + 37 AS col2 FROM tab2 AS cor0
----
333

skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL - + COUNT ( * ) * - COUNT ( * ) * + 37 AS col2 FROM tab2 AS cor0
----
333

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 97 col2 FROM tab2 AS cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3965
SELECT DISTINCT 69 * + col2 DIV + - col2 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-3965
SELECT DISTINCT 69 * + col2 / + - col2 FROM tab1
----
-69

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + - + ( col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 29 col2 FROM tab1 AS cor0
----
29
29
29

query I rowsort
SELECT DISTINCT col2 * + 1 AS col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3969
SELECT ALL CAST( + col1 AS SIGNED ) FROM tab1 AS cor0 WHERE - col1 * - + col2 * - - col2 / - + col2 NOT BETWEEN - - col0 AND NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0 WHERE - col1 * - + col2 * - - col2 / - + col2 NOT BETWEEN - - col0 AND NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3970
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) < - + col2 * - col2 + 83 / + CAST( - col0 AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-3970
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) < - + col2 * - col2 + 83 / + CAST ( - col0 AS REAL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3971
SELECT DISTINCT + MAX( + CAST( 26 AS SIGNED ) ) - - - 57 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3971
SELECT DISTINCT + MAX ( + CAST ( 26 AS INTEGER ) ) - - - 57 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 88 ) BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT ALL + 70 * col2 + - 11 + - 60 * + 66 AS col0, 94 FROM tab2 AS cor0
----
-1171
94
-2361
94
89
94

onlyif mysql # DIV for integer division: 
query I rowsort label-3974
SELECT ALL + 46 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL + 46 / col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3975
SELECT DISTINCT 3 DIV + - col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3975
SELECT DISTINCT 3 / + - col0 FROM tab0
----
0

query I rowsort
SELECT - 84 + + ( + col2 ) FROM tab2 AS cor0
----
-26
-44
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3977
SELECT DISTINCT + COUNT( ALL CAST( col1 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3977
SELECT DISTINCT + COUNT ( ALL CAST ( col1 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3978
SELECT ALL - + CAST( NULL AS SIGNED ) * AVG ( DISTINCT - ( - + col1 ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL - + CAST ( NULL AS INTEGER ) * AVG ( DISTINCT - ( - + col1 ) ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + col0 * - - 96 * + - col0 NOT BETWEEN - col2 AND - 75
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 4 / + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 26 col1, + col2 * - - 55 * + ( + col2 ) col1 FROM tab2 AS cor0
----
-26
185020
-26
29095
-26
88000

query I rowsort
SELECT 76 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query III rowsort
SELECT * FROM tab2 WHERE col1 + + + 11 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 81, + 55 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-81
55
-81
55
-81
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT ALL + MAX( ALL - col1 ) FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL + MAX ( ALL - col1 ) FROM tab2 cor0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3986
SELECT + + CAST( COUNT( * ) AS SIGNED ) * + + 50 + - 95 AS col0 FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-3986
SELECT + + CAST ( COUNT ( * ) AS INTEGER ) * + + 50 + - 95 AS col0 FROM tab0 AS cor0
----
55

query II rowsort
SELECT + col1 + + 85 + + col1 AS col2, - ( - + col0 ) + 80 * + 95 AS col1 FROM tab2 cor0
----
187
7646
219
7675
239
7664

query I rowsort
SELECT ALL + ( 20 ) FROM tab1 AS cor0
----
20
20
20

query I rowsort
SELECT col1 * - 56 + - col2 AS col0 FROM tab0 cor0
----
-1186
-155
-4583

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT DISTINCT SUM( col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
103

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT SUM ( col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
103

query I rowsort
SELECT DISTINCT - - ( - 81 ) FROM tab1 AS cor0
----
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN + col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3993
SELECT ALL col1 + + + CAST( - - 58 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL >= NULL )
----

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL col1 + + + CAST ( - - 58 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL >= NULL )
----

query I rowsort
SELECT - 19 + - 17 * - col0 * + 11 - - 76 AS col1 FROM tab0 AS cor0
----
16326
18196
2862

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3995
SELECT + - 46 + + CAST( NULL AS SIGNED ) + col2 + + - 72 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-3995
SELECT + - 46 + + CAST ( NULL AS INTEGER ) + col2 + + - 72 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 25 AS col0 FROM tab2 cor0
----
25
25
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3997
SELECT DISTINCT - col2 + ( - col1 ) * - ( - 27 ) * + - CAST( + col1 AS SIGNED ) AS col0 FROM tab1
----
5196
59575
616

skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT - col2 + ( - col1 ) * - ( - 27 ) * + - CAST ( + col1 AS INTEGER ) AS col0 FROM tab1
----
5196
59575
616

query I rowsort
SELECT ALL - 92 * 95 FROM tab0
----
-8740
-8740
-8740

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT DISTINCT 61 * + COUNT( * ) AS col1 FROM tab2
----
183

skipif mysql # not compatible
query I rowsort label-3999
SELECT DISTINCT 61 * + COUNT ( * ) AS col1 FROM tab2
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT DISTINCT - MAX( DISTINCT + - col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4000
SELECT DISTINCT - MAX ( DISTINCT + - col1 ) AS col1 FROM tab1
----
5

query II rowsort
SELECT - 17 AS col0, + col0 - - col1 + + ( - ( - col2 ) ) + col2 + col2 + - col1 + col2 * + col0 * - + 55 FROM tab2
----
-17
-140616
-17
-239001
-17
-58075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4002
SELECT DISTINCT + + CAST( NULL AS SIGNED ) - - + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col1 * + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4002
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - - + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col1 * + col2 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4003
SELECT col1 * 52 DIV - ( + + 21 ) AS col1 FROM tab0
----
-2
-200
-52

skipif mysql # not compatible
query I rowsort label-4003
SELECT col1 * 52 / - ( + + 21 ) AS col1 FROM tab0
----
-2
-200
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 93 col1 FROM tab2
----
93
93
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 66 * - - ( - col0 ) - col2 + col0 - - col2 + - 12 * col0 + + - col0, + col0 col2 FROM tab2 AS cor0
----
2484
46
3456
64
4050
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT ALL + - MIN( DISTINCT - + 66 ) FROM tab1 cor0 WHERE NOT ( NULL ) <= + col0 + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL + - MIN ( DISTINCT - + 66 ) FROM tab1 cor0 WHERE NOT ( NULL ) <= + col0 + 28
----
NULL

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT col2 <> + col1
----

query I rowsort
SELECT - col2 + - + 2 AS col2 FROM tab0 AS cor0
----
-101
-12
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT DISTINCT COUNT( * ) * + 64 FROM tab1 AS cor0 WHERE NULL IS NULL
----
192

skipif mysql # not compatible
query I rowsort label-4009
SELECT DISTINCT COUNT ( * ) * + 64 FROM tab1 AS cor0 WHERE NULL IS NULL
----
192

query I rowsort
SELECT DISTINCT + - 62 * col0 FROM tab1 AS cor0
----
-3162
-5270
-5642

query I rowsort
SELECT ALL 74 * - - col0 * - col0 + - + 88 FROM tab0
----
-16738
-560194
-696354

query III rowsort
SELECT * FROM tab0 WHERE + 44 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT ALL MIN( DISTINCT - - col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL MIN ( DISTINCT - - col1 ) FROM tab1
----
5

query II rowsort
SELECT - 90, col0 FROM tab0
----
-90
15
-90
87
-90
97

query I rowsort
SELECT + col0 * + 77 AS col1 FROM tab1
----
3927
6545
7007

onlyif mysql # DIV for integer division: 
query I rowsort label-4016
SELECT + 0 DIV - + col2 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4016
SELECT + 0 / - + col2 AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4017
SELECT - SUM( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4017
SELECT - SUM ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4018
SELECT ALL + col2, CAST( - col2 AS SIGNED ) * col2 * + col2 AS col1 FROM tab0 WHERE NOT - col0 + col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4018
SELECT ALL + col2, CAST ( - col2 AS INTEGER ) * col2 * + col2 AS col1 FROM tab0 WHERE NOT - col0 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT ALL + 90 + MIN( ALL - col0 ) AS col1 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL + 90 + MIN ( ALL - col0 ) AS col1 FROM tab0
----
-7

query I rowsort
SELECT - col1 * + col2 + - + col0 AS col1 FROM tab1 AS cor0
----
-1395
-3287
-380

onlyif mysql # aggregate syntax: 
query II rowsort label-4021
SELECT DISTINCT + + 87, + COUNT( * ) col1 FROM tab2 AS cor0 WHERE + 64 * col1 * + col2 IS NULL
----
87
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4021
SELECT DISTINCT + + 87, + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE + 64 * col1 * + col2 IS NULL
----
87
0

query I rowsort
SELECT ALL - 69 * - col0 + - 28 FROM tab1 AS cor0
----
3491
5837
6251

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT MIN( DISTINCT - 2 ) * + ( - + 81 ) + - - COUNT( * ) AS col2 FROM tab2
----
165

skipif mysql # not compatible
query I rowsort label-4023
SELECT MIN ( DISTINCT - 2 ) * + ( - + 81 ) + - - COUNT ( * ) AS col2 FROM tab2
----
165

query II rowsort
SELECT + col0 AS col1, col0 FROM tab1
----
51
51
85
85
91
91

query II rowsort
SELECT col0 AS col2, 74 - - + 50 * - col1 AS col0 FROM tab1
----
51
-626
85
-176
91
-2276

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT - SUM( 66 ) AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4026
SELECT - SUM ( 66 ) AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT ALL + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL = ( + - col1 ) + + + 49
----
0

skipif mysql # not compatible
query I rowsort label-4027
SELECT ALL + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL = ( + - col1 ) + + + 49
----
0

query I rowsort
SELECT ALL + col1 + col1 + + 44 FROM tab0 AS cor0
----
206
46
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4029
SELECT DISTINCT col1 DIV - - 8 FROM tab1 AS cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-4029
SELECT DISTINCT col1 / - - 8 FROM tab1 AS cor0
----
0
1
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4030
SELECT - col0 - - 73 + - CAST( NULL AS SIGNED ) + + - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4030
SELECT - col0 - - 73 + - CAST ( NULL AS INTEGER ) + + - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col2 - - 92, col0 FROM tab1 AS cor0
----
151
85
160
91
188
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 43 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4033
SELECT + - COUNT( * ) AS col0, COUNT( * ) - + + CAST( NULL AS SIGNED ) * + 64 * - COUNT( DISTINCT 18 ) * - + COUNT( * ) FROM tab0 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-4033
SELECT + - COUNT ( * ) AS col0, COUNT ( * ) - + + CAST ( NULL AS INTEGER ) * + 64 * - COUNT ( DISTINCT 18 ) * - + COUNT ( * ) FROM tab0 AS cor0
----
-3
NULL

query I rowsort
SELECT col2 FROM tab2 WHERE NOT - - 46 * 30 * + - 13 + + ( col0 ) * + ( - col0 ) IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT COUNT( * ) * MIN( ALL col2 ) AS col1 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-4036
SELECT COUNT ( * ) * MIN ( ALL col2 ) AS col1 FROM tab1
----
177

query II rowsort
SELECT + col0 * + col0 * - + 42, col2 FROM tab0
----
-317898
10
-395178
99
-9450
47

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN - col0 AND + + ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT ALL ( + COUNT( * ) ) AS col2 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL ( + COUNT ( * ) ) AS col2 FROM tab0, tab1 AS cor0
----
9

query I rowsort
SELECT ALL + 0 + + 31 FROM tab0, tab0 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT col0 * - - col2 FROM tab0
----
705
870
9603

query I rowsort
SELECT DISTINCT ( 78 ) * - col0 * + - col0 FROM tab2 AS cor0
----
165048
319488
438750

query I rowsort
SELECT ALL + + 94 FROM tab0 cor0
----
94
94
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4044
SELECT CAST( + 98 AS SIGNED ) AS col2 FROM tab1 cor0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-4044
SELECT CAST ( + 98 AS INTEGER ) AS col2 FROM tab1 cor0
----
98
98
98

query I rowsort
SELECT + AVG ( col0 ) FROM tab1 cor0 WHERE NOT ( 24 * + col0 IS NOT NULL )
----
NULL

query I rowsort
SELECT - 77 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-77
-77
-77

query II rowsort
SELECT - 80 * + ( col0 ) * - 38, col2 AS col0 FROM tab0 AS cor0
----
264480
10
294880
99
45600
47

query I rowsort
SELECT + ( - 75 ) AS col0 FROM tab2 AS cor0
----
-75
-75
-75

query I rowsort
SELECT 10 + - col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-41
-75
-81

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT - col2 + - + col1 * - + ( - - col1 ) FROM tab1 AS cor0
----
-34
100
2141

query I rowsort
SELECT ALL 23 * - 21 + + 6 AS col2 FROM tab0
----
-477
-477
-477

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4053
SELECT ALL 96 + + col2 * - - ( - col1 ) + - - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4053
SELECT ALL 96 + + col2 * - - ( - col1 ) + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + - - col2 + - - col1 AS col1 FROM tab2
----
28
50
53

query I rowsort
SELECT DISTINCT col1 * - - col2 FROM tab0
----
210
3807
99

query I rowsort
SELECT ALL - + col2 - - + col1 AS col2 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT - - ( + - col0 ) * + col0 AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT + SUM( - + col2 ) FROM tab1 AS cor0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4058
SELECT + SUM ( - + col2 ) FROM tab1 AS cor0 WHERE NULL >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT - - SUM( - 6 ) FROM tab2 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-4059
SELECT - - SUM ( - 6 ) FROM tab2 cor0
----
-18

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col2 col2 FROM tab0
----
100
128
31

query I rowsort
SELECT DISTINCT - 57 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE + 5 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 col0 FROM tab0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT + + SUM( + ( col1 ) ) + + - 96 AS col0 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4065
SELECT + + SUM ( + ( col1 ) ) + + - 96 AS col0 FROM tab1 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT ALL + COUNT( * ) * - ( - ( + 16 ) ) AS col2 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL + COUNT ( * ) * - ( - ( + 16 ) ) AS col2 FROM tab0 AS cor0
----
48

query I rowsort
SELECT - 3 * - col1 AS col2 FROM tab2 AS cor0
----
153
201
231

query I rowsort
SELECT DISTINCT - col2 + + - 71 FROM tab2 AS cor0 WHERE NOT NULL > ( - 43 )
----

query I rowsort
SELECT + col1 * 0 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4070
SELECT DISTINCT + + col1 DIV col0 AS col0 FROM tab0 AS cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-4070
SELECT DISTINCT + + col1 / col0 AS col0 FROM tab0 AS cor0
----
0
5

query I rowsort
SELECT DISTINCT - 87 AS col0 FROM tab1 cor0
----
-87

query II rowsort
SELECT col0, col2 * - + col1 + + 98 FROM tab0 AS cor0
----
15
-3709
87
-112
97
-1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col1 - + + 88 < + ( + + 31 ) * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT ALL SUM( + 19 ) AS col1 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL SUM ( + 19 ) AS col1 FROM tab0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4075
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4075
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL IS NULL
----
NULL

query II rowsort
SELECT 85 AS col0, 93 * - - 89 FROM tab2
----
85
8277
85
8277
85
8277

onlyif mysql # DIV for integer division: 
query I rowsort label-4077
SELECT 73 DIV + - 58 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4077
SELECT 73 / + - 58 FROM tab0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4078
SELECT ALL col1 * + CAST( - col2 AS SIGNED ) FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL col1 * + CAST ( - col2 AS INTEGER ) FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT - 34 - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
-34

skipif mysql # not compatible
query I rowsort label-4079
SELECT - 34 - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
-34

query I rowsort
SELECT DISTINCT - + 0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4081
SELECT - + 56 + - col0 * - + col0 / - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4081
SELECT - + 56 + - col0 * - + col0 / - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT DISTINCT - - MIN( DISTINCT + + 32 ) AS col2 FROM tab0 cor0
----
32

skipif mysql # not compatible
query I rowsort label-4082
SELECT DISTINCT - - MIN ( DISTINCT + + 32 ) AS col2 FROM tab0 cor0
----
32

query I rowsort
SELECT ALL + 62 + + col0 AS col1 FROM tab1 cor0
----
113
147
153

query III rowsort
SELECT * FROM tab1 WHERE + col0 <> + ( 45 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 + - 77 FROM tab2
----
-123
-141
-152

query II rowsort
SELECT - col1 AS col1, - 98 AS col2 FROM tab1
----
-14
-98
-47
-98
-5
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4087
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE - col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE - col1 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + - ( + + col2 ) AS col2 FROM tab1
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT - COUNT( - - col0 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4089
SELECT - COUNT ( - - col0 ) AS col2 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 95 IN ( 23, col0, 49 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 71 - + - col1 AS col1 FROM tab2
----
122
138
148

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT COUNT( * ) - 42 col1 FROM tab1
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4092
SELECT COUNT ( * ) - 42 col1 FROM tab1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT DISTINCT + COUNT( * ) - ( + 70 ) * - COUNT( + ( col0 ) ) * 10 - - - 81 AS col0 FROM tab1 AS cor0
----
2022

skipif mysql # not compatible
query I rowsort label-4093
SELECT DISTINCT + COUNT ( * ) - ( + 70 ) * - COUNT ( + ( col0 ) ) * 10 - - - 81 AS col0 FROM tab1 AS cor0
----
2022

query I rowsort
SELECT ALL col1 * 50 FROM tab1 cor0
----
2350
250
700

query I rowsort
SELECT DISTINCT - 1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4096
SELECT + CAST( NULL AS DECIMAL ) + + - col1 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-4096
SELECT + CAST ( NULL AS REAL ) + + - col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( col2 ) + - col0 FROM tab0
----
-77
2
32

query III rowsort
SELECT * FROM tab0 WHERE NOT + 53 * - ( + col1 * - col0 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4099
SELECT - col1 + CAST( NULL AS SIGNED ) col2 FROM tab0 WHERE - 15 <> NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4099
SELECT - col1 + CAST ( NULL AS INTEGER ) col2 FROM tab0 WHERE - 15 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + 42
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4101
SELECT ALL 79 DIV + 73 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL 79 / + 73 AS col0 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4102
SELECT ALL COUNT( * ) DIV ( - COUNT( * ) ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL COUNT ( * ) / ( - COUNT ( * ) ) FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT ALL COUNT( * ) * MIN( DISTINCT - col2 * col2 ) AS col2 FROM tab1
----
-27648

skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL COUNT ( * ) * MIN ( DISTINCT - col2 * col2 ) AS col2 FROM tab1
----
-27648

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * col2 BETWEEN NULL AND ( col1 + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE 28 / 54 IS NULL
----

query I rowsort
SELECT ALL 37 - + 90 AS col1 FROM tab2
----
-53
-53
-53

query I rowsort
SELECT DISTINCT 98 FROM tab0 WHERE 11 * col0 IS NOT NULL
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4108
SELECT DISTINCT - col1 + - col2 * ( 0 ) FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT - col1 + - col2 * ( 0 ) FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT DISTINCT COUNT( - col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4109
SELECT DISTINCT COUNT ( - col2 ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4110
SELECT col1 + col0 DIV col1 FROM tab0
----
25
81
98

skipif mysql # not compatible
query I rowsort label-4110
SELECT col1 + col0 / col1 FROM tab0
----
25
81
98

query I rowsort
SELECT ( col0 ) + - col1 AS col2 FROM tab1
----
37
44
80

query I rowsort
SELECT 94 FROM tab0 WHERE NOT NULL IS NOT NULL
----
94
94
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + ( - ( - 6 ) ) * + col2 col2 FROM tab1
----
359
455
590

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT COUNT( * ) FROM tab2 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4114
SELECT COUNT ( * ) FROM tab2 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT ALL col0 * + col0 FROM tab0 WHERE + col2 + - col0 NOT IN ( + col0 * col0 )
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE ( + col2 ) >= ( 68 ) * - ( - 79 * col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE ( + col2 ) >= ( 68 ) * - ( - 79 * col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT + COUNT( * ) + 86 FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-4117
SELECT + COUNT ( * ) + 86 FROM tab0
----
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 col2 FROM tab0
----
63
63
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4119
SELECT + COUNT( CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4119
SELECT + COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4120
SELECT CAST( NULL AS SIGNED ) + SUM( DISTINCT - col0 + - ( col2 ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4120
SELECT CAST ( NULL AS INTEGER ) + SUM ( DISTINCT - col0 + - ( col2 ) ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + 0 * col1 AS col0 FROM tab1 WHERE NOT + 76 * 98 - - col0 < NULL
----

query I rowsort
SELECT ALL - ( + 1 ) FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT + SUM( col1 ) AS col2 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-4123
SELECT + SUM ( col1 ) AS col2 FROM tab2 cor0
----
195

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 = ( col1 + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT ALL COUNT( * ) - - 2 * COUNT( + 67 ) FROM tab1 AS cor0 CROSS JOIN tab1
----
27

skipif mysql # not compatible
query I rowsort label-4125
SELECT ALL COUNT ( * ) - - 2 * COUNT ( + 67 ) FROM tab1 AS cor0 CROSS JOIN tab1
----
27

query I rowsort
SELECT + + 81 FROM tab0 cor0
----
81
81
81

query I rowsort
SELECT ALL + - ( 62 ) FROM tab1 AS cor0
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT + COUNT( * ) + 73 col2 FROM tab2 AS cor0
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4128
SELECT + COUNT ( * ) + 73 col2 FROM tab2 AS cor0
----
76

query I rowsort
SELECT DISTINCT 72 AS col2 FROM tab1 AS cor0 WHERE NOT 16 IN ( col1 )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4130
SELECT DISTINCT col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 BETWEEN ( col0 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4132
SELECT + 27 DIV col2 + - col1 col2 FROM tab2 AS cor0
----
-50
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4132
SELECT + 27 / col2 + - col1 col2 FROM tab2 AS cor0
----
-50
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4133
SELECT 11 DIV + col2 + + 59 FROM tab1 AS cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-4133
SELECT 11 / + col2 + + 59 FROM tab1 AS cor0
----
59
59
59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 91 / col1 < ( col1 + 7 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT - COUNT( * ) FROM tab1 cor0 WHERE ( col1 ) BETWEEN NULL AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-4135
SELECT - COUNT ( * ) FROM tab1 cor0 WHERE ( col1 ) BETWEEN NULL AND + col1
----
0

query I rowsort
SELECT 66 - + 94 FROM tab2 cor0 WHERE col0 + - 12 > ( + 28 )
----
-28
-28
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4137
SELECT col0 + CAST( - col1 AS SIGNED ) AS col2 FROM tab0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-4137
SELECT col0 + CAST ( - col1 AS INTEGER ) AS col2 FROM tab0
----
-66
66
96

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 NOT BETWEEN NULL AND ( + 77 )
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT ALL ( 2 ) + + MIN( DISTINCT - 40 - col1 ) AS col0 FROM tab0
----
-119

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL ( 2 ) + + MIN ( DISTINCT - 40 - col1 ) AS col0 FROM tab0
----
-119

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NULL <> + col0
----

query I rowsort
SELECT col0 FROM tab1 WHERE ( + 49 * + col0 - col0 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IS NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT + 3 - + col0 FROM tab1 AS cor0
----
-48
-82
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT DISTINCT + ( - - 17 ) * COUNT( * ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT + ( - - 17 ) * COUNT ( * ) FROM tab1
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 30 col1 FROM tab1 AS cor0
----
30
30
30

query I rowsort
SELECT DISTINCT col2 * + + col0 * col0 * 96 FROM tab2 AS cor0
----
15728640
31320000
4672128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4147
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN ( + col0 ) AND col2 * - CAST( NULL AS SIGNED )
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4147
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN ( + col0 ) AND col2 * - CAST ( NULL AS INTEGER )
----
46
64
75

query II rowsort
SELECT + 89, 83 * + 61 AS col0 FROM tab1 AS cor0
----
89
5063
89
5063
89
5063

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= col1 + - 26
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN col2 AND - - 20
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( - col1 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4152
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4152
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 )
----

query I rowsort
SELECT 7 * 32 AS col1 FROM tab2
----
224
224
224

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT 25 * + + COUNT( * ) FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-4155
SELECT 25 * + + COUNT ( * ) FROM tab0
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4156
SELECT ALL * FROM tab1 WHERE NOT + CAST( NULL AS DECIMAL ) * + col1 NOT IN ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-4156
SELECT ALL * FROM tab1 WHERE NOT + CAST ( NULL AS REAL ) * + col1 NOT IN ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 > + col2 + 52
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - - 52 * - 94 * - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4159
SELECT DISTINCT 75 DIV - - 74 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4159
SELECT DISTINCT 75 / - - 74 FROM tab1
----
1

query I rowsort
SELECT DISTINCT + 65 AS col0 FROM tab0 WHERE + + col1 BETWEEN NULL AND ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4161
SELECT + col0 DIV - - col0 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4161
SELECT + col0 / - - col0 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT col0 * - + 48 AS col0 FROM tab2
----
-2208
-3072
-3600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4163
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT - col0 = ( CAST( NULL AS SIGNED ) * 83 + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT - col0 = ( CAST ( NULL AS INTEGER ) * 83 + col2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4164
SELECT - col2 DIV - + col1 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-4164
SELECT - col2 / - + col1 FROM tab0
----
0
0
99

query I rowsort
SELECT ( - col1 ) * col1 + + col0 FROM tab0
----
-354
-6546
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( + 96 ) AND ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT ALL + + MAX( DISTINCT - col2 ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL + + MAX ( DISTINCT - col2 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-69

query I rowsort
SELECT ALL col2 + - - 24 AS col2 FROM tab0
----
123
34
71

query I rowsort
SELECT ALL 32 + + col2 * - 67 FROM tab0
----
-3117
-638
-6601

query I rowsort
SELECT - col2 + + 63 AS col2 FROM tab0
----
-36
16
53

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col0 + col0 * ( col1 ) ) BETWEEN ( + col2 * + ( 99 ) ) AND + 99
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT + ( col1 ) >= ( NULL )
----

query I rowsort
SELECT ALL + col0 * 45 AS col0 FROM tab1 AS cor0
----
2295
3825
4095

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col1 / + - col1 * - col1
----

query I rowsort
SELECT ALL + 74 * + col2 * + col0 + 79 + + col0 * 82 AS col2 FROM tab0 AS cor0
----
53479
71593
718655

query I rowsort
SELECT ALL + - 63 AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-63
-63
-63

query II rowsort
SELECT col1, - ( col0 ) * col0 AS col0 FROM tab2
----
51
-2116
67
-5625
77
-4096

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + col0 AND NULL
----

query I rowsort
SELECT 39 - - col1 AS col0 FROM tab2
----
106
116
90

query I rowsort
SELECT ALL - col0 - col0 + - + col1 FROM tab0
----
-111
-195
-195

query I rowsort
SELECT - col0 * - - ( 76 ) + + 80 AS col2 FROM tab1 WHERE col2 - - + 34 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT - MIN( DISTINCT - - col2 ) - COUNT( * ) AS col2 FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-4182
SELECT - MIN ( DISTINCT - - col2 ) - COUNT ( * ) AS col2 FROM tab2
----
-26

query I rowsort
SELECT ALL 66 + - col1 AS col1 FROM tab0
----
-15
45
65

query I rowsort
SELECT + col0 FROM tab1 WHERE ( 68 / - 39 ) IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT COUNT( * ) col2 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4185
SELECT COUNT ( * ) col2 FROM tab0, tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT - col2 - - ( - col1 ) * col2 FROM tab0 cor0
----
-198
-220
-3854

query I rowsort
SELECT - ( + col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL ( + 10 ) FROM tab0 AS cor0
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT + ( ( - + COUNT( * ) ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4189
SELECT + ( ( - + COUNT ( * ) ) ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + + ( + 76 ) AS col1 FROM tab1 AS cor0
----
76
76
76

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 31 + - - 64 NOT IN ( + 67 - + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab2 AS cor0 WHERE NOT + 35 = col0
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 ) <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * + col2 AS col0 FROM tab0 AS cor0 WHERE 28 BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT + 51 * + + SUM( - + col2 ) * + - 3 AS col0 FROM tab2
----
18513

skipif mysql # not compatible
query I rowsort label-4196
SELECT + 51 * + + SUM ( - + col2 ) * + - 3 AS col0 FROM tab2
----
18513

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT + 18 * COUNT( * ) AS col2 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-4197
SELECT + 18 * COUNT ( * ) AS col2 FROM tab2
----
54

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + + col2 - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 + + 93 FROM tab0
----
-6
46
83

query I rowsort
SELECT DISTINCT 8 AS col0 FROM tab2 WHERE ( + 83 ) IS NULL OR ( - 20 ) IS NOT NULL
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT ALL MAX( + 12 ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL MAX ( + 12 ) FROM tab2
----
12

query II rowsort
SELECT ALL - 76, + 76 - - col2 AS col2 FROM tab1
----
-76
135
-76
144
-76
172

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT + COUNT( * ) + + 37 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-4203
SELECT + COUNT ( * ) + + 37 FROM tab2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4204
SELECT - col2 + - + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4204
SELECT - col2 + - + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 65 + col2 FROM tab1 AS cor0
----
-6
3
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 * - col0 col1 FROM tab0 AS cor0
----
-5481
-6111
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT DISTINCT + COUNT( * ) + COUNT( DISTINCT + - col2 ) * + MIN( + ( col1 ) ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT + COUNT ( * ) + COUNT ( DISTINCT + - col2 ) * + MIN ( + ( col1 ) ) FROM tab0 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4208
SELECT ALL + col1 * + col0 * - col1 DIV - col1 AS col1 FROM tab0 AS cor0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL + col1 * + col0 * - col1 / - col1 AS col1 FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 56 * col1 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT ALL - + 63 * COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-567

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL - + 63 * COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-567

query I rowsort
SELECT DISTINCT + 52 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT SUM( - col1 ) + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-4212
SELECT SUM ( - col1 ) + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-198

query I rowsort
SELECT DISTINCT - 26 * + col0 * + col2 FROM tab2 AS cor0
----
-113100
-27508
-66560

query I rowsort
SELECT ALL ( - - 26 ) * - - 87 FROM tab2 AS cor0
----
2262
2262
2262

query I rowsort
SELECT DISTINCT + col2 + + - col1 AS col2 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4216
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 * + + col1 + - col0 NOT IN ( 35 / - 42 + + + col1, CAST( - 21 AS SIGNED ) - - col0 )
----

skipif mysql # not compatible
query III rowsort label-4216
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 * + + col1 + - col0 NOT IN ( 35 / - 42 + + + col1, CAST ( - 21 AS INTEGER ) - - col0 )
----

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 AS cor0 WHERE NOT col0 * - 71 * - 53 IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4218
SELECT - CAST( NULL AS SIGNED ) + + 0 - 7 * + col1 + - 73 * + + col2 * - - col1 * + + 0 * + 5 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4218
SELECT - CAST ( NULL AS INTEGER ) + + 0 - 7 * + col1 + - 73 * + + col2 * - - col1 * + + 0 * + 5 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4219
SELECT DISTINCT col2 * 76 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT col2 * 76 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - - 12 col0 FROM tab2
----
58
76
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4221
SELECT ALL - col0 + - col2 + + 96 DIV col0 * - - col0 * + col1 * - col2 + + col0 AS col2 FROM tab2
----
-107939
-197160
-291508

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL - col0 + - col2 + + 96 / col0 * - - col0 * + col1 * - col2 + + col0 AS col2 FROM tab2
----
-107939
-197160
-291508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4222
SELECT DISTINCT col2 + + CAST( NULL AS SIGNED ) / + col0 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4222
SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) / + col0 col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NULL IN ( + col2 )
----

query I rowsort
SELECT DISTINCT + ( col2 ) + - col0 AS col0 FROM tab1 WHERE NULL = + ( col0 ) + + col1 * 59 * - 31 / - col0 - 34
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 NOT IN ( - + ( - - col2 ), col1 + - col0 + - ( col1 ) - + col0 + - col0 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 * col0 + - + ( - 7 ) FROM tab0
----
104
1222
1834

query I rowsort
SELECT ALL - col1 * - + col0 AS col2 FROM tab0
----
1215
1827
97

query II rowsort
SELECT - col1, 3 AS col0 FROM tab2 AS cor0
----
-51
3
-67
3
-77
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4229
SELECT CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4229
SELECT CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT ( + 65 ) * + 79 - MIN( - col0 ) AS col2 FROM tab2 AS cor0
----
5210

skipif mysql # not compatible
query I rowsort label-4230
SELECT ( + 65 ) * + 79 - MIN ( - col0 ) AS col2 FROM tab2 AS cor0
----
5210

query I rowsort
SELECT + col2 * col0 + - col2 + - 36 * - + 85 AS col0 FROM tab0 cor0
----
12564
3718
3920

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4232
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, 10 * col1 FROM tab0
----
NULL
10
NULL
210
NULL
810

skipif mysql # not compatible
query II rowsort label-4232
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, 10 * col1 FROM tab0
----
NULL
10
NULL
210
NULL
810

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT + - SUM( + - ( - col1 ) ) FROM tab0 WHERE NOT + 6 >= - col0 * - col0
----
-103

skipif mysql # not compatible
query I rowsort label-4233
SELECT + - SUM ( + - ( - col1 ) ) FROM tab0 WHERE NOT + 6 >= - col0 * - col0
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-4234
SELECT 10 DIV 78 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4234
SELECT 10 / 78 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * + ( - 45 ) FROM tab2
----
-2295
-3015
-3465

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT + + MIN( DISTINCT - col2 ) AS col0 FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4236
SELECT + + MIN ( DISTINCT - col2 ) AS col0 FROM tab2 cor0
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4237
SELECT CAST( - MIN( - col2 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4237
SELECT CAST ( - MIN ( - col2 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
58

query II rowsort
SELECT DISTINCT - 69, col0 FROM tab2 AS cor0
----
-69
46
-69
64
-69
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT + SUM( DISTINCT ( + 80 ) ) FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-4239
SELECT + SUM ( DISTINCT ( + 80 ) ) FROM tab2 AS cor0
----
80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - 84, + 77 AS col0 FROM tab1 cor0
----
-84
77
-84
77
-84
77

query I rowsort
SELECT 98 FROM tab2 cor0
----
98
98
98

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 + + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4244
SELECT DISTINCT 70 + - MAX( - - col1 ) * - + COUNT( ALL + - 88 ) * - 86 * + CAST( NULL AS SIGNED ) * + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT DISTINCT 70 + - MAX ( - - col1 ) * - + COUNT ( ALL + - 88 ) * - 86 * + CAST ( NULL AS INTEGER ) * + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT ALL MIN( ALL col0 ) + + MAX( col1 ) FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL MIN ( ALL col0 ) + + MAX ( col1 ) FROM tab1
----
98

query I rowsort
SELECT ( - ( ( - col2 ) ) ) AS col1 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT col2 * 38 FROM tab0 WHERE + 84 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( ( NULL ) = + 48 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4249
SELECT ALL - ( 30 ) - COUNT( * ) FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) + + - 19 IS NOT NULL
----
-33

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL - ( 30 ) - COUNT ( * ) FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) + + - 19 IS NOT NULL
----
-33

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 / + 43 <= ( + + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 80 * + col0 + - col2 * - col2 col1 FROM tab1 AS cor0
----
-2656
-3319
5136

query I rowsort
SELECT ALL 40 * + + 13 FROM tab0
----
520
520
520

query I rowsort
SELECT + 76 AS col2 FROM tab2 WHERE + col0 = - - 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT ALL + + MIN( + 20 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4254
SELECT ALL + + MIN ( + 20 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT ALL + + MAX( + ( - col0 ) ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL + + MAX ( + ( - col0 ) ) FROM tab1 cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 <> NULL
----

query I rowsort
SELECT DISTINCT + - ( + 86 ) AS col0 FROM tab0 AS cor0
----
-86

query I rowsort
SELECT - 83 * - col1 * + 35 AS col2 FROM tab1 AS cor0 WHERE ( NULL < - - 64 )
----

query I rowsort
SELECT + 59 * + col2 * col1 - + col1 AS col0 FROM tab0 AS cor0
----
12369
224532
5840

query II rowsort
SELECT ALL - + col1 AS col0, 6 AS col1 FROM tab2 AS cor0
----
-51
6
-67
6
-77
6

query I rowsort
SELECT 5 - + col0 + + + col0 AS col2 FROM tab2
----
5
5
5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4263
SELECT - col1 * - + col0 - CAST( NULL AS DECIMAL ) - - col1, + col0 AS col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-4263
SELECT - col1 * - + col0 - CAST ( NULL AS REAL ) - - col1, + col0 AS col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT col2 - - 45 + - 98 AS col0 FROM tab2
----
-13
-30
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - - col1 col0 FROM tab1
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4266
SELECT ALL - CAST( NULL AS SIGNED ) * col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 78 IN ( + 74, col1, + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 24 * col0 FROM tab0 cor0
----
-2088
-2328
-360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 * + 5 col2, - ( - 9 ) FROM tab2 AS cor0
----
115
9
200
9
290
9

query I rowsort
SELECT - - col1 * + col2 * - 95 AS col0 FROM tab1 AS cor0
----
-127680
-28025
-303620

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 * - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - ( col1 ) + - col1 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 7 + - col0 FROM tab1 AS cor0
----
-58
-92
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT - COUNT( ALL + col2 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4275
SELECT - COUNT ( ALL + col2 ) FROM tab1 cor0
----
-3

query I rowsort
SELECT - + 90 FROM tab0 AS cor0 WHERE col0 - - 51 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4277
SELECT - col1 DIV 68 + - + col0 - col0 + + + 52 + - - col0 * CAST( - col0 AS SIGNED ) * - + col1 * col1 DIV - - col1 AS col0 FROM tab1
----
36007
36364
389077

skipif mysql # not compatible
query I rowsort label-4277
SELECT - col1 / 68 + - + col0 - col0 + + + 52 + - - col0 * CAST ( - col0 AS INTEGER ) * - + col1 * col1 / - - col1 AS col0 FROM tab1
----
36007
36364
389077

query I rowsort
SELECT ALL + col2 * - col0 * + - col0 + + + col1 - col0 + - + 55 AS col2 FROM tab0
----
10586
75569
931340

query II rowsort
SELECT ALL - col0 AS col0, - col0 FROM tab2
----
-46
-46
-64
-64
-75
-75

query I rowsort
SELECT ALL col0 + + 1 - - - 14 + - - 71 * - 75 FROM tab2
----
-5263
-5274
-5292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4281
SELECT - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4281
SELECT - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - - 60 FROM tab2 AS cor0 WHERE 56 + + col1 NOT IN ( + + col2 + col0, - 9, + col2 )
----
60
60
60

query I rowsort
SELECT ALL - 38 + + 5 AS col1 FROM tab0 AS cor0 WHERE NOT + 88 * col0 / + ( - - 40 ) + - - col2 IS NOT NULL
----

query I rowsort
SELECT - + 16 * 94 FROM tab2 AS cor0
----
-1504
-1504
-1504

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE 29 > + + col2
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4286
SELECT ALL - CAST( NULL AS SIGNED ) * + - 34 + + - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 34 + + - COUNT ( * ) FROM tab0
----
NULL

query II rowsort
SELECT ALL + 63, - 17 * - + col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT DISTINCT + 32 - - COUNT( * ) col1 FROM tab2 AS cor0
----
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4288
SELECT DISTINCT + 32 - - COUNT ( * ) col1 FROM tab2 AS cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4289
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4289
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * - + col1 * - col1 * - col1 + col1 + + col1 AS col0 FROM tab0 AS cor0
----
-7971453
-805665
-95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = col2 * + col0
----

query II rowsort
SELECT DISTINCT - col1 * + - col0, col2 FROM tab0 AS cor0
----
1215
47
1827
10
97
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < + 33 + - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 2 col2 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query II rowsort label-4295
SELECT COUNT( * ) AS col1, + 97 FROM tab1
----
3
97

skipif mysql # not compatible
query II rowsort label-4295
SELECT COUNT ( * ) AS col1, + 97 FROM tab1
----
3
97

query II rowsort
SELECT ALL - col0 AS col2, col2 AS col1 FROM tab2
----
-46
23
-64
40
-75
58

query II rowsort
SELECT 12 AS col1, - col1 * col0 FROM tab1
----
12
-425
12
-4277
12
-714

query I rowsort
SELECT col2 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4299
SELECT + CAST( col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4299
SELECT + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT ALL + col1 + + col1 * - 76 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-1050
-3525
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT MAX( ALL - 48 ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-4301
SELECT MAX ( ALL - 48 ) FROM tab1
----
-48

query I rowsort
SELECT 91 + - + 45 FROM tab0
----
46
46
46

query I rowsort
SELECT 25 * - col2 + - 17 FROM tab1
----
-1492
-1717
-2417

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4304
SELECT DISTINCT - col1 + - col1 - - CAST( NULL AS DECIMAL ) * - col2 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4304
SELECT DISTINCT - col1 + - col1 - - CAST ( NULL AS REAL ) * - col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4305
SELECT ALL + 27 DIV col0 col1 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4305
SELECT ALL + 27 / col0 col1 FROM tab0 cor0
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 67 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 89 + col1 FROM tab0
----
110
170
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT ALL SUM( ALL col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL SUM ( ALL col0 ) AS col1 FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT + 9 * - + COUNT( * ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-4309
SELECT + 9 * - + COUNT ( * ) FROM tab2
----
-27

query II rowsort
SELECT ALL + col2 AS col1, 55 - + 29 + col0 AS col0 FROM tab0
----
10
113
47
41
99
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT ALL + + COUNT( ALL - 97 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL + + COUNT ( ALL - 97 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT 81 + + col0 FROM tab2 cor0
----
127
145
156

onlyif mysql # DIV for integer division: 
query I rowsort label-4313
SELECT col0 + - 16 * col1 DIV + col0 + + + 14 AS col0 FROM tab2
----
43
59
75

skipif mysql # not compatible
query I rowsort label-4313
SELECT col0 + - 16 * col1 / + col0 + + + 14 AS col0 FROM tab2
----
43
59
75

query II rowsort
SELECT col1 AS col1, + 67 FROM tab0
----
1
67
21
67
81
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT - MAX( + col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4315
SELECT - MAX ( + col0 ) FROM tab1
----
-91

query I rowsort
SELECT DISTINCT + col2 - - - col0 + + col1 AS col2 FROM tab2
----
28
50
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT - + MAX( - + col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4317
SELECT - + MAX ( - + col2 ) AS col1 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT ALL 75 - - - ( - MIN( + col2 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( 52 ) IS NULL
----
85

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL 75 - - - ( - MIN ( + col2 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( 52 ) IS NULL
----
85

query II rowsort
SELECT ALL + col2, + 67 + + + 22 FROM tab1 cor0
----
59
89
68
89
96
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4320
SELECT + col0 AS col2, - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

skipif mysql # not compatible
query II rowsort label-4320
SELECT + col0 AS col2, - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

query II rowsort
SELECT DISTINCT - col0, + col1 FROM tab1 cor0
----
-51
14
-85
5
-91
47

query I rowsort
SELECT ( - + 3 ) AS col2 FROM tab1 AS cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT DISTINCT COUNT( - - 0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT COUNT ( - - 0 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - ( - + 17 ) AS col2 FROM tab1 AS cor0
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 67 col1, col1 * 34 AS col1 FROM tab0 cor0
----
67
2754
67
34
67
714

query I rowsort
SELECT DISTINCT col2 * + col2 * + ( col1 ) FROM tab0
----
178929
2100
9801

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col1 IN ( + col0 + col1 * + col0 * - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4328
SELECT - 93 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4328
SELECT - 93 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT COUNT( DISTINCT - - 51 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4329
SELECT COUNT ( DISTINCT - - 51 ) FROM tab2
----
1

query I rowsort
SELECT ALL 80 * - - 2 FROM tab2
----
160
160
160

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( - col0 ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * + col0 AS col1, + col2 col0 FROM tab2
----
2116
23
4096
40
5625
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 < col0
----
87
21
10
97
1
99

query I rowsort
SELECT ALL 86 AS col1 FROM tab2
----
86
86
86

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE - 73 >= NULL
----

query I rowsort
SELECT DISTINCT + + col2 FROM tab2 AS cor0 WHERE + 71 / col0 BETWEEN - col0 * col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT + COUNT( * ) * + ( - 67 ) * - 20 + - 38 AS col0 FROM tab2 WHERE NOT NULL IN ( + col0, - 50 )
----
-38

skipif mysql # not compatible
query I rowsort label-4337
SELECT + COUNT ( * ) * + ( - 67 ) * - 20 + - 38 AS col0 FROM tab2 WHERE NOT NULL IN ( + col0, - 50 )
----
-38

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT DISTINCT + SUM( - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT + SUM ( - col2 ) FROM tab2
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4340
SELECT DISTINCT - - CAST( + 65 AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
65

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT - - CAST ( + 65 AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT DISTINCT - COUNT( DISTINCT + col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT - COUNT ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4342
SELECT DISTINCT col0, + 96 * - - ( + col1 ) - + + col0 - - - CAST( - + 9 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
46
4859
64
7337
75
6366

skipif mysql # not compatible
query II rowsort label-4342
SELECT DISTINCT col0, + 96 * - - ( + col1 ) - + + col0 - - - CAST ( - + 9 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
46
4859
64
7337
75
6366

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT DISTINCT MAX( + + 33 ) col1 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4343
SELECT DISTINCT MAX ( + + 33 ) col1 FROM tab2 AS cor0
----
33

query I rowsort
SELECT DISTINCT + col0 * ( - ( - col0 ) ) * + + col2 * 96 AS col2 FROM tab1 AS cor0
----
23970816
40922400
54058368

query I rowsort
SELECT - + col2 + - + col2 FROM tab0 cor0
----
-198
-20
-94

query I rowsort
SELECT ALL + col2 + + 84 FROM tab1 AS cor0
----
143
152
180

query I rowsort
SELECT DISTINCT - + col0 + - 44 AS col0 FROM tab0 AS cor0
----
-131
-141
-59

query II rowsort
SELECT ALL col1 * - ( - 13 ) AS col1, + 30 + - col1 AS col1 FROM tab1 AS cor0
----
182
16
611
-17
65
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4349
SELECT DISTINCT col1 * - col0 + - col1 + - CAST( NULL AS SIGNED ) + + col2 * + - col0 - col1 * - col0 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4349
SELECT DISTINCT col1 * - col0 + - col1 + - CAST ( NULL AS INTEGER ) + + col2 * + - col0 - col1 * - col0 col1 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT ( NULL ) NOT BETWEEN NULL AND + 50 * - 78 * + col1 + col1 + - col1 * col1 / + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT DISTINCT 72 + 50 + - 10 * - MIN( - + 60 ) + + - 19 FROM tab1
----
-497

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT 72 + 50 + - 10 * - MIN ( - + 60 ) + + - 19 FROM tab1
----
-497

query I rowsort
SELECT col0 + - 35 FROM tab1
----
16
50
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4353
SELECT ALL COUNT( * ) DIV + - 25 - + MAX( + + col1 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL COUNT ( * ) / + - 25 - + MAX ( + + col1 ) AS col2 FROM tab2
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4354
SELECT DISTINCT + - col2 * - col0 * - 52 - + col1 DIV - - col2 FROM tab2 AS cor0
----
-133121
-226201
-55018

skipif mysql # not compatible
query I rowsort label-4354
SELECT DISTINCT + - col2 * - col0 * - 52 - + col1 / - - col2 FROM tab2 AS cor0
----
-133121
-226201
-55018

query I rowsort
SELECT + - 62 * + col1 AS col1 FROM tab2 AS cor0
----
-3162
-4154
-4774

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 88 * + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT - + COUNT( ALL col2 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4357
SELECT - + COUNT ( ALL col2 ) AS col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 26 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE col2 NOT BETWEEN + + col1 AND NULL
----

query I rowsort
SELECT DISTINCT + 46 AS col2 FROM tab2 cor0
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4361
SELECT + ( - COUNT( * ) ) DIV + 96 FROM tab1 AS cor0 WHERE NOT ( NOT ( col0 ) IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4361
SELECT + ( - COUNT ( * ) ) / + 96 FROM tab1 AS cor0 WHERE NOT ( NOT ( col0 ) IS NULL )
----
0

query II rowsort
SELECT ALL - 8, col1 AS col2 FROM tab1
----
-8
14
-8
47
-8
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT ALL COUNT( ( + 7 ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL COUNT ( ( + 7 ) ) AS col2 FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT + 21 IS NOT NULL
----

query II rowsort
SELECT col2 AS col2, col1 FROM tab1
----
59
5
68
47
96
14

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 44 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT DISTINCT - MIN( DISTINCT col1 ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4368
SELECT DISTINCT - MIN ( DISTINCT col1 ) AS col0 FROM tab1
----
-5

query I rowsort
SELECT DISTINCT - + 62 FROM tab2 AS cor0 WHERE col1 <> NULL
----

query I rowsort
SELECT ( + 92 ) FROM tab2 AS cor0
----
92
92
92

query I rowsort
SELECT DISTINCT + ( col1 ) * + 61 AS col2 FROM tab2 AS cor0
----
3111
4087
4697

query I rowsort
SELECT ALL + col2 + + + col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4373
SELECT ALL - 7 * + CAST( 62 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9c7fc470fed16cb5f3abc3f356378416

skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL - 7 * + CAST ( 62 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9c7fc470fed16cb5f3abc3f356378416

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT ALL - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

query II rowsort
SELECT col1 + - - 80 AS col2, col1 + - - col2 + - 16 FROM tab0
----
101
15
161
112
81
84

query I rowsort
SELECT DISTINCT 1 AS col2 FROM tab0, tab2 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT DISTINCT SUM( - 64 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-576

skipif mysql # not compatible
query I rowsort label-4377
SELECT DISTINCT SUM ( - 64 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-576

onlyif mysql # aggregate syntax: 
query II rowsort label-4378
SELECT ALL 47 * + + COUNT( * ) AS col1, 94 FROM tab2
----
141
94

skipif mysql # not compatible
query II rowsort label-4378
SELECT ALL 47 * + + COUNT ( * ) AS col1, 94 FROM tab2
----
141
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * + col1 AS col0, - col0 col2 FROM tab0 cor0
----
-210
-87
-3807
-15
-99
-97

query I rowsort
SELECT ALL 78 * 41 * - + 66 AS col1 FROM tab2 AS cor0
----
-211068
-211068
-211068

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT ALL COUNT( * ) + 29 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL COUNT ( * ) + 29 FROM tab1 AS cor0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4382
SELECT DISTINCT + col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4382
SELECT DISTINCT + col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT - 72 * - col2 * + 71 - col2 * - col1 FROM tab1
----
301903
350812
492096

query I rowsort
SELECT ALL 82 + col2 FROM tab2
----
105
122
140

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT COUNT( * ) - 9 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-4385
SELECT COUNT ( * ) - 9 FROM tab2
----
-6

query I rowsort
SELECT 32 * col1 * + col1 + 30 FROM tab0
----
14142
209982
62

onlyif mysql # DIV for integer division: 
query II rowsort label-4387
SELECT ALL col1 DIV ( 94 ) - - ( - 74 ) - - 71 AS col1, + 89 FROM tab0
----
-3
89
-3
89
-3
89

skipif mysql # not compatible
query II rowsort label-4387
SELECT ALL col1 / ( 94 ) - - ( - 74 ) - - 71 AS col1, + 89 FROM tab0
----
-3
89
-3
89
-3
89

query I rowsort
SELECT ALL - 90 * - - col0 - + col1 * - - 55 AS col1 FROM tab0 AS cor0
----
-5805
-8785
-8985

query I rowsort
SELECT + 29 + - col1 FROM tab2 cor0
----
-22
-38
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-4390
SELECT - 42 DIV - 75 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4390
SELECT - 42 / - 75 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT + MIN( - - 72 ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-4391
SELECT + MIN ( - - 72 ) FROM tab1
----
72

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 * + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4393
SELECT DISTINCT ( - 58 ) AS col0, COUNT( * ) + + - COUNT( * ) / - CAST( NULL AS SIGNED ) FROM tab2
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-4393
SELECT DISTINCT ( - 58 ) AS col0, COUNT ( * ) + + - COUNT ( * ) / - CAST ( NULL AS INTEGER ) FROM tab2
----
-58
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4394
SELECT ALL + COUNT( ALL + col0 ) DIV COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL + COUNT ( ALL + col0 ) / COUNT ( * ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT + - ( + + col1 ) FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 + - - 91 * + - 60 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 49 - + - col2 col0 FROM tab2 AS cor0
----
-2231
-3096
-3617

query I rowsort
SELECT - + 72 * + ( - col0 ) * + 7 + 49 + - col1 * - 54 FROM tab1 AS cor0
----
26509
43159
48451

query I rowsort
SELECT - col0 * + - col1 * col0 FROM tab0 AS cor0
----
158949
18225
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT + MIN( - col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4400
SELECT + MIN ( - col1 ) AS col2 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4401
SELECT + COUNT( * ) DIV + - COUNT( * ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4401
SELECT + COUNT ( * ) / + - COUNT ( * ) AS col2 FROM tab2
----
-1

query I rowsort
SELECT - col0 * 99 * - col1 FROM tab1
----
42075
423423
70686

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 60 NOT BETWEEN - 92 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4404
SELECT + - col0 * + CAST( + 52 AS SIGNED ) FROM tab0 cor0 WHERE NOT 49 NOT BETWEEN 43 - col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4404
SELECT + - col0 * + CAST ( + 52 AS INTEGER ) FROM tab0 cor0 WHERE NOT 49 NOT BETWEEN 43 - col1 AND NULL
----

query I rowsort
SELECT ALL col0 + - 11 + + 43 * - 43 FROM tab2 AS cor0
----
-1785
-1796
-1814

query II rowsort
SELECT col0, 84 FROM tab2 AS cor0
----
46
84
64
84
75
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4407
SELECT DISTINCT - 42 + + - 31 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4407
SELECT DISTINCT - 42 + + - 31 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 46 * + col2 * col1 + - col1 FROM tab0 AS cor0
----
175041
4553
9639

query III rowsort
SELECT ALL * FROM tab0 WHERE - 84 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT DISTINCT COUNT( * ) * - MIN( + 35 ) AS col0 FROM tab2 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-4411
SELECT DISTINCT COUNT ( * ) * - MIN ( + 35 ) AS col0 FROM tab2 AS cor0
----
-105

query I rowsort
SELECT + + 82 + + col1 + - col1 AS col0 FROM tab2 AS cor0
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4413
SELECT ALL + col0 * - col0 + CAST( col0 AS SIGNED ) + + col2 * - + 35 FROM tab1 AS cor0
----
-10570
-5910
-9205

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL + col0 * - col0 + CAST ( col0 AS INTEGER ) + + col2 * - + 35 FROM tab1 AS cor0
----
-10570
-5910
-9205

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - + col0 >= - col0 )
----

query I rowsort
SELECT - - col0 + 49 FROM tab2 AS cor0
----
113
124
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4416
SELECT ALL CAST( NULL AS SIGNED ) AS col2, - 65 FROM tab0 AS cor0
----
NULL
-65
NULL
-65
NULL
-65

skipif mysql # not compatible
query II rowsort label-4416
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - 65 FROM tab0 AS cor0
----
NULL
-65
NULL
-65
NULL
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT DISTINCT - - MAX( ALL 73 ) + - 53 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT - - MAX ( ALL 73 ) + - 53 FROM tab2 AS cor0
----
20

query I rowsort
SELECT DISTINCT - + 72 AS col1 FROM tab2 cor0 WHERE NOT + col0 IS NULL
----
-72

query I rowsort
SELECT - + col2 + - col1 + - - 90 AS col0 FROM tab0 AS cor0
----
-10
-38
59

query I rowsort
SELECT + col2 + col0 + col0 AS col0 FROM tab2 AS cor0
----
115
168
208

query I rowsort
SELECT DISTINCT - col0 + - - ( 38 ) FROM tab1
----
-13
-47
-53

query I rowsort
SELECT DISTINCT + 65 * - 44 * + ( - - ( + - col0 ) ) + col0 AS col1 FROM tab0
----
248907
277517
42915

query III rowsort
SELECT * FROM tab0 WHERE - - col0 BETWEEN - col0 * - col1 AND ( NULL )
----

query I rowsort
SELECT ALL - col2 - 94 FROM tab1
----
-153
-162
-190

onlyif mysql # DIV for integer division: 
query I rowsort label-4425
SELECT DISTINCT + 38 DIV + + col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4425
SELECT DISTINCT + 38 / + + col0 FROM tab1
----
0

query II rowsort
SELECT ( - col1 ) AS col1, 82 FROM tab0
----
-1
82
-21
82
-81
82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 BETWEEN col2 * col1 + col1 AND NULL
----

query I rowsort
SELECT - col1 - + col0 * - col0 FROM tab1 AS cor0
----
2587
7220
8234

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT + - COUNT( * ) * + - ( 81 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
729

skipif mysql # not compatible
query I rowsort label-4429
SELECT + - COUNT ( * ) * + - ( 81 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
729

onlyif mysql # DIV for integer division: 
query I rowsort label-4430
SELECT 16 DIV col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4430
SELECT 16 / col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4431
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT - 23 FROM tab0 cor0
----
-23

query I rowsort
SELECT ( + 50 ) AS col1 FROM tab1 cor0
----
50
50
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 70, + col2 col0 FROM tab2 cor0 WHERE NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT MIN( - 6 ) AS col2 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-4435
SELECT MIN ( - 6 ) AS col2 FROM tab0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-4436
SELECT DISTINCT col0 + + col2 DIV + col0 * + col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4436
SELECT DISTINCT col0 + + col2 / + col0 * + col2 FROM tab2
----
46
64
75

query II rowsort
SELECT col1 * + - col1 * + ( + col1 ), + col2 FROM tab2
----
-132651
23
-300763
58
-456533
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4438
SELECT + COUNT( * ) DIV COUNT( DISTINCT col1 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4438
SELECT + COUNT ( * ) / COUNT ( DISTINCT col1 ) AS col2 FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4439
SELECT + CAST( col1 AS SIGNED ) + + col2 - + col2 AS col0, col1 + + col2 DIV col2 + - col1 FROM tab2 WHERE NOT ( - 28 ) IS NULL
----
51
1
67
1
77
1

skipif mysql # not compatible
query II rowsort label-4439
SELECT + CAST ( col1 AS INTEGER ) + + col2 - + col2 AS col0, col1 + + col2 / col2 + - col1 FROM tab2 WHERE NOT ( - 28 ) IS NULL
----
51
1
67
1
77
1

query I rowsort
SELECT + col1 * - + 11 FROM tab2
----
-561
-737
-847

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT DISTINCT + MAX( - col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4441
SELECT DISTINCT + MAX ( - col1 ) FROM tab0
----
-1

query I rowsort
SELECT ALL ( + - 24 ) FROM tab1 AS cor0
----
-24
-24
-24

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 = - 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT COUNT( * ) * + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-4444
SELECT COUNT ( * ) * + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
81

query I rowsort
SELECT + 50 + col0 AS col2 FROM tab2
----
114
125
96

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 61 / - 27 + + 22 * - + 38 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT DISTINCT - SUM( DISTINCT 74 ) * + + COUNT( * ) AS col2 FROM tab1 cor0
----
-222

skipif mysql # not compatible
query I rowsort label-4447
SELECT DISTINCT - SUM ( DISTINCT 74 ) * + + COUNT ( * ) AS col2 FROM tab1 cor0
----
-222

onlyif mysql # DIV for integer division: 
query I rowsort label-4448
SELECT - ( col2 ) DIV - col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4448
SELECT - ( col2 ) / - col0 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 - + - col2 + 70 NOT BETWEEN - col0 AND col2
----

query I rowsort
SELECT DISTINCT - - 18 FROM tab1 cor0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4451
SELECT + CAST( - COUNT( * ) AS SIGNED ) - + SUM( + col2 ) DIV + 21 AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4451
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) - + SUM ( + col2 ) / + 21 AS col1 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT - - 51 - + COUNT( * ) FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-4452
SELECT - - 51 - + COUNT ( * ) FROM tab0 AS cor0
----
48

query III rowsort
SELECT * FROM tab2 WHERE NULL > col0
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 NOT BETWEEN NULL AND - col1
----
15
81
47

query I rowsort
SELECT 11 + - - col1 * ( 16 ) AS col2 FROM tab0
----
1307
27
347

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4456
SELECT ALL - CAST( NULL AS DECIMAL ) * - COUNT( * ) - + 38 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL - CAST ( NULL AS REAL ) * - COUNT ( * ) - + 38 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col1 - ( - col1 ) AS col1 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4458
SELECT DISTINCT + 84 DIV + + SUM( col0 ) * - - COUNT( * ) + - 56 FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-4458
SELECT DISTINCT + 84 / + + SUM ( col0 ) * - - COUNT ( * ) + - 56 FROM tab2
----
-56

query II rowsort
SELECT col0 AS col1, col1 AS col2 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT - col0 * + col2 * + - 12 FROM tab2
----
12696
30720
52200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4461
SELECT - - CAST( COUNT( * ) AS SIGNED ) / - COUNT( * ) / - AVG ( ALL - col1 ) + MAX( DISTINCT col2 ) AS col1 FROM tab0 WHERE NOT + ( + col2 ) BETWEEN NULL AND + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL handles NULL in DIV/0 by differently
query I rowsort label-4461
SELECT - - CAST ( COUNT ( * ) AS INTEGER ) / - COUNT ( * ) / - AVG ( ALL - col1 ) + MAX ( DISTINCT col2 ) AS col1 FROM tab0 WHERE NOT + ( + col2 ) BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT - ( - COUNT( * ) ) * + 56 * + 69 FROM tab0 AS cor0
----
11592

skipif mysql # not compatible
query I rowsort label-4463
SELECT - ( - COUNT ( * ) ) * + 56 * + 69 FROM tab0 AS cor0
----
11592

query I rowsort
SELECT ( + 96 ) FROM tab2
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT 82 + 73 * - MAX( ALL - col2 ) FROM tab0
----
812

skipif mysql # not compatible
query I rowsort label-4465
SELECT 82 + 73 * - MAX ( ALL - col2 ) FROM tab0
----
812

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT ALL COUNT( * ) * MIN( DISTINCT col1 ) + - 24 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL COUNT ( * ) * MIN ( DISTINCT col1 ) + - 24 FROM tab0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT DISTINCT - MAX( col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-4467
SELECT DISTINCT - MAX ( col0 ) AS col1 FROM tab2
----
-75

query I rowsort
SELECT ALL - - col0 AS col2 FROM tab1 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT DISTINCT MIN( DISTINCT + 91 ) FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-4469
SELECT DISTINCT MIN ( DISTINCT + 91 ) FROM tab2
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 96, 56 col2 FROM tab1 cor0 WHERE + 21 IS NOT NULL
----
96
56
96
56
96
56

query I rowsort
SELECT 65 * + + 2 FROM tab1 AS cor0
----
130
130
130

query I rowsort
SELECT ALL + + col0 FROM tab2 AS cor0 WHERE 66 >= - col0 + - - col0
----
46
64
75

query I rowsort
SELECT ALL col0 FROM tab2 cor0 WHERE NOT 41 + + col1 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT + COUNT( 92 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4474
SELECT + COUNT ( 92 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT COUNT( * ) col0 FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4475
SELECT COUNT ( * ) col0 FROM tab1, tab2 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4476
SELECT ALL - MAX( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 WHERE col2 NOT BETWEEN + 7 + col1 * + col1 + + ( col0 ) / + col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL - MAX ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 WHERE col2 NOT BETWEEN + 7 + col1 * + col1 + + ( col0 ) / + col2 AND NULL
----
NULL

query I rowsort
SELECT DISTINCT - - col0 * - + col2 / - col1 AS col2 FROM tab2 WHERE NOT + + 43 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4478
SELECT + col1 DIV + col2 + - + col2 FROM tab0 AS cor0
----
-46
-8
-99

skipif mysql # not compatible
query I rowsort label-4478
SELECT + col1 / + col2 + - + col2 FROM tab0 AS cor0
----
-46
-8
-99

query I rowsort
SELECT ALL - 23 + col2 AS col1 FROM tab2 AS cor0
----
0
17
35

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 = + 22
----

query I rowsort
SELECT ALL + + 91 AS col0 FROM tab2 AS cor0
----
91
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) + - col0 col2 FROM tab0
----
-66
-96
66

query I rowsort
SELECT DISTINCT 86 + - 31 AS col2 FROM tab0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4484
SELECT DISTINCT 52 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4484
SELECT DISTINCT 52 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT DISTINCT - MAX( + + col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4485
SELECT DISTINCT - MAX ( + + col0 ) FROM tab1
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, + 95 * + + col0 * + - col2 * col2 AS col2 FROM tab0
----
-1
-90316215
-21
-826500
-81
-3147825

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT - + MIN( 93 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-93

skipif mysql # not compatible
query I rowsort label-4487
SELECT - + MIN ( 93 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-93

query I rowsort
SELECT - 99 AS col0 FROM tab1 cor0
----
-99
-99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4489
SELECT DISTINCT + + 75 * - col2 + - CAST( NULL AS SIGNED ) / - 69 - col1, + col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-4489
SELECT DISTINCT + + 75 * - col2 + - CAST ( NULL AS INTEGER ) / - 69 - col1, + col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT ALL + + COUNT( * ) + 57 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
66

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL + + COUNT ( * ) + 57 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
66

query I rowsort
SELECT ALL col1 * - 9 FROM tab1
----
-126
-423
-45

query I rowsort
SELECT + 38 * 99 AS col1 FROM tab0
----
3762
3762
3762

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + AVG ( ALL + col1 ) col1 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4494
SELECT * FROM tab0 WHERE NOT - col0 + - col1 + - - col0 - - ( - ( - + CAST( NULL AS SIGNED ) ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4494
SELECT * FROM tab0 WHERE NOT - col0 + - col1 + - - col0 - - ( - ( - + CAST ( NULL AS INTEGER ) ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( col1 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4496
SELECT 49 DIV + COUNT( * ) + - - COUNT( * ) + SUM( + ( + + col1 ) ) FROM tab2 AS cor0
----
214

skipif mysql # not compatible
query I rowsort label-4496
SELECT 49 / + COUNT ( * ) + - - COUNT ( * ) + SUM ( + ( + + col1 ) ) FROM tab2 AS cor0
----
214

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 59 ) col2 FROM tab1 AS cor0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT COUNT( * ) col0 FROM tab2 cor0 WHERE NOT + 11 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4498
SELECT COUNT ( * ) col0 FROM tab2 cor0 WHERE NOT + 11 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN - - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT ALL + 41 * MIN( - 99 ) col1 FROM tab1 AS cor0
----
-4059

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4500
SELECT ALL + 41 * MIN ( - 99 ) col1 FROM tab1 AS cor0
----
-4059

query III rowsort
SELECT * FROM tab1 WHERE + col2 NOT IN ( + + 0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 + - 80 FROM tab0
----
-101
-161
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4503
SELECT ALL + 17 + 79 DIV + - col1 AS col1 FROM tab2
----
16
16
16

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL + 17 + 79 / + - col1 AS col1 FROM tab2
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT DISTINCT 43 + + SUM( + + 8 ) FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-4504
SELECT DISTINCT 43 + + SUM ( + + 8 ) FROM tab2
----
67

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 99 = NULL
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4507
SELECT - CAST( 47 AS SIGNED ) * + - col0 + - + 65 AS col1 FROM tab0
----
4024
4494
640

skipif mysql # not compatible
query I rowsort label-4507
SELECT - CAST ( 47 AS INTEGER ) * + - col0 + - + 65 AS col1 FROM tab0
----
4024
4494
640

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT ALL + 15 + - 74 + - COUNT( * ) FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL + 15 + - 74 + - COUNT ( * ) FROM tab0
----
-62

query I rowsort
SELECT 71 FROM tab2 WHERE + 73 IS NOT NULL
----
71
71
71

query I rowsort
SELECT - col0 + col0 * + - col2 AS col1 FROM tab0 AS cor0
----
-720
-957
-9700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4511
SELECT DISTINCT + MAX( + col1 ) DIV - 5 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT + MAX ( + col1 ) / - 5 FROM tab0 AS cor0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-4512
SELECT DISTINCT + col0 + 84 DIV + 55 AS col2 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-4512
SELECT DISTINCT + col0 + 84 / + 55 AS col2 FROM tab1 AS cor0
----
52
86
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4513
SELECT ALL + col2 + + - col0 + + ( + col1 ) DIV + col0 AS col2 FROM tab1
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL + col2 + + - col0 + + ( + col1 ) / + col0 AS col2 FROM tab1
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT - MIN( ALL - 39 ) AS col1 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-4514
SELECT - MIN ( ALL - 39 ) AS col1 FROM tab0
----
39

query III rowsort
SELECT * FROM tab0 WHERE - 16 * - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE col1 IS NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE - 72 IS NULL
----

query I rowsort
SELECT DISTINCT + ( - 68 ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-4519
SELECT + col1 - ( + + 8 ) DIV - - ( - col2 ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4519
SELECT + col1 - ( + + 8 ) / - - ( - col2 ) FROM tab1 AS cor0
----
14
47
5

query II rowsort
SELECT DISTINCT - col1, + 74 AS col0 FROM tab0 AS cor0
----
-1
74
-21
74
-81
74

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 48 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col2, - col2 AS col1 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

query I rowsort
SELECT - col2 * - + col0 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

query II rowsort
SELECT + col2 AS col2, col0 * - + 6 * - col1 * col1 + 13 FROM tab1 AS cor0
----
59
12763
68
1206127
96
59989

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 72 col0 FROM tab2 AS cor0
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT MIN( DISTINCT col1 ) * + + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4526
SELECT MIN ( DISTINCT col1 ) * + + COUNT ( * ) FROM tab0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4527
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT - CAST ( NULL AS REAL ) * - col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4528
SELECT ALL * FROM tab1 WHERE NOT + col2 BETWEEN - - CAST( + 10 AS SIGNED ) + + col0 * - 8 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4528
SELECT ALL * FROM tab1 WHERE NOT + col2 BETWEEN - - CAST ( + 10 AS INTEGER ) + + col0 * - 8 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 col0 FROM tab0
----
-63
-63
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4530
SELECT ALL - CAST( - SUM( ALL + col2 ) AS SIGNED ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL - CAST ( - SUM ( ALL + col2 ) AS INTEGER ) FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4532
SELECT + CAST( NULL AS SIGNED ) / + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT + CAST ( NULL AS INTEGER ) / + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4533
SELECT + CAST( - 82 AS SIGNED ) * col2, - 43 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-4533
SELECT + CAST ( - 82 AS INTEGER ) * col2, - 43 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( - col0 ) * + 79 FROM tab1
----
-4029
-6715
-7189

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT ALL + COUNT( * ) col2 FROM tab0 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-4535
SELECT ALL + COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL col2 * + 3 FROM tab2
----
120
174
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT ALL - - COUNT( + col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL - - COUNT ( + col2 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT + COUNT( * ) * + 43 FROM tab1 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-4538
SELECT + COUNT ( * ) * + 43 FROM tab1 AS cor0
----
129

query I rowsort
SELECT DISTINCT + col2 * col1 + + col0 FROM tab2 AS cor0
----
1219
3144
3961

query I rowsort
SELECT 20 FROM tab2 AS cor0 WHERE NULL IS NULL
----
20
20
20

query I rowsort
SELECT + col2 + - + col2 * col2 FROM tab2 AS cor0
----
-1560
-3306
-506

query I rowsort
SELECT col1 + + - 72 FROM tab0 AS cor0
----
-51
-71
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4543
SELECT + col2 + + CAST( NULL AS SIGNED ) * + ( - - ( + col0 ) ) + - - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4543
SELECT + col2 + + CAST ( NULL AS INTEGER ) * + ( - - ( + col0 ) ) + - - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 95 * - col0 + - ( + 29 ) AS col2 FROM tab1 AS cor0
----
-4874
-8104
-8674

onlyif mysql # DIV for integer division: 
query I rowsort label-4545
SELECT - col2 DIV + + col1 + - col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4545
SELECT - col2 / + + col1 + - col0 FROM tab2
----
-46
-64
-75

query II rowsort
SELECT DISTINCT 81 AS col0, - 98 AS col2 FROM tab1
----
81
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT ALL MAX( ALL - - col2 ) + - + COUNT( * ) col0 FROM tab2
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4547
SELECT ALL MAX ( ALL - - col2 ) + - + COUNT ( * ) col0 FROM tab2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4548
SELECT * FROM tab2 WHERE NULL > + CAST( col0 AS SIGNED ) + + - col1
----

skipif mysql # not compatible
query III rowsort label-4548
SELECT * FROM tab2 WHERE NULL > + CAST ( col0 AS INTEGER ) + + - col1
----

query I rowsort
SELECT DISTINCT col0 * - 8 AS col1 FROM tab0
----
-120
-696
-776

query II rowsort
SELECT - col0 AS col1, - 28 FROM tab1
----
-51
-28
-85
-28
-91
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4551
SELECT - col1 AS col2, CAST( + 2 AS SIGNED ) * + - col1 - - col2 + - + 26 FROM tab2 AS cor0
----
-51
-105
-67
-102
-77
-140

skipif mysql # not compatible
query II rowsort label-4551
SELECT - col1 AS col2, CAST ( + 2 AS INTEGER ) * + - col1 - - col2 + - + 26 FROM tab2 AS cor0
----
-51
-105
-67
-102
-77
-140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4552
SELECT COUNT( * ) DIV - 4 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4552
SELECT COUNT ( * ) / - 4 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4553
SELECT DISTINCT + 60 DIV col0 AS col2 FROM tab0 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-4553
SELECT DISTINCT + 60 / col0 AS col2 FROM tab0 AS cor0
----
0
4

query I rowsort
SELECT - + 8 * + ( + + 37 ) * + - 58 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fc7add11b195079d1966356a14494976

query I rowsort
SELECT 92 * - - 71 AS col2 FROM tab0 AS cor0
----
6532
6532
6532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4556
SELECT DISTINCT COUNT( DISTINCT col2 ) AS col0 FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT COUNT ( DISTINCT col2 ) AS col0 FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT 66 * - - 94 + - - col1 AS col1, 35 FROM tab1 AS cor0
----
6209
35
6218
35
6251
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT + ( + 97 ) * + + COUNT( * ) FROM tab1 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-4558
SELECT + ( + 97 ) * + + COUNT ( * ) FROM tab1 AS cor0
----
291

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 / col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4561
SELECT CAST( col0 AS SIGNED ) col0 FROM tab1 cor0 WHERE NOT + 67 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4561
SELECT CAST ( col0 AS INTEGER ) col0 FROM tab1 cor0 WHERE NOT + 67 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT + 60 * COUNT( * ) + - 13 AS col2 FROM tab2 cor0
----
167

skipif mysql # not compatible
query I rowsort label-4562
SELECT + 60 * COUNT ( * ) + - 13 AS col2 FROM tab2 cor0
----
167

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND + 76
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4564
SELECT ALL 79 * - - col2 * - CAST( col2 AS SIGNED ) AS col0, - col2 AS col0 FROM tab2
----
-126400
-40
-265756
-58
-41791
-23

skipif mysql # not compatible
query II rowsort label-4564
SELECT ALL 79 * - - col2 * - CAST ( col2 AS INTEGER ) AS col0, - col2 AS col0 FROM tab2
----
-126400
-40
-265756
-58
-41791
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT COUNT( ALL 91 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4565
SELECT COUNT ( ALL 91 ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4566
SELECT ( 84 ) * + + CAST( + col0 AS SIGNED ) FROM tab1
----
4284
7140
7644

skipif mysql # not compatible
query I rowsort label-4566
SELECT ( 84 ) * + + CAST ( + col0 AS INTEGER ) FROM tab1
----
4284
7140
7644

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

query II rowsort
SELECT 1, + col1 AS col2 FROM tab0
----
1
1
1
21
1
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT DISTINCT + MIN( ALL - 14 ) FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-4569
SELECT DISTINCT + MIN ( ALL - 14 ) FROM tab0
----
-14

query II rowsort
SELECT DISTINCT col0 AS col1, col2 + 66 FROM tab2
----
46
89
64
106
75
124

query II rowsort
SELECT col0, - col2 * + col2 AS col0 FROM tab0
----
15
-2209
87
-100
97
-9801

query II rowsort
SELECT - - 48, ( col0 ) AS col2 FROM tab0 AS cor0
----
48
15
48
87
48
97

query I rowsort
SELECT ALL - - col0 * + 35 AS col1 FROM tab1 AS cor0
----
1785
2975
3185

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - - 95
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 / 48 * col2 * - + ( col2 ) + + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT ALL - + MIN( ALL - 20 ) AS col0 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL - + MIN ( ALL - 20 ) AS col0 FROM tab1 AS cor0
----
20

query I rowsort
SELECT DISTINCT 65 * + col0 AS col2 FROM tab1
----
3315
5525
5915

query I rowsort
SELECT col1 - - 36 AS col2 FROM tab2 WHERE ( + col1 + col2 * 52 ) IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT 91 + COUNT( * ) AS col2 FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-4579
SELECT 91 + COUNT ( * ) AS col2 FROM tab2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT ALL + COUNT( * ) FROM tab2 WHERE NULL IN ( - 15 + - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NULL IN ( - 15 + - col0 )
----
0

query I rowsort
SELECT DISTINCT col2 * col2 + col1 AS col1 FROM tab1
----
3486
4671
9230

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4582
SELECT DISTINCT + 49 + - MIN( col2 - 61 * 75 ) DIV 3 AS col0 FROM tab0
----
1570

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT + 49 + - MIN ( col2 - 61 * 75 ) / 3 AS col0 FROM tab0
----
1570

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT col0 NOT IN ( 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT DISTINCT 13 + + COUNT( * ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-4584
SELECT DISTINCT 13 + + COUNT ( * ) FROM tab1
----
16

query I rowsort
SELECT DISTINCT - col1 / 5 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 col1 FROM tab1 WHERE NOT NULL < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT + MIN( ALL col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4587
SELECT + MIN ( ALL col0 ) AS col1 FROM tab1
----
51

query III rowsort
SELECT * FROM tab1 WHERE 26 + - col0 <> + 25
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 74 + col1 * - col1 ) > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT ( col2 ) + 82 * + col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND + 22 - 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT DISTINCT 48 * SUM( 71 ) AS col1 FROM tab2
----
10224

skipif mysql # not compatible
query I rowsort label-4592
SELECT DISTINCT 48 * SUM ( 71 ) AS col1 FROM tab2
----
10224

query I rowsort
SELECT col1 + - 73 FROM tab2
----
-22
-6
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 col2 FROM tab1 WHERE NOT - col1 * col2 IN ( + col0 )
----
-39
-39
-39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4595
SELECT DISTINCT * FROM tab1 WHERE NOT col0 IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4595
SELECT DISTINCT * FROM tab1 WHERE NOT col0 IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL col2 * ( + col0 ) AS col2 FROM tab1
----
4896
5015
6188

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 34 ) IN ( 58 + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 78 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 + 38 * col0 AS col1 FROM tab0
----
3316
3785
617

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 BETWEEN col0 + - 68 AND ( + col2 )
----
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 + col1 col0 FROM tab1
----
22
31
64

query I rowsort
SELECT ALL + col0 + + ( col1 ) FROM tab1
----
138
65
90

query I rowsort
SELECT DISTINCT col0 - - 7 FROM tab1
----
58
92
98

query I rowsort
SELECT + 62 + - 30 * + col1 AS col0 FROM tab0 cor0
----
-2368
-568
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT DISTINCT + 43 * MAX( + 39 * col0 ) AS col1 FROM tab0 AS cor0
----
162669

skipif mysql # not compatible
query I rowsort label-4605
SELECT DISTINCT + 43 * MAX ( + 39 * col0 ) AS col1 FROM tab0 AS cor0
----
162669

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4606
SELECT DISTINCT - MAX( CAST( NULL AS DECIMAL ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4606
SELECT DISTINCT - MAX ( CAST ( NULL AS REAL ) ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL 51 + - col0 AS col1 FROM tab1 AS cor0
----
-34
-40
0

query I rowsort
SELECT DISTINCT + col1 * 28 FROM tab1 AS cor0 WHERE NOT + 27 NOT IN ( - col1 * col0 )
----

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE ( col1 + + 63 ) IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT - 37 * + MIN( DISTINCT col0 ) FROM tab0
----
-555

skipif mysql # not compatible
query I rowsort label-4610
SELECT - 37 * + MIN ( DISTINCT col0 ) FROM tab0
----
-555

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 84 - ( + col2 ) * col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT DISTINCT + COUNT( * ) * + 90 FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT + COUNT ( * ) * + 90 FROM tab0
----
270

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4614
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4614
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4615
SELECT ALL 35 DIV col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4615
SELECT ALL 35 / col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 69 NOT IN ( col0 + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4617
SELECT DISTINCT - 12 DIV ( CAST( - COUNT( * ) AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT - 12 / ( CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
4

query I rowsort
SELECT 25 AS col2 FROM tab0 AS cor0 WHERE NOT ( - 59 * + col1 + col1 ) IS NULL
----
25
25
25

query I rowsort
SELECT + col2 * 20 AS col0 FROM tab2 AS cor0
----
1160
460
800

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT DISTINCT - 28 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-4621
SELECT DISTINCT - 28 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
84

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT ALL - COUNT( * ) * + - ( 54 ) FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL - COUNT ( * ) * + - ( 54 ) FROM tab0
----
162

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 < 16
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4625
SELECT CAST( ( + COUNT( * ) ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4625
SELECT CAST ( ( + COUNT ( * ) ) AS INTEGER ) FROM tab1
----
3

query I rowsort
SELECT ALL - col2 * + + col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IN ( - 88 )
----
0

skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IN ( - 88 )
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT 4 AS col1 FROM tab0 WHERE NOT ( NULL ) IN ( - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 BETWEEN ( NULL ) AND ( + col2 )
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4631
SELECT CAST( - COUNT( - col0 ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4631
SELECT CAST ( - COUNT ( - col0 ) AS INTEGER ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT ALL MAX( + 79 ) FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-4632
SELECT ALL MAX ( + 79 ) FROM tab2
----
79

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * - col1 BETWEEN NULL AND 63
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 74 NOT IN ( + 57 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4635
SELECT + col2 AS col2 FROM tab1 WHERE NOT - col2 - - CAST( NULL AS SIGNED ) / 87 IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4635
SELECT + col2 AS col2 FROM tab1 WHERE NOT - col2 - - CAST ( NULL AS INTEGER ) / 87 IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4636
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN + col2 AND - col0 * + 97
----

skipif mysql # not compatible
query III rowsort label-4636
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN + col2 AND - col0 * + 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT DISTINCT - MAX( + col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT - MAX ( + col0 ) AS col1 FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4638
SELECT ALL col2 + - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL col2 + - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL BETWEEN - 6 + col2 AND ( ( col2 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT 36 * SUM( ALL col0 ) AS col1 FROM tab0
----
7164

skipif mysql # not compatible
query I rowsort label-4641
SELECT 36 * SUM ( ALL col0 ) AS col1 FROM tab0
----
7164

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT - COUNT( * ) + + - 54 * + COUNT( * ) FROM tab1 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-4642
SELECT - COUNT ( * ) + + - 54 * + COUNT ( * ) FROM tab1 AS cor0
----
-165

query I rowsort
SELECT - - 43 + col2 AS col2 FROM tab0 AS cor0
----
142
53
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4644
SELECT - col2 DIV + + col2 + + + 94 FROM tab0 AS cor0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-4644
SELECT - col2 / + + col2 + + + 94 FROM tab0 AS cor0
----
93
93
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4645
SELECT + CAST( col0 AS DECIMAL ) * + col1 AS col0 FROM tab0 cor0 WHERE ( - 78 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4645
SELECT + CAST ( col0 AS REAL ) * + col1 AS col0 FROM tab0 cor0 WHERE ( - 78 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 / + col2 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IN ( ( - - col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4647
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IN ( ( - - col0 ) )
----
0

query I rowsort
SELECT - col2 + + col1 * + + col1 AS col1 FROM tab1
----
-34
100
2141

onlyif mysql # DIV for integer division: 
query I rowsort label-4649
SELECT DISTINCT col2 + + col2 DIV - 64 * - col0 * col1 AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4649
SELECT DISTINCT col2 + + col2 / - 64 * - col0 * col1 AS col0 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4650
SELECT DISTINCT COUNT( * ) - + - 56 + CAST( NULL AS SIGNED ) * + 42 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT COUNT ( * ) - + - 56 + CAST ( NULL AS INTEGER ) * + 42 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4651
SELECT ALL - 79 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL - 79 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 4 - - + 34 FROM tab0
----
38
38
38

query I rowsort
SELECT - + col0 * + - col2 - 40 FROM tab0 AS cor0
----
665
830
9563

onlyif mysql # DIV for integer division: 
query I rowsort label-4654
SELECT + + 8 DIV col0 - ( - col0 ) * col2 FROM tab2 AS cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-4654
SELECT + + 8 / col0 - ( - col0 ) * col2 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4655
SELECT DISTINCT ( + col1 ) * - + 61 - + col2 * - + ( - CAST( NULL AS SIGNED ) ) + - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4655
SELECT DISTINCT ( + col1 ) * - + 61 - + col2 * - + ( - CAST ( NULL AS INTEGER ) ) + - col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4656
SELECT DISTINCT 77 AS col1, SUM( - col0 ) FROM tab0 AS cor0
----
77
-199

skipif mysql # not compatible
query II rowsort label-4656
SELECT DISTINCT 77 AS col1, SUM ( - col0 ) FROM tab0 AS cor0
----
77
-199

query I rowsort
SELECT DISTINCT - 83 * 45 + - - col0 FROM tab2 AS cor0
----
-3660
-3671
-3689

query II rowsort
SELECT + + col2, + 39 AS col0 FROM tab0 AS cor0
----
10
39
47
39
99
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT + + COUNT( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4659
SELECT + + COUNT ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4660
SELECT ALL col2 + - 26 FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) - + col1 IS NULL
----
-3
14
32

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL col2 + - 26 FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) - + col1 IS NULL
----
-3
14
32

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN col2 AND + 40
----

query I rowsort
SELECT - col0 * + - 17 AS col2 FROM tab0 AS cor0
----
1479
1649
255

query I rowsort
SELECT ALL + - 13 FROM tab1 cor0
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 * - - col1 + col0 * + ( ( + col2 ) ) / 96 + 3 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 * - - col1 + col0 * + ( ( + col2 ) ) / 96 + 3 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT + COUNT( - col0 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4665
SELECT + COUNT ( - col0 ) FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4666
SELECT ALL CAST( NULL AS SIGNED ) col1 FROM tab1 WHERE NOT ( - ( + CAST( col2 AS SIGNED ) ) IS NOT NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4666
SELECT ALL CAST ( NULL AS INTEGER ) col1 FROM tab1 WHERE NOT ( - ( + CAST ( col2 AS INTEGER ) ) IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4667
SELECT ALL col2 DIV - ( + 44 ) AS col1 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL col2 / - ( + 44 ) AS col1 FROM tab1
----
-1
-1
-2

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT col2 + - - col2 <> col1 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( ( + 92 ) ) AS col2 FROM tab0
----
92

query I rowsort
SELECT ALL 65 * + - col0 AS col0 FROM tab0
----
-5655
-6305
-975

query I rowsort
SELECT ALL ( - 67 ) AS col2 FROM tab2
----
-67
-67
-67

query I rowsort
SELECT - 13 * 43 AS col0 FROM tab2
----
-559
-559
-559

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT ALL - - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE 51 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE 51 = NULL
----
0

query I rowsort
SELECT col2 / col0 FROM tab2 WHERE + 12 IN ( - 78 / + 30 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT DISTINCT - SUM( - - 53 ) FROM tab2 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT - SUM ( - - 53 ) FROM tab2 AS cor0
----
-159

query I rowsort
SELECT + - 10 AS col0 FROM tab0 AS cor0 WHERE NULL < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT MIN( - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4677
SELECT MIN ( - col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4678
SELECT DISTINCT + 47 + + ( + + 43 ) DIV col2 * col2 FROM tab2 cor0
----
47
70
87

skipif mysql # not compatible
query I rowsort label-4678
SELECT DISTINCT + 47 + + ( + + 43 ) / col2 * col2 FROM tab2 cor0
----
47
70
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT 53 - + COUNT( * ) * + + 49 FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-4679
SELECT 53 - + COUNT ( * ) * + + 49 FROM tab0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT ALL 58 + + + COUNT( * ) FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-4680
SELECT ALL 58 + + + COUNT ( * ) FROM tab0
----
61

query III rowsort
SELECT * FROM tab0 WHERE 21 + - col2 * + 51 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4682
SELECT col0 AS col1 FROM tab1 WHERE ( + - CAST( - - col1 AS SIGNED ) ) * + 0 IS NOT NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4682
SELECT col0 AS col1 FROM tab1 WHERE ( + - CAST ( - - col1 AS INTEGER ) ) * + 0 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT DISTINCT + MAX( + 36 ) AS col1 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-4683
SELECT DISTINCT + MAX ( + 36 ) AS col1 FROM tab1
----
36

query I rowsort
SELECT ALL col2 - - 1 FROM tab1
----
60
69
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT ( + 50 ) + - MIN( + col1 ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4685
SELECT ( + 50 ) + - MIN ( + col1 ) AS col2 FROM tab2
----
-1

query I rowsort
SELECT ALL col0 * - ( - + col1 ) - - + col1 AS col1 FROM tab0
----
1296
1848
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT - MIN( - 92 ) AS col2 FROM tab0 cor0
----
92

skipif mysql # not compatible
query I rowsort label-4687
SELECT - MIN ( - 92 ) AS col2 FROM tab0 cor0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4688
SELECT + 60 * CAST( NULL AS SIGNED ) * - 89 + - ( - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT 83 >= ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-4688
SELECT + 60 * CAST ( NULL AS INTEGER ) * - 89 + - ( - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT 83 >= ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 + - 55 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 64 * + col1 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + ( - col1 ) col0 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT 58 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 46 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT - - 7 * + col2 FROM tab1 AS cor0
----
413
476
672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4695
SELECT ALL - col1 FROM tab2 cor0 WHERE + CAST( NULL AS SIGNED ) IN ( col1 * + - col1 + - col1, + col1 + - col2 - - - col0 )
----

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL - col1 FROM tab2 cor0 WHERE + CAST ( NULL AS INTEGER ) IN ( col1 * + - col1 + - col1, + col1 + - col2 - - - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4696
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) * + - 73 FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-4696
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) * + - 73 FROM tab1 AS cor0
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT DISTINCT + MIN( ALL + 24 ) AS col0 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4697
SELECT DISTINCT + MIN ( ALL + 24 ) AS col0 FROM tab0 AS cor0
----
24

query II rowsort
SELECT - col0 * 56 + - ( + col2 ) AS col2, 79 AS col2 FROM tab0 AS cor0
----
-4882
79
-5531
79
-887
79

query I rowsort
SELECT col2 * - 94 FROM tab0
----
-4418
-9306
-940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - - col2 col0 FROM tab2
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT + COUNT( * ) * + - 43 FROM tab0
----
-129

skipif mysql # not compatible
query I rowsort label-4701
SELECT + COUNT ( * ) * + - 43 FROM tab0
----
-129

query I rowsort
SELECT DISTINCT + 31 AS col2 FROM tab2 WHERE NOT - 32 + col2 + col2 * + + col1 <= + col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT DISTINCT + MIN( - col2 ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT + MIN ( - col2 ) AS col1 FROM tab1
----
-96

query III rowsort
SELECT * FROM tab1 WHERE NOT 52 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT DISTINCT MAX( 9 ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4705
SELECT DISTINCT MAX ( 9 ) AS col0 FROM tab1
----
9

query II rowsort
SELECT DISTINCT - col2 AS col0, 95 * - col1 FROM tab0
----
-10
-1995
-47
-7695
-99
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4707
SELECT - + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4707
SELECT - + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

query II rowsort
SELECT - 83 AS col1, 59 AS col2 FROM tab2 AS cor0
----
-83
59
-83
59
-83
59

query II rowsort
SELECT col2 AS col0, 67 FROM tab0 AS cor0
----
10
67
47
67
99
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE - 93 + - - col0 > ( - + 85 * + + 84 * + 69 )
----
3

skipif mysql # not compatible
query I rowsort label-4710
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE - 93 + - - col0 > ( - + 85 * + + 84 * + 69 )
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT ALL - COUNT( * ) * - ( 24 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
216

skipif mysql # not compatible
query I rowsort label-4712
SELECT ALL - COUNT ( * ) * - ( 24 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
216

query I rowsort
SELECT + col0 + - 47 AS col1 FROM tab2 AS cor0
----
-1
17
28

onlyif mysql # DIV for integer division: 
query I rowsort label-4714
SELECT ALL 95 * col2 - + - 35 DIV + col0 col1 FROM tab0 AS cor0
----
4467
9405
950

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4714
SELECT ALL 95 * col2 - + - 35 / + col0 col1 FROM tab0 AS cor0
----
4467
9405
950

query I rowsort
SELECT + ( + 60 ) + - + col1 - + col0 AS col0 FROM tab0 AS cor0
----
-36
-38
-48

query I rowsort
SELECT DISTINCT + 49 * - - col0 AS col0 FROM tab2 AS cor0
----
2254
3136
3675

onlyif mysql # DIV for integer division: 
query I rowsort label-4717
SELECT DISTINCT - - col2 + + 19 DIV col1 FROM tab1 AS cor0
----
62
68
97

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT - - col2 + + 19 / col1 FROM tab1 AS cor0
----
62
68
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 8 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4719
SELECT DISTINCT + + CAST( + col0 AS SIGNED ) AS col2, - col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

skipif mysql # not compatible
query II rowsort label-4719
SELECT DISTINCT + + CAST ( + col0 AS INTEGER ) AS col2, - col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

query II rowsort
SELECT DISTINCT + col0 + + 69 AS col1, - col1 AS col2 FROM tab1
----
120
-14
154
-5
160
-47

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT 24 < NULL
----

query I rowsort
SELECT - + ( col1 ) * + - col0 * ( - + 46 ) * + col0 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4723
SELECT CAST( + col2 AS SIGNED ) * 39 AS col0 FROM tab1 AS cor0
----
2301
2652
3744

skipif mysql # not compatible
query I rowsort label-4723
SELECT CAST ( + col2 AS INTEGER ) * 39 AS col0 FROM tab1 AS cor0
----
2301
2652
3744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( ( 28 ) ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-28

query II rowsort
SELECT ALL col1, + 0 * + col2 * col1 AS col0 FROM tab1
----
14
0
47
0
5
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4726
SELECT + + 29 DIV + + 48 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4726
SELECT + + 29 / + + 48 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4727
SELECT ALL + SUM( ALL + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL + SUM ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4728
SELECT + CAST( + + col0 AS SIGNED ) col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4728
SELECT + CAST ( + + col0 AS INTEGER ) col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT ALL ( ( + COUNT( * ) ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL ( ( + COUNT ( * ) ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - ( - col0 ) * col0 AS col0 FROM tab0 cor0
----
225
7569
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + col1 col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT ALL 59 + - - 62 FROM tab0
----
121
121
121

query I rowsort
SELECT DISTINCT col2 + - 40 FROM tab0
----
-30
59
7

query II rowsort
SELECT 85 * + 6, + col2 AS col1 FROM tab1
----
510
59
510
68
510
96

query I rowsort
SELECT DISTINCT + col0 * - 0 * + 53 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT + 99 * + 86 + - MAX( + - col0 ) * + 4 * + ( + MIN( - col0 ) ) AS col1 FROM tab1 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4736
SELECT + 99 * + 86 + - MAX ( + - col0 ) * + 4 * + ( + MIN ( - col0 ) ) AS col1 FROM tab1 WHERE NULL > NULL
----
NULL

query I rowsort
SELECT ALL 77 + + + col2 AS col2 FROM tab2
----
100
117
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4738
SELECT - CAST( NULL AS SIGNED ) + + col2 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4738
SELECT - CAST ( NULL AS INTEGER ) + + col2 col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT DISTINCT MIN( col2 ) + + 42 FROM tab1
----
101

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT MIN ( col2 ) + + 42 FROM tab1
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-4740
SELECT ALL + 31 DIV 88 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4740
SELECT ALL + 31 / 88 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4741
SELECT - COUNT( * ), + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col1 + col1 - - + col1 >= NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-4741
SELECT - COUNT ( * ), + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col1 + col1 - - + col1 >= NULL
----
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 / + col0 IS NOT NULL
----

query I rowsort
SELECT - col2 * - + 58 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT col0 - col1 + col1 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT DISTINCT + MAX( + - col0 ) col2 FROM tab1 cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4745
SELECT DISTINCT + MAX ( + - col0 ) col2 FROM tab1 cor0
----
-51

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE ( + - 99 ) IS NOT NULL
----
46
64
75

query II rowsort
SELECT ALL + col1 AS col2, col2 AS col2 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT DISTINCT + MIN( + - col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT + MIN ( + - col2 ) FROM tab2
----
-58

query II rowsort
SELECT col2, + 68 AS col1 FROM tab1
----
59
68
68
68
96
68

query I rowsort
SELECT ALL 78 * - - col2 FROM tab2
----
1794
3120
4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - + col2 col2 FROM tab1
----
-1344
-295
-3196

query II rowsort
SELECT col2, - 22 AS col1 FROM tab2
----
23
-22
40
-22
58
-22

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - 49 )
----

query I rowsort
SELECT + + 23 FROM tab0 AS cor0 WHERE NOT - 51 IS NULL
----
23
23
23

query I rowsort
SELECT - ( - 65 ) FROM tab0 AS cor0
----
65
65
65

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + - col2 BETWEEN - + col0 + col2 + - col1 AND - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + 16, col0 AS col2 FROM tab2 AS cor0
----
16
46
16
64
16
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + 0 ) col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4759
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4759
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT DISTINCT ( + MAX( ALL - 70 ) ) AS col2 FROM tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT ( + MAX ( ALL - 70 ) ) AS col2 FROM tab2 AS cor0
----
-70

query I rowsort
SELECT ALL - ( - ( - col2 ) ) * + 57 + - 15 AS col1 FROM tab1 cor0
----
-3378
-3891
-5487

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4762
SELECT ( + + COUNT( * ) ) * + - MIN( - CAST( - col2 AS SIGNED ) ) FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-4762
SELECT ( + + COUNT ( * ) ) * + - MIN ( - CAST ( - col2 AS INTEGER ) ) FROM tab1 AS cor0
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT 3 * - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4763
SELECT 3 * - COUNT ( * ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT col2 + + col1 * + 65 FROM tab0 AS cor0
----
1375
164
5312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4765
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - col0 + + 81 + - 30 * - 42 * - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - col0 + + 81 + - 30 * - 42 * - col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - + 26 FROM tab1 AS cor0
----
-26
-26
-26

query II rowsort
SELECT ALL col1 * + + col2 + - col2 AS col2, col2 FROM tab0 AS cor0 WHERE - col2 / + col1 + - col2 IS NULL
----

query I rowsort
SELECT ALL + + col1 * + + 53 + - col2 AS col1 FROM tab2 AS cor0
----
2680
3493
4041

onlyif mysql # DIV for integer division: 
query I rowsort label-4769
SELECT DISTINCT col1 DIV + col1 + col1 AS col1 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT col1 / + col1 + col1 AS col1 FROM tab0 AS cor0
----
2
22
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4770
SELECT DISTINCT * FROM tab0 WHERE - CAST( NULL AS SIGNED ) + - 53 <= 81
----

skipif mysql # not compatible
query III rowsort label-4770
SELECT DISTINCT * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) + - 53 <= 81
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col1 * - - 40 BETWEEN + col0 AND - 27 + - 17
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4772
SELECT DISTINCT + 6 + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4772
SELECT DISTINCT + 6 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4773
SELECT + 23 + + - CAST( - + COUNT( DISTINCT + + col0 ) AS SIGNED ) * + 82 + MAX( + - col1 ) AS col0 FROM tab1
----
264

skipif mysql # not compatible
query I rowsort label-4773
SELECT + 23 + + - CAST ( - + COUNT ( DISTINCT + + col0 ) AS INTEGER ) * + 82 + MAX ( + - col1 ) AS col0 FROM tab1
----
264

query I rowsort
SELECT ALL + 74 * + col2 AS col2 FROM tab1
----
4366
5032
7104

query I rowsort
SELECT DISTINCT - - 10 FROM tab1 cor0
----
10

query I rowsort
SELECT ( ( + 25 ) ) AS col1 FROM tab1 AS cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT DISTINCT + MIN( 80 ) FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT + MIN ( 80 ) FROM tab0 AS cor0
----
80

query I rowsort
SELECT DISTINCT + 45 + + col2 FROM tab0 AS cor0
----
144
55
92

query I rowsort
SELECT + 22 FROM tab2 WHERE NULL < col2
----

query I rowsort
SELECT DISTINCT col0 - 58 AS col1 FROM tab0 AS cor0
----
-43
29
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT + 66 + - MAX( ALL + - col2 ) * + COUNT( * ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4781
SELECT + 66 + - MAX ( ALL + - col2 ) * + COUNT ( * ) FROM tab0 AS cor0
----
96

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT - col1 * col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT DISTINCT + COUNT( col0 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT + COUNT ( col0 ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4784
SELECT ALL ( + COUNT( CAST( col0 AS SIGNED ) ) ) AS col1, + 33 FROM tab2 AS cor0
----
3
33

skipif mysql # not compatible
query II rowsort label-4784
SELECT ALL ( + COUNT ( CAST ( col0 AS INTEGER ) ) ) AS col1, + 33 FROM tab2 AS cor0
----
3
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT ALL + COUNT( 78 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL + COUNT ( 78 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 40 * + - col1 FROM tab0
----
-3240
-40
-840

onlyif mysql # DIV for integer division: 
query I rowsort label-4787
SELECT + col2 DIV - 20 FROM tab0
----
-2
-4
0

skipif mysql # not compatible
query I rowsort label-4787
SELECT + col2 / - 20 FROM tab0
----
-2
-4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT DISTINCT + 11 * COUNT( * ) AS col1 FROM tab0 WHERE + + col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4788
SELECT DISTINCT + 11 * COUNT ( * ) AS col1 FROM tab0 WHERE + + col1 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT - - MIN( DISTINCT col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4789
SELECT - - MIN ( DISTINCT col2 ) FROM tab1 AS cor0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4790
SELECT ALL + - 98 DIV + col1 AS col1 FROM tab0 AS cor0
----
-1
-4
-98

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL + - 98 / + col1 AS col1 FROM tab0 AS cor0
----
-1
-4
-98

query I rowsort
SELECT DISTINCT - + col0 * 1 FROM tab1 cor0
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + + 56 ) * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * + + 71 FROM tab0 AS cor0 WHERE NOT NULL = + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4794
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * col2 < 80 / CAST( col0 AS SIGNED ) + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4794
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * col2 < 80 / CAST ( col0 AS INTEGER ) + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT DISTINCT + - SUM( DISTINCT col1 ) col1 FROM tab2 WHERE NOT - col0 < + - 50 + 1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4795
SELECT DISTINCT + - SUM ( DISTINCT col1 ) col1 FROM tab2 WHERE NOT - col0 < + - 50 + 1
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - - 32 col1 FROM tab0
----
131
42
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4797
SELECT ALL COUNT( DISTINCT ( CAST( NULL AS SIGNED ) ) ) col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4797
SELECT ALL COUNT ( DISTINCT ( CAST ( NULL AS INTEGER ) ) ) col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + ( - 84 ) * - col0 * - 91 FROM tab2 AS cor0
----
-351624
-489216
-573300

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE 61 <= - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> + col2
----

query II rowsort
SELECT 48 AS col0, + 32 + + 74 AS col0 FROM tab2 cor0
----
48
106
48
106
48
106

query I rowsort
SELECT ALL + col1 + - + 12 FROM tab2
----
39
55
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4803
SELECT DISTINCT 97 + - + col1 DIV col0 FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT 97 + - + col1 / col0 FROM tab1
----
97

query I rowsort
SELECT DISTINCT - col1 - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 73 )
----

query I rowsort
SELECT ALL - col2 + ( 80 ) + + col2 + + - col2 + - + 20 AS col2 FROM tab1
----
-36
-8
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 73 ) col2 FROM tab1
----
73
73
73

query I rowsort
SELECT - + ( 4 ) * col1 * - 68 - + col0 * + + col1 * - col1 * + ( - col0 ) + - 21 FROM tab2 WHERE + - ( col2 ) IS NOT NULL
----
-24264261
-25232422
-5489865

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4808
SELECT DISTINCT col2 AS col0, - col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-4808
SELECT DISTINCT col2 AS col0, - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4809
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + CAST( - + ( + col0 ) AS DECIMAL ) ) * - col0 / col2 + + col1 * + - 1 NOT IN ( - - ( ( + col0 ) ), + col0, - col0 + + - col0, - col0, - 75 )
----

skipif mysql # not compatible
query III rowsort label-4809
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + CAST ( - + ( + col0 ) AS REAL ) ) * - col0 / col2 + + col1 * + - 1 NOT IN ( - - ( ( + col0 ) ), + col0, - col0 + + - col0, - col0, - 75 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 32 ) col0 FROM tab2 AS cor0
----
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col0, 48 col2 FROM tab1 AS cor0
----
-51
48
-85
48
-91
48

query I rowsort
SELECT ALL + 64 * col1 AS col0 FROM tab2 AS cor0
----
3264
4288
4928

query II rowsort
SELECT - col0 * - col1, - ( col0 ) AS col2 FROM tab2
----
2346
-46
4928
-64
5025
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-4814
SELECT DISTINCT + 7 DIV + 89 * - col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4814
SELECT DISTINCT + 7 / + 89 * - col0 FROM tab1
----
0

query I rowsort
SELECT ALL - 79 * + + ( + - col1 ) FROM tab2
----
4029
5293
6083

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT DISTINCT SUM( ALL + col1 ) * COUNT( * ) AS col0 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-4816
SELECT DISTINCT SUM ( ALL + col1 ) * COUNT ( * ) AS col0 FROM tab1
----
198

query I rowsort
SELECT ALL - 67 - + col1 + - - 19 AS col0 FROM tab2 WHERE col0 + + - ( 32 ) NOT BETWEEN NULL AND - + col2
----
-115
-125
-99

query II rowsort
SELECT ALL 37 AS col2, + col0 AS col0 FROM tab0
----
37
15
37
87
37
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT - MAX( DISTINCT + ( col2 ) ) col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4819
SELECT - MAX ( DISTINCT + ( col2 ) ) col0 FROM tab2 AS cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - + col2 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * - - 22 + + - 66 AS col2 FROM tab1 AS cor0
----
-1188
-1936
-2068

query I rowsort
SELECT - col1 + + col0 + + col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT ALL + SUM( 30 ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL + SUM ( 30 ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 * + - 42 FROM tab0 AS cor0
----
3654
4074
630

query I rowsort
SELECT + 94 + col0 AS col0 FROM tab0 cor0
----
109
181
191

query I rowsort
SELECT - col2 * 92 + + + col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-2070
-3616
-5261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col1 col0 FROM tab1
----
10
28
94

query I rowsort
SELECT DISTINCT + col2 + + + ( col1 ) AS col2 FROM tab2
----
117
125
74

query I rowsort
SELECT ALL col2 - - - 6 AS col2 FROM tab0
----
4
41
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4830
SELECT ALL - 46 + - - CAST( NULL AS SIGNED ) / - - 27 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL - 46 + - - CAST ( NULL AS INTEGER ) / - - 27 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 - + 79 AS col0 FROM tab1 WHERE - - col1 * col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + + 37 col1 FROM tab2
----
104
114
88

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 + + 48 * 23 <> ( - - col2 * + col1 + + 87 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 - 46 FROM tab1
----
-32
-41
1

query III rowsort
SELECT * FROM tab2 WHERE 55 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 49 col0, col1 col2 FROM tab0 AS cor0
----
49
1
49
21
49
81

query II rowsort
SELECT ALL + col0 AS col2, col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4838
SELECT DISTINCT - CAST( + - MAX( DISTINCT - + col0 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4838
SELECT DISTINCT - CAST ( + - MAX ( DISTINCT - + col0 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-4839
SELECT DISTINCT + - col1 DIV + col1 AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4839
SELECT DISTINCT + - col1 / + col1 AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4840
SELECT DISTINCT + ( - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT + ( - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT SUM( ALL 64 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
576

skipif mysql # not compatible
query I rowsort label-4841
SELECT SUM ( ALL 64 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
576

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT - - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4842
SELECT - - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT DISTINCT - ( 88 ) FROM tab1, tab0 AS cor0
----
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT + + COUNT( + ( - 29 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4845
SELECT + + COUNT ( + ( - 29 ) ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT COUNT( ALL - + 22 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4846
SELECT COUNT ( ALL - + 22 ) AS col1 FROM tab2 AS cor0
----
3

query II rowsort
SELECT + + col2 * + 96 AS col0, 97 FROM tab0 cor0
----
4512
97
9504
97
960
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT + SUM( + col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4848
SELECT + SUM ( + col2 ) AS col0 FROM tab1 AS cor0
----
223

query II rowsort
SELECT - col1 AS col2, ( col0 ) + - col2 * + col1 AS col2 FROM tab0 AS cor0 WHERE NOT col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4850
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col0, 67 col1 FROM tab2 AS cor0
----
NULL
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4850
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col0, 67 col1 FROM tab2 AS cor0
----
NULL
67

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4852
SELECT ALL + - CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL + - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > + 3 - col1 + + col2 * 70 * + - ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4854
SELECT - 54 DIV - + 13 AS col0 FROM tab2
----
4
4
4

skipif mysql # not compatible
query I rowsort label-4854
SELECT - 54 / - + 13 AS col0 FROM tab2
----
4
4
4

query II rowsort
SELECT - 77, 32 * + 96 AS col2 FROM tab0
----
-77
3072
-77
3072
-77
3072

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <> col2
----

query II rowsort
SELECT ALL - 97 AS col1, 68 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4858
SELECT DISTINCT ( - - col1 ) + + - col1 DIV - + 43 col0 FROM tab0 AS cor0
----
1
21
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4858
SELECT DISTINCT ( - - col1 ) + + - col1 / - + 43 col0 FROM tab0 AS cor0
----
1
21
82

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col2 <> + - ( - - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 1 + - + col1, col2 FROM tab2
----
-50
23
-66
58
-76
40

query I rowsort
SELECT DISTINCT - 68 + - - col1 FROM tab1
----
-21
-54
-63

query I rowsort
SELECT DISTINCT ( - col1 ) AS col1 FROM tab2 WHERE NOT + 73 IS NOT NULL
----

query I rowsort
SELECT + + 52 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT + MIN( ALL + col0 ) * - 14 * - COUNT( * ) FROM tab2 AS cor0
----
1932

skipif mysql # not compatible
query I rowsort label-4864
SELECT + MIN ( ALL + col0 ) * - 14 * - COUNT ( * ) FROM tab2 AS cor0
----
1932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4865
SELECT DISTINCT - + 96 * + CAST( - - col2 AS SIGNED ) FROM tab1 AS cor0
----
-5664
-6528
-9216

skipif mysql # not compatible
query I rowsort label-4865
SELECT DISTINCT - + 96 * + CAST ( - - col2 AS INTEGER ) FROM tab1 AS cor0
----
-5664
-6528
-9216

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 AS cor0 WHERE NOT - 29 + 23 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * col0 * + ( - + col0 ) FROM tab2 AS cor0
----
-107916
-315392
-376875

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT DISTINCT + - ( - + COUNT( * ) ) * + 96 AS col0 FROM tab2 cor0
----
288

skipif mysql # not compatible
query I rowsort label-4868
SELECT DISTINCT + - ( - + COUNT ( * ) ) * + 96 AS col0 FROM tab2 cor0
----
288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * + col1 + - col1 col2 FROM tab1 AS cor0
----
-210
-2256
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-4870
SELECT DISTINCT ( col1 ) + col0 DIV col2 FROM tab0
----
1
29
81

skipif mysql # not compatible
query I rowsort label-4870
SELECT DISTINCT ( col1 ) + col0 / col2 FROM tab0
----
1
29
81

query I rowsort
SELECT col0 - + - col0 FROM tab2
----
128
150
92

query I rowsort
SELECT ALL 74 + + col1 * - 22 * + ( col2 ) + + col1 AS col2 FROM tab2
----
-25681
-67609
-85351

query I rowsort
SELECT col2 * - - 25 - + 86 * col0 AS col0 FROM tab0
----
-115
-5867
-7232

query I rowsort
SELECT 36 + - col0 FROM tab2
----
-10
-28
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4875
SELECT DISTINCT + + ( + - CAST( - ( - ( + + COUNT( * ) ) ) AS SIGNED ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4875
SELECT DISTINCT + + ( + - CAST ( - ( - ( + + COUNT ( * ) ) ) AS INTEGER ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4876
SELECT + - 10 + - 73 / - + CAST( + col0 AS SIGNED ) + - + 88, col2 + + col0 AS col1 FROM tab1 cor0 WHERE NULL = col2 + - - col2
----

skipif mysql # not compatible
query II rowsort label-4876
SELECT + - 10 + - 73 / - + CAST ( + col0 AS INTEGER ) + - + 88, col2 + + col0 AS col1 FROM tab1 cor0 WHERE NULL = col2 + - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 18 * + col1 * - 55 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4877
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 18 * + col1 * - 55 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT + COUNT( * ) * - - COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4878
SELECT + COUNT ( * ) * - - COUNT ( * ) FROM tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, - ( col2 ) col1 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

query II rowsort
SELECT DISTINCT + - 46, + col2 + col1 AS col2 FROM tab1 AS cor0
----
-46
110
-46
115
-46
64

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - + col2 ) IS NOT NULL
----

query II rowsort
SELECT + - 9 AS col0, col2 FROM tab2 AS cor0
----
-9
23
-9
40
-9
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 59 col2 FROM tab2 AS cor0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT + - COUNT( * ) * + - COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4884
SELECT + - COUNT ( * ) * + - COUNT ( * ) FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4886
SELECT COUNT( * ) DIV 80 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4886
SELECT COUNT ( * ) / 80 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT COUNT( * ) * - + ( 21 ) AS col1 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-4887
SELECT COUNT ( * ) * - + ( 21 ) AS col1 FROM tab0
----
-63

query I rowsort
SELECT col1 + ( col1 ) + + col2 AS col2 FROM tab2
----
125
192
194

query I rowsort
SELECT ALL - 8 * + - col2 * - - 85 * - col2 AS col2 FROM tab0 cor0
----
-1502120
-6664680
-68000

query I rowsort
SELECT DISTINCT + + col1 FROM tab2 AS cor0 WHERE NOT + 80 < + - 60
----
51
67
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND - + 8 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 84 + + 37 FROM tab0 AS cor0
----
121
121
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 + + 27 col0 FROM tab0 AS cor0
----
71
71
71

query I rowsort
SELECT + + col2 + - - col1 AS col2 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4895
SELECT DISTINCT + col0 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT + col0 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 26 + - 11 - - col1 - 45 FROM tab1 AS cor0
----
-16
-25
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4897
SELECT col2 + + col1 * CAST( - + col1 AS SIGNED ) FROM tab2 AS cor0
----
-2578
-4431
-5889

skipif mysql # not compatible
query I rowsort label-4897
SELECT col2 + + col1 * CAST ( - + col1 AS INTEGER ) FROM tab2 AS cor0
----
-2578
-4431
-5889

query I rowsort
SELECT + col0 / + + col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - 36 FROM tab1 WHERE - ( + col1 ) IS NOT NULL
----
-36
-36
-36

query III rowsort
SELECT * FROM tab2 WHERE NULL >= 8
----

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE + + col1 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - 2 + col1 FROM tab2
----
49
65
75

query I rowsort
SELECT ALL 56 - + 83 - col1 FROM tab1
----
-32
-41
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT SUM( ALL + col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-4904
SELECT SUM ( ALL + col0 ) FROM tab1 AS cor0
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4905
SELECT + CAST( NULL AS SIGNED ) * 29 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4905
SELECT + CAST ( NULL AS INTEGER ) * 29 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col0 * + col2 AS col1, col1 AS col2 FROM tab2 AS cor0
----
-1058
51
-2560
77
-4350
67

query I rowsort
SELECT ( + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

query I rowsort
SELECT - 19 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4909
SELECT DISTINCT + col0, + col0 * 26 * CAST( NULL AS SIGNED ) / col0 + + col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-4909
SELECT DISTINCT + col0, + col0 * 26 * CAST ( NULL AS INTEGER ) / col0 + + col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT + 8 * - + MAX( + + 29 ) * + COUNT( * ) AS col2 FROM tab0
----
-696

skipif mysql # not compatible
query I rowsort label-4911
SELECT + 8 * - + MAX ( + + 29 ) * + COUNT ( * ) AS col2 FROM tab0
----
-696

onlyif mysql # aggregate syntax: 
query II rowsort label-4912
SELECT ( MIN( + 66 ) ) col2, + 46 FROM tab0
----
66
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4912
SELECT ( MIN ( + 66 ) ) col2, + 46 FROM tab0
----
66
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col0 / + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT + COUNT( DISTINCT - - 23 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4914
SELECT + COUNT ( DISTINCT - - 23 ) FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, + col2 AS col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT ALL - SUM( DISTINCT + col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL - SUM ( DISTINCT + col0 ) FROM tab0 AS cor0
----
-199

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 - col1 = - - col1 * - - 8
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4918
SELECT DISTINCT col0 DIV - 71 AS col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT col0 / - 71 AS col2 FROM tab2 AS cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4919
SELECT ALL + + CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL + + CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT - SUM( ( + col0 ) ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4920
SELECT - SUM ( ( + col0 ) ) FROM tab2
----
-185

query I rowsort
SELECT DISTINCT col0 + + + col2 AS col2 FROM tab0
----
196
62
97

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > - - col0 * + col0 + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4923
SELECT ALL CAST( NULL AS SIGNED ) - + COUNT( * ) FROM tab2, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL CAST ( NULL AS INTEGER ) - + COUNT ( * ) FROM tab2, tab0 AS cor0
----
NULL

query I rowsort
SELECT - 73 * 19 * col2 FROM tab1
----
-133152
-81833
-94316

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT + 22 * COUNT( * ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-4925
SELECT + 22 * COUNT ( * ) FROM tab2
----
66

query I rowsort
SELECT ALL - 91 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-91
-91
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4927
SELECT ALL + - 52 * - + MAX( 90 ) / 54 + MAX( - col2 ) / + 34 / + - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4927
SELECT ALL + - 52 * - + MAX ( 90 ) / 54 + MAX ( - col2 ) / + 34 / + - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( NOT 62 * + 26 * 20 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4929
SELECT 14 * - 51 - - + MIN( + - col0 ) + - + ( 60 ) DIV + - MAX( - - col2 ) FROM tab2 AS cor0
----
-788

skipif mysql # not compatible
query I rowsort label-4929
SELECT 14 * - 51 - - + MIN ( + - col0 ) + - + ( 60 ) / + - MAX ( - - col2 ) FROM tab2 AS cor0
----
-788

query I rowsort
SELECT - col1 + + + col2 AS col2 FROM tab1
----
21
54
82

query I rowsort
SELECT ALL - 35 + col1 FROM tab1
----
-21
-30
12

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) <> - ( + 44 )
----

query I rowsort
SELECT DISTINCT col1 - + - col2 FROM tab0
----
100
128
31

query I rowsort
SELECT ALL + 67 * - col0 * + + col2 FROM tab2
----
-171520
-291450
-70886

query I rowsort
SELECT + - 54 * + col2 FROM tab0 AS cor0
----
-2538
-5346
-540

onlyif mysql # aggregate syntax: 
query II rowsort label-4936
SELECT - + 0, MAX( ALL col0 ) AS col1 FROM tab2 AS cor0
----
0
75

skipif mysql # not compatible
query II rowsort label-4936
SELECT - + 0, MAX ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
0
75

query I rowsort
SELECT - 99 * - - 24 * - + 5 FROM tab2
----
11880
11880
11880

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT DISTINCT + ( + + COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT + ( + + COUNT ( * ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + 14 AS col1 FROM tab2 cor0
----
14
14
14

query I rowsort
SELECT + 65 + - col1 + - col2 AS col1 FROM tab2
----
-52
-60
-9

query I rowsort
SELECT DISTINCT - 19 * + + 77 * col2 * - + col0 FROM tab1 WHERE - ( + col2 ) * + 74 < NULL
----

query I rowsort
SELECT ALL col1 + + + col1 + - - col2 FROM tab1
----
124
162
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT ALL + COUNT( - - col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL + COUNT ( - - col0 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT - SUM( ALL + - 86 ) AS col2 FROM tab1 WHERE - - col1 BETWEEN NULL AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4944
SELECT - SUM ( ALL + - 86 ) AS col2 FROM tab1 WHERE - - col1 BETWEEN NULL AND + col0
----
NULL

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE + col1 <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT MAX( + 58 ) FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4946
SELECT MAX ( + 58 ) FROM tab0 AS cor0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4947
SELECT - 40 DIV - col0 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4947
SELECT - 40 / - col0 FROM tab0 AS cor0
----
0
0
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4948
SELECT DISTINCT + 29 + - CAST( 2 AS SIGNED ) DIV col0 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-4948
SELECT DISTINCT + 29 + - CAST ( 2 AS INTEGER ) / col0 FROM tab1
----
29

query I rowsort
SELECT - 38 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT DISTINCT MIN( DISTINCT + 26 ) FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT MIN ( DISTINCT + 26 ) FROM tab1 AS cor0
----
26

onlyif mysql # DIV for integer division: 
query II rowsort label-4951
SELECT 31 + + 33 + - - col1 DIV + + col2 AS col0, 66 FROM tab0 AS cor0
----
64
66
65
66
66
66

skipif mysql # not compatible
query II rowsort label-4951
SELECT 31 + + 33 + - - col1 / + + col2 AS col0, 66 FROM tab0 AS cor0
----
64
66
65
66
66
66

query II rowsort
SELECT DISTINCT col2, + 70 * + col1 FROM tab1 cor0
----
59
350
68
3290
96
980

query I rowsort
SELECT 71 * - col1 FROM tab1 AS cor0 WHERE NULL = NULL
----

query II rowsort
SELECT ALL 27 AS col0, ( - - ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
27
15
27
87
27
97

query II rowsort
SELECT + ( + 14 ) * + col0 + + col0, - col1 AS col1 FROM tab1 AS cor0
----
1275
-5
1365
-47
765
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT ALL MIN( - - col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL MIN ( - - col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + ( 4 ) col1 FROM tab2 AS cor0
----
-42
-60
-71

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 BETWEEN NULL AND - 50
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4959
SELECT DISTINCT MAX( - + col0 ) + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4959
SELECT DISTINCT MAX ( - + col0 ) + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + 21 + 16 col1 FROM tab1 cor0
----
-278
-89
-971

query I rowsort
SELECT ALL + - col0 * + - 8 * - - 82 + + + 32 + col0 AS col0 FROM tab0 AS cor0
----
57191
63761
9887

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT DISTINCT - + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 62 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4962
SELECT DISTINCT - + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 62 IS NULL
----
-3

query I rowsort
SELECT DISTINCT - + ( + col0 ) AS col1 FROM tab0 WHERE NOT 55 NOT IN ( - 21, - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 col1 FROM tab2, tab2 AS cor0
----
33

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 45 * + + col2 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT 32 + + - col2 BETWEEN + col2 AND NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4967
SELECT + col1 DIV + + col1 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4967
SELECT + col1 / + + col1 AS col2 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT 46 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT DISTINCT - COUNT( * ) * + + COUNT( - 16 ) - - - 16 AS col1 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-4969
SELECT DISTINCT - COUNT ( * ) * + + COUNT ( - 16 ) - - - 16 AS col1 FROM tab2 AS cor0
----
-25

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 36 <> NULL
----

query II rowsort
SELECT ALL col2 AS col2, 97 AS col2 FROM tab0 AS cor0
----
10
97
47
97
99
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4972
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) * - - 31 col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4972
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) * - - 31 col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 1 AS col2 FROM tab2 AS cor0 WHERE - col0 * ( col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 2 col0 FROM tab0 AS cor0
----
2
2
2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + col0 / col2 * col1 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4976
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT ( - + COUNT( * ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4977
SELECT ( - + COUNT ( * ) ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT col0 * + + col1 + - col1 FROM tab1
----
420
4230
700

query I rowsort
SELECT - ( - - 64 ) / + - 13 FROM tab0 WHERE + col2 IS NULL
----

query I rowsort
SELECT 19 * + + 70 AS col1 FROM tab1
----
1330
1330
1330

query I rowsort
SELECT ALL ( - col1 ) * + 79 FROM tab1
----
-1106
-3713
-395

query I rowsort
SELECT ALL col1 - ( col1 ) + col0 + + 9 FROM tab2
----
55
73
84

onlyif mysql # DIV for integer division: 
query I rowsort label-4983
SELECT + - col2 DIV - col2 + - + col0 + col2 + col1 col2 FROM tab2 AS cor0
----
29
51
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4983
SELECT + - col2 / - col2 + - + col0 + col2 + col1 col2 FROM tab2 AS cor0
----
29
51
54

query I rowsort
SELECT - + 68 * + - col0 + - col2 AS col2 FROM tab2 AS cor0
----
3105
4312
5042

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT - + 53 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT DISTINCT col2 - + 27 FROM tab2
----
-4
13
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4988
SELECT - + CAST( + + SUM( + - 45 ) AS SIGNED ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
405

skipif mysql # not compatible
query I rowsort label-4988
SELECT - + CAST ( + + SUM ( + - 45 ) AS INTEGER ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
405

query II rowsort
SELECT DISTINCT col2 * - col2 + - - col2, + 22 AS col0 FROM tab1
----
-3422
22
-4556
22
-9120
22

query I rowsort
SELECT - col0 FROM tab0 cor0 WHERE - col1 / - col2 NOT BETWEEN - 79 * - col2 * 37 * - ( - 82 ) AND NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + 86 AS col0 FROM tab1 cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT + + COUNT( * ) FROM tab1 AS cor0 WHERE NULL < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4992
SELECT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL < ( NULL )
----
0

query I rowsort
SELECT ALL + col1 - - 30 FROM tab1 AS cor0
----
35
44
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT DISTINCT + COUNT( DISTINCT col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4994
SELECT DISTINCT + COUNT ( DISTINCT col0 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - - 5 * 85 + - ( - col2 ) AS col2 FROM tab1 AS cor0
----
484
493
521

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4997
SELECT DISTINCT COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4997
SELECT DISTINCT COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4998
SELECT COUNT( * ), + COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4998
SELECT COUNT ( * ), + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 NOT IN ( col2, + col0 + - 62, col2, + ( - + ( col1 ) ) * + 34 * - col1 + + - col1 )
----

query I rowsort
SELECT + col0 * - + 93 FROM tab1
----
-4743
-7905
-8463

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT - ( MAX( - 14 ) ) FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-5001
SELECT - ( MAX ( - 14 ) ) FROM tab0
----
14

query II rowsort
SELECT col1, col1 * 40 * col1 * + ( - 64 ) AS col2 FROM tab1
----
14
-501760
47
-5655040
5
-64000

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NULL < col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5004
SELECT - MIN( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5004
SELECT - MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 * + col0 * - 99 + - col2 * + + 59 AS col0 FROM tab1 AS cor0
----
38594
419411
65022

query I rowsort
SELECT col2 * + ( - - col1 ) + - col1 AS col1 FROM tab1 AS cor0
----
1330
290
3149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5007
SELECT ( - + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN - 80 AND - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5007
SELECT ( - + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN - 80 AND - - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT DISTINCT COUNT( * ) * - 24 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT COUNT ( * ) * - 24 FROM tab1 AS cor0
----
-72

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 * 21 = NULL
----

query II rowsort
SELECT ALL - col1 * col2 AS col2, - ( col2 ) * + - 55 * + ( - col0 ) - - - col0 + - col0 * ( - col0 ) FROM tab0 AS cor0
----
-210
-40368
-3807
-38565
-99
-518853

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5011
SELECT - ( - COUNT( * ) ) + + MAX( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5011
SELECT - ( - COUNT ( * ) ) + + MAX ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * - - col0 * + col0 + - ( col0 ) FROM tab2 AS cor0
----
163776
326175
48622

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5013
SELECT - CAST( - col0 AS DECIMAL ) col1 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5013
SELECT - CAST ( - col0 AS REAL ) col1 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT + COUNT( * ) + + COUNT( DISTINCT col2 ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5014
SELECT + COUNT ( * ) + + COUNT ( DISTINCT col2 ) FROM tab1 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 96 * col1, + col2 * - + col1 col0 FROM tab2 AS cor0
----
-4896
-1173
-6432
-3886
-7392
-3080

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE - 14 IS NULL
----

query I rowsort
SELECT ALL 80 * + + 58 + - + ( + 38 ) + 31 FROM tab1 AS cor0
----
4633
4633
4633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5018
SELECT CAST( col2 AS SIGNED ) + - col1 + - 17 + + - col1 AS col1 FROM tab1
----
-43
32
51

skipif mysql # not compatible
query I rowsort label-5018
SELECT CAST ( col2 AS INTEGER ) + - col1 + - 17 + + - col1 AS col1 FROM tab1
----
-43
32
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5019
SELECT col2 DIV + + 28 + + col2 FROM tab2
----
23
41
60

skipif mysql # not compatible
query I rowsort label-5019
SELECT col2 / + + 28 + + col2 FROM tab2
----
23
41
60

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 <= + - 1 * + - ( - 5 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT DISTINCT + - COUNT( * ) FROM tab1 WHERE NOT + + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT + - COUNT ( * ) FROM tab1 WHERE NOT + + col1 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT + ( col2 ) + + - col1 AS col1, col0 FROM tab2
----
-28
46
-37
64
-9
75

query III rowsort
SELECT * FROM tab0 WHERE NULL < + - 29
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 20 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT DISTINCT - COUNT( * ) * - ( - + 34 ) AS col1 FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-5025
SELECT DISTINCT - COUNT ( * ) * - ( - + 34 ) AS col1 FROM tab2
----
-102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 * - col1 * + col0 - - - col0 - - 0 col2 FROM tab1 AS cor0
----
-12410
-124124
-20757

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5027
SELECT DISTINCT - col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5027
SELECT DISTINCT - col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + 13 >= ( - col2 )
----

query I rowsort
SELECT 23 FROM tab2 WHERE ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT ALL ( COUNT( * ) ) + + 65 col2 FROM tab0
----
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5030
SELECT ALL ( COUNT ( * ) ) + + 65 col2 FROM tab0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5031
SELECT DISTINCT col1 DIV - 16 FROM tab2
----
-3
-4

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT col1 / - 16 FROM tab2
----
-3
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5032
SELECT + CAST( - col2 AS SIGNED ) + 74 AS col1 FROM tab1
----
-22
15
6

skipif mysql # not compatible
query I rowsort label-5032
SELECT + CAST ( - col2 AS INTEGER ) + 74 AS col1 FROM tab1
----
-22
15
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 * ( - ( col0 ) ) col1 FROM tab2
----
-2065
-4019
-5558

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT + 87 * COUNT( - col2 ) FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-5034
SELECT + 87 * COUNT ( - col2 ) FROM tab0
----
261

query I rowsort
SELECT ALL col0 + + 83 AS col2 FROM tab1
----
134
168
174

query III rowsort
SELECT * FROM tab1 WHERE + 80 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND - 51
----

query I rowsort
SELECT col2 * + col0 + col1 AS col1 FROM tab2
----
1109
2637
4417

query I rowsort
SELECT + col0 * 68 + + col1 FROM tab2 WHERE NULL BETWEEN ( NULL ) AND ( 38 * 66 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 + col0 col2 FROM tab0
----
-690
-783
-9506

query I rowsort
SELECT DISTINCT + ( + 46 ) FROM tab2
----
46

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5042
SELECT * FROM tab0 WHERE NULL NOT BETWEEN 30 + CAST( - col2 + + col1 AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5042
SELECT * FROM tab0 WHERE NULL NOT BETWEEN 30 + CAST ( - col2 + + col1 AS REAL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN ( 91 + + col0 ) AND NULL
----

query I rowsort
SELECT - 96 * 57 + + col0 FROM tab1
----
-5381
-5387
-5421

query I rowsort
SELECT col0 FROM tab2 WHERE 94 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT DISTINCT + COUNT( * ) + - 43 AS col2 FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-5046
SELECT DISTINCT + COUNT ( * ) + - 43 AS col2 FROM tab0
----
-40

query I rowsort
SELECT DISTINCT - col1 + - 29 FROM tab2
----
-106
-80
-96

query I rowsort
SELECT DISTINCT - 53 / col2 FROM tab1 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 - col0 * col0 AS col2 FROM tab1
----
-2615
-7230
-8328

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT DISTINCT - 38 * - 75 + + MIN( 48 ) AS col1 FROM tab0
----
2898

skipif mysql # not compatible
query I rowsort label-5051
SELECT DISTINCT - 38 * - 75 + + MIN ( 48 ) AS col1 FROM tab0
----
2898

query I rowsort
SELECT col2 + 75 FROM tab0
----
122
174
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT 97 + COUNT( * ) AS col0 FROM tab2
----
100

skipif mysql # not compatible
query I rowsort label-5053
SELECT 97 + COUNT ( * ) AS col0 FROM tab2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT COUNT( * ) + COUNT( * ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5054
SELECT COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5055
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( col2 ) BETWEEN 11 * + ( col2 ) AND ( + col2 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5055
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( col2 ) BETWEEN 11 * + ( col2 ) AND ( + col2 )
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( 93 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 NOT IN ( + 0 + 82 / - col1 )
----

query I rowsort
SELECT - col0 * - col1 + - col0 FROM tab1
----
340
4186
663

query I rowsort
SELECT DISTINCT - col0 * 87 AS col0 FROM tab2 AS cor0
----
-4002
-5568
-6525

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 18 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5062
SELECT * FROM tab1 AS cor0 WHERE col2 + col0 BETWEEN CAST( + col2 AS SIGNED ) AND + col1
----

skipif mysql # not compatible
query III rowsort label-5062
SELECT * FROM tab1 AS cor0 WHERE col2 + col0 BETWEEN CAST ( + col2 AS INTEGER ) AND + col1
----

query I rowsort
SELECT ALL 35 * - col1 FROM tab2 AS cor0
----
-1785
-2345
-2695

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( ( + col2 ) ) + - col1 * col1 NOT IN ( - 37 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( ( 59 ) / col0 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT DISTINCT + - MIN( col2 ) + COUNT( * ) FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-5067
SELECT DISTINCT + - MIN ( col2 ) + COUNT ( * ) FROM tab0 AS cor0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5068
SELECT - COUNT( * ) / MAX( ALL CAST( NULL AS SIGNED ) ) FROM tab2 cor0 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5068
SELECT - COUNT ( * ) / MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2 cor0 WHERE - col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT DISTINCT - SUM( 79 ) + - ( - ( + COUNT( * ) ) ) FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-234

skipif mysql # not compatible
query I rowsort label-5069
SELECT DISTINCT - SUM ( 79 ) + - ( - ( + COUNT ( * ) ) ) FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-234

query I rowsort
SELECT DISTINCT col2 - + col2 AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL col1 * - 20 + col0 * col2 AS col1 FROM tab1
----
4616
4915
5248

query I rowsort
SELECT DISTINCT + 0 FROM tab0 WHERE + col1 IS NULL OR - col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5073
SELECT MIN( + col1 ) * - CAST( NULL AS SIGNED ) - + AVG ( 91 - col0 * col1 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5073
SELECT MIN ( + col1 ) * - CAST ( NULL AS INTEGER ) - + AVG ( 91 - col0 * col1 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col0 + - + 32 * col2 FROM tab2
----
-1344
-1931
-782

onlyif mysql # DIV for integer division: 
query I rowsort label-5075
SELECT DISTINCT - col2 DIV + 81 AS col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-5075
SELECT DISTINCT - col2 / + 81 AS col0 FROM tab1
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN col0 AND NULL
----

query I rowsort
SELECT ( col1 ) + 90 FROM tab1
----
104
137
95

query I rowsort
SELECT col2 FROM tab2 WHERE col1 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT ( + - ( - 73 ) ) * 20 AS col2 FROM tab0 cor0
----
1460

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5080
SELECT + - col1 DIV CAST( col1 AS SIGNED ) * - col0 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-5080
SELECT + - col1 / CAST ( col1 AS INTEGER ) * - col0 col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT ALL - 1 + + 32 - - - col0 * - 95 * + 35 AS col0 FROM tab2
----
152981
212831
249406

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5082
SELECT * FROM tab0 WHERE NULL <= ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5082
SELECT * FROM tab0 WHERE NULL <= ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col2 * + + col2 AS col2 FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5084
SELECT + 1 DIV COUNT( ALL 30 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-5084
SELECT + 1 / COUNT ( ALL 30 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5085
SELECT ALL 73 DIV - - 72 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL 73 / - - 72 FROM tab2
----
1
1
1

query III rowsort
SELECT * FROM tab2 WHERE NOT 26 BETWEEN + 15 AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 ) BETWEEN col1 AND NULL
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT ALL - COUNT( + + col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL - COUNT ( + + col1 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5089
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( - col2 AS SIGNED ) + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5089
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( - col2 AS INTEGER ) + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5090
SELECT + + 79, SUM( ALL + + col0 ) AS col0 FROM tab2 cor0
----
79
185

skipif mysql # not compatible
query II rowsort label-5090
SELECT + + 79, SUM ( ALL + + col0 ) AS col0 FROM tab2 cor0
----
79
185

query I rowsort
SELECT - col1 * - 4 AS col2 FROM tab0 AS cor0
----
324
4
84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5092
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5092
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT 49 * 88 AS col2 FROM tab0 AS cor0
----
4312
4312
4312

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT DISTINCT - MIN( - col2 ) col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5094
SELECT DISTINCT - MIN ( - col2 ) col1 FROM tab2 AS cor0
----
58

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( + 58 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - col1 * + - col0 * - + col0 AS col1 FROM tab1 AS cor0
----
-36125
-36414
-389207

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT - MIN( DISTINCT + ( + col0 ) ) * - 91 AS col0 FROM tab0 AS cor0
----
1365

skipif mysql # not compatible
query I rowsort label-5097
SELECT - MIN ( DISTINCT + ( + col0 ) ) * - 91 AS col0 FROM tab0 AS cor0
----
1365

query II rowsort
SELECT - col2, 65 AS col2 FROM tab2 cor0
----
-23
65
-40
65
-58
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5099
SELECT + + ( + col2 ) / 95 * CAST( NULL AS SIGNED ) - col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5099
SELECT + + ( + col2 ) / 95 * CAST ( NULL AS INTEGER ) - col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT 92 * - - COUNT( * ) FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-5100
SELECT 92 * - - COUNT ( * ) FROM tab1
----
276

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 <= - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + - 16 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 96 FROM tab1 WHERE + + 80 NOT BETWEEN + 11 AND - 36
----
96

query I rowsort
SELECT ALL - ( + col2 ) + + - 19 FROM tab0 AS cor0
----
-118
-29
-66

query II rowsort
SELECT DISTINCT 65 + + col1 + - col1, 32 AS col0 FROM tab2
----
65
32

query I rowsort
SELECT - 73 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 + + col1 IN ( + - col0 + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5108
SELECT DISTINCT CAST( col2 AS SIGNED ) AS col1 FROM tab1 WHERE NOT ( + + col2 + - 34 + + col2 ) NOT BETWEEN ( col2 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-5108
SELECT DISTINCT CAST ( col2 AS INTEGER ) AS col1 FROM tab1 WHERE NOT ( + + col2 + - 34 + + col2 ) NOT BETWEEN ( col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5109
SELECT - MIN( DISTINCT + 24 ) + + - COUNT( * ) AS col0, + COUNT( - col0 ) FROM tab2 AS cor0
----
-27
3

skipif mysql # not compatible
query II rowsort label-5109
SELECT - MIN ( DISTINCT + 24 ) + + - COUNT ( * ) AS col0, + COUNT ( - col0 ) FROM tab2 AS cor0
----
-27
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5110
SELECT - 3 + + COUNT( ALL + ( - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5110
SELECT - 3 + + COUNT ( ALL + ( - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5111
SELECT ALL + - col1 * - col0 + - col1 * + col2 DIV - - col2 FROM tab1 AS cor0
----
420
4230
700

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL + - col1 * - col0 + - col1 * + col2 / - - col2 FROM tab1 AS cor0
----
420
4230
700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col0, 60 * - col0 col0 FROM tab2 AS cor0
----
51
-2760
67
-4500
77
-3840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5113
SELECT DISTINCT CAST( + 13 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT CAST ( + 13 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
13

query I rowsort
SELECT DISTINCT + 96 + + col1 FROM tab1 AS cor0
----
101
110
143

query II rowsort
SELECT DISTINCT - 91, + col1 + + + col0 AS col0 FROM tab0
----
-91
108
-91
96
-91
98

query I rowsort
SELECT 9 + col2 * - col1 AS col0 FROM tab0
----
-201
-3798
-90

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 ) < ( + 16 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT ALL - COUNT( * ) AS col0 FROM tab1 WHERE NULL BETWEEN + 90 * - col1 - - col2 AND - - ( 61 )
----
0

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 WHERE NULL BETWEEN + 90 * - col1 - - col2 AND - - ( 61 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT SUM( + + 18 ) FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-5119
SELECT SUM ( + + 18 ) FROM tab0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5120
SELECT ALL col2 + + - CAST( 39 AS SIGNED ) AS col2 FROM tab0
----
-29
60
8

skipif mysql # not compatible
query I rowsort label-5120
SELECT ALL col2 + + - CAST ( 39 AS INTEGER ) AS col2 FROM tab0
----
-29
60
8

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 * col2 + + 7 IS NOT NULL
----

query I rowsort
SELECT + 29 * - 89 AS col2 FROM tab0 WHERE + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - - 54 FROM tab0 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT DISTINCT 61 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5124
SELECT DISTINCT 61 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
58

query II rowsort
SELECT DISTINCT col1, + 65 + + 21 FROM tab0 AS cor0
----
1
86
21
86
81
86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5126
SELECT ALL * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5126
SELECT ALL * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5127
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + col1 - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5127
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + col1 - col2 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - col0 ) + - col2 / + col0 > ( + 22 + - col2 + - 42 )
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT DISTINCT COUNT( * ) + - - 64 * + + 55 + - COUNT( * ) * 18 FROM tab2 AS cor0 WHERE NOT ( NOT NULL >= + + col1 )
----
3520

skipif mysql # not compatible
query I rowsort label-5129
SELECT DISTINCT COUNT ( * ) + - - 64 * + + 55 + - COUNT ( * ) * 18 FROM tab2 AS cor0 WHERE NOT ( NOT NULL >= + + col1 )
----
3520

query II rowsort
SELECT ALL - + col2 * - 57, + ( + col0 ) FROM tab2 AS cor0
----
1311
46
2280
64
3306
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5131
SELECT ALL - CAST( NULL AS DECIMAL ) / - - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL - CAST ( NULL AS REAL ) / - - COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT DISTINCT - COUNT( + 53 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5132
SELECT DISTINCT - COUNT ( + 53 ) AS col1 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5133
SELECT DISTINCT col2 * - col0 DIV - col0 AS col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5133
SELECT DISTINCT col2 * - col0 / - col0 AS col1 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5134
SELECT * FROM tab2 WHERE NOT - 69 * - col2 * + CAST( NULL AS SIGNED ) * - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5134
SELECT * FROM tab2 WHERE NOT - 69 * - col2 * + CAST ( NULL AS INTEGER ) * - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5135
SELECT + 23 DIV - + col2 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5135
SELECT + 23 / - + col2 FROM tab0
----
-2
0
0

query I rowsort
SELECT + 97 FROM tab0 WHERE NOT NULL NOT IN ( - 65 * - col2 / + col0 * - col1 * + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5137
SELECT - col2 DIV + 8 AS col2 FROM tab0
----
-1
-12
-5

skipif mysql # not compatible
query I rowsort label-5137
SELECT - col2 / + 8 AS col2 FROM tab0
----
-1
-12
-5

query I rowsort
SELECT + 96 AS col2 FROM tab2 cor0
----
96
96
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5139
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, MIN( DISTINCT - + col0 ) * COUNT( * ) FROM tab0 cor0
----
NULL
-291

skipif mysql # not compatible
query II rowsort label-5139
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, MIN ( DISTINCT - + col0 ) * COUNT ( * ) FROM tab0 cor0
----
NULL
-291

query I rowsort
SELECT 57 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5141
SELECT col1 + + CAST( NULL AS SIGNED ) / + col0 + col1 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5141
SELECT col1 + + CAST ( NULL AS INTEGER ) / + col0 + col1 col2 FROM tab0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT DISTINCT + 45 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT DISTINCT 53 * + MAX( ALL - 68 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-3604

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT 53 * + MAX ( ALL - 68 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-3604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5145
SELECT ALL + CAST( - - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5145
SELECT ALL + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 90 * + + ( - 5 ) * - 67 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 col1 FROM tab2 cor0
----
19

query I rowsort
SELECT DISTINCT + + col1 + 0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL - - ( - col1 ) + - col0 + col2 FROM tab1 AS cor0
----
-31
-70
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 20 - 83 AS col2, col1 + col1 * - col1 col1 FROM tab1 AS cor0
----
-103
-182
-103
-20
-103
-2162

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT DISTINCT - MIN( DISTINCT col0 ) + - - SUM( - ( col2 ) ) AS col2 FROM tab1 AS cor0
----
-274

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT - MIN ( DISTINCT col0 ) + - - SUM ( - ( col2 ) ) AS col2 FROM tab1 AS cor0
----
-274

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 + + col2 col1 FROM tab0
----
115
167
78

query I rowsort
SELECT + col1 - - col0 + + - col0 * 81 FROM tab1
----
-4066
-6795
-7233

onlyif mysql # DIV for integer division: 
query II rowsort label-5154
SELECT DISTINCT + col1 + - + col1 DIV - + col0, col1 FROM tab0
----
1
1
21
21
86
81

skipif mysql # not compatible
query II rowsort label-5154
SELECT DISTINCT + col1 + - + col1 / - + col0, col1 FROM tab0
----
1
1
21
21
86
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5155
SELECT ALL + CAST( NULL AS SIGNED ) - - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL + CAST ( NULL AS INTEGER ) - - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5156
SELECT DISTINCT - col0 + - + col1 DIV + col1 FROM tab1
----
-52
-86
-92

skipif mysql # not compatible
query I rowsort label-5156
SELECT DISTINCT - col0 + - + col1 / + col1 FROM tab1
----
-52
-86
-92

query II rowsort
SELECT ALL - col0 * - col2 + + 52 AS col0, col1 + + 47 + - 57 AS col1 FROM tab0 WHERE NOT + + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5158
SELECT ALL - + 35 DIV col2 - - col0 FROM tab0 AS cor0 WHERE NOT 31 IS NULL
----
15
84
97

skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL - + 35 / col2 - - col0 FROM tab0 AS cor0 WHERE NOT 31 IS NULL
----
15
84
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT ALL + MAX( ( - + ( - + 97 ) ) ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL + MAX ( ( - + ( - + 97 ) ) ) AS col0 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT DISTINCT - MIN( ALL 99 ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-5160
SELECT DISTINCT - MIN ( ALL 99 ) AS col2 FROM tab0
----
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 ) <= col2
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query II rowsort label-5162
SELECT + - COUNT( * ) col2, SUM( DISTINCT + col1 ) FROM tab1 cor0
----
-3
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5162
SELECT + - COUNT ( * ) col2, SUM ( DISTINCT + col1 ) FROM tab1 cor0
----
-3
66

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 27 + + col2 NOT BETWEEN NULL AND ( - - col1 )
----
75
67
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 - col1 * - 24 * col2 > + 58
----

query I rowsort
SELECT - + col1 FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN + col1 * - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5166
SELECT + + CAST( NULL AS SIGNED ) * + ( + col0 ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5166
SELECT + + CAST ( NULL AS INTEGER ) * + ( + col0 ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT - 90 * - - COUNT( * ) * + SUM( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
-53730

skipif mysql # not compatible
query I rowsort label-5167
SELECT - 90 * - - COUNT ( * ) * + SUM ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
-53730

query I rowsort
SELECT DISTINCT - - 10 + + 40 FROM tab1 AS cor0
----
50

query I rowsort
SELECT DISTINCT 67 * - - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 27 AS col1 FROM tab0 AS cor0 WHERE NOT ( col1 * 27 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 * - col0 AS col2 FROM tab1 cor0
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5172
SELECT ALL - col1 * CAST( NULL AS SIGNED ) * + + col0 + - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) * + + col0 + - col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5174
SELECT - col2 + - - ( - col0 ) + - 11 * + CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5174
SELECT - col2 + - - ( - col0 ) + - 11 * + CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 15 AS col2 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE 64 * + col2 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5176
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE 64 * + col2 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5177
SELECT - col0 DIV + - col1 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5177
SELECT - col0 / + - col1 FROM tab2 cor0
----
0
0
1

query I rowsort
SELECT DISTINCT 5 + + 38 AS col0 FROM tab1
----
43

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 8 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5180
SELECT - 55 DIV + ( + col2 ) + + col0 AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5180
SELECT - 55 / + ( + col2 ) + + col0 AS col0 FROM tab1
----
51
85
91

query I rowsort
SELECT + + col0 * - ( - col0 ) + - - ( - col1 ) - + col2 - + col2 AS col1 FROM tab1 AS cor0 WHERE col0 * ( col1 ) <> col0 + - - col1
----
2395
7102
8098

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + col0 / col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + - 81 * + + col0 + + - col1 AS col2 FROM tab0 cor0
----
-57186
-70491
-777844

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT 73 = ( NULL ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( ( NULL ) IS NULL ) )
----

query I rowsort
SELECT ALL - col0 * + col2 * - - col1 + + col0 AS col1 FROM tab2 AS cor0
----
-197056
-291375
-53912

query II rowsort
SELECT + col0, + col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT DISTINCT + - ( + 81 ) + - 30 + - 81 FROM tab2 AS cor0
----
-192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5189
SELECT - 72 DIV - SUM( - col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5189
SELECT - 72 / - SUM ( - col2 ) FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 col1 FROM tab1 WHERE - - 0 - - + col1 <= 32
----
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT - MAX( + ( 18 ) ) FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-5191
SELECT - MAX ( + ( 18 ) ) FROM tab0
----
-18

query I rowsort
SELECT DISTINCT 18 AS col1 FROM tab1 WHERE 10 NOT IN ( 77 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT ALL + COUNT( - - 69 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL + COUNT ( - - 69 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT 35 * MAX( DISTINCT - col2 ) + + 69 * + 29 AS col1 FROM tab2 AS cor0
----
1196

skipif mysql # not compatible
query I rowsort label-5194
SELECT 35 * MAX ( DISTINCT - col2 ) + + 69 * + 29 AS col1 FROM tab2 AS cor0
----
1196

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 ) BETWEEN ( NULL ) AND col2 / col1 - - col2
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT ALL - COUNT( DISTINCT 68 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL - COUNT ( DISTINCT 68 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 26 <> NULL
----

query I rowsort
SELECT - col0 * - + 63 FROM tab2 AS cor0
----
2898
4032
4725

query I rowsort
SELECT col0 + - 79 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT DISTINCT + col1 * + 14 * 64 FROM tab0 AS cor0 WHERE + 58 = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5201
SELECT ALL - col0 * col0 * + - ( + 58 ) + - - col1 AS col1, col0 * + 76 - + - CAST( + col1 AS SIGNED ) col1 FROM tab1 cor0
----
150872
3890
419055
6465
480345
6963

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5201
SELECT ALL - col0 * col0 * + - ( + 58 ) + - - col1 AS col1, col0 * + 76 - + - CAST ( + col1 AS INTEGER ) col1 FROM tab1 cor0
----
150872
3890
419055
6465
480345
6963

onlyif mysql # DIV for integer division: 
query I rowsort label-5202
SELECT DISTINCT + ( - col2 ) + col1 DIV - col1 FROM tab2 AS cor0
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-5202
SELECT DISTINCT + ( - col2 ) + col1 / - col1 FROM tab2 AS cor0
----
-24
-41
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5203
SELECT DISTINCT COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 65 NOT BETWEEN NULL AND + ( - col0 ) + - - col0
----

query I rowsort
SELECT + - AVG ( DISTINCT col1 ) FROM tab1 AS cor0 WHERE NOT 85 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + col2 * - 3 AS col0 FROM tab2 cor0
----
120
174
69

query I rowsort
SELECT DISTINCT col1 + + 44 FROM tab1
----
49
58
91

query I rowsort
SELECT + 18 * col0 AS col0 FROM tab0
----
1566
1746
270

onlyif mysql # DIV for integer division: 
query I rowsort label-5210
SELECT 79 DIV + col1 col0 FROM tab0
----
0
3
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5210
SELECT 79 / + col1 col0 FROM tab0
----
0
3
79

query II rowsort
SELECT DISTINCT - - col1 AS col2, 38 AS col1 FROM tab2 AS cor0
----
51
38
67
38
77
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE 35 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5212
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE 35 IS NOT NULL
----
-3

query I rowsort
SELECT ALL + col0 + 65 AS col0 FROM tab1
----
116
150
156

query III rowsort
SELECT * FROM tab1 WHERE NULL <> 33 + - col0
----

query I rowsort
SELECT ALL col2 * + - col0 + + 94 - + col0 - col2 AS col2 FROM tab0 cor0
----
-673
-873
-9705

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - - col1 IS NULL AND NOT ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - - col1 - - col2 * - col0 AS col0 FROM tab1 AS cor0
----
-4882
-5010
-6141

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5218
SELECT - + CAST( - col2 AS DECIMAL ) FROM tab0 AS cor0 WHERE - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5218
SELECT - + CAST ( - col2 AS REAL ) FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT - 21 - + + col1 AS col1 FROM tab0 cor0
----
-102
-22
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-5220
SELECT ALL + 81 DIV 9 FROM tab1 AS cor0
----
9
9
9

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL + 81 / 9 FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT + ( + 78 ) FROM tab2
----
78
78
78

query I rowsort
SELECT DISTINCT + 77 AS col0 FROM tab1 WHERE col2 IS NOT NULL
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5223
SELECT ALL CAST( NULL AS SIGNED ) col2, SUM( - col1 ) AS col1 FROM tab1
----
NULL
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5223
SELECT ALL CAST ( NULL AS INTEGER ) col2, SUM ( - col1 ) AS col1 FROM tab1
----
NULL
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT ALL COUNT( * ) * 24 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL COUNT ( * ) * 24 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT DISTINCT - col0 AS col2, - col0 AS col2 FROM tab1
----
-51
-51
-85
-85
-91
-91

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 + + ( col0 ) * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 33 + - 8 < + 70 * ( ( - + ( - ( + col2 ) ) ) )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 92 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + ( + col1 ) * - + 86 AND - 38 + - col0 * - 4 + + 62 * + col0
----
0

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + ( + col1 ) * - + 86 AND - 38 + - col0 * - 4 + + 62 * + col0
----
0

query I rowsort
SELECT + col1 * col0 FROM tab1 WHERE NOT + 62 NOT BETWEEN + col0 + col2 + + col0 AND col1 * - col0 + col2 + - 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT + COUNT( * ) + 15 FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-5231
SELECT + COUNT ( * ) + 15 FROM tab0 cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT - + COUNT( * ) + - 83 AS col1 FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-5232
SELECT - + COUNT ( * ) + - 83 AS col1 FROM tab0 AS cor0
----
-86

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5234
SELECT col0 + - 31 - - 72 + col2 DIV + col0 AS col0 FROM tab1
----
126
132
93

skipif mysql # not compatible
query I rowsort label-5234
SELECT col0 + - 31 - - 72 + col2 / + col0 AS col0 FROM tab1
----
126
132
93

query I rowsort
SELECT ALL - 31 + 50 + + col1 FROM tab1
----
24
33
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT ALL COUNT( * ) * + ( - 98 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-294

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL COUNT ( * ) * + ( - 98 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-294

query I rowsort
SELECT 36 FROM tab1 WHERE - col2 BETWEEN - col0 * - + col1 * - - col0 + + 18 * + + col1 + + col1 AND - 60 - 42 * - - col0 * col2 * + + col0
----

query I rowsort
SELECT ALL ( + 99 ) AS col1 FROM tab2
----
99
99
99

query I rowsort
SELECT ALL col0 * col0 - - + 22 FROM tab0 AS cor0
----
247
7591
9431

query I rowsort
SELECT + + col0 FROM tab1 AS cor0 WHERE + col1 * - - col1 IS NOT NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + ( + ( col2 ) ) ) col0 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - col1 / col2 AS col1 FROM tab2 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5243
SELECT 4 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5243
SELECT 4 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 11 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL > ( NULL )
----

query I rowsort
SELECT - 72 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT DISTINCT 79 - col0 FROM tab0
----
-18
-8
64

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE - 31 / + col1 < + - col0
----

query I rowsort
SELECT + 29 + + + col2 FROM tab0 AS cor0
----
128
39
76

query I rowsort
SELECT + - 72 + - 25 FROM tab2 cor0
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT + COUNT( ALL 95 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5251
SELECT + COUNT ( ALL 95 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5252
SELECT DISTINCT + MIN( + 67 ) - 42 DIV - 31 FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-5252
SELECT DISTINCT + MIN ( + 67 ) - 42 / - 31 FROM tab2 AS cor0
----
68

query I rowsort
SELECT + - 26 AS col0 FROM tab2 AS cor0
----
-26
-26
-26

query I rowsort
SELECT ALL + col0 * + + col0 AS col2 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5255
SELECT - CAST( - 40 AS SIGNED ) FROM tab0 cor0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-5255
SELECT - CAST ( - 40 AS INTEGER ) FROM tab0 cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT DISTINCT 75 - - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - col2 * - col1 = - col2
----
78

skipif mysql # not compatible
query I rowsort label-5256
SELECT DISTINCT 75 - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - col2 * - col1 = - col2
----
78

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( + + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 93 - + 56 col0 FROM tab0 WHERE NOT NULL = + - col2 * + col2 + - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5260
SELECT COUNT( * ) * + COUNT( * ) AS col2, 14 AS col1 FROM tab2
----
9
14

skipif mysql # not compatible
query II rowsort label-5260
SELECT COUNT ( * ) * + COUNT ( * ) AS col2, 14 AS col1 FROM tab2
----
9
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5261
SELECT ( - CAST( - col2 AS SIGNED ) ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5261
SELECT ( - CAST ( - col2 AS INTEGER ) ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
23
40
58

query I rowsort
SELECT + + col1 * - col1 * - 63 FROM tab2 cor0
----
163863
282807
373527

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - 49 AND - 57 / - - 49 + + 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT ALL + MAX( ALL - - ( + - col1 ) ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-5264
SELECT ALL + MAX ( ALL - - ( + - col1 ) ) AS col2 FROM tab2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5265
SELECT ALL - - ( - MAX( - - CAST( NULL AS SIGNED ) ) ), + COUNT( ALL - 39 ) AS col0 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5265
SELECT ALL - - ( - MAX ( - - CAST ( NULL AS INTEGER ) ) ), + COUNT ( ALL - 39 ) AS col0 FROM tab1 AS cor0
----
NULL
3

onlyif mysql # DIV for integer division: 
query II rowsort label-5266
SELECT + - 98 DIV col1 + + 66 AS col0, 62 DIV + col1 AS col2 FROM tab2 AS cor0
----
65
0
65
0
65
1

skipif mysql # not compatible
query II rowsort label-5266
SELECT + - 98 / col1 + + 66 AS col0, 62 / + col1 AS col2 FROM tab2 AS cor0
----
65
0
65
0
65
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5267
SELECT DISTINCT + + 14 DIV col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5267
SELECT DISTINCT + + 14 / col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col2 + col1 FROM tab0 AS cor0 WHERE - 57 * + ( - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5269
SELECT - + COUNT( * ), COUNT( * ) col0 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5269
SELECT - + COUNT ( * ), COUNT ( * ) col0 FROM tab1 AS cor0
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5270
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + - 1 + - col1 + - - 89 / 60 * - - CAST( col2 AS SIGNED ) AND - + col2
----

skipif mysql # not compatible
query III rowsort label-5270
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + - 1 + - col1 + - - 89 / 60 * - - CAST ( col2 AS INTEGER ) AND - + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 / + col0 * - 20 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5272
SELECT 87 * + - ( + col0 ) - col0 + + col2 - 56 DIV + + col1 AS col0 FROM tab1 AS cor0
----
-4396
-7432
-7941

skipif mysql # not compatible
query I rowsort label-5272
SELECT 87 * + - ( + col0 ) - col0 + + col2 - 56 / + + col1 AS col0 FROM tab1 AS cor0
----
-4396
-7432
-7941

query I rowsort
SELECT ALL + 70 + col0 AS col1 FROM tab1 cor0
----
121
155
161

query II rowsort
SELECT DISTINCT - col1 + + col0 AS col0, - col0 FROM tab2
----
-13
-64
-5
-46
8
-75

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT 73 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE - - 49 > NULL
----

query I rowsort
SELECT ALL 71 + 20 * + col0 FROM tab2
----
1351
1571
991

query I rowsort
SELECT DISTINCT 89 + + col2 AS col0 FROM tab1
----
148
157
185

query I rowsort
SELECT col1 + ( - col1 ) FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE + col2 >= col1 * + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5281
SELECT ALL + col2 - - col0 DIV col0 FROM tab1
----
60
69
97

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL + col2 - - col0 / col0 FROM tab1
----
60
69
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5282
SELECT - 77 + - COUNT( * ) DIV 3 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-5282
SELECT - 77 + - COUNT ( * ) / 3 FROM tab2
----
-78

query I rowsort
SELECT col2 + 46 + + col2 * + 93 * + col1 AS col1 FROM tab1
----
125134
27540
297342

query I rowsort
SELECT - col0 + + 56 AS col0 FROM tab2
----
-19
-8
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT ALL MAX( 43 ) + + + 96 col0 FROM tab0
----
139

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5285
SELECT ALL MAX ( 43 ) + + + 96 col0 FROM tab0
----
139

query I rowsort
SELECT 8 * + col1 + col0 FROM tab2
----
454
611
680

onlyif mysql # DIV for integer division: 
query I rowsort label-5287
SELECT + 27 DIV - col1 FROM tab0 WHERE - - 61 IS NOT NULL
----
-1
-27
0

skipif mysql # not compatible
query I rowsort label-5287
SELECT + 27 / - col1 FROM tab0 WHERE - - 61 IS NOT NULL
----
-1
-27
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT DISTINCT ( - COUNT( * ) ) FROM tab2 AS cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5288
SELECT DISTINCT ( - COUNT ( * ) ) FROM tab2 AS cor0 WHERE NULL = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT - ( - ( - SUM( ALL + 41 ) ) ) * - 12 AS col0 FROM tab2
----
1476

skipif mysql # not compatible
query I rowsort label-5289
SELECT - ( - ( - SUM ( ALL + 41 ) ) ) * - 12 AS col0 FROM tab2
----
1476

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 * - col1 / - 28 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 97 * - 35 * - - col2 + - + col2 FROM tab2 AS cor0 WHERE NOT - col2 > + + col0
----
135760
196852
78062

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT ALL - + COUNT( * ) FROM tab1 AS cor0 WHERE 78 / - + ( - col2 ) NOT BETWEEN NULL AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL - + COUNT ( * ) FROM tab1 AS cor0 WHERE 78 / - + ( - col2 ) NOT BETWEEN NULL AND + col2
----
0

query II rowsort
SELECT DISTINCT - - col0, - col1 AS col2 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT DISTINCT - 38 * COUNT( * ) FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT - 38 * COUNT ( * ) FROM tab2
----
-114

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT NULL BETWEEN - 97 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5296
SELECT col2 / - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5296
SELECT col2 / - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT + + col1 AS col2, - 43 * - ( col2 ) FROM tab0 WHERE NOT 23 > NULL
----

query I rowsort
SELECT 1 * col0 * 83 FROM tab1
----
4233
7055
7553

query II rowsort
SELECT col2, col1 + + col2 AS col2 FROM tab2
----
23
74
40
117
58
125

query II rowsort
SELECT + col2 AS col1, col0 AS col2 FROM tab1
----
59
85
68
91
96
51

query II rowsort
SELECT + 45 AS col0, + 28 + + col0 FROM tab1
----
45
113
45
119
45
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT ALL + COUNT( ALL + 11 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL + COUNT ( ALL + 11 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - col1 * - + 38 FROM tab0
----
3078
38
798

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT ALL ( 76 ) * - ( COUNT( * ) ) * 56 - - + 84 col2 FROM tab0
----
-12684

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5304
SELECT ALL ( 76 ) * - ( COUNT ( * ) ) * 56 - - + 84 col2 FROM tab0
----
-12684

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT DISTINCT ( + COUNT( * ) ) col2 FROM tab1 WHERE + 21 - + col1 - - col1 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5305
SELECT DISTINCT ( + COUNT ( * ) ) col2 FROM tab1 WHERE + 21 - + col1 - - col1 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5306
SELECT DISTINCT + col1 AS col0, CAST( NULL AS SIGNED ) - - + col2 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-5306
SELECT DISTINCT + col1 AS col0, CAST ( NULL AS INTEGER ) - - + col2 FROM tab2
----
51
NULL
67
NULL
77
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= - 22 + 45
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 / - + 68 + - - 7 + col1 <> NULL
----

query II rowsort
SELECT + col0 AS col2, 51 FROM tab2 AS cor0
----
46
51
64
51
75
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT + SUM( ALL - - col2 ) col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5310
SELECT + SUM ( ALL - - col2 ) col2 FROM tab2 AS cor0
----
121

query I rowsort
SELECT DISTINCT - 92 + + col1 FROM tab0
----
-11
-71
-91

query II rowsort
SELECT col1 + + - col1 AS col1, col1 AS col0 FROM tab0 AS cor0
----
0
1
0
21
0
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT + 57 + - - MIN( + - col2 ) AS col0 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-5313
SELECT + 57 + - - MIN ( + - col2 ) AS col0 FROM tab0 AS cor0
----
-42

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 cor0 WHERE + col1 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5315
SELECT DISTINCT - col2 DIV - + 28 + - 79 AS col2 FROM tab2 AS cor0
----
-77
-78
-79

skipif mysql # not compatible
query I rowsort label-5315
SELECT DISTINCT - col2 / - + 28 + - 79 AS col2 FROM tab2 AS cor0
----
-77
-78
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5316
SELECT COUNT( * ) + - 10 * SUM( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5316
SELECT COUNT ( * ) + - 10 * SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col1 + - 94 FROM tab0
----
-13
-73
-93

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 WHERE NULL < NULL
----

query II rowsort
SELECT 88 AS col2, - 68 AS col1 FROM tab2
----
88
-68
88
-68
88
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-5320
SELECT DISTINCT - col1 DIV - 39 + - col1 AS col2 FROM tab0
----
-1
-21
-79

skipif mysql # not compatible
query I rowsort label-5320
SELECT DISTINCT - col1 / - 39 + - col1 AS col2 FROM tab0
----
-1
-21
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT - SUM( - - col0 ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-5321
SELECT - SUM ( - - col0 ) AS col0 FROM tab2
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 col2 FROM tab0
----
-54
-54
-54

query I rowsort
SELECT 47 * 91 - 97 * + + col0 FROM tab2 AS cor0
----
-185
-1931
-2998

query I rowsort
SELECT + + ( - + 59 ) - + col2 * - ( 7 ) AS col0 FROM tab0 AS cor0
----
11
270
634

query I rowsort
SELECT DISTINCT col1 + - 2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query II rowsort
SELECT DISTINCT col0 AS col1, col0 FROM tab1 WHERE + col1 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * - col1 NOT BETWEEN + 16 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 22 / - col2 AS col2 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL - + 17 * - 80 FROM tab1 AS cor0
----
1360
1360
1360

onlyif mysql # aggregate syntax: 
query II rowsort label-5330
SELECT DISTINCT - + ( MAX( - col2 ) ) * - 37, - COUNT( * ) - 95 + + + 59 * + + COUNT( * ) col0 FROM tab1 cor0
----
-2183
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5330
SELECT DISTINCT - + ( MAX ( - col2 ) ) * - 37, - COUNT ( * ) - 95 + + + 59 * + + COUNT ( * ) col0 FROM tab1 cor0
----
-2183
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 col0 FROM tab1
----
2

query I rowsort
SELECT ALL - col0 * + + 92 FROM tab0 WHERE ( - 57 IS NOT NULL )
----
-1380
-8004
-8924

query II rowsort
SELECT + + 49, - col1 FROM tab0 WHERE NOT NULL IN ( + col1 + col0, col2, - + col2, col1 * 52 - - - col0, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT - COUNT( * ) * - + 40 FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-5334
SELECT - COUNT ( * ) * - + 40 FROM tab2
----
120

query I rowsort
SELECT ALL 92 * + col1 * + col1 AS col2 FROM tab2
----
239292
412988
545468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 8 ) col0 FROM tab0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5337
SELECT DISTINCT 25 * - - col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-5337
SELECT DISTINCT 25 * - - col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT + - col2 * + col1 * + - 21 * - + 12 + + col1 + - col1 AS col2 FROM tab0 AS cor0
----
-24948
-52920
-959364

onlyif mysql # DIV for integer division: 
query I rowsort label-5339
SELECT ALL + col1 DIV + ( - 81 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL + col1 / + ( - 81 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5340
SELECT ALL + col0 + - + CAST( + + col0 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL + col0 + - + CAST ( + + col0 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT ALL - SUM( ALL + col2 ) * + - 36 AS col0 FROM tab2 AS cor0
----
4356

skipif mysql # not compatible
query I rowsort label-5341
SELECT ALL - SUM ( ALL + col2 ) * + - 36 AS col0 FROM tab2 AS cor0
----
4356

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT DISTINCT COUNT( * ) col0 FROM tab1 cor0 WHERE - col0 + ( + 50 ) IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5342
SELECT DISTINCT COUNT ( * ) col0 FROM tab1 cor0 WHERE - col0 + ( + 50 ) IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-5343
SELECT ALL + col0, col2 DIV - ( col2 ) + + col2 col2 FROM tab2 cor0
----
46
22
64
39
75
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5343
SELECT ALL + col0, col2 / - ( col2 ) + + col2 col2 FROM tab2 cor0
----
46
22
64
39
75
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT ALL - 30 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL - 30 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT ALL - MAX( col0 ) * - 33 AS col2 FROM tab0 AS cor0
----
3201

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL - MAX ( col0 ) * - 33 AS col2 FROM tab0 AS cor0
----
3201

query I rowsort
SELECT DISTINCT - - ( 45 ) + - - 76 FROM tab2 AS cor0
----
121

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE col2 NOT IN ( + 48 * + - ( - col1 ) )
----
-23
-40
-58

query I rowsort
SELECT ALL col1 FROM tab2 WHERE + col1 > col2
----
51
67
77

query I rowsort
SELECT col2 FROM tab1 WHERE 2 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT 75 * COUNT( * ) - - COUNT( * ) col2 FROM tab2
----
228

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5350
SELECT 75 * COUNT ( * ) - - COUNT ( * ) col2 FROM tab2
----
228

query I rowsort
SELECT DISTINCT - 20 - + col2 * - ( - col1 ) - - col2 AS col2 FROM tab0
----
-20
-220
-3780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + - col0, - col2 col2 FROM tab2
----
-17
-58
-23
-23
-24
-40

query I rowsort
SELECT 82 * + col1 * - + col2 * 33 * 25 + + col1 AS col0 FROM tab1
----
-19956745
-216209353
-90921586

query III rowsort
SELECT * FROM tab0 WHERE - 39 / + 50 = NULL
----

query I rowsort
SELECT - 96 + - 31 AS col1 FROM tab1
----
-127
-127
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT DISTINCT - 19 * - - SUM( - - col2 ) AS col2 FROM tab1
----
-4237

skipif mysql # not compatible
query I rowsort label-5356
SELECT DISTINCT - 19 * - - SUM ( - - col2 ) AS col2 FROM tab1
----
-4237

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) <> + 78
----
0

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) <> + 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT DISTINCT + MAX( col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5358
SELECT DISTINCT + MAX ( col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5359
SELECT + 3 DIV + + COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5359
SELECT + 3 / + + COUNT ( * ) FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5360
SELECT - 69 DIV col0 AS col0 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-5360
SELECT - 69 / col0 AS col0 FROM tab0
----
-4
0
0

query I rowsort
SELECT col2 * - + 32 FROM tab1
----
-1888
-2176
-3072

query II rowsort
SELECT DISTINCT 51 AS col0, 82 * col0 FROM tab1 AS cor0
----
51
4182
51
6970
51
7462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, col0 col2 FROM tab0 cor0
----
1
97
21
87
81
15

query II rowsort
SELECT col2 AS col0, + 56 + + col0 AS col2 FROM tab0 AS cor0
----
10
143
47
71
99
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5365
SELECT + - CAST( + + ( COUNT( * ) ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5365
SELECT + - CAST ( + + ( COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + - 89 AS col1 FROM tab1 AS cor0
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT ALL - SUM( ALL - - 80 ) FROM tab2 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL - SUM ( ALL - - 80 ) FROM tab2 AS cor0
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT DISTINCT + - SUM( col1 ) FROM tab0 WHERE NOT - + 17 IS NULL
----
-103

skipif mysql # not compatible
query I rowsort label-5368
SELECT DISTINCT + - SUM ( col1 ) FROM tab0 WHERE NOT - + 17 IS NULL
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT DISTINCT - MAX( ALL 8 ) FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-5369
SELECT DISTINCT - MAX ( ALL 8 ) FROM tab2
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5370
SELECT - 69 DIV + MAX( ALL - col2 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5370
SELECT - 69 / + MAX ( ALL - col2 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT + + 27 * - + ( col0 ) FROM tab1 AS cor0
----
-1377
-2295
-2457

query I rowsort
SELECT ALL - col0 * - col2 * 81 AS col2 FROM tab2 AS cor0
----
207360
352350
85698

query II rowsort
SELECT + 61 AS col0, 29 FROM tab1
----
61
29
61
29
61
29

query I rowsort
SELECT ALL 20 * + col0 FROM tab2
----
1280
1500
920

query I rowsort
SELECT + col1 FROM tab1 WHERE - 97 = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT 17 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-5376
SELECT 17 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
20

query I rowsort
SELECT 86 + - col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + - 13 * + + 39 * + - 54 * + + 94 AND + + col0
----

query I rowsort
SELECT - - 2 + - - ( - 5 ) AS col1 FROM tab0 cor0
----
-3
-3
-3

query I rowsort
SELECT ALL col2 + - + 27 FROM tab2 AS cor0
----
-4
13
31

query I rowsort
SELECT DISTINCT + col0 * + col2 + - - col1 FROM tab0 AS cor0
----
786
891
9604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5381
SELECT + - 63 + ( + - CAST( - CAST( - 61 AS SIGNED ) AS SIGNED ) ) + col2 * col2 FROM tab1 AS cor0
----
3357
4500
9092

skipif mysql # not compatible
query I rowsort label-5381
SELECT + - 63 + ( + - CAST ( - CAST ( - 61 AS INTEGER ) AS INTEGER ) ) + col2 * col2 FROM tab1 AS cor0
----
3357
4500
9092

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT ALL + - 54 * + ( COUNT( ALL col2 ) ) FROM tab2 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL + - 54 * + ( COUNT ( ALL col2 ) ) FROM tab2 AS cor0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT + 56 * - 83 + - + COUNT( * ) FROM tab1 AS cor0
----
-4651

skipif mysql # not compatible
query I rowsort label-5383
SELECT + 56 * - 83 + - + COUNT ( * ) FROM tab1 AS cor0
----
-4651

query I rowsort
SELECT + - col2 * + col0 * - - 91 * col2 AS col0 FROM tab2 AS cor0
----
-2214394
-22959300
-9318400

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5385
SELECT * FROM tab1 cor0 WHERE CAST( - col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5385
SELECT * FROM tab1 cor0 WHERE CAST ( - col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5386
SELECT DISTINCT - 4 / + CAST( NULL AS SIGNED ) * + - 16 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5386
SELECT DISTINCT - 4 / + CAST ( NULL AS INTEGER ) * + - 16 AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL - col1 - 87 AS col0 FROM tab1
----
-101
-134
-92

query I rowsort
SELECT ALL - 52 * + 61 AS col2 FROM tab2
----
-3172
-3172
-3172

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT DISTINCT + MAX( 48 ) AS col2 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-5389
SELECT DISTINCT + MAX ( 48 ) AS col2 FROM tab1
----
48

query I rowsort
SELECT DISTINCT + ( 57 ) FROM tab0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT ALL COUNT( ALL - + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5391
SELECT ALL COUNT ( ALL - + col2 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5392
SELECT CAST( - col2 AS SIGNED ) AS col1, CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

skipif mysql # not compatible
query II rowsort label-5392
SELECT CAST ( - col2 AS INTEGER ) AS col1, CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT - - 94 AS col1 FROM tab0 AS cor0
----
94
94
94

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 / - - col2 * - 47 IS NOT NULL
----

query I rowsort
SELECT col1 * + + 71 AS col2 FROM tab1
----
3337
355
994

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, + col2 col0 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT DISTINCT 99 + - + col1 * + - col2 * - col1 * 80 AS col0 FROM tab2
----
-18972701
-20828861
-4785741

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 + col2 * - 76 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT ALL - MAX( DISTINCT - col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL - MAX ( DISTINCT - col1 ) FROM tab0
----
1

query I rowsort
SELECT col0 * + - 75 FROM tab2
----
-3450
-4800
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 20 col2, col2 * + + 97 * col1 FROM tab1
----
20
130368
20
28615
20
310012

query I rowsort
SELECT + 50 + col2 FROM tab1 AS cor0
----
109
118
146

query III rowsort
SELECT * FROM tab2 WHERE + + col2 BETWEEN ( - 16 ) AND col2 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 71 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5406
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST( - - col2 AS SIGNED ) + - col1 <> NULL
----

skipif mysql # not compatible
query III rowsort label-5406
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( - - col2 AS INTEGER ) + - col1 <> NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT ALL COUNT( * ) - 59 AS col2 FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-5408
SELECT ALL COUNT ( * ) - 59 AS col2 FROM tab0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT COUNT( * ) FROM tab1 WHERE NULL = - col0 * + col0 + ( + + 39 ) / - 72 * + 2
----
0

skipif mysql # not compatible
query I rowsort label-5409
SELECT COUNT ( * ) FROM tab1 WHERE NULL = - col0 * + col0 + ( + + 39 ) / - 72 * + 2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IS NULL AND NOT 91 + col1 IS NOT NULL
----

query I rowsort
SELECT 35 + + col2 FROM tab2
----
58
75
93

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 BETWEEN - col0 AND NULL
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT ALL - 25 * - + COUNT( * ) * + + 30 AS col1 FROM tab0
----
2250

skipif mysql # not compatible
query I rowsort label-5413
SELECT ALL - 25 * - + COUNT ( * ) * + + 30 AS col1 FROM tab0
----
2250

query I rowsort
SELECT DISTINCT - 92 * - col0 FROM tab2
----
4232
5888
6900

query I rowsort
SELECT DISTINCT - + col2 AS col1 FROM tab0 WHERE NOT - + col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5416
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, + 29 DIV col2 AS col1 FROM tab0 AS cor0
----
NULL
0
NULL
0
NULL
2

skipif mysql # not compatible
query II rowsort label-5416
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, + 29 / col2 AS col1 FROM tab0 AS cor0
----
NULL
0
NULL
0
NULL
2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 * + + 69 <> - col2
----

query I rowsort
SELECT ALL ( + - ( 8 ) ) AS col1 FROM tab2 AS cor0
----
-8
-8
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5419
SELECT - 89 * - CAST( + col0 AS SIGNED ) FROM tab2
----
4094
5696
6675

skipif mysql # not compatible
query I rowsort label-5419
SELECT - 89 * - CAST ( + col0 AS INTEGER ) FROM tab2
----
4094
5696
6675

query I rowsort
SELECT DISTINCT + - 45 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-45

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 3 < NULL
----

query I rowsort
SELECT col1 + + 20 AS col0 FROM tab2 cor0
----
71
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT DISTINCT SUM( - col2 ) + - + COUNT( * ) + COUNT( * ) + + - MAX( ALL + ( + col1 ) ) FROM tab1 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-5423
SELECT DISTINCT SUM ( - col2 ) + - + COUNT ( * ) + COUNT ( * ) + + - MAX ( ALL + ( + col1 ) ) FROM tab1 AS cor0
----
-270

query I rowsort
SELECT - col1 + 58 AS col1 FROM tab2 AS cor0
----
-19
-9
7

onlyif mysql # DIV for integer division: 
query II rowsort label-5425
SELECT col0 * 38 DIV + col2 + - col2 * + 1 AS col0, 38 FROM tab0
----
-35
38
-62
38
320
38

skipif mysql # not compatible
query II rowsort label-5425
SELECT col0 * 38 / + col2 + - col2 * + 1 AS col0, 38 FROM tab0
----
-35
38
-62
38
320
38

query II rowsort
SELECT + col0 + + col0 AS col0, col1 * col2 - + 37 AS col0 FROM tab1
----
102
1307
170
258
182
3159

query I rowsort
SELECT ( col0 ) + - 77 + - + col2 FROM tab0
----
-109
-79
0

query I rowsort
SELECT 57 + - 93 + + - 74 * + col1 FROM tab0
----
-110
-1590
-6030

query I rowsort
SELECT 75 + + col0 * - ( + col2 ) FROM tab1
----
-4821
-4940
-6113

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE NOT + 81 IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - ( + + col1 ) AS col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT - col1 * col2 + + - 82 AS col1 FROM tab0 AS cor0
----
-181
-292
-3889

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT + - SUM( ALL + + 19 ) AS col2 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-5433
SELECT + - SUM ( ALL + + 19 ) AS col2 FROM tab1 AS cor0
----
-57

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT ALL - 39 * COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL - 39 * COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - col2 + - col1 * + + col2 col2 FROM tab2 cor0
----
-1219
-3160
-4002

query I rowsort
SELECT col2 * - col0 + - col2 + 42 * + col0 AS col0 FROM tab1 cor0
----
-1504
-2434
-2850

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT COUNT( * ) * + 56 AS col0 FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-5438
SELECT COUNT ( * ) * + 56 AS col0 FROM tab1 AS cor0
----
168

query I rowsort
SELECT col2 * + + ( + col0 ) AS col0 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT DISTINCT + ( col2 ) + col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col1 * 71 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 79 col2 FROM tab1 AS cor0
----
-79

query I rowsort
SELECT DISTINCT - - 34 AS col0 FROM tab0 cor0
----
34

query I rowsort
SELECT ALL - col2 * - 40 FROM tab1 AS cor0
----
2360
2720
3840

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE 17 / + 93 IS NULL
----

query I rowsort
SELECT ALL ( + ( + - col0 ) ) FROM tab2
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 81 + + col1 IS NULL
----

query I rowsort
SELECT - + 4 * 14 AS col1 FROM tab2 AS cor0
----
-56
-56
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT - COUNT( 14 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5450
SELECT - COUNT ( 14 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT + COUNT( ALL + col2 ) * - ( + 89 ) col1 FROM tab2 AS cor0 WHERE NOT col1 <> col1
----
-267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5451
SELECT + COUNT ( ALL + col2 ) * - ( + 89 ) col1 FROM tab2 AS cor0 WHERE NOT col1 <> col1
----
-267

query I rowsort
SELECT DISTINCT - col1 * + ( + col0 ) * col0 FROM tab1 AS cor0
----
-36125
-36414
-389207

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE col2 * + 34 <> - col2
----
46
64
75

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 19 * col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 80 + - 47 = - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5457
SELECT - COUNT( * ) FROM tab2 WHERE ( - ( - + col1 ) ) * - col2 - - - col2 * + col1 NOT BETWEEN + CAST( NULL AS SIGNED ) - + 27 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5457
SELECT - COUNT ( * ) FROM tab2 WHERE ( - ( - + col1 ) ) * - col2 - - - col2 * + col1 NOT BETWEEN + CAST ( NULL AS INTEGER ) - + 27 AND NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5458
SELECT col1 DIV + 45, + col1 FROM tab1
----
0
14
0
5
1
47

skipif mysql # not compatible
query II rowsort label-5458
SELECT col1 / + 45, + col1 FROM tab1
----
0
14
0
5
1
47

query I rowsort
SELECT - col0 * col0 + - 96 FROM tab1
----
-2697
-7321
-8377

query II rowsort
SELECT ALL col0 AS col2, - col2 FROM tab1
----
51
-96
85
-59
91
-68

query I rowsort
SELECT - col0 * + col0 + - - col1 * - - col2 * + col1 FROM tab0 AS cor0
----
-3159
-9310
308142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 72 AS col1, 97 col2 FROM tab0 AS cor0
----
-72
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT + SUM( + - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-5463
SELECT + SUM ( + - col2 ) FROM tab2
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5464
SELECT DISTINCT - 6 + - CAST( NULL AS SIGNED ) + COUNT( * ) * - 69 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT - 6 + - CAST ( NULL AS INTEGER ) + COUNT ( * ) * - 69 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT ALL - MAX( ALL col2 ) AS col1 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5465
SELECT ALL - MAX ( ALL col2 ) AS col1 FROM tab1 cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5466
SELECT CAST( NULL AS SIGNED ) * ( 64 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5466
SELECT CAST ( NULL AS INTEGER ) * ( 64 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 > - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * + 17 FROM tab0
----
1377
17
357

query II rowsort
SELECT - 5 AS col0, 24 - 61 + - + col1 + col2 FROM tab1
----
-5
-16
-5
17
-5
45

query I rowsort
SELECT 35 * ( col0 ) FROM tab1
----
1785
2975
3185

query II rowsort
SELECT ALL - col0 AS col0, 58 FROM tab1
----
-51
58
-85
58
-91
58

query II rowsort
SELECT DISTINCT col0 AS col2, - 87 * - col0 AS col2 FROM tab0 cor0
----
15
1305
87
7569
97
8439

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 54 < + col2
----
15
81
47
87
21
10

query II rowsort
SELECT col1, col1 * + + col0 AS col1 FROM tab0 cor0
----
1
97
21
1827
81
1215

query I rowsort
SELECT DISTINCT col1 * + ( - col2 ) + col2 AS col2 FROM tab1 cor0
----
-1248
-236
-3128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5476
SELECT + + 99 * + 94 FROM tab2 AS cor0 WHERE NOT + CAST( + col1 AS SIGNED ) * - col0 + + - 50 / - col0 IS NULL OR ( col1 ) <> NULL
----
9306
9306
9306

skipif mysql # not compatible
query I rowsort label-5476
SELECT + + 99 * + 94 FROM tab2 AS cor0 WHERE NOT + CAST ( + col1 AS INTEGER ) * - col0 + + - 50 / - col0 IS NULL OR ( col1 ) <> NULL
----
9306
9306
9306

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5477
SELECT 7 - - ( MAX( DISTINCT + col1 ) + CAST( NULL AS SIGNED ) * - 88 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5477
SELECT 7 - - ( MAX ( DISTINCT + col1 ) + CAST ( NULL AS INTEGER ) * - 88 ) FROM tab2
----
NULL

query I rowsort
SELECT + col0 FROM tab1 WHERE 97 IS NULL
----

query I rowsort
SELECT - col1 + + col1 AS col1 FROM tab2 WHERE + col1 IS NOT NULL
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * ( col1 ) <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col1 * col0 IS NULL
----

query I rowsort
SELECT col0 + 60 AS col1 FROM tab2 WHERE NOT ( - col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 + ( - 58 ) col2 FROM tab1
----
16
16
16

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - col1 AND - 98
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE ( 62 + col1 ) NOT BETWEEN 4 AND + col2
----
21
81

query I rowsort
SELECT 42 + - col1 AS col1 FROM tab1
----
-5
28
37

query I rowsort
SELECT ALL + col2 * col2 + col0 FROM tab2
----
1664
3439
575

onlyif mysql # DIV for integer division: 
query I rowsort label-5488
SELECT ALL - 97 * ( col1 DIV col2 ) + 91 FROM tab2
----
-103
-6
-6

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL - 97 * ( col1 / col2 ) + 91 FROM tab2
----
-103
-6
-6

query I rowsort
SELECT - col2 * 48 AS col2 FROM tab1
----
-2832
-3264
-4608

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5490
SELECT ALL 78 + - col1 DIV - CAST( + col1 + - ( + col2 ) * + 77 AS SIGNED ) AS col0 FROM tab0
----
78
78
78

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL 78 + - col1 / - CAST ( + col1 + - ( + col2 ) * + 77 AS INTEGER ) AS col0 FROM tab0
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5491
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * - 66 NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5491
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * - 66 NOT IN ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT ALL SUM( DISTINCT col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL SUM ( DISTINCT col2 ) AS col2 FROM tab1
----
223

query I rowsort
SELECT DISTINCT col0 * + 16 AS col2 FROM tab1 WHERE NOT NULL IN ( - col2 )
----

query I rowsort
SELECT + 46 + col2 FROM tab0
----
145
56
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT DISTINCT + COUNT( * ) * + 29 AS col1 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-5495
SELECT DISTINCT + COUNT ( * ) * + 29 AS col1 FROM tab1
----
87

query I rowsort
SELECT ALL ( 57 ) AS col0 FROM tab1 WHERE NOT - 31 + + ( - 47 ) >= - col0 + - col2
----

query I rowsort
SELECT DISTINCT 91 * + 78 FROM tab0
----
7098

query I rowsort
SELECT ( col2 ) FROM tab1 WHERE ( - 92 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5499
SELECT ALL ( - col0 ) DIV + 22 AS col2 FROM tab0
----
-3
-4
0

skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL ( - col0 ) / + 22 AS col2 FROM tab0
----
-3
-4
0

query I rowsort
SELECT ALL 17 * + 11 AS col2 FROM tab2 AS cor0
----
187
187
187

query I rowsort
SELECT - col1 * 11 FROM tab0 AS cor0
----
-11
-231
-891

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT ALL + COUNT( ALL - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT 92 = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5502
SELECT ALL + COUNT ( ALL - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT 92 = ( NULL )
----
0

query I rowsort
SELECT + col1 + col1 FROM tab2 AS cor0 WHERE - 86 / - 75 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT 46 * COUNT( * ) col0 FROM tab1 AS cor0 WHERE col1 - col2 IN ( col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5504
SELECT 46 * COUNT ( * ) col0 FROM tab1 AS cor0 WHERE col1 - col2 IN ( col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5505
SELECT * FROM tab2 AS cor0 WHERE + 67 NOT IN ( + CAST( NULL AS SIGNED ) * col0 )
----

skipif mysql # not compatible
query III rowsort label-5505
SELECT * FROM tab2 AS cor0 WHERE + 67 NOT IN ( + CAST ( NULL AS INTEGER ) * col0 )
----

query I rowsort
SELECT col1 * - col0 - 78 FROM tab0 AS cor0
----
-1293
-175
-1905

query I rowsort
SELECT DISTINCT col2 + ( + col0 ) FROM tab1 AS cor0
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT DISTINCT COUNT( * ) FROM ( tab0 cor0 CROSS JOIN tab2 )
----
9

skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT COUNT ( * ) FROM ( tab0 cor0 CROSS JOIN tab2 )
----
9

query I rowsort
SELECT DISTINCT - 13 + + col2 FROM tab1 WHERE 22 + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 >= - col1 * 8 - col1 * 34
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 99 * 62 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 1e2b82e830a88fdc954b7ec36af188c6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5512
SELECT ( - 30 ) / CAST( NULL AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5512
SELECT ( - 30 ) / CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col0 + 33 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 94 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT DISTINCT + COUNT( ALL - 67 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT + COUNT ( ALL - 67 ) AS col2 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT + - COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5515
SELECT + - COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5516
SELECT DISTINCT + - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT + - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5517
SELECT DISTINCT - COUNT( * ) DIV + COUNT( * ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5517
SELECT DISTINCT - COUNT ( * ) / + COUNT ( * ) FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5518
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5518
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5519
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 * CAST( NULL AS SIGNED ) + + 97 * col1 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5519
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 * CAST ( NULL AS INTEGER ) + + 97 * col1 ) IS NULL
----

query I rowsort
SELECT ( col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT col0 / + col0 IN ( col1 )
----
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT ALL + + SUM( - col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5521
SELECT ALL + + SUM ( - col0 ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT ALL + col2 * + 68 FROM tab1 WHERE NOT ( ( 24 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT DISTINCT - ( COUNT( ALL + col1 ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5523
SELECT DISTINCT - ( COUNT ( ALL + col1 ) ) AS col2 FROM tab1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5524
SELECT ALL + CAST( ( + COUNT( ALL - 87 ) ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5524
SELECT ALL + CAST ( ( + COUNT ( ALL - 87 ) ) AS INTEGER ) FROM tab2
----
3

query I rowsort
SELECT ( - 68 ) FROM tab0
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT - MAX( ALL - col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5526
SELECT - MAX ( ALL - col0 ) AS col1 FROM tab1
----
51

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NOT col2 NOT IN ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5528
SELECT ALL 89 + CAST( col1 AS SIGNED ) DIV - col2 AS col0 FROM tab2 cor0
----
87
88
88

skipif mysql # not compatible
query I rowsort label-5528
SELECT ALL 89 + CAST ( col1 AS INTEGER ) / - col2 AS col0 FROM tab2 cor0
----
87
88
88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5530
SELECT DISTINCT + 0 + - MAX( - 47 ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5530
SELECT DISTINCT + 0 + - MAX ( - 47 ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 + + 7 FROM tab0 AS cor0
----
28
8
88

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( 77 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5533
SELECT + col1 DIV 5 + + 59 + + col2 col0 FROM tab1
----
119
136
157

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5533
SELECT + col1 / 5 + + 59 + + col2 col0 FROM tab1
----
119
136
157

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL NOT IN ( + ( 73 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5534
SELECT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL NOT IN ( + ( 73 ) )
----
0

query I rowsort
SELECT col0 * - 61 AS col1 FROM tab2
----
-2806
-3904
-4575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5536
SELECT DISTINCT - + ( + ( - COUNT( * ) ) ) * CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5536
SELECT DISTINCT - + ( + ( - COUNT ( * ) ) ) * CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-5537
SELECT DISTINCT - 0 DIV - col1 + col1 AS col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT - 0 / - col1 + col1 AS col0 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL IN ( - col0 * + - 44 )
----

query I rowsort
SELECT ALL - col1 * - ( + col0 ) FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 3 ) BETWEEN 91 AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col0 AS col0, + col2 * col0 FROM tab2 cor0
----
-46
1058
-64
2560
-75
4350

query I rowsort
SELECT ALL + col2 + - - col1 + - col1 AS col1 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT + + 65 * + 41 + - 77 FROM tab0 AS cor0
----
2588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5544
SELECT + 82 FROM tab2 AS cor0 WHERE ( CAST( + col1 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5544
SELECT + 82 FROM tab2 AS cor0 WHERE ( CAST ( + col1 AS INTEGER ) ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 32 NOT IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + ( - 8 ) col2 FROM tab1
----
51
60
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT ALL - 96 * COUNT( * ) - COUNT( * ) FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-5547
SELECT ALL - 96 * COUNT ( * ) - COUNT ( * ) FROM tab1
----
-291

onlyif mysql # DIV for integer division: 
query I rowsort label-5548
SELECT ALL col2 DIV 27 FROM tab2 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL col2 / 27 FROM tab2 cor0
----
0
1
2

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT ALL col2 * col0 + - + col2 AS col1 FROM tab0 cor0
----
658
860
9504

query I rowsort
SELECT DISTINCT col1 * - 46 AS col1 FROM tab1
----
-2162
-230
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT COUNT( ALL 60 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5552
SELECT COUNT ( ALL 60 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5553
SELECT ALL col2 DIV - + 85 col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5553
SELECT ALL col2 / - + 85 col1 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5554
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( 83 * - CAST( + + col0 AS SIGNED ) * + CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5554
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( 83 * - CAST ( + + col0 AS INTEGER ) * + CAST ( col1 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5555
SELECT col1 + + ( + CAST( NULL AS SIGNED ) ) col0 FROM tab0 AS cor0 WHERE NOT ( col0 ) NOT IN ( 97 * 5 * col0 - - col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5555
SELECT col1 + + ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0 WHERE NOT ( col0 ) NOT IN ( 97 * 5 * col0 - - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5556
SELECT DISTINCT col0 DIV 6 AS col0 FROM tab0 AS cor0
----
14
16
2

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT col0 / 6 AS col0 FROM tab0 AS cor0
----
14
16
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 + - + col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 75 col2 FROM tab1 cor0
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT DISTINCT + SUM( ALL + - 97 ) AS col2 FROM tab1 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-5559
SELECT DISTINCT + SUM ( ALL + - 97 ) AS col2 FROM tab1 AS cor0
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT + COUNT( * ) * 0 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5560
SELECT + COUNT ( * ) * 0 AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5561
SELECT DISTINCT ( - + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5561
SELECT DISTINCT ( - + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5562
SELECT + col1 AS col1, - CAST( col2 AS SIGNED ) * + col1, - ( + col1 ) AS col0 FROM tab0
----
9 values hashing to 143ad81f79fb4522f6eaeafc74abb872

skipif mysql # not compatible
query III rowsort label-5562
SELECT + col1 AS col1, - CAST ( col2 AS INTEGER ) * + col1, - ( + col1 ) AS col0 FROM tab0
----
9 values hashing to 143ad81f79fb4522f6eaeafc74abb872

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT - COUNT( ALL + - col1 ) * + 51 AS col2 FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-5563
SELECT - COUNT ( ALL + - col1 ) * + 51 AS col2 FROM tab0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT ALL - MIN( + ( - col1 ) ) * + - ( - COUNT( * ) ) AS col2 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL - MIN ( + ( - col1 ) ) * + - ( - COUNT ( * ) ) AS col2 FROM tab1
----
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab1 WHERE NOT ( NOT col1 + 44 NOT BETWEEN ( - col2 * + ( 57 * col1 ) ) AND NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col2 + - col2 - - col2 + + 34 * col0 * + col2 = + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 90 AS col2, - 99 AS col2 FROM tab1
----
90
-99
90
-99
90
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT ALL COUNT( * ) * + MIN( - col2 ) AS col2 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL COUNT ( * ) * + MIN ( - col2 ) AS col2 FROM tab1
----
-288

query II rowsort
SELECT ALL col1, + col0 + + col2 + + 49 * col1 AS col2 FROM tab0
----
1
245
21
1126
81
4031

query II rowsort
SELECT col2, ( 22 ) FROM tab0
----
10
22
47
22
99
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, - 1 FROM tab2
----
51
-1
67
-1
77
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 * - col2 ) IS NOT NULL
----

query I rowsort
SELECT - + 31 AS col1 FROM tab1 AS cor0
----
-31
-31
-31

query II rowsort
SELECT + - 66 AS col0, + col0 * - col1 FROM tab0 AS cor0
----
-66
-1215
-66
-1827
-66
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-5575
SELECT ALL + MIN( + - col2 ) AS col2, - 76 FROM tab0
----
-99
-76

skipif mysql # not compatible
query II rowsort label-5575
SELECT ALL + MIN ( + - col2 ) AS col2, - 76 FROM tab0
----
-99
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT COUNT( * ) * - - 38 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
342

skipif mysql # not compatible
query I rowsort label-5576
SELECT COUNT ( * ) * - - 38 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
342

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT - + COUNT( * ) * - MAX( 52 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
468

skipif mysql # not compatible
query I rowsort label-5577
SELECT - + COUNT ( * ) * - MAX ( 52 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
468

query I rowsort
SELECT + col0 + + + ( - col2 ) AS col2 FROM tab1
----
-45
23
26

query I rowsort
SELECT - col2 * ( col1 ) + - col0 * 97 AS col1 FROM tab1 AS cor0
----
-12023
-6291
-8540

query I rowsort
SELECT - + col1 + - + col0 AS col1 FROM tab0 AS cor0
----
-108
-96
-98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - + 67 / - 49 + - 57 + col1 - - col1 * - col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col2 + - - col0 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5583
SELECT + + col2 + 35 DIV - col1 FROM tab1 AS cor0
----
52
68
94

skipif mysql # not compatible
query I rowsort label-5583
SELECT + + col2 + 35 / - col1 FROM tab1 AS cor0
----
52
68
94

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 44 = ( col2 * - col2 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT MIN( - col0 ) + + - 58 FROM tab2 AS cor0
----
-133

skipif mysql # not compatible
query I rowsort label-5585
SELECT MIN ( - col0 ) + + - 58 FROM tab2 AS cor0
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( 40 ) IN ( - - 82 + - - 13 )
----
3

skipif mysql # not compatible
query I rowsort label-5586
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( 40 ) IN ( - - 82 + - - 13 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT - + 51 * COUNT( * ) * - MIN( DISTINCT - ( - ( + + col0 ) ) ) + - SUM( - col0 ) col1 FROM tab1 AS cor0
----
8030

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5587
SELECT - + 51 * COUNT ( * ) * - MIN ( DISTINCT - ( - ( + + col0 ) ) ) + - SUM ( - col0 ) col1 FROM tab1 AS cor0
----
8030

query I rowsort
SELECT ALL + ( - 44 ) + - col1 * - 73 FROM tab2 AS cor0
----
3679
4847
5577

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5589
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NULL >= NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5590
SELECT COUNT( * ) DIV - - 41 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5590
SELECT COUNT ( * ) / - - 41 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT - SUM( ALL col0 ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-5591
SELECT - SUM ( ALL col0 ) AS col2 FROM tab1
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 col1 FROM tab0 WHERE + col2 * + col1 * + - 35 / col0 * + 1 NOT IN ( col0 )
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5593
SELECT DISTINCT - COUNT( * ) + - MAX( + - col0 ) * 0 DIV + - COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5593
SELECT DISTINCT - COUNT ( * ) + - MAX ( + - col0 ) * 0 / + - COUNT ( * ) FROM tab2
----
-3

query III rowsort
SELECT ALL ( + + col2 ) - + col1, + col1, 80 + + 52 AS col0 FROM tab0
----
9 values hashing to f216c1594fb39f32b2b280531fe7dd83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5595
SELECT ALL - col0 - + col0 + - col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL - col0 - + col0 + - col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT - col2 AS col0, 12 AS col2 FROM tab1
----
-59
12
-68
12
-96
12

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 18 * col2 col1 FROM tab0 AS cor0
----
1782
180
846

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT ALL - COUNT( * ) * + - 49 AS col2 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-5599
SELECT ALL - COUNT ( * ) * + - 49 AS col2 FROM tab2
----
147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5600
SELECT - MIN( DISTINCT 0 ) DIV - 23 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5600
SELECT - MIN ( DISTINCT 0 ) / - 23 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT SUM( - 15 ) + - 9 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-144

skipif mysql # not compatible
query I rowsort label-5601
SELECT SUM ( - 15 ) + - 9 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT ALL + MIN( - col1 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL + MIN ( - col1 ) AS col2 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT ALL SUM( - 32 ) FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL SUM ( - 32 ) FROM tab2 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT MAX( DISTINCT + 27 ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-5604
SELECT MAX ( DISTINCT + 27 ) FROM tab2 AS cor0
----
27

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 AS cor0 WHERE ( 45 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT + ( - SUM( ALL 37 ) ) FROM tab1 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-5606
SELECT + ( - SUM ( ALL 37 ) ) FROM tab1 AS cor0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT - + SUM( DISTINCT - + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-5607
SELECT - + SUM ( DISTINCT - + col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5608
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 0 * col0 * - CAST( NULL AS SIGNED ) * + + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5608
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 0 * col0 * - CAST ( NULL AS INTEGER ) * + + col2 IS NULL
----

query I rowsort
SELECT ALL + ( - 64 ) AS col1 FROM tab0 AS cor0
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT + + 96 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-5610
SELECT + + 96 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5611
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5611
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) col0 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 col1 FROM tab1 cor0
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-5613
SELECT DISTINCT - col2 DIV + + 97 AS col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5613
SELECT DISTINCT - col2 / + + 97 AS col0 FROM tab0
----
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5614
SELECT DISTINCT MAX( ALL + - col2 ) DIV - 93 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5614
SELECT DISTINCT MAX ( ALL + - col2 ) / - 93 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5615
SELECT 35 DIV + - col1 FROM tab1
----
-2
-7
0

skipif mysql # not compatible
query I rowsort label-5615
SELECT 35 / + - col1 FROM tab1
----
-2
-7
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT + COUNT( DISTINCT + 11 ) FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5616
SELECT + COUNT ( DISTINCT + 11 ) FROM tab1 cor0
----
1

query I rowsort
SELECT ALL + 12 + + + 83 AS col0 FROM tab0 AS cor0
----
95
95
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5618
SELECT DISTINCT + 22 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5618
SELECT DISTINCT + 22 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 39 + + 30 FROM tab0
----
69

query II rowsort
SELECT ALL 1 AS col2, col0 FROM tab1 AS cor0
----
1
51
1
85
1
91

query II rowsort
SELECT + + col2 AS col1, - 46 * - - col2 + 3 AS col2 FROM tab1 AS cor0
----
59
-2711
68
-3125
96
-4413

query II rowsort
SELECT - 86, col1 AS col1 FROM tab1 AS cor0
----
-86
14
-86
47
-86
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT - + 47 - + - COUNT( * ) col1 FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5623
SELECT - + 47 - + - COUNT ( * ) col1 FROM tab0 AS cor0
----
-44

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * col2 < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 6 col2 FROM tab1 cor0
----
6

query I rowsort
SELECT ALL - 28 + + col2 FROM tab0 AS cor0
----
-18
19
71

query I rowsort
SELECT 0 + + - 52 FROM tab2
----
-52
-52
-52

query I rowsort
SELECT col0 + + 3 FROM tab0
----
100
18
90

query I rowsort
SELECT DISTINCT + col2 * - col0 * 58 + col0 FROM tab2
----
-148416
-252225
-61318

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 + + - 27 + + + col2 >= + + col0
----
51
14
96

onlyif mysql # DIV for integer division: 
query III rowsort label-5631
SELECT DISTINCT * FROM tab2 WHERE + col1 BETWEEN + col0 DIV 26 + - 49 - - 29 AND ( - col0 DIV 70 - - col1 )
----
46
51
23
64
77
40

skipif mysql # not compatible
query III rowsort label-5631
SELECT DISTINCT * FROM tab2 WHERE + col1 BETWEEN + col0 / 26 + - 49 - - 29 AND ( - col0 / 70 - - col1 )
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query II rowsort label-5632
SELECT - COUNT( - 62 ), + 76 * 53 AS col2 FROM tab0, tab0 AS cor0
----
-9
4028

skipif mysql # not compatible
query II rowsort label-5632
SELECT - COUNT ( - 62 ), + 76 * 53 AS col2 FROM tab0, tab0 AS cor0
----
-9
4028

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5633
SELECT ALL - 5 * + + CAST( NULL AS SIGNED ) / COUNT( * ) + COUNT( ALL + col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL - 5 * + + CAST ( NULL AS INTEGER ) / COUNT ( * ) + COUNT ( ALL + col1 ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = + col0 * + - col2 * + - 84
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 76 col0 FROM tab0 AS cor0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5636
SELECT ALL + col2 * - CAST( col2 AS SIGNED ) FROM tab2
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL + col2 * - CAST ( col2 AS INTEGER ) FROM tab2
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT DISTINCT MIN( - 55 ) AS col2 FROM tab1
----
-55

skipif mysql # not compatible
query I rowsort label-5637
SELECT DISTINCT MIN ( - 55 ) AS col2 FROM tab1
----
-55

query I rowsort
SELECT DISTINCT 68 * 60 + col1 - + 95 AS col1 FROM tab2 AS cor0
----
4036
4052
4062

query II rowsort
SELECT ALL + 16, - col2 AS col2 FROM tab2 AS cor0
----
16
-23
16
-40
16
-58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 63 * - + 89 BETWEEN + col2 + col2 AND + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 73 - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 53 * + 72 FROM tab1 AS cor0
----
3816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col0 FROM tab1 AS cor0
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT - + MAX( ALL + - col0 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-5644
SELECT - + MAX ( ALL + - col0 ) FROM tab0 cor0
----
15

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - ( - + 11 ) + + col2 ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + - 88 col2 FROM tab0 AS cor0
----
-135
-187
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-5647
SELECT DISTINCT 35 DIV - 47 + + ( + ( col2 ) ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5647
SELECT DISTINCT 35 / - 47 + + ( + ( col2 ) ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5648
SELECT 17 + - COUNT( * ) * + CAST( CAST( + 11 AS SIGNED ) AS SIGNED ) FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-5648
SELECT 17 + - COUNT ( * ) * + CAST ( CAST ( + 11 AS INTEGER ) AS INTEGER ) FROM tab1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT MIN( ALL + col1 ) + + COUNT( * ) * ( - MIN( col1 ) ) FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-5649
SELECT MIN ( ALL + col1 ) + + COUNT ( * ) * ( - MIN ( col1 ) ) FROM tab2
----
-102

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 1 < NULL
----

query I rowsort
SELECT 63 * - col1 + - col1 + col2 FROM tab1
----
-261
-2940
-800

query I rowsort
SELECT DISTINCT - ( - 95 ) AS col0 FROM tab0
----
95

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 < + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5654
SELECT ALL - - col1 * - 0 + + - col1 DIV col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5654
SELECT ALL - - col1 * - 0 + + - col1 / col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + - col0 + - - 64 FROM tab1 AS cor0
----
-21
-27
13

query I rowsort
SELECT - col0 * + + 43 * + col0 FROM tab2 AS cor0
----
-176128
-241875
-90988

query I rowsort
SELECT 6 + + ( + 83 ) AS col1 FROM tab2 AS cor0
----
89
89
89

query I rowsort
SELECT col1 + col1 FROM tab1 AS cor0 WHERE ( col2 ) <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5660
SELECT CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5660
SELECT CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * - + col1 * - col1 FROM tab1 AS cor0
----
-103823
-125
-2744

query I rowsort
SELECT ALL ( - 27 ) * + col2 * col2 + col0 FROM tab0 AS cor0
----
-2613
-264530
-59628

onlyif mysql # DIV for integer division: 
query I rowsort label-5663
SELECT - 52 DIV 62 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5663
SELECT - 52 / 62 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT DISTINCT COUNT( * ) * MIN( DISTINCT - - col0 ) + MIN( + + col2 ) FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-5664
SELECT DISTINCT COUNT ( * ) * MIN ( DISTINCT - - col0 ) + MIN ( + + col2 ) FROM tab0 AS cor0
----
55

query I rowsort
SELECT - col2 * + col2 * - - col1 FROM tab1 AS cor0
----
-129024
-17405
-217328

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( - col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( + + col2 ) * - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( + + col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 77 + - 7 + col2 * + - col2 AS col0 FROM tab1
----
-3565
-4708
-9300

query II rowsort
SELECT DISTINCT col1, col1 - - 61 * + col1 FROM tab1
----
14
868
47
2914
5
310

query II rowsort
SELECT DISTINCT - col0 AS col1, 89 AS col1 FROM tab0
----
-15
89
-87
89
-97
89

query I rowsort
SELECT ALL + 13 AS col0 FROM tab1
----
13
13
13

query II rowsort
SELECT + 64 AS col0, 89 FROM tab1
----
64
89
64
89
64
89

query I rowsort
SELECT DISTINCT 56 * + col2 * + col0 FROM tab1 WHERE ( NULL ) >= col2 + - + 97
----

query I rowsort
SELECT ALL + col0 * + col2 + 12 AS col2 FROM tab1 AS cor0
----
4908
5027
6200

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 85 / 51 NOT BETWEEN + col1 * - col0 + + col0 AND ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5677
SELECT 66, 80 * + ( - COUNT( * ) ) DIV COUNT( * ) AS col1 FROM tab2 cor0
----
66
-80

skipif mysql # not compatible
query II rowsort label-5677
SELECT 66, 80 * + ( - COUNT ( * ) ) / COUNT ( * ) AS col1 FROM tab2 cor0
----
66
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT ALL - COUNT( * ) * - 57 AS col2 FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-5678
SELECT ALL - COUNT ( * ) * - 57 AS col2 FROM tab1 AS cor0
----
171

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN + - col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5680
SELECT + 49 / + 42 + CAST( NULL AS SIGNED ) + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5680
SELECT + 49 / + 42 + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT ALL MIN( - - 88 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
88

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL MIN ( - - 88 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
88

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5683
SELECT + CAST( NULL AS SIGNED ) / + CAST( 43 AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5683
SELECT + CAST ( NULL AS INTEGER ) / + CAST ( 43 AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + 81 IN ( + - col0 + - col1 )
----

query I rowsort
SELECT ALL - 0 * + - col2 + + col2 + 36 + - col1 * - col2 AS col0 FROM tab1 AS cor0
----
1476
3300
390

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT - SUM( ALL - 23 ) AS col2 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5686
SELECT - SUM ( ALL - 23 ) AS col2 FROM tab2 AS cor0
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 col2 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT DISTINCT + col2 * - - col0 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT ALL - + 89 * - 84 FROM tab1 AS cor0
----
7476
7476
7476

query I rowsort
SELECT ALL 98 FROM tab0 cor0 WHERE ( 50 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT ( ( - MAX( + - col2 ) ) ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5691
SELECT ( ( - MAX ( + - col2 ) ) ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

query II rowsort
SELECT ALL - - col1 * 62 AS col0, + col1 AS col1 FROM tab2 AS cor0
----
3162
51
4154
67
4774
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 IN ( + 87 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2 * + col2 * + col1 AS col2, ( 29 ) AS col1 FROM tab1
----
129024
29
17405
29
217328
29

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 32 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * - + 32 FROM tab1
----
-1504
-160
-448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 17 * + 63 col0 FROM tab1
----
1071
1071
1071

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5699
SELECT CAST( NULL AS SIGNED ) * - - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5699
SELECT CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 * - col1 * + col2 FROM tab1
----
-1475
-150212
-18816

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 26 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT DISTINCT - SUM( - col1 ) * + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5702
SELECT DISTINCT - SUM ( - col1 ) * + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT DISTINCT + - COUNT( * ) * - 51 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-5703
SELECT DISTINCT + - COUNT ( * ) * - 51 FROM tab1 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT DISTINCT - COUNT( * ) * - + COUNT( * ) + ( + SUM( col1 ) ) + - 58 AS col1 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-5704
SELECT DISTINCT - COUNT ( * ) * - + COUNT ( * ) + ( + SUM ( col1 ) ) + - 58 AS col1 FROM tab1 AS cor0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-5705
SELECT DISTINCT - + col1 DIV + ( + 63 ) + col2 AS col0 FROM tab0 AS cor0
----
10
46
99

skipif mysql # not compatible
query I rowsort label-5705
SELECT DISTINCT - + col1 / + ( + 63 ) + col2 AS col0 FROM tab0 AS cor0
----
10
46
99

query I rowsort
SELECT - 43 FROM tab1 WHERE + 95 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5707
SELECT + ( - COUNT( * ) ) AS col1, 44 DIV - + CAST( - COUNT( * ) AS SIGNED ) FROM tab2
----
-3
14

skipif mysql # not compatible
query II rowsort label-5707
SELECT + ( - COUNT ( * ) ) AS col1, 44 / - + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2
----
-3
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5708
SELECT ALL + col0 DIV + col0 + col0 AS col1 FROM tab0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL + col0 / + col0 + col0 AS col1 FROM tab0
----
16
88
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5709
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT - MIN( + col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5710
SELECT - MIN ( + col1 ) FROM tab0
----
-1

query I rowsort
SELECT col0 - 84 FROM tab0 AS cor0
----
-69
13
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5712
SELECT DISTINCT 41 * - COUNT( * ), + ( COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-123
3

skipif mysql # not compatible
query II rowsort label-5712
SELECT DISTINCT 41 * - COUNT ( * ), + ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-123
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5713
SELECT DISTINCT - 93 DIV 87 + col2 AS col0 FROM tab2 AS cor0
----
22
39
57

skipif mysql # not compatible
query I rowsort label-5713
SELECT DISTINCT - 93 / 87 + col2 AS col0 FROM tab2 AS cor0
----
22
39
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT 19 * COUNT( * ) AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5714
SELECT 19 * COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5715
SELECT ALL - + ( + + col1 ) DIV + 77 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5715
SELECT ALL - + ( + + col1 ) / + 77 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5716
SELECT DISTINCT - 63 DIV col1 AS col0 FROM tab1 cor0
----
-1
-12
-4

skipif mysql # not compatible
query I rowsort label-5716
SELECT DISTINCT - 63 / col1 AS col0 FROM tab1 cor0
----
-1
-12
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-5717
SELECT 1 DIV col1, - 31 AS col2 FROM tab1 AS cor0
----
0
-31
0
-31
0
-31

skipif mysql # not compatible
query II rowsort label-5717
SELECT 1 / col1, - 31 AS col2 FROM tab1 AS cor0
----
0
-31
0
-31
0
-31

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 <> col1
----

query I rowsort
SELECT DISTINCT ( + + col1 ) FROM tab2
----
51
67
77

query II rowsort
SELECT - 77 AS col2, 60 FROM tab1
----
-77
60
-77
60
-77
60

onlyif mysql # DIV for integer division: 
query II rowsort label-5721
SELECT col2, col0 DIV + - ( - + 61 ) FROM tab1
----
59
1
68
1
96
0

skipif mysql # not compatible
query II rowsort label-5721
SELECT col2, col0 / + - ( - + 61 ) FROM tab1
----
59
1
68
1
96
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5722
SELECT + CAST( - + col1 AS SIGNED ) AS col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5722
SELECT + CAST ( - + col1 AS INTEGER ) AS col2 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT ALL col2 * + col2 * - col1 AS col0 FROM tab0
----
-178929
-2100
-9801

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 53 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT ALL COUNT( DISTINCT - - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5725
SELECT ALL COUNT ( DISTINCT - - col1 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5726
SELECT ( - ( + CAST( - col0 AS SIGNED ) ) ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5726
SELECT ( - ( + CAST ( - col0 AS INTEGER ) ) ) FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT + 52 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5727
SELECT + 52 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
156

query I rowsort
SELECT DISTINCT 25 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
25

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT col1 IS NULL
----
51
67
77

query I rowsort
SELECT ALL - 36 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # aggregate syntax: 
query II rowsort label-5731
SELECT ALL 29 AS col2, 60 * + COUNT( * ) AS col0 FROM tab1
----
29
180

skipif mysql # not compatible
query II rowsort label-5731
SELECT ALL 29 AS col2, 60 * + COUNT ( * ) AS col0 FROM tab1
----
29
180

onlyif mysql # aggregate syntax: 
query II rowsort label-5732
SELECT + 14 + - COUNT( * ) AS col1, COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
5
9

skipif mysql # not compatible
query II rowsort label-5732
SELECT + 14 + - COUNT ( * ) AS col1, COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
5
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT ALL - - MIN( ALL + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5733
SELECT ALL - - MIN ( ALL + col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT 98 * - + col0 * - - 12 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT COUNT( DISTINCT col0 ) + - - 86 AS col0 FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-5735
SELECT COUNT ( DISTINCT col0 ) + - - 86 AS col0 FROM tab0 AS cor0
----
89

query II rowsort
SELECT - - col1 + - col2, + col2 FROM tab0 AS cor0
----
-98
99
11
10
34
47

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col0 * - + 5 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * col2 + - + col2 AS col2 FROM tab2
----
1150
3040
3828

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT ALL 71 * COUNT( * ) FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-5739
SELECT ALL 71 * COUNT ( * ) FROM tab1
----
213

query I rowsort
SELECT ( - 85 ) FROM tab0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT - - col1 * - + 91 FROM tab0 AS cor0 WHERE NOT ( ( NOT - col2 IS NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5743
SELECT MIN( col2 ) DIV COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5743
SELECT MIN ( col2 ) / COUNT ( * ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT col1 - + - 22 FROM tab0 AS cor0
----
103
23
43

query I rowsort
SELECT + col1 * col1 - + col2 FROM tab2 AS cor0
----
2578
4431
5889

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT DISTINCT + SUM( - 73 ) FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-5746
SELECT DISTINCT + SUM ( - 73 ) FROM tab1 AS cor0
----
-219

query I rowsort
SELECT - col0 - - col0 * - 75 + col1 AS col2 FROM tab1 cor0
----
-3862
-6455
-6869

query I rowsort
SELECT + 52 - col2 FROM tab2 AS cor0
----
-6
12
29

query I rowsort
SELECT DISTINCT + - col0 FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

query I rowsort
SELECT ALL + col1 + - 47 - - col0 + col1 + col2 * + 63 FROM tab0
----
3091
6289
712

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5751
SELECT DISTINCT col2 * + col1 * - + 76 AS col0, ( + CAST( + + col1 AS SIGNED ) ) FROM tab1
----
-102144
14
-22420
5
-242896
47

skipif mysql # not compatible
query II rowsort label-5751
SELECT DISTINCT col2 * + col1 * - + 76 AS col0, ( + CAST ( + + col1 AS INTEGER ) ) FROM tab1
----
-102144
14
-22420
5
-242896
47

query I rowsort
SELECT DISTINCT - - ( ( + + col1 ) ) - - + col2 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5753
SELECT - CAST( + MAX( DISTINCT col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5753
SELECT - CAST ( + MAX ( DISTINCT col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5754
SELECT + SUM( CAST( - 7 AS SIGNED ) ) FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-5754
SELECT + SUM ( CAST ( - 7 AS INTEGER ) ) FROM tab1 AS cor0
----
-21

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5755
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + - col1 ) < - col1 * + CAST( 44 AS DECIMAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5755
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + - col1 ) < - col1 * + CAST ( 44 AS REAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 72 * 98 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT ALL - ( + - MIN( ALL + - col1 ) ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5757
SELECT ALL - ( + - MIN ( ALL + - col1 ) ) AS col2 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-5758
SELECT + 11 col1, + 42 * + - MAX( ALL ( - ( + 21 ) ) ) AS col2 FROM tab0 cor0
----
11
882

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5758
SELECT + 11 col1, + 42 * + - MAX ( ALL ( - ( + 21 ) ) ) AS col2 FROM tab0 cor0
----
11
882

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT DISTINCT - - COUNT( + 61 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5759
SELECT DISTINCT - - COUNT ( + 61 ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5761
SELECT - col2 * - - col1 DIV - - col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5761
SELECT - col2 * - - col1 / - - col1 FROM tab1
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5762
SELECT + col2 DIV col2 * + col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5762
SELECT + col2 / col2 * + col1 FROM tab0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5763
SELECT ALL 62 DIV + ( + - col2 ) col2 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5763
SELECT ALL 62 / + ( + - col2 ) col2 FROM tab0
----
-1
-6
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT DISTINCT MAX( DISTINCT + 55 ) AS col1 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-5764
SELECT DISTINCT MAX ( DISTINCT + 55 ) AS col1 FROM tab2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5765
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5766
SELECT DISTINCT + COUNT( * ), ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
-3

skipif mysql # not compatible
query II rowsort label-5766
SELECT DISTINCT + COUNT ( * ), ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
-3

query I rowsort
SELECT ALL 72 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5768
SELECT + CAST( NULL AS SIGNED ) * - - 31 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5768
SELECT + CAST ( NULL AS INTEGER ) * - - 31 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5769
SELECT CAST( - ( ( 24 ) ) AS SIGNED ) FROM tab1 AS cor0
----
-24
-24
-24

skipif mysql # not compatible
query I rowsort label-5769
SELECT CAST ( - ( ( 24 ) ) AS INTEGER ) FROM tab1 AS cor0
----
-24
-24
-24

query I rowsort
SELECT - - col0 * + col0 FROM tab0 cor0
----
225
7569
9409

query I rowsort
SELECT + col1 * + col0 * - + col0 FROM tab2 AS cor0
----
-107916
-315392
-376875

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 + + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, col2 col1 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT MIN( + 91 ) AS col0 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-5774
SELECT MIN ( + 91 ) AS col0 FROM tab0
----
91

query I rowsort
SELECT - 68 + - col0 FROM tab0
----
-155
-165
-83

query I rowsort
SELECT - col2 * + - 92 * + + col1 + + + ( - + col1 ) AS col0 FROM tab2
----
107865
283283
357445

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + - 72 ) col1 FROM tab0
----
-72
-72
-72

query I rowsort
SELECT ALL col1 * + col2 - - col2 FROM tab0
----
198
220
3854

query III rowsort
SELECT * FROM tab0 WHERE + 72 IS NULL
----

query I rowsort
SELECT - col2 * - - col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5781
SELECT DISTINCT + + 93 - SUM( ALL - col1 ) DIV + + COUNT( * ) FROM tab2 AS cor0
----
158

skipif mysql # not compatible
query I rowsort label-5781
SELECT DISTINCT + + 93 - SUM ( ALL - col1 ) / + + COUNT ( * ) FROM tab2 AS cor0
----
158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5782
SELECT COUNT( * ) DIV ( + + 99 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5782
SELECT COUNT ( * ) / ( + + 99 ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 col1 FROM tab2 AS cor0
----
52
52
52

query I rowsort
SELECT DISTINCT 9 AS col1 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5786
SELECT - - MIN( DISTINCT col1 ) AS col2, 86 AS col1 FROM tab2 AS cor0
----
51
86

skipif mysql # not compatible
query II rowsort label-5786
SELECT - - MIN ( DISTINCT col1 ) AS col2, 86 AS col1 FROM tab2 AS cor0
----
51
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 45 ) col2 FROM tab1
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT SUM( + + 88 ) FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-5788
SELECT SUM ( + + 88 ) FROM tab0
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT ( - 79 ) * + - COUNT( * ) FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-5789
SELECT ( - 79 ) * + - COUNT ( * ) FROM tab0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT ALL - 27 * - - COUNT( * ) FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL - 27 * - - COUNT ( * ) FROM tab1
----
-81

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-5791
SELECT DISTINCT col2 DIV + CAST( CAST( + 84 AS DECIMAL ) AS SIGNED ) * - col1 + + + CAST( + CAST( 24 AS SIGNED ) AS SIGNED ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-5791
SELECT DISTINCT col2 / + CAST ( CAST ( + 84 AS REAL ) AS INTEGER ) * - col1 + + + CAST ( + CAST ( 24 AS INTEGER ) AS INTEGER ) FROM tab2
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-5792
SELECT + 53 DIV col1 AS col2 FROM tab0
----
0
2
53

skipif mysql # not compatible
query I rowsort label-5792
SELECT + 53 / col1 AS col2 FROM tab0
----
0
2
53

query II rowsort
SELECT DISTINCT col0 AS col0, - col1 * - col2 AS col2 FROM tab1
----
51
1344
85
295
91
3196

query I rowsort
SELECT ALL - - 48 FROM tab0 WHERE + + 11 * col0 * + col0 IS NOT NULL
----
48
48
48

query I rowsort
SELECT - + col2 AS col1 FROM tab0 cor0 WHERE NOT - col2 * - col2 IS NULL
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - ( + col1 ) AS col1, + col0 / - col0 / + + 15 * - col0 col0 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT + 64 + + - col1 AS col1 FROM tab0 AS cor0
----
-17
43
63

query I rowsort
SELECT + col2 + - 14 AS col1 FROM tab1 cor0
----
45
54
82

onlyif mysql # DIV for integer division: 
query I rowsort label-5799
SELECT + col0 DIV + col0 + + col0 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-5799
SELECT + col0 / + col0 + + col0 FROM tab1 AS cor0
----
52
86
92

query I rowsort
SELECT + - col2 + + 26 AS col2 FROM tab1 AS cor0
----
-33
-42
-70

query I rowsort
SELECT col0 + - 37 FROM tab0 AS cor0
----
-22
50
60

query I rowsort
SELECT - - col1 + - + col2 AS col1 FROM tab2 cor0
----
28
37
9

query I rowsort
SELECT DISTINCT col2 + - 41 FROM tab1
----
18
27
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT COUNT( + + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5804
SELECT COUNT ( + + col2 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT DISTINCT SUM( 89 ) - + 57 + 18 AS col0 FROM tab2
----
228

skipif mysql # not compatible
query I rowsort label-5805
SELECT DISTINCT SUM ( 89 ) - + 57 + 18 AS col0 FROM tab2
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT - - COUNT( * ) AS col0 FROM tab2 WHERE - col2 * - + 33 * - + col1 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5806
SELECT - - COUNT ( * ) AS col0 FROM tab2 WHERE - col2 * - + 33 * - + col1 BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE col1 / + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 11 - 26 FROM tab2
----
-15

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE NULL IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT ALL MAX( ALL + col0 ) - - 9 + - MAX( + - 36 ) FROM tab0
----
142

skipif mysql # not compatible
query I rowsort label-5810
SELECT ALL MAX ( ALL + col0 ) - - 9 + - MAX ( + - 36 ) FROM tab0
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5811
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN CAST( - - col0 AS SIGNED ) AND NULL
----
75
67
58

skipif mysql # not compatible
query III rowsort label-5811
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN CAST ( - - col0 AS INTEGER ) AND NULL
----
75
67
58

query I rowsort
SELECT - 98 - + - 67 AS col1 FROM tab0 cor0
----
-31
-31
-31

query I rowsort
SELECT - 8 + col0 + col0 - + 24 + col1 AS col0 FROM tab2 AS cor0
----
111
173
185

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT - ( + - COUNT( * ) ) * - - COUNT( * ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5814
SELECT - ( + - COUNT ( * ) ) * - - COUNT ( * ) AS col1 FROM tab2
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0, col2 * + 66 col0 FROM tab0 AS cor0 WHERE NOT - col0 <> + 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT - MIN( + + 2 ) AS col0 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5816
SELECT - MIN ( + + 2 ) AS col0 FROM tab1 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT ALL - + ( + COUNT( * ) ) FROM tab1 cor0 WHERE NOT ( NOT NULL >= NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5817
SELECT ALL - + ( + COUNT ( * ) ) FROM tab1 cor0 WHERE NOT ( NOT NULL >= NULL )
----
0

query II rowsort
SELECT + 27 AS col1, - 1 AS col1 FROM tab0 AS cor0
----
27
-1
27
-1
27
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5819
SELECT ALL - CAST( NULL AS SIGNED ) / col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL - CAST ( NULL AS INTEGER ) / col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - + 66 col2, + 58 + - col0 AS col2 FROM tab0
----
-3102
43
-6534
-39
-660
-29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5821
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 - - CAST( NULL AS SIGNED ) + + + col0 < NULL
----

skipif mysql # not compatible
query III rowsort label-5821
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 - - CAST ( NULL AS INTEGER ) + + + col0 < NULL
----

query I rowsort
SELECT - 6 * + col1 AS col2 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

query II rowsort
SELECT + 15 * col2 AS col0, 9 FROM tab2
----
345
9
600
9
870
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5824
SELECT + col0 DIV 65 col1 FROM tab0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5824
SELECT + col0 / 65 col1 FROM tab0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT ALL COUNT( - col0 ) FROM tab2 AS cor0 WHERE NOT NULL IN ( - 64, col0 * + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5825
SELECT ALL COUNT ( - col0 ) FROM tab2 AS cor0 WHERE NOT NULL IN ( - 64, col0 * + col1 )
----
0

query II rowsort
SELECT + 94 + 20 AS col2, - 79 FROM tab1 cor0
----
114
-79
114
-79
114
-79

query I rowsort
SELECT ALL col0 * + col1 FROM tab2 AS cor0 WHERE 39 + - ( - ( 87 ) ) IS NOT NULL
----
2346
4928
5025

query I rowsort
SELECT DISTINCT - - ( + 77 ) * + - 5 FROM tab2 AS cor0
----
-385

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5829
SELECT - + col1 AS col2, + col0 AS col1 FROM tab1 AS cor0 WHERE NULL IN ( - + col1, CAST( NULL AS SIGNED ) + + col0 - + ( - col1 ), - col0 ) AND NOT - col2 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-5829
SELECT - + col1 AS col2, + col0 AS col1 FROM tab1 AS cor0 WHERE NULL IN ( - + col1, CAST ( NULL AS INTEGER ) + + col0 - + ( - col1 ), - col0 ) AND NOT - col2 IS NOT NULL
----

query I rowsort
SELECT + col1 - - - 8 FROM tab2 AS cor0 WHERE NULL IS NULL AND NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5831
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) = NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-5831
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) = NULL
----

query I rowsort
SELECT ALL + 82 + col2 * - 96 AS col0 FROM tab0
----
-4430
-878
-9422

query I rowsort
SELECT ALL ( - col1 ) + + 5 + - col1 + - + 48 AS col0 FROM tab0
----
-205
-45
-85

query I rowsort
SELECT col1 * + - 91 FROM tab1
----
-1274
-4277
-455

query I rowsort
SELECT DISTINCT - 48 FROM tab1, tab2 AS cor0
----
-48

query II rowsort
SELECT ALL col0, + col2 * - col1 * - 44 FROM tab0 AS cor0
----
15
167508
87
9240
97
4356

query I rowsort
SELECT ALL col0 * col0 + + col0 + 42 * - col0 FROM tab1 AS cor0
----
3740
4550
510

query I rowsort
SELECT DISTINCT - - col2 + + col1 FROM tab0 cor0
----
100
128
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5839
SELECT DISTINCT - 53 DIV ( - + SUM( ALL - - col1 ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT - 53 / ( - + SUM ( ALL - - col1 ) ) FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 69 + - col1 col1, - 40 FROM tab1
----
22
-40
55
-40
64
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT ALL + 45 - - 66 * + COUNT( * ) AS col2 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL + 45 - - 66 * + COUNT ( * ) AS col2 FROM tab0
----
243

query I rowsort
SELECT DISTINCT 87 + + 68 FROM tab0
----
155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5843
SELECT + ( - ( + + 56 ) ) * CAST( - col1 AS SIGNED ) + + - col2 AS col1 FROM tab0
----
-43
1166
4489

skipif mysql # not compatible
query I rowsort label-5843
SELECT + ( - ( + + 56 ) ) * CAST ( - col1 AS INTEGER ) + + - col2 AS col1 FROM tab0
----
-43
1166
4489

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5844
SELECT ALL 59 col2 FROM tab2 WHERE + col2 * - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5844
SELECT ALL 59 col2 FROM tab2 WHERE + col2 * - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5845
SELECT 9 + - - COUNT( * ), + COUNT( * ) AS col1 FROM tab0
----
12
3

skipif mysql # not compatible
query II rowsort label-5845
SELECT 9 + - - COUNT ( * ), + COUNT ( * ) AS col1 FROM tab0
----
12
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT DISTINCT - - ( - - ( COUNT( * ) ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5846
SELECT DISTINCT - - ( - - ( COUNT ( * ) ) ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT ALL - COUNT( * ) * + MAX( DISTINCT + + 70 ) AS col1 FROM tab1 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL - COUNT ( * ) * + MAX ( DISTINCT + + 70 ) AS col1 FROM tab1 AS cor0
----
-210

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 WHERE + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < + 24
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5850
SELECT DISTINCT CAST( - + col0 AS SIGNED ) FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5850
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT ALL - - COUNT( * ) col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5851
SELECT ALL - - COUNT ( * ) col2 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT ( + MIN( DISTINCT 88 ) ) FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-5852
SELECT ( + MIN ( DISTINCT 88 ) ) FROM tab0 AS cor0
----
88

query I rowsort
SELECT - col1 * - + col0 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT + - SUM( DISTINCT 44 ) FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-5854
SELECT + - SUM ( DISTINCT 44 ) FROM tab2 AS cor0
----
-44

query I rowsort
SELECT ALL + 40 * + col2 + + col2 FROM tab2 AS cor0
----
1640
2378
943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5856
SELECT ALL + ( - + CAST( + col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5856
SELECT ALL + ( - + CAST ( + col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-15
-87
-97

query II rowsort
SELECT + 38, col1 * + + 81 AS col1 FROM tab2
----
38
4131
38
5427
38
6237

query I rowsort
SELECT DISTINCT - col0 * col1 + + col1 AS col2 FROM tab1
----
-420
-4230
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT COUNT( * ) FROM tab2, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5859
SELECT COUNT ( * ) FROM tab2, tab1 cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col1 ) < col0 - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT ( 1 ) + - - COUNT( * ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-5861
SELECT ( 1 ) + - - COUNT ( * ) FROM tab2
----
4

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < ( + 50 )
----

query I rowsort
SELECT DISTINCT - 38 * 43 AS col1 FROM tab2, tab0 cor0
----
-1634

query I rowsort
SELECT 0 * + + 22 FROM tab2
----
0
0
0

query I rowsort
SELECT - 34 AS col0 FROM tab1 AS cor0 WHERE - 95 = NULL
----

query I rowsort
SELECT - - col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT + col2 + 4 + 68 AS col1 FROM tab0 AS cor0
----
119
171
82

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - - col1 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5869
SELECT MIN( + + ( col2 ) ) DIV - COUNT( * ) - 36 AS col2 FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-39

skipif mysql # not compatible
query I rowsort label-5869
SELECT MIN ( + + ( col2 ) ) / - COUNT ( * ) - 36 AS col2 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 94 * - 86, + col2 col2 FROM tab1 AS cor0
----
8084
59
8084
68
8084
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab0 AS cor0 WHERE + col1 <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT + COUNT( * ) + + COUNT( ALL + - col1 ) AS col0 FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-5872
SELECT + COUNT ( * ) + + COUNT ( ALL + - col1 ) AS col0 FROM tab1 cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5873
SELECT ALL - 65 + + + CAST( - 79 AS SIGNED ) + 3 FROM tab0 cor0
----
-141
-141
-141

skipif mysql # not compatible
query I rowsort label-5873
SELECT ALL - 65 + + + CAST ( - 79 AS INTEGER ) + 3 FROM tab0 cor0
----
-141
-141
-141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - + col0 + col0 col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT DISTINCT + - COUNT( * ) + - + 66 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-5876
SELECT DISTINCT + - COUNT ( * ) + - + 66 FROM tab1 AS cor0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5877
SELECT + col1, CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-5877
SELECT + col1, CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT ALL + 16 + - 23 * COUNT( * ) FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL + 16 + - 23 * COUNT ( * ) FROM tab1
----
-53

query I rowsort
SELECT DISTINCT + 22 * col0 AS col2 FROM tab0
----
1914
2134
330

onlyif mysql # DIV for integer division: 
query I rowsort label-5880
SELECT DISTINCT + col0 DIV + - col0 col2 FROM tab2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5880
SELECT DISTINCT + col0 / + - col0 col2 FROM tab2
----
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + - col0 col1 FROM tab0 AS cor0
----
-225
-7569
-9409

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( NULL IS NOT NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5885
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT + 70 > NULL
----

skipif mysql # not compatible
query I rowsort label-5885
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT + 70 > NULL
----

query I rowsort
SELECT ALL ( + + col0 ) FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + - 85 + + 47 FROM tab2 WHERE NOT ( NOT col0 + + + 69 * - col1 IS NULL )
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 88 IS NULL
----

query I rowsort
SELECT - 1 * 65 AS col0 FROM tab1 AS cor0
----
-65
-65
-65

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT MAX( ALL + - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5892
SELECT MAX ( ALL + - col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT DISTINCT - + COUNT( DISTINCT - + col2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5893
SELECT DISTINCT - + COUNT ( DISTINCT - + col2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 41 col1 FROM tab1 AS cor0
----
41
41
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5895
SELECT ALL 4 + - CAST( - COUNT( * ) AS SIGNED ) FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-5895
SELECT ALL 4 + - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1
----
7

query I rowsort
SELECT ( - - col2 ) * + ( - - col1 ) FROM tab0 WHERE NOT + - col1 >= NULL
----

query I rowsort
SELECT - ( + 85 ) FROM tab0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT ALL + MIN( DISTINCT - col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL + MIN ( DISTINCT - col0 ) AS col1 FROM tab0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5899
SELECT ALL CAST( NULL AS SIGNED ), 11 AS col1 FROM tab0
----
NULL
11
NULL
11
NULL
11

skipif mysql # not compatible
query II rowsort label-5899
SELECT ALL CAST ( NULL AS INTEGER ), 11 AS col1 FROM tab0
----
NULL
11
NULL
11
NULL
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT DISTINCT + MAX( ALL - 40 ) FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT + MAX ( ALL - 40 ) FROM tab2
----
-40

query II rowsort
SELECT ALL 38 AS col1, + col1 + + col2 AS col2 FROM tab2
----
38
117
38
125
38
74

query III rowsort
SELECT * FROM tab2 WHERE 51 > - ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5903
SELECT DISTINCT - - COUNT( * ), CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5903
SELECT DISTINCT - - COUNT ( * ), CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5904
SELECT ALL + col0 + 0 + + + col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL + col0 + 0 + + + col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 45 + + - 30 FROM tab1 cor0
----
15
15
15

query I rowsort
SELECT 26 FROM tab2 WHERE col2 >= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 88 - + col1 col2 FROM tab0
----
1827
7047
87

onlyif mysql # DIV for integer division: 
query I rowsort label-5908
SELECT col1 DIV - 13 AS col1 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-5908
SELECT col1 / - 13 AS col1 FROM tab0 AS cor0
----
-1
-6
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5909
SELECT DISTINCT + 96 AS col1, + COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
96
9

skipif mysql # not compatible
query II rowsort label-5909
SELECT DISTINCT + 96 AS col1, + COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
96
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5910
SELECT - - col0 + + - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5910
SELECT - - col0 + + - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - col0 ) + + - ( - col1 ) AS col0 FROM tab1
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5912
SELECT ALL 66 / CAST( NULL AS SIGNED ) + 26 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5912
SELECT ALL 66 / CAST ( NULL AS INTEGER ) + 26 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * 1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + 50 * - col2 FROM tab2
----
-1150
-2000
-2900

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 < + col1
----
75
67
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5916
SELECT 24 DIV + 39 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5916
SELECT 24 / + 39 AS col2 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 19 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5918
SELECT DISTINCT 34 DIV col1 * - col1 FROM tab1
----
-28
-30
0

skipif mysql # not compatible
query I rowsort label-5918
SELECT DISTINCT 34 / col1 * - col1 FROM tab1
----
-28
-30
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5919
SELECT ALL + 43 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5919
SELECT ALL + 43 * + 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 - 75 * - col2 col0 FROM tab0 cor0
----
3525
7425
750

query I rowsort
SELECT + 67 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5922
SELECT DISTINCT - 77 DIV + 25 col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5922
SELECT DISTINCT - 77 / + 25 col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5923
SELECT DISTINCT - ( SUM( ( + 9 ) ) ) DIV + 94 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT - ( SUM ( ( + 9 ) ) ) / + 94 FROM tab1 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > + col2 + + col2
----

query I rowsort
SELECT - ( - col0 ) * - 82 * - + 59 + + 97 + + - col2 * - col0 AS col1 FROM tab0 AS cor0
----
421873
478986
73372

query I rowsort
SELECT - col0 + + col1 + - 15 AS col2 FROM tab2 AS cor0
----
-10
-2
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-5927
SELECT + col0 + + col0 DIV + - col0 + col0 * + + col1 * col1 FROM tab1
----
10046
201109
2209

skipif mysql # not compatible
query I rowsort label-5927
SELECT + col0 + + col0 / + - col0 + col0 * + + col1 * col1 FROM tab1
----
10046
201109
2209

query I rowsort
SELECT ALL + 55 + + col2 AS col1 FROM tab0
----
102
154
65

query I rowsort
SELECT DISTINCT 52 + - + col0 FROM tab2
----
-12
-23
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT DISTINCT - MAX( - - 37 ) col2 FROM tab1
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5930
SELECT DISTINCT - MAX ( - - 37 ) col2 FROM tab1
----
-37

query II rowsort
SELECT ALL col2 + + col1 AS col0, 79 * + col0 FROM tab2
----
117
5056
125
5925
74
3634

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * + 30 = + - col2 + - col1 + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5933
SELECT DISTINCT col1 + + col0 + - CAST( NULL AS DECIMAL ) * + col0 / + col1 - col0 / + + 32 + - - col1 / - col0, - CAST( NULL AS SIGNED ) + + col2 + + - 44 + col2 / - col2 / + CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5933
SELECT DISTINCT col1 + + col0 + - CAST ( NULL AS REAL ) * + col0 / + col1 - col0 / + + 32 + - - col1 / - col0, - CAST ( NULL AS INTEGER ) + + col2 + + - 44 + col2 / - col2 / + CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL

query I rowsort
SELECT DISTINCT - 29 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5935
SELECT * FROM tab0 WHERE - col2 * + 45 / + CAST( + col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5935
SELECT * FROM tab0 WHERE - col2 * + 45 / + CAST ( + col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5936
SELECT DISTINCT + - MAX( ALL - col2 ) + + 17 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5936
SELECT DISTINCT + - MAX ( ALL - col2 ) + + 17 * CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + 71 * + col2 AS col2 FROM tab0 AS cor0
----
3337
7029
710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5938
SELECT DISTINCT - + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5938
SELECT DISTINCT - + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT DISTINCT 4 * SUM( DISTINCT + col0 ) * - + 57 AS col2 FROM tab1
----
-51756

skipif mysql # not compatible
query I rowsort label-5939
SELECT DISTINCT 4 * SUM ( DISTINCT + col0 ) * - + 57 AS col2 FROM tab1
----
-51756

query I rowsort
SELECT DISTINCT col1 * - 1 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT DISTINCT - 96 * COUNT( * ) AS col0 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-5941
SELECT DISTINCT - 96 * COUNT ( * ) AS col0 FROM tab1
----
-288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * + + col0, - col1 + - col2 * + + col1 col1 FROM tab0
----
1215
-3888
1827
-231
97
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5943
SELECT ALL - COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5943
SELECT ALL - COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5944
SELECT 93 DIV 64 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5944
SELECT 93 / 64 AS col1 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + - col1 ) col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE - 16 IS NULL
----

query II rowsort
SELECT DISTINCT - 59 AS col2, 36 * + 61 FROM tab0 AS cor0
----
-59
2196

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5948
SELECT ALL CAST( NULL AS SIGNED ) / - col1 AS col0, col0 col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5948
SELECT ALL CAST ( NULL AS INTEGER ) / - col1 AS col0, col0 col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT ALL - 10 * col2 * - col2 AS col1 FROM tab2
----
16000
33640
5290

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5950
SELECT ALL * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN - + col0 + col0 AND + + CAST( - col2 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5950
SELECT ALL * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN - + col0 + col0 AND + + CAST ( - col2 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 5 * - col1 + - - 46 FROM tab0 AS cor0
----
151
451
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5952
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * 51 + col1 AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5952
SELECT DISTINCT + CAST ( NULL AS REAL ) * 51 + col1 AS col0 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - + 27 * + 61 col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col2 + - col1 * col1 AS col0 FROM tab1 AS cor0
----
-2277
-292
-84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT col0 BETWEEN 50 AND - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT COUNT( * ) + 73 AS col1 FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-5956
SELECT COUNT ( * ) + 73 AS col1 FROM tab0
----
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, + 32 col1 FROM tab2
----
46
32
64
32
75
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5958
SELECT - 49 + + col2 * + - CAST( - col2 AS SIGNED ) * col0 * - col1 FROM tab2
----
-1241083
-16904149
-7884849

skipif mysql # not compatible
query I rowsort label-5958
SELECT - 49 + + col2 * + - CAST ( - col2 AS INTEGER ) * col0 * - col1 FROM tab2
----
-1241083
-16904149
-7884849

query I rowsort
SELECT ALL + 94 + + 55 FROM tab1
----
149
149
149

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT DISTINCT 96 * + - SUM( DISTINCT + - col1 ) FROM tab0
----
9888

skipif mysql # not compatible
query I rowsort label-5960
SELECT DISTINCT 96 * + - SUM ( DISTINCT + - col1 ) FROM tab0
----
9888

query II rowsort
SELECT col2 * + - 64 * + 97 + + col1 AS col2, + 5 * - 44 AS col0 FROM tab0
----
-291695
-220
-614591
-220
-62059
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5962
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NULL <= - col0 * - - col2
----
0

skipif mysql # not compatible
query I rowsort label-5963
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <= - col0 * - - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT DISTINCT - MAX( ALL + 2 ) * - 62 FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-5964
SELECT DISTINCT - MAX ( ALL + 2 ) * - 62 FROM tab2
----
124

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT 41 * col2 + + 88 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5966
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT NULL > ( NULL )
----
0

query I rowsort
SELECT ALL + col1 * + 74 AS col1 FROM tab1
----
1036
3478
370

query I rowsort
SELECT ALL + 14 AS col1 FROM tab0 WHERE NOT + col1 = 74 + - col0 * - 16
----
14
14
14

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT BETWEEN 24 AND ( col1 / + col0 + 1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < 21 * col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5971
SELECT - COUNT( * ) DIV COUNT( * ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5971
SELECT - COUNT ( * ) / COUNT ( * ) AS col0 FROM tab0
----
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT + 62 NOT BETWEEN - col0 AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5973
SELECT - 61 DIV - col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5973
SELECT - 61 / - col0 FROM tab1
----
0
0
1

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 - + col1 / 73 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 89 + + col0 col2 FROM tab1
----
5336
6143
8595

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT DISTINCT - ( COUNT( * ) ) AS col2 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5976
SELECT DISTINCT - ( COUNT ( * ) ) AS col2 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col1 )
----
0

query I rowsort
SELECT DISTINCT 69 AS col0 FROM tab0 WHERE NOT 96 = ( 2 )
----
69

query I rowsort
SELECT DISTINCT - 43 FROM tab2 WHERE NOT NULL <> + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5979
SELECT - 43 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5979
SELECT - 43 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT + SUM( ALL + 87 ) AS col0 FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-5980
SELECT + SUM ( ALL + 87 ) AS col0 FROM tab2
----
261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab1 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 57 <> col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5983
SELECT * FROM tab0 WHERE ( col2 + col0 * col0 ) <= ( + CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5983
SELECT * FROM tab0 WHERE ( col2 + col0 * col0 ) <= ( + CAST ( col0 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5984
SELECT DISTINCT - CAST( col0 AS SIGNED ) AS col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5984
SELECT DISTINCT - CAST ( col0 AS INTEGER ) AS col2 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL - col2 * + 50 FROM tab0 AS cor0
----
-2350
-4950
-500

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN + col2 AND ( - 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT ALL 74 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL 74 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT - SUM( DISTINCT + 78 ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-5988
SELECT - SUM ( DISTINCT + 78 ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-234

query I rowsort
SELECT 64 - + 3 FROM tab1 AS cor0 WHERE NOT - col1 - - col2 IN ( 21 )
----
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT DISTINCT SUM( DISTINCT + col1 ) * COUNT( * ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-5990
SELECT DISTINCT SUM ( DISTINCT + col1 ) * COUNT ( * ) FROM tab1
----
198

query I rowsort
SELECT ALL ( + 37 ) AS col2 FROM tab1
----
37
37
37

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + col1 * + col1 IS NOT NULL
----

query I rowsort
SELECT - - 90 + - 31 FROM tab1 AS cor0
----
59
59
59

query I rowsort
SELECT ALL + + 43 FROM tab2 AS cor0
----
43
43
43

query I rowsort
SELECT ALL col1 * - 92 FROM tab1 AS cor0 WHERE ( col1 ) IS NOT NULL
----
-1288
-4324
-460

query I rowsort
SELECT + - col1 + + col0 * - 3 AS col2 FROM tab0 AS cor0
----
-126
-282
-292

query I rowsort
SELECT - - col1 + 58 FROM tab2 cor0
----
109
125
135

query I rowsort
SELECT DISTINCT col0 + - col0 AS col0 FROM tab0 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5999
SELECT DISTINCT + ( col0 ) + 93 DIV 62 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-5999
SELECT DISTINCT + ( col0 ) + 93 / 62 FROM tab0 AS cor0
----
16
88
98

query I rowsort
SELECT - - 66 + - ( - 12 ) AS col2 FROM tab2 AS cor0
----
78
78
78

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col2 ) = NULL
----

query I rowsort
SELECT ALL 74 + - - 59 AS col1 FROM tab2
----
133
133
133

query I rowsort
SELECT DISTINCT col1 + + 53 * - col0 FROM tab1
----
-2689
-4500
-4776

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT ALL + ( - COUNT( DISTINCT col0 ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6004
SELECT ALL + ( - COUNT ( DISTINCT col0 ) ) AS col2 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE ( col1 ) <= + 58
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6006
SELECT CAST( + 34 AS SIGNED ) * col1 FROM tab2
----
1734
2278
2618

skipif mysql # not compatible
query I rowsort label-6006
SELECT CAST ( + 34 AS INTEGER ) * col1 FROM tab2
----
1734
2278
2618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 37 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IS NULL AND NOT + col0 + col0 IS NOT NULL
----

query I rowsort
SELECT - 60 - 83 FROM tab2 AS cor0
----
-143
-143
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT - 64 - COUNT( * ) + MAX( DISTINCT + col2 + 93 * 25 ) col2 FROM tab1 AS cor0
----
2354

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6010
SELECT - 64 - COUNT ( * ) + MAX ( DISTINCT + col2 + 93 * 25 ) col2 FROM tab1 AS cor0
----
2354

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT ALL + COUNT( * ) + + ( COUNT( * ) ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL + COUNT ( * ) + + ( COUNT ( * ) ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
12

query I rowsort
SELECT DISTINCT ( - - ( + 40 ) ) + - col0 AS col0 FROM tab0
----
-47
-57
25

query I rowsort
SELECT DISTINCT + 47 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 20 col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-6015
SELECT DISTINCT - 21 DIV + - 22 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6015
SELECT DISTINCT - 21 / + - 22 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col1 * + 23 AS col0 FROM tab2 AS cor0
----
-1173
-1541
-1771

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + + col2 col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 >= ( NULL )
----

query I rowsort
SELECT + col1 * 82 FROM tab0 cor0
----
1722
6642
82

onlyif mysql # aggregate syntax: 
query II rowsort label-6020
SELECT - COUNT( * ), 3 + - + SUM( col0 ) + + 63 AS col0 FROM tab0 AS cor0
----
-3
-133

skipif mysql # not compatible
query II rowsort label-6020
SELECT - COUNT ( * ), 3 + - + SUM ( col0 ) + + 63 AS col0 FROM tab0 AS cor0
----
-3
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT + MAX( - col0 ) * - 63 AS col1 FROM tab0 cor0
----
945

skipif mysql # not compatible
query I rowsort label-6021
SELECT + MAX ( - col0 ) * - 63 AS col1 FROM tab0 cor0
----
945

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT DISTINCT MIN( ALL + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-6022
SELECT DISTINCT MIN ( ALL + col2 ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT + col0 - - col0 NOT BETWEEN ( + 2 ) AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 16 NOT BETWEEN NULL AND + + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 NOT IN ( + + ( ( 64 ) ) * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 35 col0 FROM tab2
----
1400
2030
805

onlyif mysql # aggregate syntax: 
query II rowsort label-6027
SELECT DISTINCT COUNT( + + col0 ) AS col2, COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-6027
SELECT DISTINCT COUNT ( + + col0 ) AS col2, COUNT ( * ) FROM tab0
----
3
3

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 WHERE + 39 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT + col1 >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6029
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT + col1 >= ( NULL )
----
0

query I rowsort
SELECT DISTINCT col1 * + col2 AS col2 FROM tab1 WHERE NOT ( NULL ) = NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> col0 * - - 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT + + 98 + + - MAX( + + col1 ) FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-6032
SELECT + + 98 + + - MAX ( + + col1 ) FROM tab2 AS cor0
----
21

query I rowsort
SELECT DISTINCT - - col1 + - + 93 FROM tab0 cor0
----
-12
-72
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6034
SELECT - col2 * col0 FROM tab1 WHERE + 32 * + 52 NOT BETWEEN - col2 AND + col0 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6034
SELECT - col2 * col0 FROM tab1 WHERE + 32 * + 52 NOT BETWEEN - col2 AND + col0 + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + - 53 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-53

query I rowsort
SELECT ALL + col1 * + - 57 * + col1 * - col2 FROM tab0
----
17576919
251370
5643

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT + 97 * COUNT( * ) FROM tab1 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-6037
SELECT + 97 * COUNT ( * ) FROM tab1 AS cor0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT ALL MAX( + col2 ) * COUNT( * ) col2 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6038
SELECT ALL MAX ( + col2 ) * COUNT ( * ) col2 FROM tab1 AS cor0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT - - 57 * + COUNT( * ) FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-6039
SELECT - - 57 * + COUNT ( * ) FROM tab2 AS cor0
----
171

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 37 - + 47 + + col1 - - col0 + col2 * 40 IN ( 84 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col1 AS col0, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 75 > + - col1
----

query II rowsort
SELECT 67, - 86 * + col1 AS col2 FROM tab1 cor0
----
67
-1204
67
-4042
67
-430

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 IN ( - - col1, 0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 - 17 ) IN ( col0 + + - col0 )
----

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN NULL AND NULL AND ( 83 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6047
SELECT DISTINCT + COUNT( * ) DIV + COUNT( * ) col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6047
SELECT DISTINCT + COUNT ( * ) / + COUNT ( * ) col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT - col1 + - - col1 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col1 + - - 72 FROM tab2
----
123
139
149

query III rowsort
SELECT ALL * FROM tab2 WHERE + 82 BETWEEN + ( + col0 ) AND ( NULL )
----

query I rowsort
SELECT ALL + col0 * - + 28 AS col0 FROM tab0
----
-2436
-2716
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT ALL + + 24 + COUNT( * ) + 29 * + COUNT( * ) AS col0 FROM tab1 WHERE + 44 * col2 IS NULL
----
24

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL + + 24 + COUNT ( * ) + 29 * + COUNT ( * ) AS col0 FROM tab1 WHERE + 44 * col2 IS NULL
----
24

query I rowsort
SELECT col2 + - 22 + + col2 AS col1 FROM tab0
----
-2
176
72

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col0 ) BETWEEN 29 * + - 0 * col1 + col0 AND ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE 34 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6056
SELECT - CAST( col2 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-6056
SELECT - CAST ( col2 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE NULL IS NULL
----
15
87
97

query III rowsort
SELECT * FROM tab2 WHERE NOT - 43 NOT BETWEEN NULL AND ( + 21 + - + 88 + - col2 )
----

query I rowsort
SELECT DISTINCT - 45 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 col0 FROM tab0 AS cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6061
SELECT ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col0 / col0 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT ALL + MAX( + col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6063
SELECT ALL + MAX ( + col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6064
SELECT MIN( DISTINCT - ( col2 ) ) * + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6064
SELECT MIN ( DISTINCT - ( col2 ) ) * + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6065
SELECT - col1 * + 86 AS col1, + 79 DIV - col0 FROM tab1 AS cor0
----
-1204
-1
-4042
0
-430
0

skipif mysql # not compatible
query II rowsort label-6065
SELECT - col1 * + 86 AS col1, + 79 / - col0 FROM tab1 AS cor0
----
-1204
-1
-4042
0
-430
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 / 52 BETWEEN NULL AND + col1
----

query I rowsort
SELECT + 69 * - 40 + - 54 FROM tab0 AS cor0
----
-2814
-2814
-2814

query II rowsort
SELECT - col2, + col1 AS col2 FROM tab0
----
-10
21
-47
81
-99
1

query II rowsort
SELECT col1, - 28 AS col2 FROM tab0
----
1
-28
21
-28
81
-28

query I rowsort
SELECT DISTINCT ( 50 ) AS col1 FROM tab2
----
50

query I rowsort
SELECT ALL 80 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > col0 / + - col2 - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6073
SELECT ALL - + 6 + CAST( NULL AS SIGNED ) * + col1 * CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE + col2 + + 24 - - 79 / col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL - + 6 + CAST ( NULL AS INTEGER ) * + col1 * CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE + col2 + + 24 - - 79 / col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT + + MAX( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6074
SELECT + + MAX ( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 89 NOT BETWEEN col0 AND NULL
----
91
47
68

query I rowsort
SELECT ALL - + 43 * - col2 AS col1 FROM tab0 cor0
----
2021
4257
430

query I rowsort
SELECT DISTINCT + + 47 * ( - 48 ) + - ( + 56 ) FROM tab2 AS cor0
----
-2312

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6078
SELECT - CAST( NULL AS SIGNED ) + - 14 + + col2 * + col0 AS col2, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-6078
SELECT - CAST ( NULL AS INTEGER ) + - 14 + + col2 * + col0 AS col2, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT DISTINCT - ( + 61 ) * - 16 * + - ( + - col1 ) FROM tab2 AS cor0
----
49776
65392
75152

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT - - MAX( 75 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6080
SELECT - - MAX ( 75 ) AS col2 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6081
SELECT ALL + CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL + CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6082
SELECT + + 62 DIV - + 53 + COUNT( * ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-6082
SELECT + + 62 / - + 53 + COUNT ( * ) FROM tab0 AS cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6083
SELECT - 68 DIV + 40 + - col1 + + 36 + + col0 AS col2 FROM tab2 AS cor0
----
22
30
43

skipif mysql # not compatible
query I rowsort label-6083
SELECT - 68 / + 40 + - col1 + + 36 + + col0 AS col2 FROM tab2 AS cor0
----
22
30
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 col1 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT + COUNT( DISTINCT - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6085
SELECT + COUNT ( DISTINCT - col1 ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6087
SELECT - AVG ( col2 ) * - COUNT( * ) + + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 WHERE NOT - 95 / col2 + - col1 IS NULL AND NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6087
SELECT - AVG ( col2 ) * - COUNT ( * ) + + - CAST ( NULL AS REAL ) AS col2 FROM tab2 WHERE NOT - 95 / col2 + - col1 IS NULL AND NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - 19 * - col0 / + col0 AND - 59 - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6089
SELECT ALL CAST( NULL AS SIGNED ) * 14 + - col2 * 86 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6089
SELECT ALL CAST ( NULL AS INTEGER ) * 14 + - col2 * 86 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT + col1 - 98 * + 57 AS col1, 4 + - 76 + col0 AS col2 FROM tab2
----
-5509
-8
-5519
3
-5535
-26

query I rowsort
SELECT + 22 * col1 - - - col2 FROM tab1
----
212
51
966

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 col1 FROM tab1 cor0 WHERE NOT NULL >= - col2 / - 58 + - ( + 90 )
----

query I rowsort
SELECT - col0 * + 82 AS col1 FROM tab2 AS cor0
----
-3772
-5248
-6150

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT - + MIN( + + 44 ) AS col2 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-6094
SELECT - + MIN ( + + 44 ) AS col2 FROM tab2 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT NULL < ( + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6095
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT NULL < ( + - col2 )
----
0

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL >= 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT DISTINCT - MAX( 88 ) * - + COUNT( * ) + - COUNT( * ) FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT - MAX ( 88 ) * - + COUNT ( * ) + - COUNT ( * ) FROM tab1
----
261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6098
SELECT ALL - MIN( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL - MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6099
SELECT col0 DIV - - col2 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-6099
SELECT col0 / - - col2 FROM tab0
----
0
0
8

query I rowsort
SELECT - col0 * - 9 * + 5 AS col2 FROM tab2 AS cor0
----
2070
2880
3375

query II rowsort
SELECT ALL - 6 AS col2, - col1 FROM tab1 AS cor0
----
-6
-14
-6
-47
-6
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT - COUNT( ALL + col2 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6102
SELECT - COUNT ( ALL + col2 ) FROM tab2 cor0
----
-3

query II rowsort
SELECT ALL - col1 AS col0, - col0 - - - col0 + - col1 AS col2 FROM tab0 cor0 WHERE 37 * 32 IS NOT NULL
----
-1
-195
-21
-195
-81
-111

query I rowsort
SELECT ALL - + 68 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT + + col0 AS col1, col1 + + col1 - col2 AS col2 FROM tab2 AS cor0
----
46
79
64
114
75
76

query I rowsort
SELECT + 99 * - col1 * - + col2 AS col0 FROM tab2 AS cor0 WHERE NOT + 23 + col2 + + - col2 * - - col0 <= - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6107
SELECT ALL - COUNT( * ) AS col0 FROM tab1 WHERE - col0 + + - CAST( NULL AS SIGNED ) IN ( col0, col0, - 90 * + 39 )
----
0

skipif mysql # not compatible
query I rowsort label-6107
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 WHERE - col0 + + - CAST ( NULL AS INTEGER ) IN ( col0, col0, - 90 * + 39 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT ALL 58 * + COUNT( * ) FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-6108
SELECT ALL 58 * + COUNT ( * ) FROM tab0
----
174

query I rowsort
SELECT DISTINCT col2 * - - col0 FROM tab0
----
705
870
9603

query I rowsort
SELECT - 77 * + - 54 * + + col2 FROM tab0
----
195426
411642
41580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 col0 FROM tab2
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT + SUM( - - col0 ) + - SUM( DISTINCT + col1 ) + - 87 col1 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6112
SELECT + SUM ( - - col0 ) + - SUM ( DISTINCT + col1 ) + - 87 col1 FROM tab1 AS cor0
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-6113
SELECT DISTINCT - col2 + + col2 DIV + 19 - + col0 AS col0 FROM tab0 AS cor0
----
-191
-60
-97

skipif mysql # not compatible
query I rowsort label-6113
SELECT DISTINCT - col2 + + col2 / + 19 - + col0 AS col0 FROM tab0 AS cor0
----
-191
-60
-97

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN NULL AND - 78
----

query II rowsort
SELECT DISTINCT + col1, col0 + + col2 AS col0 FROM tab2 AS cor0
----
51
69
67
133
77
104

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 49
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6117
SELECT DISTINCT + 17 AS col1, MAX( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
17
47

skipif mysql # not compatible
query II rowsort label-6117
SELECT DISTINCT + 17 AS col1, MAX ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
17
47

query I rowsort
SELECT DISTINCT col0 + - 98 AS col1 FROM tab0 AS cor0
----
-1
-11
-83

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 / - + col0 < ( - + col0 - + 68 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6120
SELECT - CAST( NULL AS DECIMAL ) col2 FROM tab2 cor0 WHERE ( ( ( + + 54 ) + + + col0 ) IS NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6120
SELECT - CAST ( NULL AS REAL ) col2 FROM tab2 cor0 WHERE ( ( ( + + 54 ) + + + col0 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6121
SELECT DISTINCT ( + + 38 ) AS col1, COUNT( * ) AS col1 FROM tab0
----
38
3

skipif mysql # not compatible
query II rowsort label-6121
SELECT DISTINCT ( + + 38 ) AS col1, COUNT ( * ) AS col1 FROM tab0
----
38
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6122
SELECT + col1 + - + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6122
SELECT + col1 + - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + - col2 * col2 * + 69 FROM tab1
----
-240194
-319103
-635918

query I rowsort
SELECT DISTINCT - col1 - + 35 AS col2 FROM tab1
----
-40
-49
-82

query II rowsort
SELECT + ( col2 ), - col2 AS col0 FROM tab2
----
23
-23
40
-40
58
-58

query I rowsort
SELECT 66 * - + col2 AS col1 FROM tab1
----
-3894
-4488
-6336

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT + SUM( DISTINCT 15 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) > - col1 * + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-6127
SELECT + SUM ( DISTINCT 15 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) > - col1 * + 59
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT - col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT DISTINCT MIN( + - 13 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-13

skipif mysql # not compatible
query I rowsort label-6129
SELECT DISTINCT MIN ( + - 13 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 93 col1 FROM tab0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT ALL + + COUNT( * ) col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6131
SELECT ALL + + COUNT ( * ) col2 FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT + ( + 93 ) * col0 FROM tab0 AS cor0
----
1395
8091
9021

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 43 >= + 48
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - 61 AS col2, + col1 AS col1 FROM tab0 AS cor0 WHERE col0 + + col2 + + ( + col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 46 + + + col1 FROM tab0 AS cor0
----
127
47
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT + + MIN( col0 ) + - + 54 AS col0 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-6136
SELECT + + MIN ( col0 ) + - + 54 AS col0 FROM tab0 AS cor0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6137
SELECT ALL + 17 * - CAST( - + col2 AS SIGNED ) AS col2 FROM tab2 cor0
----
391
680
986

skipif mysql # not compatible
query I rowsort label-6137
SELECT ALL + 17 * - CAST ( - + col2 AS INTEGER ) AS col2 FROM tab2 cor0
----
391
680
986

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6138
SELECT DISTINCT + - COUNT( * ) DIV - 76 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6138
SELECT DISTINCT + - COUNT ( * ) / - 76 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT + COUNT( * ) + + MAX( ALL - 68 ) AS col1 FROM tab1
----
-65

skipif mysql # not compatible
query I rowsort label-6139
SELECT + COUNT ( * ) + + MAX ( ALL - 68 ) AS col1 FROM tab1
----
-65

query I rowsort
SELECT ALL + col0 + + + ( + - col2 ) AS col1 FROM tab2
----
17
23
24

onlyif mysql # DIV for integer division: 
query I rowsort label-6141
SELECT + col1 + - col0 DIV - col0 AS col0 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-6141
SELECT + col1 + - col0 / - col0 AS col0 FROM tab1
----
15
48
6

onlyif mysql # DIV for integer division: 
query II rowsort label-6142
SELECT DISTINCT + col0 AS col2, 97 DIV - - col0 AS col0 FROM tab0
----
15
6
87
1
97
1

skipif mysql # not compatible
query II rowsort label-6142
SELECT DISTINCT + col0 AS col2, 97 / - - col0 AS col0 FROM tab0
----
15
6
87
1
97
1

query II rowsort
SELECT ALL + 83 AS col0, - col0 + + col0 AS col2 FROM tab2
----
83
0
83
0
83
0

query I rowsort
SELECT ALL ( + + ( - 36 ) ) FROM tab1
----
-36
-36
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6145
SELECT + + 12 DIV + 76, + SUM( + - col1 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6145
SELECT + + 12 / + 76, + SUM ( + - col1 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT + SUM( ALL - + ( + col2 ) ) * - 64 FROM tab0 AS cor0
----
9984

skipif mysql # not compatible
query I rowsort label-6146
SELECT + SUM ( ALL - + ( + col2 ) ) * - 64 FROM tab0 AS cor0
----
9984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6148
SELECT + COUNT( * ) AS col0, + 9 col0 FROM tab1 cor0
----
3
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6148
SELECT + COUNT ( * ) AS col0, + 9 col0 FROM tab1 cor0
----
3
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6149
SELECT DISTINCT - MAX( - 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-6149
SELECT DISTINCT - MAX ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6150
SELECT DISTINCT + 96 - - + CAST( NULL AS SIGNED ) * + 90 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6150
SELECT DISTINCT + 96 - - + CAST ( NULL AS INTEGER ) * + 90 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT ALL + + COUNT( * ) * + 29 AS col0 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-6151
SELECT ALL + + COUNT ( * ) * + 29 AS col0 FROM tab1 AS cor0
----
87

query I rowsort
SELECT ALL - 92 + col0 FROM tab0 AS cor0
----
-5
-77
5

onlyif mysql # DIV for integer division: 
query II rowsort label-6153
SELECT - + col0 DIV - ( - 87 ) AS col2, col2 FROM tab1 cor0
----
-1
68
0
59
0
96

skipif mysql # not compatible
query II rowsort label-6153
SELECT - + col0 / - ( - 87 ) AS col2, col2 FROM tab1 cor0
----
-1
68
0
59
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT - COUNT( * ) * + 64 col0 FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6154
SELECT - COUNT ( * ) * + 64 col0 FROM tab2 AS cor0
----
-192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6155
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE - col1 IN ( + 55 * CAST( NULL AS SIGNED ) / - + col0 * - col0 * + col1 - + ( col1 ), + col0 + + ( + col2 ) )
----

skipif mysql # not compatible
query I rowsort label-6155
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE - col1 IN ( + 55 * CAST ( NULL AS INTEGER ) / - + col0 * - col0 * + col1 - + ( col1 ), + col0 + + ( + col2 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6156
SELECT ALL + SUM( ALL ( + 55 ) ) + + + 51 + 25 DIV - CAST( + 28 AS SIGNED ) * - COUNT( * ) + - + COUNT( * ) + - - MAX( col1 ) AS col2 FROM tab2 AS cor0
----
290

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL + SUM ( ALL ( + 55 ) ) + + + 51 + 25 / - CAST ( + 28 AS INTEGER ) * - COUNT ( * ) + - + COUNT ( * ) + - - MAX ( col1 ) AS col2 FROM tab2 AS cor0
----
290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 25 col1 FROM tab0 AS cor0
----
25
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + - 11 col2 FROM tab0
----
-1089
-110
-517

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT ALL COUNT( ALL - 57 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL COUNT ( ALL - 57 ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6160
SELECT ALL CAST( + 47 AS SIGNED ) AS col0 FROM tab2
----
47
47
47

skipif mysql # not compatible
query I rowsort label-6160
SELECT ALL CAST ( + 47 AS INTEGER ) AS col0 FROM tab2
----
47
47
47

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT ( NOT ( NULL ) BETWEEN ( NULL ) AND col1 )
----

query I rowsort
SELECT + 79 FROM tab2 WHERE NOT - - 7 / - col0 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT ALL + MAX( DISTINCT - 98 ) FROM tab1 WHERE col0 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL + MAX ( DISTINCT - 98 ) FROM tab1 WHERE col0 = NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6164
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6164
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col0, + ( - 71 ) col1 FROM tab0 AS cor0
----
-10
-71
-47
-71
-99
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-6166
SELECT COUNT( * ), + COUNT( * ) FROM tab0 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6166
SELECT COUNT ( * ), + COUNT ( * ) FROM tab0 cor0
----
3
3

query I rowsort
SELECT 38 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT ALL - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT DISTINCT - 63 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-6170
SELECT - - col2 DIV + + ( - col2 ) FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6170
SELECT - - col2 / + + ( - col2 ) FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6171
SELECT + col2 + CAST( - 38 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + col1 + + 4 NOT BETWEEN + CAST( + 27 AS SIGNED ) / - CAST( NULL AS SIGNED ) + - ( col1 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-6171
SELECT + col2 + CAST ( - 38 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + col1 + + 4 NOT BETWEEN + CAST ( + 27 AS INTEGER ) / - CAST ( NULL AS INTEGER ) + - ( col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6172
SELECT ( + col0 ), + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-6172
SELECT ( + col0 ), + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT ALL + COUNT( * ) + - - ( - MIN( col0 ) ) AS col0 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL + COUNT ( * ) + - - ( - MIN ( col0 ) ) AS col0 FROM tab1 AS cor0
----
-48

query I rowsort
SELECT 43 FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND ( NULL )
----

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab1 AS cor0 WHERE ( + col1 > col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6177
SELECT DISTINCT - 80 + - + col2 * - CAST( NULL AS SIGNED ) + - col1 + + - col0 + 73 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6177
SELECT DISTINCT - 80 + - + col2 * - CAST ( NULL AS INTEGER ) + - col1 + + - col0 + 73 AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6178
SELECT + COUNT( * ) * + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6178
SELECT + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6179
SELECT col0 * ( + + col1 ) DIV - ( col2 ) + + - col1 FROM tab2
----
-153
-153
-200

skipif mysql # not compatible
query I rowsort label-6179
SELECT col0 * ( + + col1 ) / - ( col2 ) + + - col1 FROM tab2
----
-153
-153
-200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6180
SELECT ALL - CAST( - + col1 AS SIGNED ) AS col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-6180
SELECT ALL - CAST ( - + col1 AS INTEGER ) AS col0 FROM tab0
----
1
21
81

query II rowsort
SELECT DISTINCT + 73 AS col0, + col1 AS col0 FROM tab1 WHERE + ( 8 ) / + - col1 - - 29 >= + 51
----

query I rowsort
SELECT DISTINCT + col2 * + col1 * - 23 FROM tab0
----
-2277
-4830
-87561

query I rowsort
SELECT col0 + + + col2 + - col0 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6184
SELECT + CAST( NULL AS SIGNED ) + + col2 + + 3 - - col1 * CAST( NULL AS DECIMAL ) + - 32 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6184
SELECT + CAST ( NULL AS INTEGER ) + + col2 + + 3 - - col1 * CAST ( NULL AS REAL ) + - 32 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + + 45 AS col2 FROM tab0 AS cor0
----
-36
24
44

query I rowsort
SELECT DISTINCT + - 67 AS col1 FROM tab0 cor0
----
-67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 - + ( col2 ) IS NULL
----

query I rowsort
SELECT ALL + + 86 + - 10 FROM tab1 AS cor0
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 12 col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

onlyif mysql # DIV for integer division: 
query I rowsort label-6191
SELECT 36 DIV col0 - - col2 FROM tab0
----
10
49
99

skipif mysql # not compatible
query I rowsort label-6191
SELECT 36 / col0 - - col2 FROM tab0
----
10
49
99

query I rowsort
SELECT + - col1 AS col1 FROM tab1 WHERE - 22 <> NULL
----

query I rowsort
SELECT - - 14 - + col0 FROM tab1 AS cor0
----
-37
-71
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-6194
SELECT DISTINCT - col1 DIV - + col2 AS col1, + col2 - + col0 + - col2 FROM tab2 AS cor0
----
1
-64
1
-75
2
-46

skipif mysql # not compatible
query II rowsort label-6194
SELECT DISTINCT - col1 / - + col2 AS col1, + col2 - + col0 + - col2 FROM tab2 AS cor0
----
1
-64
1
-75
2
-46

query II rowsort
SELECT DISTINCT + + 69 AS col1, col2 FROM tab1 AS cor0
----
69
59
69
68
69
96

query II rowsort
SELECT col2 * + col0, + col1 FROM tab1
----
4896
14
5015
5
6188
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6197
SELECT CAST( NULL AS SIGNED ) * + SUM( ALL 81 ) * COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6197
SELECT CAST ( NULL AS INTEGER ) * + SUM ( ALL 81 ) * COUNT ( * ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT ( MIN( ALL + - col2 ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-6198
SELECT ( MIN ( ALL + - col2 ) ) FROM tab1
----
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( - - col1 ) > + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 80 * + col1 col1 FROM tab0 AS cor0
----
1680
6480
80

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT ( col1 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE 32 + col0 + - col1 + col2 + col1 <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 24 col2 FROM tab0 AS cor0
----
1128
2376
240

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 78 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6205
SELECT + MIN( + - col2 ) DIV + ( + 19 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-6205
SELECT + MIN ( + - col2 ) / + ( + 19 ) FROM tab1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6206
SELECT + col2 AS col2 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) + - col0 < - 11
----

skipif mysql # not compatible
query I rowsort label-6206
SELECT + col2 AS col2 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) + - col0 < - 11
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6207
SELECT + CAST( + COUNT( * ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6207
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT DISTINCT + SUM( - 46 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-414

skipif mysql # not compatible
query I rowsort label-6208
SELECT DISTINCT + SUM ( - 46 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-414

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 79 ) NOT BETWEEN ( ( + col2 ) ) AND ( NULL )
----

query I rowsort
SELECT 54 + - col2 * + col0 FROM tab0 AS cor0
----
-651
-816
-9549

query I rowsort
SELECT - col1 + + 91 FROM tab1 AS cor0
----
44
77
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6212
SELECT ALL + - COUNT( * ) * + 27 * + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1, - MIN( ALL - - 53 ) FROM tab1 cor0
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-6212
SELECT ALL + - COUNT ( * ) * + 27 * + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) AS col1, - MIN ( ALL - - 53 ) FROM tab1 cor0
----
NULL
-53

query I rowsort
SELECT + 85 + + - col0 FROM tab1 AS cor0
----
-6
0
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6214
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( + + 85 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6214
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( + + 85 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6215
SELECT ( - - 72 ) * col1 + + - col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6215
SELECT ( - - 72 ) * col1 + + - col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + 99 * 50 AS col2 FROM tab0
----
4965
5037
5047

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6217
SELECT ALL * FROM tab1 WHERE NOT ( CAST( - col1 AS SIGNED ) + + col0 + + col1 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6217
SELECT ALL * FROM tab1 WHERE NOT ( CAST ( - col1 AS INTEGER ) + + col0 + + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT ALL MIN( ALL + col1 ) * 6 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-6218
SELECT ALL MIN ( ALL + col1 ) * 6 FROM tab1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT DISTINCT - 19 - + - COUNT( DISTINCT + 56 ) col1 FROM tab1
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6219
SELECT DISTINCT - 19 - + - COUNT ( DISTINCT + 56 ) col1 FROM tab1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6220
SELECT ALL 7 / + ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6220
SELECT ALL 7 / + ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 47 * + col2 * + col0 AS col0 FROM tab0
----
33135
40890
451341

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6222
SELECT ALL - CAST( - - col1 AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6222
SELECT ALL - CAST ( - - col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT + col1 - + + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - col0 + + col2 + - 24 AS col1 FROM tab0 AS cor0
----
172
38
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT DISTINCT 29 * col0 * col0 * - ( + 90 ) - 28 FROM tab2
----
-10690588
-14681278
-5522788

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6227
SELECT ALL - + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6227
SELECT ALL - + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6228
SELECT DISTINCT + - col2 DIV + + 59 - - - col2 + + - CAST( + + col2 AS SIGNED ) FROM tab0 AS cor0
----
-199
-20
-94

skipif mysql # not compatible
query I rowsort label-6228
SELECT DISTINCT + - col2 / + + 59 - - - col2 + + - CAST ( + + col2 AS INTEGER ) FROM tab0 AS cor0
----
-199
-20
-94

query I rowsort
SELECT - - col0 * - ( ( + - 38 ) ) AS col0 FROM tab1 cor0
----
1938
3230
3458

query I rowsort
SELECT - col1 + - 25 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + - ( 22 ) AS col1 FROM tab2 AS cor0
----
-22

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 77 + + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + - col2 * - + col2 AS col2, col2 * 4 FROM tab1 cor0 WHERE NOT - 57 * - col1 >= NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col1, col2 AS col2 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT ALL + col0 * - col2 * + 76 FROM tab2
----
-194560
-330600
-80408

onlyif mysql # DIV for integer division: 
query I rowsort label-6236
SELECT ( + col1 ) DIV col1 + + + col1 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-6236
SELECT ( + col1 ) / col1 + + + col1 FROM tab1
----
15
48
6

query II rowsort
SELECT ALL col2 AS col1, col0 FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT DISTINCT + + col2 AS col1 FROM tab0 WHERE NULL IS NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 col0, + col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query II rowsort
SELECT ALL - 35 AS col1, col2 FROM tab1 AS cor0
----
-35
59
-35
68
-35
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6241
SELECT ALL - 23 DIV - CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL - 23 / - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0
1
4

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * - - col2 / - + col2 * col2 <= NULL
----

query I rowsort
SELECT DISTINCT - 77 * 21 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6244
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6245
SELECT + col0 DIV - + 95 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6245
SELECT + col0 / - + 95 AS col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - + ( + 18 ) FROM tab1 AS cor0
----
-18
-18
-18

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6248
SELECT col1 DIV 39 + + ( + 23 ) - - col1 FROM tab1
----
28
37
71

skipif mysql # not compatible
query I rowsort label-6248
SELECT col1 / 39 + + ( + 23 ) - - col1 FROM tab1
----
28
37
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT DISTINCT + 13 + - MIN( ALL - + 41 ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-6249
SELECT DISTINCT + 13 + - MIN ( ALL - + 41 ) FROM tab1
----
54

query I rowsort
SELECT ALL + col2 - 45 FROM tab1
----
14
23
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT + 5 + - - COUNT( * ) AS col2 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-6251
SELECT + 5 + - - COUNT ( * ) AS col2 FROM tab1
----
8

query I rowsort
SELECT + col1 + 87 + - - ( + 77 ) FROM tab2
----
215
231
241

query I rowsort
SELECT - col0 * ( + col1 ) - - + col0 FROM tab1 WHERE NULL >= 87
----

query I rowsort
SELECT + 37 + + col2 AS col2 FROM tab2
----
60
77
95

query III rowsort
SELECT * FROM tab2 WHERE + 28 IS NULL
----

query I rowsort
SELECT 26 + + col0 + col1 FROM tab0
----
122
124
134

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 49 + + col1 + - col2 + 2 / + + ( + ( - ( - - col1 ) ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - ( - + 79 ) FROM tab1 AS cor0
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6259
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( + 62 AS SIGNED ) * + col1 * - col2 * col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6259
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( + 62 AS INTEGER ) * + col1 * - col2 * col0 IS NOT NULL
----

query I rowsort
SELECT ALL col0 - - 63 AS col1 FROM tab2
----
109
127
138

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT - MAX( col1 ) - + - 23 + COUNT( * ) FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-6261
SELECT - MAX ( col1 ) - + - 23 + COUNT ( * ) FROM tab1
----
-21

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 IN ( col0 * - 61 * col1 + 31 * + col0 * - 72 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 91 * - 8 * + col2 FROM tab1
----
-42952
-49504
-69888

query I rowsort
SELECT + - 36 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query I rowsort
SELECT ALL 76 AS col0 FROM tab2 cor0
----
76
76
76

onlyif mysql # DIV for integer division: 
query I rowsort label-6266
SELECT ALL 77 DIV - 44 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-6266
SELECT ALL 77 / - 44 col2 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT DISTINCT - MIN( DISTINCT - 68 ) FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-6267
SELECT DISTINCT - MIN ( DISTINCT - 68 ) FROM tab2 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT - + MIN( DISTINCT + 82 ) col1 FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6268
SELECT - + MIN ( DISTINCT + 82 ) col1 FROM tab1 AS cor0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT + MAX( DISTINCT 95 ) AS col2 FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-6269
SELECT + MAX ( DISTINCT 95 ) AS col2 FROM tab1 AS cor0
----
95

query II rowsort
SELECT - - 77 * - col0 AS col2, col2 * + col1 AS col1 FROM tab0 cor0
----
-1155
3807
-6699
210
-7469
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6271
SELECT DISTINCT + COUNT( col1 ) * 35 * + - CAST( NULL AS SIGNED ) + + + MAX( col2 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6271
SELECT DISTINCT + COUNT ( col1 ) * 35 * + - CAST ( NULL AS INTEGER ) + + + MAX ( col2 ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6272
SELECT ALL 90 * + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL 90 * + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + + col1 AS col0 FROM tab1
----
-196
-2209
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6274
SELECT DISTINCT COUNT( * ) DIV + 95 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6274
SELECT DISTINCT COUNT ( * ) / + 95 AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT + COUNT( * ) * + COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-6275
SELECT + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6276
SELECT + col1 * - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6276
SELECT + col1 * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 76 * + + col0 FROM tab2
----
-3496
-4864
-5700

query I rowsort
SELECT + + 64 AS col0 FROM tab1, tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 91 AS col1 FROM tab2 AS cor0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6280
SELECT MAX( ALL + col2 ) AS col2, - COUNT( ALL - CAST( NULL AS SIGNED ) ) FROM tab1
----
96
0

skipif mysql # not compatible
query II rowsort label-6280
SELECT MAX ( ALL + col2 ) AS col2, - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1
----
96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT DISTINCT - COUNT( - - 60 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6281
SELECT DISTINCT - COUNT ( - - 60 ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 40 AS col2, - col2 col1 FROM tab1 AS cor0
----
40
-59
40
-68
40
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT ALL - COUNT( * ) * + COUNT( ALL col2 ) + - 44 FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL - COUNT ( * ) * + COUNT ( ALL col2 ) + - 44 FROM tab2 AS cor0
----
-53

query I rowsort
SELECT + - 73 + + 3 AS col1 FROM tab0 AS cor0
----
-70
-70
-70

query I rowsort
SELECT ALL + - 31 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-31
-31
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6286
SELECT DISTINCT + 40 / + col1 + + ( CAST( NULL AS SIGNED ) ) + + 71 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6286
SELECT DISTINCT + 40 / + col1 + + ( CAST ( NULL AS INTEGER ) ) + + 71 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col1 + - 26 + - col0 FROM tab1 AS cor0
----
-116
-164
-91

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NULL <> col0
----

query I rowsort
SELECT DISTINCT col2 * col2 + - ( + + 85 ) + + - 28 AS col1 FROM tab1
----
3368
4511
9103

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT + - COUNT( * ) col0 FROM tab2 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6290
SELECT + - COUNT ( * ) col0 FROM tab2 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT + 96 * - + col1 + + - 57 * - + 88 FROM tab2 cor0
----
-1416
-2376
120

query I rowsort
SELECT col0 * - 37 FROM tab0
----
-3219
-3589
-555

query I rowsort
SELECT ALL 64 * - 32 AS col2 FROM tab0 cor0
----
-2048
-2048
-2048

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT - COUNT( DISTINCT + col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6294
SELECT - COUNT ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT + + col0 AS col0, col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

query II rowsort
SELECT - + col1 AS col0, + col2 - - col1 FROM tab2 AS cor0
----
-51
74
-67
125
-77
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6297
SELECT + - CAST( + - 52 AS SIGNED ) FROM tab1 AS cor0
----
52
52
52

skipif mysql # not compatible
query I rowsort label-6297
SELECT + - CAST ( + - 52 AS INTEGER ) FROM tab1 AS cor0
----
52
52
52

query II rowsort
SELECT ALL ( 53 ), + 23 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
53
23
53
23
53
23

query I rowsort
SELECT ALL col0 * ( col1 ) AS col2 FROM tab1 AS cor0
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 50 col0, - 21 col1 FROM tab0 AS cor0
----
50
-21
50
-21
50
-21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6301
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * col0 / + col1 * - col2 * + col1 - CAST( NULL AS SIGNED ) < - col0
----

skipif mysql # not compatible
query III rowsort label-6301
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * col0 / + col1 * - col2 * + col1 - CAST ( NULL AS INTEGER ) < - col0
----

query I rowsort
SELECT + col0 * - 13 FROM tab1
----
-1105
-1183
-663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6303
SELECT + - CAST( COUNT( * ) AS SIGNED ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6303
SELECT + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NOT + + col0 IN ( - 29 * + col1 )
----
15
87
97

query I rowsort
SELECT col1 FROM tab2 WHERE NOT + - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN - 43 + - 80 AND NULL
----

query I rowsort
SELECT - col1 * + + col2 AS col2 FROM tab2
----
-1173
-3080
-3886

query II rowsort
SELECT DISTINCT - ( col0 ) AS col2, col2 FROM tab2
----
-46
23
-64
40
-75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT + MIN( ALL col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-6309
SELECT + MIN ( ALL col0 ) AS col0 FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6310
SELECT - - col1 + col0 * 24 + - + col2 + + col1 DIV + - CAST( + 37 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2099
2230
392

skipif mysql # not compatible
query I rowsort label-6310
SELECT - - col1 + col0 * 24 + - + col2 + + col1 / + - CAST ( + 37 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2099
2230
392

query I rowsort
SELECT + col0 + 3 AS col2 FROM tab2 AS cor0
----
49
67
78

query I rowsort
SELECT ALL + 69 * + col0 AS col2 FROM tab0 AS cor0
----
1035
6003
6693

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - 6 - + - col1 * col1 + - 61 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT - 10 FROM tab2 WHERE col1 IS NOT NULL
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT ALL - MAX( ALL col0 ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL - MAX ( ALL col0 ) AS col2 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT ALL - - MIN( DISTINCT + 17 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
17

skipif mysql # not compatible
query I rowsort label-6317
SELECT ALL - - MIN ( DISTINCT + 17 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-6318
SELECT + + MIN( - 29 ) * + COUNT( * ) AS col0, COUNT( * ) FROM tab1 AS cor0
----
-87
3

skipif mysql # not compatible
query II rowsort label-6318
SELECT + + MIN ( - 29 ) * + COUNT ( * ) AS col0, COUNT ( * ) FROM tab1 AS cor0
----
-87
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT MAX( ALL - 13 ) FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-6319
SELECT MAX ( ALL - 13 ) FROM tab2 AS cor0
----
-13

query I rowsort
SELECT DISTINCT col0 * + - col1 FROM tab0 cor0
----
-1215
-1827
-97

query I rowsort
SELECT ( + + col1 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col2 + - col0 AND - + ( + + ( 65 ) )
----

query I rowsort
SELECT col2 * - col0 + - col2 - + 65 AS col2 FROM tab1
----
-5057
-5139
-6321

query I rowsort
SELECT - col2 FROM tab2 WHERE - - col1 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT - col2 + + + col1 AS col1 FROM tab0
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6325
SELECT - col1, - CAST( - col0 AS SIGNED ) col0 FROM tab2
----
-51
46
-67
75
-77
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6325
SELECT - col1, - CAST ( - col0 AS INTEGER ) col0 FROM tab2
----
-51
46
-67
75
-77
64

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE NULL IS NULL
----
10
47
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT ALL + COUNT( DISTINCT 48 ) AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL + COUNT ( DISTINCT 48 ) AS col0 FROM tab0 cor0
----
1

query I rowsort
SELECT 36 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT - MAX( DISTINCT + 65 ) FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-6330
SELECT - MAX ( DISTINCT + 65 ) FROM tab2
----
-65

query I rowsort
SELECT DISTINCT 73 - - - 86 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-13

query II rowsort
SELECT col0 * + 81 * - - col1, 62 AS col2 FROM tab2
----
190026
62
399168
62
407025
62

query I rowsort
SELECT DISTINCT - col2 * + col2 + + - 65 * col0 * + 69 AS col0 FROM tab0 AS cor0 WHERE 14 IS NULL
----

query I rowsort
SELECT - ( - 72 ) FROM tab0 cor0
----
72
72
72

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col1 - col0 / + col0 * + 13 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6336
SELECT ALL + col2 DIV ( + ( - 20 ) ) * + + col2 + + 3 FROM tab1 AS cor0
----
-115
-201
-381

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL + col2 / ( + ( - 20 ) ) * + + col2 + + 3 FROM tab1 AS cor0
----
-115
-201
-381

query I rowsort
SELECT + col0 + - col1 + 16 + 31 FROM tab1 AS cor0
----
127
84
91

query I rowsort
SELECT col2 + - + col0 + + col0 * + - ( - - 72 ) AS col1 FROM tab1
----
-3627
-6146
-6575

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT 99 + COUNT( * ) FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-6339
SELECT 99 + COUNT ( * ) FROM tab2
----
102

query I rowsort
SELECT - + col2 * + col0 * col2 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + col0 AS col0, ( + 73 ) * col1 FROM tab2
----
46
3723
64
5621
75
4891

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT + ( - MIN( - col1 ) ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-6342
SELECT + ( - MIN ( - col1 ) ) FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6343
SELECT DISTINCT + col1 col1, - col0 + + CAST( NULL AS SIGNED ) * col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6343
SELECT DISTINCT + col1 col1, - col0 + + CAST ( NULL AS INTEGER ) * col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6344
SELECT DISTINCT - 75 * + CAST( - ( + col2 ) AS SIGNED ) FROM tab0
----
3525
7425
750

skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT - 75 * + CAST ( - ( + col2 ) AS INTEGER ) FROM tab0
----
3525
7425
750

query III rowsort
SELECT * FROM tab2 WHERE + col0 <> col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 79, - 74 AS col1 FROM tab0
----
79
-74
79
-74
79
-74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 < + ( + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT + - COUNT( ALL - - col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6348
SELECT + - COUNT ( ALL - - col1 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 NOT IN ( + ( - col2 ) * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * + 80 AS col2 FROM tab0 AS cor0
----
1200
6960
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 49 + + 7 col1 FROM tab1, tab2 cor0
----
9 values hashing to 9894093f29c0defae91347934f060329

query I rowsort
SELECT DISTINCT - col2 + + 58 FROM tab2
----
0
18
35

query I rowsort
SELECT ALL + 54 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query II rowsort
SELECT - 76 + 34, - ( 98 ) + + col0 + + col1 AS col1 FROM tab2 AS cor0
----
-42
-1
-42
43
-42
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6355
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE NOT - CAST( + 81 AS SIGNED ) + + col2 + + col2 + - col1 IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6355
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE NOT - CAST ( + 81 AS INTEGER ) + + col2 + + col2 + - col1 IS NULL
----
14
47
5

query I rowsort
SELECT + + col1 * - 43 * + col1 AS col0 FROM tab2 AS cor0
----
-111843
-193027
-254947

query I rowsort
SELECT DISTINCT + col1 * + ( - + col1 ) FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT - ( - 39 ) AS col0 FROM tab0
----
39
39
39

onlyif mysql # DIV for integer division: 
query I rowsort label-6359
SELECT ALL + col0 + - col2 + - 6 DIV col2 * + col0 + col0 col2 FROM tab2
----
69
88
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6359
SELECT ALL + col0 + - col2 + - 6 / col2 * + col0 + col0 col2 FROM tab2
----
69
88
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT ALL 48 * ( COUNT( * ) ) + - 14 FROM tab1
----
130

skipif mysql # not compatible
query I rowsort label-6360
SELECT ALL 48 * ( COUNT ( * ) ) + - 14 FROM tab1
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6361
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) * COUNT( * ) * + ( COUNT( * ) ) * + - 32 FROM tab0
----
864

skipif mysql # not compatible
query I rowsort label-6361
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) * COUNT ( * ) * + ( COUNT ( * ) ) * + - 32 FROM tab0
----
864

query I rowsort
SELECT 64 AS col1 FROM tab2 cor0
----
64
64
64

query I rowsort
SELECT DISTINCT 59 * - col1 AS col2 FROM tab1 AS cor0
----
-2773
-295
-826

onlyif mysql # DIV for integer division: 
query I rowsort label-6364
SELECT ALL + ( - col0 ) DIV - col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-6364
SELECT ALL + ( - col0 ) / - col1 FROM tab0 AS cor0
----
0
4
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6365
SELECT ALL - 84 DIV 39 FROM tab2 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL - 84 / 39 FROM tab2 AS cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT + SUM( col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-6366
SELECT + SUM ( col1 ) AS col1 FROM tab1 AS cor0
----
66

query II rowsort
SELECT ALL col2 AS col1, 86 AS col0 FROM tab1 AS cor0
----
59
86
68
86
96
86

onlyif mysql # aggregate syntax: 
query II rowsort label-6368
SELECT 49 AS col0, SUM( DISTINCT + col2 ) FROM tab1
----
49
223

skipif mysql # not compatible
query II rowsort label-6368
SELECT 49 AS col0, SUM ( DISTINCT + col2 ) FROM tab1
----
49
223

query II rowsort
SELECT - 88 AS col1, - col0 * + - 31 * + - 2 AS col0 FROM tab2 AS cor0
----
-88
-2852
-88
-3968
-88
-4650

query II rowsort
SELECT + col2, col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN + col2 + - col0 AND + col0
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT - - MAX( DISTINCT col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-6372
SELECT - - MAX ( DISTINCT col0 ) FROM tab0 AS cor0
----
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 97 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6374
SELECT col2 DIV + + 78 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6374
SELECT col2 / + + 78 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6375
SELECT COUNT( * ) + MAX( DISTINCT + - ( - - CAST( NULL AS DECIMAL ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6375
SELECT COUNT ( * ) + MAX ( DISTINCT + - ( - - CAST ( NULL AS REAL ) ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT DISTINCT COUNT( ALL - 68 ) * + COUNT( + - col1 ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-6376
SELECT DISTINCT COUNT ( ALL - 68 ) * + COUNT ( + - col1 ) FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6377
SELECT * FROM tab2 WHERE + 13 * col2 * + CAST( col2 AS SIGNED ) <= + + ( col0 )
----

skipif mysql # not compatible
query III rowsort label-6377
SELECT * FROM tab2 WHERE + 13 * col2 * + CAST ( col2 AS INTEGER ) <= + + ( col0 )
----

query I rowsort
SELECT 60 + ( 13 ) + + - 71 + + col1 + col0 FROM tab2
----
143
144
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6379
SELECT DISTINCT 79 * - COUNT( 88 ) * + CAST( NULL AS SIGNED ) / - SUM( DISTINCT - col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6379
SELECT DISTINCT 79 * - COUNT ( 88 ) * + CAST ( NULL AS INTEGER ) / - SUM ( DISTINCT - col2 ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - AVG ( + ( col1 ) ) col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, col1 AS col0 FROM tab0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT + COUNT( ALL 98 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6382
SELECT + COUNT ( ALL 98 ) FROM tab2
----
3

query II rowsort
SELECT 10, - col2 AS col1 FROM tab2
----
10
-23
10
-40
10
-58

query II rowsort
SELECT col0 AS col2, col1 * + col0 + + ( + col0 ) * col2 AS col2 FROM tab0
----
15
1920
87
2697
97
9700

onlyif mysql # DIV for integer division: 
query II rowsort label-6385
SELECT 16 AS col2, - col1 DIV - col1 AS col0 FROM tab1
----
16
1
16
1
16
1

skipif mysql # not compatible
query II rowsort label-6385
SELECT 16 AS col2, - col1 / - col1 AS col0 FROM tab1
----
16
1
16
1
16
1

query III rowsort
SELECT * FROM tab2 WHERE col1 BETWEEN + + 52 * + ( 55 ) AND - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT ALL 98 - - COUNT( * ) FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-6387
SELECT ALL 98 - - COUNT ( * ) FROM tab0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT DISTINCT + - MAX( + col0 ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-6388
SELECT DISTINCT + - MAX ( + col0 ) FROM tab1 cor0
----
-91

query II rowsort
SELECT ALL + + col0 * - col0 * - 76, 23 AS col0 FROM tab1 AS cor0
----
197676
23
549100
23
629356
23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6391
SELECT ALL - - COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6391
SELECT ALL - - COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab0 cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6392
SELECT MAX( DISTINCT - CAST( col2 AS SIGNED ) ) + - 75 FROM tab1 AS cor0
----
-134

skipif mysql # not compatible
query I rowsort label-6392
SELECT MAX ( DISTINCT - CAST ( col2 AS INTEGER ) ) + - 75 FROM tab1 AS cor0
----
-134

query I rowsort
SELECT ALL col2 + + 4 FROM tab1 cor0
----
100
63
72

query I rowsort
SELECT DISTINCT - ( - 32 ) FROM tab0
----
32

query I rowsort
SELECT - ( + col1 ) * 14 AS col2 FROM tab0
----
-1134
-14
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT ALL - 8 * 33 * + - MAX( + ( - col2 ) ) AS col2 FROM tab0
----
-2640

skipif mysql # not compatible
query I rowsort label-6396
SELECT ALL - 8 * 33 * + - MAX ( + ( - col2 ) ) AS col2 FROM tab0
----
-2640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 10 col0 FROM tab0
----
-10

query I rowsort
SELECT col1 * + ( + - col1 ) * + col1 FROM tab1
----
-103823
-125
-2744

onlyif mysql # DIV for integer division: 
query II rowsort label-6399
SELECT 8 DIV + 49 * col2 * - - 84, - 61 col2 FROM tab0
----
0
-61
0
-61
0
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6399
SELECT 8 / + 49 * col2 * - - 84, - 61 col2 FROM tab0
----
0
-61
0
-61
0
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT ALL ( ( - COUNT( * ) ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6400
SELECT ALL ( ( - COUNT ( * ) ) ) AS col1 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 72 * - + col2 IS NOT NULL
----

query I rowsort
SELECT ALL 50 / + ( + col1 ) / + + col1 FROM tab0 AS cor0 WHERE NULL <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT ALL MAX( ALL + + 37 ) AS col1 FROM tab0 cor0
----
37

skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL MAX ( ALL + + 37 ) AS col1 FROM tab0 cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT - COUNT( * ) + + 75 AS col1 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-6404
SELECT - COUNT ( * ) + + 75 AS col1 FROM tab0 AS cor0
----
72

query I rowsort
SELECT DISTINCT - 83 + - col1 FROM tab1 AS cor0
----
-130
-88
-97

query I rowsort
SELECT DISTINCT 30 + - + col0 FROM tab0 AS cor0
----
-57
-67
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6407
SELECT ALL * FROM tab1 cor0 WHERE NULL BETWEEN 86 AND + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6407
SELECT ALL * FROM tab1 cor0 WHERE NULL BETWEEN 86 AND + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col2 + - col1 * - + 88 FROM tab2
----
4511
5954
6816

query II rowsort
SELECT col1, - col2 * + col1 AS col1 FROM tab0
----
1
-99
21
-210
81
-3807

query II rowsort
SELECT ALL col1 AS col1, - col0 FROM tab1
----
14
-51
47
-91
5
-85

query I rowsort
SELECT ALL + col2 * + 5 * + ( + 79 ) FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6412
SELECT DISTINCT + 76 AS col2, + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
76
NULL

skipif mysql # not compatible
query II rowsort label-6412
SELECT DISTINCT + 76 AS col2, + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
76
NULL

query I rowsort
SELECT + col2 - - 86 FROM tab2 AS cor0
----
109
126
144

onlyif mysql # aggregate syntax: 
query II rowsort label-6414
SELECT - 85 + - MAX( DISTINCT - col0 ) * + COUNT( * ) AS col2, - 21 AS col0 FROM tab0 AS cor0
----
-40
-21

skipif mysql # not compatible
query II rowsort label-6414
SELECT - 85 + - MAX ( DISTINCT - col0 ) * + COUNT ( * ) AS col2, - 21 AS col0 FROM tab0 AS cor0
----
-40
-21

query I rowsort
SELECT + 43 + + col1 FROM tab2
----
110
120
94

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 <> + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 - + - col1 AS col1 FROM tab1
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6418
SELECT - + 99 / + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6418
SELECT - + 99 / + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + col2 * + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 >= + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6421
SELECT - - col0 DIV + ( + col1 ) FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-6421
SELECT - - col0 / + ( + col1 ) FROM tab0 AS cor0
----
0
4
97

query II rowsort
SELECT - 55 * - + col2 AS col0, + col2 * - 83 FROM tab1 AS cor0
----
3245
-4897
3740
-5644
5280
-7968

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col1 + + + col1 * + - col0 > col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 31 col2 FROM tab0 AS cor0
----
31
31
31

query I rowsort
SELECT DISTINCT 36 * - - col0 FROM tab2 AS cor0
----
1656
2304
2700

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT MAX( DISTINCT - col2 ) col0 FROM tab0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6426
SELECT MAX ( DISTINCT - col2 ) col0 FROM tab0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6427
SELECT ALL CAST( col1 AS SIGNED ) * col2 col2, 6 + + col1 FROM tab2
----
1173
57
3080
83
3886
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6427
SELECT ALL CAST ( col1 AS INTEGER ) * col2 col2, 6 + + col1 FROM tab2
----
1173
57
3080
83
3886
73

query I rowsort
SELECT ALL - 52 * + 52 FROM tab2
----
-2704
-2704
-2704

query I rowsort
SELECT DISTINCT 54 * 0 AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT ALL - MIN( DISTINCT + + col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6430
SELECT ALL - MIN ( DISTINCT + + col1 ) FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1, - col2 col1 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6432
SELECT ALL col0 * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6432
SELECT ALL col0 * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT DISTINCT - MAX( ALL 63 ) * - COUNT( * ) + COUNT( * ) FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-6433
SELECT DISTINCT - MAX ( ALL 63 ) * - COUNT ( * ) + COUNT ( * ) FROM tab2
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6434
SELECT ALL CAST( 15 AS SIGNED ) - ( 20 ) AS col0 FROM tab1
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-6434
SELECT ALL CAST ( 15 AS INTEGER ) - ( 20 ) AS col0 FROM tab1
----
-5
-5
-5

query I rowsort
SELECT ALL + col0 + + 12 FROM tab1
----
103
63
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6436
SELECT MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 WHERE NOT + 23 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6436
SELECT MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 WHERE NOT + 23 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 49 + + col2 * - col2 IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT ALL 37 + COUNT( col0 + + 33 ) AS col2 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-6438
SELECT ALL 37 + COUNT ( col0 + + 33 ) AS col2 FROM tab2
----
40

query I rowsort
SELECT DISTINCT + 53 / col2 AS col0 FROM tab0 WHERE col2 * col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 69 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT ALL COUNT( * ) FROM tab2 WHERE 89 >= 54
----
3

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL COUNT ( * ) FROM tab2 WHERE 89 >= 54
----
3

query I rowsort
SELECT - col0 * - col2 + col0 FROM tab1
----
4947
5100
6279

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE + col0 - - col1 BETWEEN - col2 * 8 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN ( + col0 ) AND NULL
----

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NOT 15 + col1 * col2 NOT BETWEEN col0 * 76 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT ALL + ( 16 ) * MAX( DISTINCT ( col0 ) + ( + 37 + 0 ) ) FROM tab1
----
2048

skipif mysql # not compatible
query I rowsort label-6446
SELECT ALL + ( 16 ) * MAX ( DISTINCT ( col0 ) + ( + 37 + 0 ) ) FROM tab1
----
2048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6447
SELECT ALL ( - CAST( - 99 AS SIGNED ) ) AS col2 FROM tab1 WHERE NOT col0 / + col1 + - 7 * 48 IS NULL
----
99
99
99

skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL ( - CAST ( - 99 AS INTEGER ) ) AS col2 FROM tab1 WHERE NOT col0 / + col1 + - 7 * 48 IS NULL
----
99
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6448
SELECT col2 FROM tab0 WHERE CAST( NULL AS SIGNED ) + col2 NOT IN ( col2 + 46 )
----

skipif mysql # not compatible
query I rowsort label-6448
SELECT col2 FROM tab0 WHERE CAST ( NULL AS INTEGER ) + col2 NOT IN ( col2 + 46 )
----

query I rowsort
SELECT + col0 + - 89 FROM tab2
----
-14
-25
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-6450
SELECT ALL - col0 + + 15 DIV 13 AS col0 FROM tab0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL - col0 + + 15 / 13 AS col0 FROM tab0
----
-14
-86
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6451
SELECT ALL - col0 * - CAST( NULL AS SIGNED ) col0 FROM tab0 WHERE - col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6451
SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) col0 FROM tab0 WHERE - col2 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + col2 + col2 AS col1 FROM tab2 AS cor0
----
-1150
-3040
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT + MAX( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6453
SELECT + MAX ( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL 73 AS col1 FROM tab2 cor0
----
73
73
73

query I rowsort
SELECT DISTINCT - col2 + + 70 AS col2 FROM tab2 AS cor0
----
12
30
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6456
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 WHERE + col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6456
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 WHERE + col2 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( col2 ) AND NULL
----

query I rowsort
SELECT col0 * + 43 FROM tab0 cor0
----
3741
4171
645

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT ALL - + MAX( col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL - + MAX ( col0 ) AS col1 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT ALL - 61 FROM tab0 AS cor0 WHERE NOT ( col2 * col1 + - col1 * - col2 ) <= ( col0 - - col1 )
----
-61
-61
-61

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN - 9 AND ( + col1 * + col1 + + col0 * + col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 77 IN ( - 88 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 38 * 26 AS col0 FROM tab0 AS cor0
----
988
988
988

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT - COUNT( + col0 ) * 22 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-6464
SELECT - COUNT ( + col0 ) * 22 FROM tab1
----
-66

query I rowsort
SELECT col0 * + - 19 FROM tab0
----
-1653
-1843
-285

query I rowsort
SELECT col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT col1 + 67 * - 36 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( - col0 / - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT DISTINCT ( - COUNT( - col0 ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6468
SELECT DISTINCT ( - COUNT ( - col0 ) ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6469
SELECT - 92 DIV - SUM( DISTINCT 21 ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-6469
SELECT - 92 / - SUM ( DISTINCT 21 ) FROM tab1
----
4

query I rowsort
SELECT + 50 AS col1 FROM tab2
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT DISTINCT COUNT( - ( - 95 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6471
SELECT DISTINCT COUNT ( - ( - 95 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6472
SELECT DISTINCT ( CAST( - col0 AS SIGNED ) ) AS col0 FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6472
SELECT DISTINCT ( CAST ( - col0 AS INTEGER ) ) AS col0 FROM tab0 cor0
----
-15
-87
-97

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT col1 * + col2 + + 34 < col1
----
-51
-67
-77

query I rowsort
SELECT - 45 - 32 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT 35 * - + 32 AS col0 FROM tab1
----
-1120
-1120
-1120

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col0 * 2 <= col0 * + 21
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE ( - 88 * - col0 - col1 ) IS NULL
----

query I rowsort
SELECT + 35 + - col0 - - col2 FROM tab1 AS cor0
----
12
80
9

query I rowsort
SELECT DISTINCT 63 AS col1 FROM tab1 AS cor0 WHERE ( col0 + - col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 - col2 * - 51 ) IN ( - 90 )
----

query I rowsort
SELECT DISTINCT - 8 * + - ( col1 ) * 54 FROM tab1 AS cor0
----
20304
2160
6048

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col2 col2 FROM tab0 cor0 WHERE NULL NOT BETWEEN + col0 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6484
SELECT - SUM( - + 92 ) + COUNT( ALL CAST( NULL AS SIGNED ) ) - + 40 AS col1 FROM tab2 cor0
----
236

skipif mysql # not compatible
query I rowsort label-6484
SELECT - SUM ( - + 92 ) + COUNT ( ALL CAST ( NULL AS INTEGER ) ) - + 40 AS col1 FROM tab2 cor0
----
236

query I rowsort
SELECT + 91 + - + col1 * - + col2 AS col1 FROM tab0 AS cor0
----
190
301
3898

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6486
SELECT + col0 + - col0 + - 97 + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6486
SELECT + col0 + - col0 + - 97 + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 18 + - ( + col0 ) * col0 FROM tab2 AS cor0
----
-2098
-4078
-5607

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT COUNT( ALL col1 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6488
SELECT COUNT ( ALL col1 ) AS col1 FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 11 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT + MAX( + 68 ) FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-6490
SELECT + MAX ( + 68 ) FROM tab0 AS cor0
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6491
SELECT DISTINCT MIN( - col0 ) * + COUNT( * ) + - 79 DIV - MIN( DISTINCT col0 * 96 ) AS col0 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-6491
SELECT DISTINCT MIN ( - col0 ) * + COUNT ( * ) + - 79 / - MIN ( DISTINCT col0 * 96 ) AS col0 FROM tab2 AS cor0
----
-225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 43 + - 80 - 38 + + col0 * col2 col2 FROM tab2
----
2399
4189
897

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT - SUM( ALL + col0 ) AS col0 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-6493
SELECT - SUM ( ALL + col0 ) AS col0 FROM tab0
----
-199

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE col0 <> ( - + col0 * 89 )
----
-46
-64
-75

query I rowsort
SELECT ALL col2 - col0 + col1 AS col0 FROM tab2
----
28
50
53

query I rowsort
SELECT ALL + 63 AS col1 FROM tab1
----
63
63
63

query I rowsort
SELECT + 37 - + - col1 FROM tab1
----
42
51
84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( - 50 * - 11 ) NOT IN ( col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT DISTINCT + + ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6499
SELECT DISTINCT + + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

query II rowsort
SELECT - col1 - - col0, col0 FROM tab0 AS cor0
----
-66
15
66
87
96
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6501
SELECT DISTINCT - + COUNT( * ) * + COUNT( * ) AS col2, MIN( DISTINCT - - col1 ) AS col0 FROM tab2 AS cor0
----
-9
51

skipif mysql # not compatible
query II rowsort label-6501
SELECT DISTINCT - + COUNT ( * ) * + COUNT ( * ) AS col2, MIN ( DISTINCT - - col1 ) AS col0 FROM tab2 AS cor0
----
-9
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT + COUNT( * ) + - + COUNT( ALL + 24 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6502
SELECT + COUNT ( * ) + - + COUNT ( ALL + 24 ) FROM tab1 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( - + 85 ) <> ( NULL )
----

query I rowsort
SELECT ALL ( - 18 ) FROM tab1 AS cor0
----
-18
-18
-18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6505
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= 65 * - - CAST( + ( + - 89 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6505
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= 65 * - - CAST ( + ( + - 89 ) AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6506
SELECT * FROM tab2 cor0 WHERE NOT - col2 IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6506
SELECT * FROM tab2 cor0 WHERE NOT - col2 IN ( - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 34 * - col1 + - 27 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 62 * - + 61 AS col0 FROM tab2 AS cor0
----
3782
3782
3782

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT DISTINCT + 66 * - 35 * + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
6930

skipif mysql # not compatible
query I rowsort label-6509
SELECT DISTINCT + 66 * - 35 * + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
6930

onlyif mysql # DIV for integer division: 
query I rowsort label-6510
SELECT ALL - col2 DIV + 89 FROM tab0 WHERE NOT ( + 10 ) * - 56 IS NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6510
SELECT ALL - col2 / + 89 FROM tab0 WHERE NOT ( + 10 ) * - 56 IS NULL
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( col0 ) IS NOT NULL
----

query II rowsort
SELECT ALL col0, + col0 + col0 FROM tab0
----
15
30
87
174
97
194

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 23 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-6514
SELECT DISTINCT + COUNT( * ), + 51 AS col1 FROM tab0
----
3
51

skipif mysql # not compatible
query II rowsort label-6514
SELECT DISTINCT + COUNT ( * ), + 51 AS col1 FROM tab0
----
3
51

query II rowsort
SELECT ALL + col0, - col2 AS col1 FROM tab0
----
15
-47
87
-10
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT + COUNT( * ) AS col0 FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6516
SELECT + COUNT ( * ) AS col0 FROM tab1, tab2 AS cor0
----
9

query I rowsort
SELECT + 35 AS col1 FROM tab0 WHERE NOT + 7 * - 96 BETWEEN - col0 AND col1 * + col1
----
35
35
35

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6518
SELECT DISTINCT + 44 * + 83 * - 80 - - CAST( NULL AS SIGNED ) AS col2, + col0 DIV - + col0 AS col1 FROM tab0 AS cor0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-6518
SELECT DISTINCT + 44 * + 83 * - 80 - - CAST ( NULL AS INTEGER ) AS col2, + col0 / - + col0 AS col1 FROM tab0 AS cor0
----
NULL
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + - - col2, - ( ( col2 ) ) - col2 * + col1 col0 FROM tab0 cor0
----
198
-198
20
-220
94
-3854

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= col0 + + 71 * - 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT ALL - SUM( - 26 ) FROM tab1 AS cor0 WHERE NULL IN ( + col2 / - - col0 + - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL - SUM ( - 26 ) FROM tab1 AS cor0 WHERE NULL IN ( + col2 / - - col0 + - col1 )
----
NULL

query I rowsort
SELECT DISTINCT col2 * - + col0 + - col2 AS col2 FROM tab1 AS cor0
----
-4992
-5074
-6256

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) >= + col0
----

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 + 87 + - col1 * + col0 FROM tab2
----
-2213
-4777
-4863

query I rowsort
SELECT DISTINCT 93 * col2 FROM tab0
----
4371
9207
930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + - col1 ), - 62 - col0 - + 12 * - 6 - 65 col2 FROM tab2
----
-51
-101
-67
-130
-77
-119

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 68 col2 FROM tab1 cor0
----
68

query II rowsort
SELECT + 73 * + - 1, + AVG ( ALL + + col0 ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1 + - + 39
----
-73
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( - 16 ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT ALL + - MAX( - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT 31 + - + 96 >= 44
----
51

skipif mysql # not compatible
query I rowsort label-6531
SELECT ALL + - MAX ( - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT 31 + - + 96 >= 44
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6532
SELECT * FROM tab0 AS cor0 WHERE + 68 * - 19 * - ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6532
SELECT * FROM tab0 AS cor0 WHERE + 68 * - 19 * - ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - ( + ( + - col2 ) ) AND col0 * + col1
----

query I rowsort
SELECT - 57 - + col2 FROM tab2 AS cor0
----
-115
-80
-97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + ( + col1 ) * + + col2 * + - col1 ) BETWEEN + col2 AND ( - - col0 * - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + - 73 IN ( + - ( col0 ), - col0 + ( + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE - - ( + col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6538
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE - - ( + col2 ) IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 53 IS NULL
----

query I rowsort
SELECT ALL col2 * 15 - - ( - + 39 ) FROM tab1
----
1401
846
981

query I rowsort
SELECT DISTINCT - col2 + + 80 - + - col2 FROM tab1
----
80

query III rowsort
SELECT * FROM tab1 WHERE NULL = ( - - col2 )
----

query I rowsort
SELECT ALL + ( col1 ) - - + ( - ( - 98 ) ) AS col0 FROM tab1 WHERE + col2 NOT BETWEEN - 43 AND NULL
----

query I rowsort
SELECT ALL - col2 + + col1 * + col2 AS col1 FROM tab1
----
1248
236
3128

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 94 ) NOT BETWEEN + ( - col0 ) AND 99
----

query I rowsort
SELECT col0 * - 30 + + - col2 * col0 FROM tab0 AS cor0
----
-1155
-12513
-3480

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 = - ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT DISTINCT - COUNT( * ) * - 17 AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT - COUNT ( * ) * - 17 AS col0 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-6549
SELECT 3 AS col2, COUNT( * ) FROM tab2 AS cor0 WHERE ( - col0 ) IS NULL
----
3
0

skipif mysql # not compatible
query II rowsort label-6549
SELECT 3 AS col2, COUNT ( * ) FROM tab2 AS cor0 WHERE ( - col0 ) IS NULL
----
3
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6550
SELECT ALL - + ( - COUNT( * ) ) DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6550
SELECT ALL - + ( - COUNT ( * ) ) / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * col0 * ( - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6552
SELECT DISTINCT - col0 DIV - 6 AS col2 FROM tab2 AS cor0
----
10
12
7

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT - col0 / - 6 AS col2 FROM tab2 AS cor0
----
10
12
7

query I rowsort
SELECT ALL - col1 - - 14 AS col0 FROM tab0 WHERE NOT NULL IN ( 30 * + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6554
SELECT + CAST( - col2 AS SIGNED ), col1 FROM tab2
----
-23
51
-40
77
-58
67

skipif mysql # not compatible
query II rowsort label-6554
SELECT + CAST ( - col2 AS INTEGER ), col1 FROM tab2
----
-23
51
-40
77
-58
67

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 84 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # DIV for integer division: 
query I rowsort label-6556
SELECT ALL col2 DIV col1 * col0 AS col0 FROM tab0
----
0
0
9603

skipif mysql # not compatible
query I rowsort label-6556
SELECT ALL col2 / col1 * col0 AS col0 FROM tab0
----
0
0
9603

query I rowsort
SELECT ALL - 7 FROM tab1 WHERE ( NOT col0 + + col0 NOT IN ( + col2 + + col0, - 29 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6558
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - - 52 * - col1 + + CAST( NULL AS SIGNED ) + 70 )
----

skipif mysql # not compatible
query III rowsort label-6558
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - - 52 * - col1 + + CAST ( NULL AS INTEGER ) + 70 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * 72 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 54 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 19 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * - ( - - ( col2 ) ) + 40 NOT IN ( 69 * - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 78 FROM tab2 cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6563
SELECT ALL - CAST( - ( col2 ) AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6563
SELECT ALL - CAST ( - ( col2 ) AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 65 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * + - ( - - col1 ) - - - ( + - 34 ) + 66 * - col0 FROM tab1 AS cor0
----
-4676
-5871
-9168

query I rowsort
SELECT ALL + + col2 AS col0 FROM tab0 AS cor0 WHERE NOT col2 / - col2 * + 57 = + col1 * - + 84
----
10
47
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - ( + col2 ) + 90 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6569
SELECT + CAST( NULL AS DECIMAL ) * - ( + + COUNT( * ) ) / + - COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6569
SELECT + CAST ( NULL AS REAL ) * - ( + + COUNT ( * ) ) / + - COUNT ( * ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - col2 * - + 46 FROM tab0
----
2162
4554
460

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 - - 32 + - ( - - col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 / + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6573
SELECT MIN( ALL col1 ) DIV - 38 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6573
SELECT MIN ( ALL col1 ) / - 38 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT SUM( DISTINCT - col2 ) AS col1 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6574
SELECT SUM ( DISTINCT - col2 ) AS col1 FROM tab0 cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT - + MIN( DISTINCT col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6575
SELECT - + MIN ( DISTINCT col1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + - col0 * + + 40 FROM tab2 AS cor0
----
-1840
-2560
-3000

query I rowsort
SELECT - + 84 / + - col2 FROM tab1 cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT ALL - + col0 + - 99 * col0 + + col1 - - col2 FROM tab0 AS cor0
----
-1372
-8669
-9600

query I rowsort
SELECT - 80 + - ( col0 ) FROM tab1 AS cor0
----
-131
-165
-171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6580
SELECT - COUNT( * ) DIV - + COUNT( * ) FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6580
SELECT - COUNT ( * ) / - + COUNT ( * ) FROM tab1 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 22 col0 FROM tab2 AS cor0
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT + MIN( - 5 ) AS col0 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-6582
SELECT + MIN ( - 5 ) AS col0 FROM tab0
----
-5

query I rowsort
SELECT + col2 FROM tab2 WHERE ( NULL ) <> + col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 94 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 - + col0 + 70 FROM tab1
----
-10
26
33

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT ( NULL ) = col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT DISTINCT 77 - + COUNT( * ) FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-6587
SELECT DISTINCT 77 - + COUNT ( * ) FROM tab1
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-6588
SELECT ALL - 99 * - + MAX( col2 ) AS col2, - 92 AS col2 FROM tab0 AS cor0
----
9801
-92

skipif mysql # not compatible
query II rowsort label-6588
SELECT ALL - 99 * - + MAX ( col2 ) AS col2, - 92 AS col2 FROM tab0 AS cor0
----
9801
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 73 * + col2 col0, - 5 AS col2 FROM tab0 AS cor0
----
3431
-5
7227
-5
730
-5

query I rowsort
SELECT ALL 77 * + 97 AS col2 FROM tab0
----
7469
7469
7469

query I rowsort
SELECT DISTINCT col2 * + - col1 * 9 * + - col2 FROM tab0
----
1610361
18900
88209

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 * col2 / + col2 NOT BETWEEN + + 32 AND + - 33
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT + SUM( DISTINCT + + col1 ) col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6593
SELECT + SUM ( DISTINCT + + col1 ) col1 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL + + 51 AS col0 FROM tab0 AS cor0
----
51
51
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6595
SELECT + + MIN( - - 93 ) * + COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-6595
SELECT + + MIN ( - - 93 ) * + COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT DISTINCT + - MIN( DISTINCT + col2 ) * 53 + + COUNT( * ) FROM tab1 AS cor0
----
-3124

skipif mysql # not compatible
query I rowsort label-6596
SELECT DISTINCT + - MIN ( DISTINCT + col2 ) * 53 + + COUNT ( * ) FROM tab1 AS cor0
----
-3124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6597
SELECT ALL - COUNT( * ) AS col0, + CAST( NULL AS SIGNED ) + + + 25 FROM tab0 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-6597
SELECT ALL - COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) + + + 25 FROM tab0 AS cor0
----
-3
NULL

query I rowsort
SELECT DISTINCT - col0 + - - ( + col0 ) AS col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 + + 49 * 55 col1 FROM tab0
----
2729
2729
2729

onlyif mysql # DIV for integer division: 
query II rowsort label-6600
SELECT 10 DIV - col1 AS col2, 73 col1 FROM tab1
----
-2
73
0
73
0
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6600
SELECT 10 / - col1 AS col2, 73 col1 FROM tab1
----
-2
73
0
73
0
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT NULL BETWEEN ( col0 * + 93 + col1 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6601
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT NULL BETWEEN ( col0 * + 93 + col1 ) AND NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND ( 9 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6603
SELECT - 81 DIV - col1, + col0 AS col0 FROM tab2
----
1
46
1
64
1
75

skipif mysql # not compatible
query II rowsort label-6603
SELECT - 81 / - col1, + col0 AS col0 FROM tab2
----
1
46
1
64
1
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6604
SELECT DISTINCT 68 DIV 4 * 61 AS col0 FROM tab0
----
1037

skipif mysql # not compatible
query I rowsort label-6604
SELECT DISTINCT 68 / 4 * 61 AS col0 FROM tab0
----
1037

query I rowsort
SELECT col2 * - + 43 + + col1 - + 8 AS col1 FROM tab0
----
-1948
-417
-4264

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT ALL - COUNT( * ) + - + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL - COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL - - 60 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT - + col1 - - - col0 FROM tab0 cor0
----
-108
-96
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6610
SELECT ALL + col1 - - CAST( + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL + col1 - - CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6611
SELECT - 42 - - col2 - - 91 * - + 68 + col0 + col2 + + ( col1 ) DIV 23 * col1 * ( + col1 ) * - - 43 FROM tab2 AS cor0
----
217548
380015
758755

skipif mysql # not compatible
query I rowsort label-6611
SELECT - 42 - - col2 - - 91 * - + 68 + col0 + col2 + + ( col1 ) / 23 * col1 * ( + col1 ) * - - 43 FROM tab2 AS cor0
----
217548
380015
758755

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT DISTINCT + ( COUNT( * ) ) + - + ( - - 47 ) FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-6612
SELECT DISTINCT + ( COUNT ( * ) ) + - + ( - - 47 ) FROM tab1 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT 93 + + COUNT( * ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-6613
SELECT 93 + + COUNT ( * ) FROM tab2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6614
SELECT DISTINCT - 67 / + - col0 * + CAST( NULL AS SIGNED ) + - - col1 - + col2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6614
SELECT DISTINCT - 67 / + - col0 * + CAST ( NULL AS INTEGER ) + - - col1 - + col2 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL + 38 FROM tab1 WHERE NULL < NULL
----

query I rowsort
SELECT col2 + + col1 + + + col2 + + col1 * - + 72 * + + col0 AS col2 FROM tab0
----
-131503
-6785
-87305

onlyif mysql # DIV for integer division: 
query II rowsort label-6617
SELECT ALL - 24, col1 DIV - - col2 AS col0 FROM tab1
----
-24
0
-24
0
-24
0

skipif mysql # not compatible
query II rowsort label-6617
SELECT ALL - 24, col1 / - - col2 AS col0 FROM tab1
----
-24
0
-24
0
-24
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT DISTINCT + MIN( + + col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-6618
SELECT DISTINCT + MIN ( + + col0 ) AS col2 FROM tab0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 38 col0, col2 AS col2 FROM tab2
----
38
23
38
40
38
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT ALL SUM( DISTINCT - + col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-6620
SELECT ALL SUM ( DISTINCT - + col1 ) FROM tab2
----
-195

query II rowsort
SELECT DISTINCT - 39 AS col1, col2 FROM tab1
----
-39
59
-39
68
-39
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6622
SELECT ALL CAST( + + 15 AS SIGNED ) FROM tab0 AS cor0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-6622
SELECT ALL CAST ( + + 15 AS INTEGER ) FROM tab0 AS cor0
----
15
15
15

query I rowsort
SELECT DISTINCT + + col0 * + col1 * - + col0 FROM tab2 AS cor0
----
-107916
-315392
-376875

onlyif mysql # aggregate syntax: 
query II rowsort label-6624
SELECT DISTINCT - + COUNT( * ) col1, - ( + COUNT( * ) ) * - 8 FROM tab1 AS cor0
----
-3
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6624
SELECT DISTINCT - + COUNT ( * ) col1, - ( + COUNT ( * ) ) * - 8 FROM tab1 AS cor0
----
-3
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT - - ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6625
SELECT - - ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT 77 * - ( + - col2 ) FROM tab2
----
1771
3080
4466

query I rowsort
SELECT ( - + 58 ) * - 81 AS col2 FROM tab0
----
4698
4698
4698

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT + + COUNT( * ) * + ( - 8 ) + + COUNT( * ) col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6628
SELECT + + COUNT ( * ) * + ( - 8 ) + + COUNT ( * ) col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-63

query I rowsort
SELECT col0 * + ( + col1 ) FROM tab1
----
425
4277
714

query I rowsort
SELECT ALL + col0 * 90 FROM tab0
----
1350
7830
8730

query II rowsort
SELECT ALL col0 AS col0, col2 * + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
4896
85
5015
91
6188

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 48 BETWEEN NULL AND - + col1 + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6633
SELECT ALL - SUM( DISTINCT - - col2 ), - COUNT( * ) * - 33 AS col2 FROM tab2 AS cor0
----
-121
99

skipif mysql # not compatible
query II rowsort label-6633
SELECT ALL - SUM ( DISTINCT - - col2 ), - COUNT ( * ) * - 33 AS col2 FROM tab2 AS cor0
----
-121
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT DISTINCT - SUM( DISTINCT col0 ) AS col2 FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-6634
SELECT DISTINCT - SUM ( DISTINCT col0 ) AS col2 FROM tab1 cor0
----
-227

query I rowsort
SELECT ALL + 58 * - - ( - - col2 ) FROM tab0 AS cor0
----
2726
5742
580

query I rowsort
SELECT 21 + col1 * + - col0 * col1 FROM tab0 AS cor0
----
-38346
-76
-98394

query II rowsort
SELECT DISTINCT + col2 + - 59 AS col0, ( col1 ) * 59 FROM tab2 AS cor0
----
-1
3953
-19
4543
-36
3009

query II rowsort
SELECT ALL + col1 + col2, 2 AS col2 FROM tab2 AS cor0
----
117
2
125
2
74
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT - MAX( ALL + col2 ) + - 91 + + - COUNT( * ) col2 FROM tab2 AS cor0
----
-152

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6639
SELECT - MAX ( ALL + col2 ) + - 91 + + - COUNT ( * ) col2 FROM tab2 AS cor0
----
-152

query I rowsort
SELECT - col1 + 53 FROM tab1
----
39
48
6

query I rowsort
SELECT - col2 + - - col0 FROM tab1
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6642
SELECT DISTINCT + CAST( 21 AS SIGNED ) + - - col2 FROM tab0
----
120
31
68

skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT + CAST ( 21 AS INTEGER ) + - - col2 FROM tab0
----
120
31
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT + - MAX( - col2 ) col0 FROM tab2 WHERE - - col2 IN ( - - col2, - col2 + - 53 )
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6643
SELECT + - MAX ( - col2 ) col0 FROM tab2 WHERE - - col2 IN ( - - col2, - col2 + - 53 )
----
23

query II rowsort
SELECT ALL 5 AS col2, + ( + col0 ) FROM tab2
----
5
46
5
64
5
75

query I rowsort
SELECT - 12 * 71 AS col1 FROM tab0 WHERE ( NOT 96 IS NOT NULL )
----

query II rowsort
SELECT ALL - 30, col2 - - col1 AS col0 FROM tab2
----
-30
117
-30
125
-30
74

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + + 17 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT - SUM( col1 ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-6648
SELECT - SUM ( col1 ) AS col1 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT ALL - SUM( + col0 ) col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6650
SELECT ALL - SUM ( + col0 ) col0 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT ALL + SUM( DISTINCT - 35 ) * - 87 FROM tab1 AS cor0 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL + SUM ( DISTINCT - 35 ) * - 87 FROM tab1 AS cor0 WHERE - col1 IS NULL
----
NULL

query I rowsort
SELECT ALL 94 FROM tab1 AS cor0 WHERE NOT 0 + + 16 + + 82 IS NULL
----
94
94
94

query I rowsort
SELECT 14 + col0 * - + col1 + 72 AS col2 FROM tab0 AS cor0
----
-11
-1129
-1741

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6654
SELECT DISTINCT 50 - CAST( NULL AS SIGNED ) AS col2, + col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-6654
SELECT DISTINCT 50 - CAST ( NULL AS INTEGER ) AS col2, + col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT + COUNT( * ) + + + 64 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-6655
SELECT + COUNT ( * ) + + + 64 FROM tab2
----
67

query I rowsort
SELECT ALL - + ( - col1 ) - - col0 + + col1 * + 69 AS col0 FROM tab1 AS cor0
----
1031
3381
435

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 col0 FROM tab0 AS cor0
----
37

query II rowsort
SELECT ALL col1 + - + col2 * 92 + - 68 * + col2 AS col0, col2 FROM tab1 AS cor0 WHERE NOT 95 IS NOT NULL
----

query I rowsort
SELECT ALL - 66 * + col0 AS col1 FROM tab0
----
-5742
-6402
-990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - - 53 ) col2 FROM tab2
----
-53
-53
-53

query II rowsort
SELECT + col2 AS col0, + col1 FROM tab1
----
59
5
68
47
96
14

query II rowsort
SELECT ALL - 44, col0 FROM tab1
----
-44
51
-44
85
-44
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6663
SELECT * FROM tab0 WHERE NOT CAST( + col1 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6663
SELECT * FROM tab0 WHERE NOT CAST ( + col1 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col2 AS col1, col2 AS col2 FROM tab1
----
59
59
68
68
96
96

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT ALL COUNT( + col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6666
SELECT ALL COUNT ( + col2 ) AS col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT - + col2 * + ( + col2 ), col2 FROM tab0 cor0
----
-100
10
-2209
47
-9801
99

query II rowsort
SELECT ALL 30 AS col2, - 96 * + + 23 * - 28 FROM tab1
----
30
61824
30
61824
30
61824

query II rowsort
SELECT ALL + col1, 8 * + col0 FROM tab0 AS cor0
----
1
776
21
696
81
120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, - col1 - - - 45 FROM tab1 AS cor0
----
14
-59
47
-92
5
-50

query I rowsort
SELECT - 11 * + 80 FROM tab0 AS cor0
----
-880
-880
-880

onlyif mysql # aggregate syntax: 
query II rowsort label-6672
SELECT - ( - ( + - SUM( - + col1 ) ) ), COUNT( * ) AS col0 FROM tab1 AS cor0
----
66
3

skipif mysql # not compatible
query II rowsort label-6672
SELECT - ( - ( + - SUM ( - + col1 ) ) ), COUNT ( * ) AS col0 FROM tab1 AS cor0
----
66
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6673
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6673
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6674
SELECT DISTINCT - - col2 + - - col1 AS col2, - col1 + CAST( - + col2 AS SIGNED ) FROM tab0 AS cor0
----
100
-100
128
-128
31
-31

skipif mysql # not compatible
query II rowsort label-6674
SELECT DISTINCT - - col2 + - - col1 AS col2, - col1 + CAST ( - + col2 AS INTEGER ) FROM tab0 AS cor0
----
100
-100
128
-128
31
-31

query I rowsort
SELECT ALL 2 + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-2207
-9799
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT ALL - 70 + + COUNT( * ) + 8 * - 15 FROM tab2
----
-187

skipif mysql # not compatible
query I rowsort label-6676
SELECT ALL - 70 + + COUNT ( * ) + 8 * - 15 FROM tab2
----
-187

query I rowsort
SELECT ALL 42 * - + col2 FROM tab2
----
-1680
-2436
-966

query I rowsort
SELECT + col0 + + - col2 AS col1 FROM tab2
----
17
23
24

query I rowsort
SELECT ALL - col1 * - 10 AS col2 FROM tab2
----
510
670
770

query II rowsort
SELECT 74 + + col0, - ( - + 79 ) AS col0 FROM tab2
----
120
79
138
79
149
79

query I rowsort
SELECT DISTINCT col1 + 55 AS col1 FROM tab0
----
136
56
76

query I rowsort
SELECT DISTINCT + 5 * - col2 AS col1 FROM tab1
----
-295
-340
-480

query I rowsort
SELECT DISTINCT + 77 + - 42 * - 25 FROM tab2 cor0
----
1127

onlyif mysql # aggregate syntax: 
query II rowsort label-6684
SELECT DISTINCT - COUNT( * ) * - 22, + 28 AS col2 FROM tab2 AS cor0
----
66
28

skipif mysql # not compatible
query II rowsort label-6684
SELECT DISTINCT - COUNT ( * ) * - 22, + 28 AS col2 FROM tab2 AS cor0
----
66
28

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 > col0 / + col1 + + 32 + - col2 / 83
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 19 AS col1 FROM tab0 cor0
----
19
19
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6687
SELECT - CAST( + - 22 AS SIGNED ) DIV COUNT( * ) + - 29 AS col1 FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-6687
SELECT - CAST ( + - 22 AS INTEGER ) / COUNT ( * ) + - 29 AS col1 FROM tab1 AS cor0
----
-22

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT MAX( + + col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6689
SELECT MAX ( + + col1 ) FROM tab0
----
81

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + + col2 < + - 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 * - - 41 FROM tab0
----
-3321
-41
-861

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6692
SELECT AVG ( CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6692
SELECT AVG ( CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 WHERE + col0 * + 71 - + - col2 <= + 23 * - ( 6 )
----

query I rowsort
SELECT - col2 * - ( 95 ) AS col0 FROM tab0
----
4465
9405
950

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6695
SELECT ALL CAST( 25 AS DECIMAL ) + MAX( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL CAST ( 25 AS REAL ) + MAX ( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----
NULL

query I rowsort
SELECT DISTINCT - - col0 * - + col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT + COUNT( * ) + + + COUNT( * ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-6697
SELECT + COUNT ( * ) + + + COUNT ( * ) FROM tab0 cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6698
SELECT 68 + + col0 DIV col1 AS col1 FROM tab0 AS cor0
----
165
68
72

skipif mysql # not compatible
query I rowsort label-6698
SELECT 68 + + col0 / col1 AS col1 FROM tab0 AS cor0
----
165
68
72

query I rowsort
SELECT + + col0 + - 22 AS col0 FROM tab0 AS cor0
----
-7
65
75

query I rowsort
SELECT - col2 * - - col1 AS col1 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT ALL - 71 + + - 69 - - SUM( ALL + 62 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-6701
SELECT ALL - 71 + + - 69 - - SUM ( ALL + 62 ) AS col1 FROM tab2
----
46

query I rowsort
SELECT DISTINCT col1 * + ( - 41 ) AS col0 FROM tab2
----
-2091
-2747
-3157

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col2 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT - ( + + col2 ), col2 FROM tab1
----
-59
59
-68
68
-96
96

query I rowsort
SELECT ALL ( - 51 ) * col2 + col1 FROM tab1
----
-3004
-3421
-4882

query I rowsort
SELECT ALL 39 * + col0 AS col0 FROM tab1
----
1989
3315
3549

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( col2 ) * - col1 col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6708
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - col1 * col1 + - CAST( - + 97 AS SIGNED ) AND ( - col2 ) - - 41
----

skipif mysql # not compatible
query III rowsort label-6708
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - col1 * col1 + - CAST ( - + 97 AS INTEGER ) AND ( - col2 ) - - 41
----

query I rowsort
SELECT ALL - col1 - + 20 AS col1 FROM tab1 AS cor0
----
-25
-34
-67

query I rowsort
SELECT ALL - 25 + + 54 + - col0 FROM tab0
----
-58
-68
14

query I rowsort
SELECT DISTINCT + ( 28 ) * 75 - - 54 FROM tab1 AS cor0
----
2154

query I rowsort
SELECT - - ( - 78 ) FROM tab0 AS cor0
----
-78
-78
-78

query I rowsort
SELECT - col0 * - 71 + 74 FROM tab0 AS cor0
----
1139
6251
6961

query I rowsort
SELECT col2 * - col0 * - 95 FROM tab1 AS cor0
----
465120
476425
587860

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + + - ( - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-6716
SELECT - + col2 DIV 42 * ( + ( col0 ) ) AS col0, - col0 FROM tab1 AS cor0
----
-102
-51
-85
-85
-91
-91

skipif mysql # not compatible
query II rowsort label-6716
SELECT - + col2 / 42 * ( + ( col0 ) ) AS col0, - col0 FROM tab1 AS cor0
----
-102
-51
-85
-85
-91
-91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = 26
----

query I rowsort
SELECT DISTINCT col2 * - 93 FROM tab0
----
-4371
-9207
-930

query I rowsort
SELECT ALL ( - - col2 ) AS col0 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT - - ( SUM( + 69 ) ) FROM tab0 cor0
----
207

skipif mysql # not compatible
query I rowsort label-6720
SELECT - - ( SUM ( + 69 ) ) FROM tab0 cor0
----
207

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6721
SELECT + - CAST( NULL AS DECIMAL ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6721
SELECT + - CAST ( NULL AS REAL ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 69 AS col1 FROM tab2 WHERE NOT 41 + 27 IS NULL
----
69

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col1
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 60 * 8 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > col1 + col2 + + 17
----

query I rowsort
SELECT DISTINCT + - 87 + - col0 AS col0 FROM tab0 AS cor0
----
-102
-174
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT DISTINCT COUNT( * ) + - - 85 * + 41 FROM tab2 AS cor0
----
3488

skipif mysql # not compatible
query I rowsort label-6728
SELECT DISTINCT COUNT ( * ) + - - 85 * + 41 FROM tab2 AS cor0
----
3488

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT DISTINCT - - COUNT( * ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6729
SELECT DISTINCT - - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6

query II rowsort
SELECT ALL - col0 + + col0 AS col2, col2 - + col1 FROM tab1 AS cor0
----
0
21
0
54
0
82

query I rowsort
SELECT ALL 49 + col1 AS col2 FROM tab2
----
100
116
126

onlyif mysql # DIV for integer division: 
query I rowsort label-6732
SELECT DISTINCT + col2 DIV - col1 FROM tab1 WHERE ( NULL ) IS NULL
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-6732
SELECT DISTINCT + col2 / - col1 FROM tab1 WHERE ( NULL ) IS NULL
----
-1
-11
-6

onlyif mysql # DIV for integer division: 
query II rowsort label-6733
SELECT ALL 59 * + - 29 AS col2, - 61 DIV + 43 FROM tab1, tab2 cor0
----
18 values hashing to 9f4a43621e3850809bb9012761875650

skipif mysql # not compatible
query II rowsort label-6733
SELECT ALL 59 * + - 29 AS col2, - 61 / + 43 FROM tab1, tab2 cor0
----
18 values hashing to 9f4a43621e3850809bb9012761875650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6734
SELECT col0 + - + ( - - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6734
SELECT col0 + - + ( - - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6735
SELECT ALL * FROM tab0 WHERE - - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6735
SELECT ALL * FROM tab0 WHERE - - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6736
SELECT ALL col0 - - + col0 DIV - - col2 AS col1 FROM tab2
----
48
65
76

skipif mysql # not compatible
query I rowsort label-6736
SELECT ALL col0 - - + col0 / - - col2 AS col1 FROM tab2
----
48
65
76

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 NOT BETWEEN NULL AND ( + col1 )
----
75
67
58

query I rowsort
SELECT ALL + col0 * - col2 + - + 84 / col0 FROM tab1 WHERE NOT NULL > col1 + - + col1 + - col0 * + col0 * + col1 * + 85
----

query I rowsort
SELECT DISTINCT - col1 - - 61 FROM tab1
----
14
47
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 + + col2 col1 FROM tab1
----
133
142
170

query I rowsort
SELECT - col0 * - col2 + col0 AS col0 FROM tab2
----
1104
2624
4425

query I rowsort
SELECT - - col0 - 86 AS col1 FROM tab2 AS cor0
----
-11
-22
-40

query I rowsort
SELECT ALL + col1 * + 27 * col2 FROM tab1
----
36288
7965
86292

onlyif mysql # DIV for integer division: 
query I rowsort label-6744
SELECT DISTINCT + 32 DIV - col0 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-6744
SELECT DISTINCT + 32 / - col0 FROM tab0
----
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT DISTINCT ( + COUNT( * ) ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6745
SELECT DISTINCT ( + COUNT ( * ) ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT ALL - MIN( - col1 ) * + SUM( - - 33 ) col2 FROM tab1 AS cor0
----
4653

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6746
SELECT ALL - MIN ( - col1 ) * + SUM ( - - 33 ) col2 FROM tab1 AS cor0
----
4653

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 63 / + 32 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-6748
SELECT ALL - 67, - COUNT( * ) AS col1 FROM tab0 cor0
----
-67
-3

skipif mysql # not compatible
query II rowsort label-6748
SELECT ALL - 67, - COUNT ( * ) AS col1 FROM tab0 cor0
----
-67
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT COUNT( - + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6749
SELECT COUNT ( - + col1 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT + col0 AS col0, col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT col2 / + col0 < - col0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-6752
SELECT DISTINCT - 82 AS col2, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-82
3

skipif mysql # not compatible
query II rowsort label-6752
SELECT DISTINCT - 82 AS col2, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-82
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6753
SELECT ALL - MAX( ALL + col1 ) * + CAST( + + 79 AS SIGNED ) FROM tab0
----
-6399

skipif mysql # not compatible
query I rowsort label-6753
SELECT ALL - MAX ( ALL + col1 ) * + CAST ( + + 79 AS INTEGER ) FROM tab0
----
-6399

onlyif mysql # DIV for integer division: 
query II rowsort label-6754
SELECT col0 * 51 DIV + 87, - col0 + - 44 col1 FROM tab0
----
51
-131
56
-141
8
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6754
SELECT col0 * 51 / + 87, - col0 + - 44 col1 FROM tab0
----
51
-131
56
-141
8
-59

query I rowsort
SELECT 65 * col0 AS col2 FROM tab0
----
5655
6305
975

onlyif mysql # DIV for integer division: 
query II rowsort label-6756
SELECT ALL 74 DIV - col2, 95 + + col0 + - 49 AS col0 FROM tab1
----
-1
131
-1
137
0
97

skipif mysql # not compatible
query II rowsort label-6756
SELECT ALL 74 / - col2, 95 + + col0 + - 49 AS col0 FROM tab1
----
-1
131
-1
137
0
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6757
SELECT ALL 40 DIV - 92 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6757
SELECT ALL 40 / - 92 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 5 FROM tab0 WHERE NULL IS NULL
----
5
5
5

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 78 AND + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6761
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6761
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 62 + - 20 + - - col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6763
SELECT ALL col1 / + col0 / + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL col1 / + col0 / + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col2 AS col0, col0 + - + col2 FROM tab0
----
-10
77
-47
-32
-99
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-6765
SELECT 70 AS col1, - SUM( DISTINCT col2 ) AS col2 FROM tab2
----
70
-121

skipif mysql # not compatible
query II rowsort label-6765
SELECT 70 AS col1, - SUM ( DISTINCT col2 ) AS col2 FROM tab2
----
70
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT DISTINCT - 5 + COUNT( * ) + COUNT( ALL col0 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6766
SELECT DISTINCT - 5 + COUNT ( * ) + COUNT ( ALL col0 ) FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6767
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6767
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - col0 * - 15 + + + col0 FROM tab2 AS cor0
----
1024
1200
736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6769
SELECT + CAST( NULL AS SIGNED ) * + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6769
SELECT + CAST ( NULL AS INTEGER ) * + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6770
SELECT * FROM tab0 AS cor0 WHERE - col0 NOT BETWEEN CAST( - col0 AS DECIMAL ) / + - col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6770
SELECT * FROM tab0 AS cor0 WHERE - col0 NOT BETWEEN CAST ( - col0 AS REAL ) / + - col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = - 53
----

query I rowsort
SELECT ALL - 76 + - + col2 FROM tab0 AS cor0
----
-123
-175
-86

query III rowsort
SELECT * FROM tab2 WHERE - + col2 > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT DISTINCT + MIN( DISTINCT - col1 ) AS col0 FROM tab2 WHERE NULL IN ( col2, + col0, col1, + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6774
SELECT DISTINCT + MIN ( DISTINCT - col1 ) AS col0 FROM tab2 WHERE NULL IN ( col2, + col0, col1, + col2 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 26 - + + col2 + + col1 * - col0 col0 FROM tab1
----
-4371
-510
-836

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT ALL + MAX( + 55 ) AS col0 FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL + MAX ( + 55 ) AS col0 FROM tab0 AS cor0
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6777
SELECT - CAST( + + SUM( + 20 ) AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-180

skipif mysql # not compatible
query I rowsort label-6777
SELECT - CAST ( + + SUM ( + 20 ) AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT - COUNT( * ) FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-6778
SELECT - COUNT ( * ) FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT ALL - SUM( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-6779
SELECT ALL - SUM ( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6780
SELECT ALL - CAST( NULL AS SIGNED ) * - 47 * + 27 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6780
SELECT ALL - CAST ( NULL AS INTEGER ) * - 47 * + 27 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 81 * + 28 FROM tab2 AS cor0
----
2268

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT COUNT( col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6782
SELECT COUNT ( col2 ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( + 8 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6784
SELECT ALL COUNT( * ) DIV + - 71 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6784
SELECT ALL COUNT ( * ) / + - 71 AS col1 FROM tab1
----
0

query II rowsort
SELECT DISTINCT + col1, 2 AS col2 FROM tab0
----
1
2
21
2
81
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6786
SELECT + 17 * + + COUNT( + col2 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-6786
SELECT + 17 * + + COUNT ( + col2 ) FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6787
SELECT ALL + CAST( 55 AS SIGNED ) AS col1 FROM tab2
----
55
55
55

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL + CAST ( 55 AS INTEGER ) AS col1 FROM tab2
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT DISTINCT + - SUM( DISTINCT col2 ) + ( - 55 ) AS col2 FROM tab0 AS cor0
----
-211

skipif mysql # not compatible
query I rowsort label-6788
SELECT DISTINCT + - SUM ( DISTINCT col2 ) + ( - 55 ) AS col2 FROM tab0 AS cor0
----
-211

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT ALL + COUNT( * ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - + 27 + 60 FROM tab1 cor0
----
33
33
33

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE ( col0 ) IN ( + col2 + col2 )
----
51

query I rowsort
SELECT - - 58 + 92 * + col1 - + + ( + col2 ) FROM tab2 AS cor0
----
4727
6164
7102

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT ALL + - COUNT( * ) + + - SUM( - col0 ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-6793
SELECT ALL + - COUNT ( * ) + + - SUM ( - col0 ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT DISTINCT MAX( - 14 ) FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-6794
SELECT DISTINCT MAX ( - 14 ) FROM tab2 AS cor0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6795
SELECT 66 - - + 44 + + - MIN( - col2 ) + + ( + ( CAST( + COUNT( * ) AS SIGNED ) ) ) - - SUM( DISTINCT - 96 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6795
SELECT 66 - - + 44 + + - MIN ( - col2 ) + + ( + ( CAST ( + COUNT ( * ) AS INTEGER ) ) ) - - SUM ( DISTINCT - 96 ) AS col1 FROM tab2 AS cor0
----
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 71 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT DISTINCT + ( - COUNT( * ) ) + + - COUNT( * ) FROM tab1 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6797
SELECT DISTINCT + ( - COUNT ( * ) ) + + - COUNT ( * ) FROM tab1 cor0
----
-6

query I rowsort
SELECT - - col0 FROM tab2 WHERE col2 - - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - 60 - - col2 + + col1 AS col1 FROM tab2
----
14
57
65

query I rowsort
SELECT col1 * - - col2 + - 64 FROM tab0
----
146
35
3743

query I rowsort
SELECT ALL + col0 * + 17 + + col0 AS col1 FROM tab2
----
1152
1350
828

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT ALL + MIN( ( + - col0 ) ) * + COUNT( * ) AS col1 FROM tab2 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6802
SELECT ALL + MIN ( ( + - col0 ) ) * + COUNT ( * ) AS col1 FROM tab2 WHERE - col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT ALL - COUNT( * ) FROM tab1 WHERE NULL IN ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NULL IN ( col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT + SUM( DISTINCT - 33 ) AS col0 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-6804
SELECT + SUM ( DISTINCT - 33 ) AS col0 FROM tab0
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-6805
SELECT DISTINCT 89 * - col2 + + + col2 + 96 DIV + col0 AS col1 FROM tab1
----
-5191
-5983
-8447

skipif mysql # not compatible
query I rowsort label-6805
SELECT DISTINCT 89 * - col2 + + + col2 + 96 / + col0 AS col1 FROM tab1
----
-5191
-5983
-8447

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT DISTINCT COUNT( * ) - + + COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT COUNT ( * ) - + + COUNT ( * ) AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL - col0 / - - col2 * - + col0 * + col1 + 37 + - - 23 AS col1 FROM tab1 WHERE NULL <= - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < 62
----

query I rowsort
SELECT DISTINCT + - ( + col2 ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-6810
SELECT - 39, - SUM( col2 ) AS col2 FROM tab0 cor0
----
-39
-156

skipif mysql # not compatible
query II rowsort label-6810
SELECT - 39, - SUM ( col2 ) AS col2 FROM tab0 cor0
----
-39
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-6811
SELECT + + col2 DIV - + col0 - 12 + + + col0 FROM tab1 AS cor0
----
38
73
79

skipif mysql # not compatible
query I rowsort label-6811
SELECT + + col2 / - + col0 - 12 + + + col0 FROM tab1 AS cor0
----
38
73
79

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col2, col2 * - + 88 )
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab0 AS cor1 ON - - 6 IS NULL
----

query I rowsort
SELECT ALL + ( 21 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT + col1 / - - 97 FROM tab0 AS cor0 WHERE NOT col2 <> - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6816
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST( + col1 AS SIGNED ) > - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6816
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST ( + col1 AS INTEGER ) > - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 * - 90 AS col0 FROM tab2 cor0
----
-4590
-6030
-6930

query I rowsort
SELECT DISTINCT - col2 * + + col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6819
SELECT DISTINCT + CAST( - - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6819
SELECT DISTINCT + CAST ( - - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6820
SELECT ALL + 81 * + + ( MAX( - - col1 ) ) FROM tab2 WHERE NOT ( + CAST( - col2 AS SIGNED ) ) IS NULL
----
6237

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL + 81 * + + ( MAX ( - - col1 ) ) FROM tab2 WHERE NOT ( + CAST ( - col2 AS INTEGER ) ) IS NULL
----
6237

query I rowsort
SELECT + col0 * + - col1 AS col0 FROM tab2
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 col2 FROM tab1
----
22
22
22

query I rowsort
SELECT - 74 * + col0 AS col2 FROM tab0
----
-1110
-6438
-7178

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6824
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 IN ( - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + - CAST( NULL AS SIGNED ) * 15 + - + 92, + col1 )
----

skipif mysql # not compatible
query III rowsort label-6824
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 IN ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + - CAST ( NULL AS INTEGER ) * 15 + - + 92, + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - + col0 col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT - 70 + + col0 AS col0 FROM tab0 AS cor0
----
-55
17
27

query I rowsort
SELECT - col1 + + 33 + col2 AS col2 FROM tab0 AS cor0
----
-1
131
22

query II rowsort
SELECT + 13 + - + 13 AS col1, ( + col2 ) FROM tab0
----
0
10
0
47
0
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6829
SELECT ALL col0 AS col2 FROM tab1 WHERE NOT 83 * CAST( NULL AS SIGNED ) > + col1
----

skipif mysql # not compatible
query I rowsort label-6829
SELECT ALL col0 AS col2 FROM tab1 WHERE NOT 83 * CAST ( NULL AS INTEGER ) > + col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6830
SELECT ALL - col2 DIV - col0 - CAST( col1 AS SIGNED ) * - 47 * + - col1 AS col0 FROM tab2 AS cor0
----
-122247
-210983
-278663

skipif mysql # not compatible
query I rowsort label-6830
SELECT ALL - col2 / - col0 - CAST ( col1 AS INTEGER ) * - 47 * + - col1 AS col0 FROM tab2 AS cor0
----
-122247
-210983
-278663

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6831
SELECT COUNT( * ) DIV - - ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6831
SELECT COUNT ( * ) / - - ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + col0 * + 91 FROM tab1 AS cor0
----
4641
7735
8281

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 23 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6834
SELECT ALL - 96 * + col2 + + CAST( NULL AS SIGNED ) + - 68 * 51 / + + col0 * - 58 * + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL - 96 * + col2 + + CAST ( NULL AS INTEGER ) + - 68 * 51 / + + col0 * - 58 * + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6835
SELECT col2 * + + CAST( + 99 AS SIGNED ) - + 58 + + - 17 AS col1 FROM tab0
----
4578
915
9726

skipif mysql # not compatible
query I rowsort label-6835
SELECT col2 * + + CAST ( + 99 AS INTEGER ) - + 58 + + - 17 AS col1 FROM tab0
----
4578
915
9726

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE - col1 NOT BETWEEN col0 * + col0 AND 27 * - col2
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - - col2 AND + 54
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6838
SELECT ALL - col0 * - col2 DIV col2 col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6838
SELECT ALL - col0 * - col2 / col2 col0 FROM tab1
----
51
85
91

query I rowsort
SELECT - col1 * - - col2 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT 17 AS col1 FROM tab0 cor0
----
17
17
17

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + - ( + 26 ) ) * + 86 BETWEEN + - 82 AND - col1 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-6842
SELECT ( COUNT( * ) ) AS col1, + 63 FROM tab0 AS cor0
----
3
63

skipif mysql # not compatible
query II rowsort label-6842
SELECT ( COUNT ( * ) ) AS col1, + 63 FROM tab0 AS cor0
----
3
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6843
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT + 68 * COUNT( * ) FROM tab2 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-6844
SELECT + 68 * COUNT ( * ) FROM tab2 AS cor0
----
204

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * col2 > NULL
----

query II rowsort
SELECT col2 AS col1, + col2 FROM tab2 cor0
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT - MIN( - + col1 ) AS col1 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-6847
SELECT - MIN ( - + col1 ) AS col1 FROM tab1 cor0
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6848
SELECT DISTINCT + COUNT( * ) * - CAST( NULL AS DECIMAL ) * - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6848
SELECT DISTINCT + COUNT ( * ) * - CAST ( NULL AS REAL ) * - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT - 96 AS col0, col2 FROM tab1 AS cor0
----
-96
59
-96
68
-96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + + ( - col1 ) col1 FROM tab1
----
21
54
82

query II rowsort
SELECT DISTINCT + 16 * col2 + + - col2 + - col1 + - - 21, col1 AS col1 FROM tab1
----
1447
14
901
5
994
47

onlyif mysql # aggregate syntax: 
query II rowsort label-6852
SELECT ALL - - COUNT( * ) AS col2, ( + 73 ) AS col2 FROM tab0 WHERE NOT col2 IS NULL
----
3
73

skipif mysql # not compatible
query II rowsort label-6852
SELECT ALL - - COUNT ( * ) AS col2, ( + 73 ) AS col2 FROM tab0 WHERE NOT col2 IS NULL
----
3
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT DISTINCT + COUNT( * ) * - - ( + 85 ) AS col1 FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-6853
SELECT DISTINCT + COUNT ( * ) * - - ( + 85 ) AS col1 FROM tab1
----
255

onlyif mysql # DIV for integer division: 
query I rowsort label-6854
SELECT - col2 DIV + - col1 + - col1 + - col1 + + col2 FROM tab1
----
-25
60
74

skipif mysql # not compatible
query I rowsort label-6854
SELECT - col2 / + - col1 + - col1 + - col1 + + col2 FROM tab1
----
-25
60
74

query I rowsort
SELECT DISTINCT + col0 * + col0 + - - col0 FROM tab2
----
2162
4160
5700

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( col1, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT ( + 0 ) + - - MIN( - + 42 ) FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-6857
SELECT ( + 0 ) + - - MIN ( - + 42 ) FROM tab0
----
-42

query II rowsort
SELECT ALL ( + 23 ) AS col0, - col0 FROM tab1
----
23
-51
23
-85
23
-91

query II rowsort
SELECT - 18 + - col0 AS col1, col0 AS col2 FROM tab2 AS cor0
----
-64
46
-82
64
-93
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6860
SELECT ALL - ( - COUNT( * ) ) + 80 DIV COUNT( ALL - - col2 ) AS col2 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-6860
SELECT ALL - ( - COUNT ( * ) ) + 80 / COUNT ( ALL - - col2 ) AS col2 FROM tab2 AS cor0
----
29

query I rowsort
SELECT ALL + col0 * + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-163840
-326250
-48668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6862
SELECT ALL + 83 * - CAST( - 10 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
830
830
830

skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL + 83 * - CAST ( - 10 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
830
830
830

query I rowsort
SELECT - col1 * ( - - col0 ) * - - 59 AS col2 FROM tab0
----
-107793
-5723
-71685

query I rowsort
SELECT + 30 - + col1 + ( col2 ) AS col2 FROM tab1
----
112
51
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT ALL COUNT( * ) - - - COUNT( DISTINCT + - col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6865
SELECT ALL COUNT ( * ) - - - COUNT ( DISTINCT + - col2 ) FROM tab2
----
0

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT - + 83 - - 73 AS col2 FROM tab2 AS cor0
----
-10
-10
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-6868
SELECT ALL 69 DIV + col0 FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL 69 / + col0 FROM tab0 AS cor0
----
0
0
4

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 + - ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT - - col2 FROM tab1 AS cor0 WHERE col0 * + - 95 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * col2 * + - 24 AS col1 FROM tab0 AS cor0
----
2376
5040
91368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6872
SELECT DISTINCT - - COUNT( * ) DIV 37 * + - ( 0 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6872
SELECT DISTINCT - - COUNT ( * ) / 37 * + - ( 0 ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT ALL - - COUNT( * ) * - 74 * - MAX( ALL + col1 ) FROM tab0 AS cor0
----
17982

skipif mysql # not compatible
query I rowsort label-6873
SELECT ALL - - COUNT ( * ) * - 74 * - MAX ( ALL + col1 ) FROM tab0 AS cor0
----
17982

query I rowsort
SELECT + col2 * + + col0 FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6875
SELECT - CAST( col2 AS SIGNED ) * + col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6875
SELECT - CAST ( col2 AS INTEGER ) * + col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6876
SELECT ALL + - ( + + COUNT( * ) ) DIV 28 col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6876
SELECT ALL + - ( + + COUNT ( * ) ) / 28 col0 FROM tab2 cor0
----
0

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

query II rowsort
SELECT - + col1 AS col1, - 96 AS col0 FROM tab0 AS cor0
----
-1
-96
-21
-96
-81
-96

query I rowsort
SELECT col1 * + + col2 AS col2 FROM tab1 AS cor0
----
1344
295
3196

query II rowsort
SELECT ALL + 46 AS col2, 78 * + col2 FROM tab2 AS cor0
----
46
1794
46
3120
46
4524

query I rowsort
SELECT 53 * col0 FROM tab2
----
2438
3392
3975

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT + + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6882
SELECT + + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT - COUNT( DISTINCT + col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6884
SELECT - COUNT ( DISTINCT + col1 ) FROM tab1
----
-3

query I rowsort
SELECT col1 * - 10 FROM tab2
----
-510
-670
-770

onlyif mysql # DIV for integer division: 
query II rowsort label-6886
SELECT col0 * - + col1, - col0 DIV - - col2 col1 FROM tab0
----
-1215
0
-1827
-8
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6886
SELECT col0 * - + col1, - col0 / - - col2 col1 FROM tab0
----
-1215
0
-1827
-8
-97
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6887
SELECT 1 * + - 24 DIV + 87 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6887
SELECT 1 * + - 24 / + 87 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
10
47
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 <= + - col2
----

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT ALL - COUNT( 74 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6891
SELECT ALL - COUNT ( 74 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - col1 * - col2 + 94 FROM tab0 AS cor0
----
193
304
3901

query I rowsort
SELECT DISTINCT col1 + - col2 - + - 89 AS col0 FROM tab0 AS cor0
----
-9
100
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6894
SELECT 15 * - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-1125
-690
-960

skipif mysql # not compatible
query I rowsort label-6894
SELECT 15 * - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-1125
-690
-960

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 + 62 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT DISTINCT 81 + - COUNT( * ) col1 FROM tab2
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6896
SELECT DISTINCT 81 + - COUNT ( * ) col1 FROM tab2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT + COUNT( DISTINCT 78 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6897
SELECT + COUNT ( DISTINCT 78 ) AS col0 FROM tab1
----
1

query I rowsort
SELECT DISTINCT col1 * + + col2 + - + col2 + - 13 AS col2 FROM tab2
----
1137
3027
3815

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6899
SELECT DISTINCT + col2 * + CAST( + - col0 AS SIGNED ) AS col0 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-6899
SELECT DISTINCT + col2 * + CAST ( + - col0 AS INTEGER ) AS col0 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT ALL 55 + + col1 FROM tab0
----
136
56
76

query I rowsort
SELECT - col1 FROM tab0 cor0 WHERE NULL IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6902
SELECT col0 + + + ( + + 15 ), + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
100
NULL
106
NULL
66
NULL

skipif mysql # not compatible
query II rowsort label-6902
SELECT col0 + + + ( + + 15 ), + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
100
NULL
106
NULL
66
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6903
SELECT ALL + ( + 22 ) AS col1 FROM tab2 cor0 WHERE NOT col1 + + - CAST( - - CAST( + col2 AS SIGNED ) AS DECIMAL ) IS NULL
----
22
22
22

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL + ( + 22 ) AS col1 FROM tab2 cor0 WHERE NOT col1 + + - CAST ( - - CAST ( + col2 AS INTEGER ) AS REAL ) IS NULL
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT - COUNT( * ) + + 42 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-6904
SELECT - COUNT ( * ) + + 42 FROM tab0 AS cor0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-6905
SELECT + 2 DIV col1 AS col0 FROM tab1 WHERE NOT ( col2 ) <= ( - col0 * 54 - + col1 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6905
SELECT + 2 / col1 AS col0 FROM tab1 WHERE NOT ( col2 ) <= ( - col0 * 54 - + col1 )
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT ALL - 26 * COUNT( * ) col0 FROM tab0
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6906
SELECT ALL - 26 * COUNT ( * ) col0 FROM tab0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT 72 * COUNT( * ) col0 FROM tab2
----
216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6907
SELECT 72 * COUNT ( * ) col0 FROM tab2
----
216

query I rowsort
SELECT ALL col1 * + 37 FROM tab2
----
1887
2479
2849

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 ) < - col1 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6910
SELECT ALL COUNT( * ) DIV MAX( + ( 29 ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6910
SELECT ALL COUNT ( * ) / MAX ( + ( 29 ) ) FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6911
SELECT DISTINCT CAST( NULL AS SIGNED ) * 60 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6911
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 60 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 58 AS col0 FROM tab1
----
-58

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT 81 NOT IN ( - 0 * + 47 )
----

query I rowsort
SELECT - col0 + + ( - col1 ) FROM tab0 WHERE NOT - 76 IS NULL
----
-108
-96
-98

query I rowsort
SELECT DISTINCT + 5 + col1 FROM tab0
----
26
6
86

query I rowsort
SELECT col2 + + 60 FROM tab2
----
100
118
83

onlyif mysql # DIV for integer division: 
query I rowsort label-6917
SELECT col0 + 28 DIV col1 AS col0 FROM tab0
----
125
15
88

skipif mysql # not compatible
query I rowsort label-6917
SELECT col0 + 28 / col1 AS col0 FROM tab0
----
125
15
88

onlyif mysql # DIV for integer division: 
query I rowsort label-6918
SELECT + 49 + ( - col2 + col1 DIV + col0 ) FROM tab1
----
-10
-19
-47

skipif mysql # not compatible
query I rowsort label-6918
SELECT + 49 + ( - col2 + col1 / + col0 ) FROM tab1
----
-10
-19
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 col1 FROM tab1
----
63
63
63

query I rowsort
SELECT ALL 38 + - 5 FROM tab1
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 66 col1 FROM tab1 WHERE 70 * - 57 IN ( 67 / + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6922
SELECT ALL col1 + - col2 FROM tab0 WHERE ( - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) + 72 ) = NULL
----

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL col1 + - col2 FROM tab0 WHERE ( - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) + 72 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT DISTINCT ( COUNT( * ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6923
SELECT DISTINCT ( COUNT ( * ) ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT MAX( ALL ( + col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-6924
SELECT MAX ( ALL ( + col0 ) ) FROM tab0
----
97

query I rowsort
SELECT 74 + + 26 FROM tab0
----
100
100
100

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT ALL + ( COUNT( * ) ) FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( 73 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL + ( COUNT ( * ) ) FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( 73 ) AND NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( 71 * - 48 + 74 ) AND - 64 * - 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT 85 + + COUNT( * ) * - 76 AS col1 FROM tab0
----
-143

skipif mysql # not compatible
query I rowsort label-6929
SELECT 85 + + COUNT ( * ) * - 76 AS col1 FROM tab0
----
-143

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT - col2 + - 10 IN ( + col1 * - col1 )
----
10
47
99

query I rowsort
SELECT ALL + col0 * + 42 AS col0 FROM tab2 AS cor0
----
1932
2688
3150

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 + + col0 < NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 > ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 77 <= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
-9

skipif mysql # not compatible
query I rowsort label-6935
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6936
SELECT 34 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6936
SELECT 34 / + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6937
SELECT ALL - - col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL - - col0 / - col1 AS col0 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - - col0 + - 2 FROM tab0 AS cor0
----
13
85
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE - col0 BETWEEN - 7 AND ( - 88 )
----
0

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE - col0 BETWEEN - 7 AND ( - 88 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6940
SELECT ALL + col0 DIV col1 + 64 AS col1 FROM tab1 AS cor0
----
65
67
81

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL + col0 / col1 + 64 AS col1 FROM tab1 AS cor0
----
65
67
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6941
SELECT DISTINCT - col0 DIV + 15 + col0 FROM tab2
----
43
60
70

skipif mysql # not compatible
query I rowsort label-6941
SELECT DISTINCT - col0 / + 15 + col0 FROM tab2
----
43
60
70

query I rowsort
SELECT + col0 + col1 AS col1 FROM tab1 WHERE + 17 IS NOT NULL
----
138
65
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6943
SELECT ALL - COUNT( * ) DIV 22 FROM tab2 WHERE NOT + col1 DIV col1 = 8 * col2
----
0

skipif mysql # not compatible
query I rowsort label-6943
SELECT ALL - COUNT ( * ) / 22 FROM tab2 WHERE NOT + col1 / col1 = 8 * col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 94 * 44 ) BETWEEN ( NULL ) AND + col0 / col1 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT DISTINCT MIN( ALL + 49 ) AS col2 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-6945
SELECT DISTINCT MIN ( ALL + 49 ) AS col2 FROM tab1
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6946
SELECT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) + col2 * 93 NOT IN ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-6946
SELECT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) + col2 * 93 NOT IN ( + col0 )
----

query I rowsort
SELECT - col2 + - ( 38 ) + 59 AS col2 FROM tab2
----
-19
-2
-37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6948
SELECT DISTINCT * FROM tab1 WHERE + col0 = + col1 / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6948
SELECT DISTINCT * FROM tab1 WHERE + col0 = + col1 / CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 BETWEEN NULL AND ( - col0 ) * - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6950
SELECT ALL COUNT( - CAST( - 28 AS SIGNED ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6950
SELECT ALL COUNT ( - CAST ( - 28 AS INTEGER ) ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6951
SELECT CAST( NULL AS SIGNED ) + col2 / + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6951
SELECT CAST ( NULL AS INTEGER ) + col2 / + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * + 24 - col1 FROM tab0
----
-2109
-2329
-441

query I rowsort
SELECT - 17 * + col0 + 91 * + col1 AS col2 FROM tab2 AS cor0
----
3859
4822
5919

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 51 * ( 44 ) ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 / + col1 IS NOT NULL
----

query I rowsort
SELECT col0 * col0 * - col0 - col0 FROM tab2
----
-262208
-421950
-97382

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( - col2 ) AND - 62
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 10 col1, col0 AS col2 FROM tab0
----
-10
15
-10
87
-10
97

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col1 / - 96 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT DISTINCT - + 70 * + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6960
SELECT DISTINCT - + 70 * + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 30 ) <= + col1 OR NULL < NULL
----
15
81
47

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE NOT 97 + 67 = ( col0 )
----
14
47
5

query I rowsort
SELECT + col1 * ( - - col2 ) FROM tab2 cor0
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + col1 ) col0 FROM tab2 AS cor0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 col1 FROM tab0
----
14
14
14

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN col2 + + col1 AND - 44 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT 50 * COUNT( * ) FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-6967
SELECT 50 * COUNT ( * ) FROM tab2
----
150

onlyif mysql # DIV for integer division: 
query I rowsort label-6968
SELECT - col2 DIV + 7 + - col1 FROM tab0 WHERE NOT ( 38 ) IS NULL
----
-15
-22
-87

skipif mysql # not compatible
query I rowsort label-6968
SELECT - col2 / + 7 + - col1 FROM tab0 WHERE NOT ( 38 ) IS NULL
----
-15
-22
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT ALL COUNT( * ) * - - 18 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-6969
SELECT ALL COUNT ( * ) * - - 18 FROM tab1
----
54

query I rowsort
SELECT - 88 * + 68 FROM tab2
----
-5984
-5984
-5984

query I rowsort
SELECT DISTINCT col2 * + + col0 * + - col1 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT + MIN( + col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-6972
SELECT + MIN ( + col0 ) AS col0 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT DISTINCT 13 + COUNT( 53 ) FROM tab2 WHERE NOT + - 97 = ( ( 29 ) / col1 )
----
16

skipif mysql # not compatible
query I rowsort label-6973
SELECT DISTINCT 13 + COUNT ( 53 ) FROM tab2 WHERE NOT + - 97 = ( ( 29 ) / col1 )
----
16

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 40 * - col0 AS col1 FROM tab2 AS cor0
----
-1840
-2560
-3000

query I rowsort
SELECT DISTINCT + col2 + + - col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6977
SELECT DISTINCT + + COUNT( * ) + 92 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
95

skipif mysql # not compatible
query I rowsort label-6977
SELECT DISTINCT + + COUNT ( * ) + 92 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= + ( - col0 )
----

query I rowsort
SELECT DISTINCT + 61 * + - col0 FROM tab1 AS cor0
----
-3111
-5185
-5551

query I rowsort
SELECT ALL 76 + + col1 - col2 + + 73 FROM tab0
----
160
183
51

query III rowsort
SELECT * FROM tab2 WHERE NOT + 51 * - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6982
SELECT DISTINCT - CAST( NULL AS DECIMAL ) col2 FROM tab1 WHERE NOT + + col2 BETWEEN ( col0 / - col1 + + 64 ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6982
SELECT DISTINCT - CAST ( NULL AS REAL ) col2 FROM tab1 WHERE NOT + + col2 BETWEEN ( col0 / - col1 + + 64 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT - COUNT( * ) * COUNT( * ) + + COUNT( * ) col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6983
SELECT - COUNT ( * ) * COUNT ( * ) + + COUNT ( * ) col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * - 88 col2 FROM tab2 AS cor0
----
4488
5896
6776

query I rowsort
SELECT DISTINCT + col2 / + ( 39 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 + 40 * col1 AS col0 FROM tab1 AS cor0
----
1927
205
574

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + col1 * col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN ( NULL ) AND ( + 19 )
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6989
SELECT * FROM tab2 AS cor0 WHERE - col2 * + - 38 * - col2 * + + 31 <> - CAST( - ( - 21 ) AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6989
SELECT * FROM tab2 AS cor0 WHERE - col2 * + - 38 * - col2 * + + 31 <> - CAST ( - ( - 21 ) AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - + col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT COUNT( * ) + - + 50 FROM tab2 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-6992
SELECT COUNT ( * ) + - + 50 FROM tab2 cor0
----
-47

query I rowsort
SELECT DISTINCT + 52 + - col1 FROM tab2 AS cor0
----
-15
-25
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT ALL - MIN( DISTINCT 61 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-61

skipif mysql # not compatible
query I rowsort label-6994
SELECT ALL - MIN ( DISTINCT 61 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-61

query I rowsort
SELECT ALL + col1 * + col0 + - col0 - col1 AS col1 FROM tab1
----
335
4139
649

query III rowsort
SELECT * FROM tab0 WHERE - - col2 NOT BETWEEN - col0 AND + 7 * col0
----

query I rowsort
SELECT DISTINCT col2 - - - 5 FROM tab0
----
42
5
94

onlyif mysql # DIV for integer division: 
query I rowsort label-6998
SELECT ALL - ( - + col2 ) DIV - col2 - col1 AS col1 FROM tab2
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-6998
SELECT ALL - ( - + col2 ) / - col2 - col1 AS col1 FROM tab2
----
-52
-68
-78

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - - 65 / - - 55 + - 79 ) NOT IN ( - col1 )
----

query I rowsort
SELECT - col0 FROM tab2 WHERE - 0 + - 7 * - col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 * - + 19 >= ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7002
SELECT DISTINCT - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT 37 * + + col0 IN ( + - col1 + - col2 )
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7002
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 37 * + + col0 IN ( + - col1 + - col2 )
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - 96 * - 35 + + - 58 AS col0 FROM tab2 AS cor0
----
3302

onlyif mysql # DIV for integer division: 
query I rowsort label-7004
SELECT + 37 + - ( + col2 ) - - 83 - - 24 DIV + + 87 * - 44 AS col2 FROM tab2 AS cor0
----
62
80
97

skipif mysql # not compatible
query I rowsort label-7004
SELECT + 37 + - ( + col2 ) - - 83 - - 24 / + + 87 * - 44 AS col2 FROM tab2 AS cor0
----
62
80
97

query II rowsort
SELECT ALL - col0 AS col2, col2 AS col1 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7006
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT ( CAST( NULL AS SIGNED ) ) >= - col0
----
0

skipif mysql # not compatible
query I rowsort label-7006
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) >= - col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( + 43 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7009
SELECT - CAST( NULL AS SIGNED ) * 68 col1, col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7009
SELECT - CAST ( NULL AS INTEGER ) * 68 col1, col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 + - col1 BETWEEN col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - ( + + 46 ) - - 66 - - + col1 * 59 ) = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * - col1 + 84 * + col1 * + + col0 NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT + - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 56 + - + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7015
SELECT + - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 56 + - + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT ALL + 20 / + + MIN( DISTINCT + col1 ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL + 20 / + + MIN ( DISTINCT + col1 ) FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT 23 * + col1 * + 9 FROM tab1 AS cor0
----
1035
2898
9729

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7019
SELECT DISTINCT COUNT( ( - 24 ) ) AS col0, COUNT( * ) + - 93 col2 FROM tab2
----
3
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7019
SELECT DISTINCT COUNT ( ( - 24 ) ) AS col0, COUNT ( * ) + - 93 col2 FROM tab2
----
3
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-7020
SELECT - col2 DIV 76 * - col2 AS col0 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-7020
SELECT - col2 / 76 * - col2 AS col0 FROM tab0
----
0
0
99

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 60 * - ( + - col1 ) / + + 15 * ( + - 97 ) - col2 ) < ( 62 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT DISTINCT MIN( ALL + - 30 ) col1 FROM tab0
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7022
SELECT DISTINCT MIN ( ALL + - 30 ) col1 FROM tab0
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7023
SELECT COUNT( + 31 ) + + - MIN( DISTINCT CAST( - + 62 AS SIGNED ) ) FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-7023
SELECT COUNT ( + 31 ) + + - MIN ( DISTINCT CAST ( - + 62 AS INTEGER ) ) FROM tab2 AS cor0
----
65

query I rowsort
SELECT DISTINCT - col1 * 5 + + 22 FROM tab2 AS cor0
----
-233
-313
-363

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7025
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 5 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 41 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7028
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-7029
SELECT col1 DIV - 49 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7029
SELECT col1 / - 49 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) < - - col2 + - ( col0 )
----

query I rowsort
SELECT DISTINCT - 65 * col0 + - col2 AS col1 FROM tab0 cor0
----
-1022
-5665
-6404

query I rowsort
SELECT DISTINCT - col1 + + 39 AS col1 FROM tab2 AS cor0
----
-12
-28
-38

query I rowsort
SELECT DISTINCT - col2 + - 40 FROM tab2
----
-63
-80
-98

query II rowsort
SELECT ALL col1 + - + col1 + + 90, col2 AS col0 FROM tab1
----
90
59
90
68
90
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7035
SELECT MIN( DISTINCT + + col1 ) + + 84 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7035
SELECT MIN ( DISTINCT + + col1 ) + + 84 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7036
SELECT - CAST( NULL AS SIGNED ) AS col1, - col2 AS col1 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-7036
SELECT - CAST ( NULL AS INTEGER ) AS col1, - col2 AS col1 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + - 40 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < col2
----

query I rowsort
SELECT - + 1 AS col2 FROM tab2 AS cor0 WHERE NOT - ( - col0 ) IS NULL
----
-1
-1
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * 61 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 86 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 53 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col1 AS col2, 2 * col2 - + col2 AS col0 FROM tab1
----
-14
96
-47
68
-5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN 9 AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-7044
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN 9 AND + col2
----
0

query I rowsort
SELECT col0 + - - 53 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
140
150
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7046
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 * - 24 * + 89 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7046
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 * - 24 * + 89 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT - - MAX( DISTINCT + + col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7047
SELECT - - MAX ( DISTINCT + + col1 ) AS col0 FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7048
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 IN ( + ( CAST( NULL AS SIGNED ) ), + 36 )
----

skipif mysql # not compatible
query III rowsort label-7048
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 IN ( + ( CAST ( NULL AS INTEGER ) ), + 36 )
----

query II rowsort
SELECT - 9 AS col2, col2 * + col2 AS col2 FROM tab0 AS cor0
----
-9
100
-9
2209
-9
9801

query I rowsort
SELECT + 22 FROM tab2 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT - COUNT( - 32 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7051
SELECT - COUNT ( - 32 ) FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7052
SELECT + 24 DIV - + ( + 31 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7052
SELECT + 24 / - + ( + 31 ) FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT ALL + COUNT( DISTINCT 20 ) AS col1 FROM tab0, tab1 AS cor0 WHERE - - 50 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7053
SELECT ALL + COUNT ( DISTINCT 20 ) AS col1 FROM tab0, tab1 AS cor0 WHERE - - 50 >= NULL
----
0

query I rowsort
SELECT DISTINCT ( 37 ) + - + 46 FROM tab1 cor0
----
-9

query I rowsort
SELECT ALL - col0 + ( 7 ) AS col0 FROM tab0 AS cor0
----
-8
-80
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( ( + + col0 ) ) col0 FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT ALL 59 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT + - 70 IS NOT NULL )
----
59
59
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * - + 85 col0 FROM tab1 AS cor0
----
1190
3995
425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 46 ) * + col2 + - 68 + - 48 col1 FROM tab0 cor0
----
-2278
-4670
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT ALL - 2 * + SUM( ( - - col1 ) ) + 52 AS col0 FROM tab0 AS cor0
----
-154

skipif mysql # not compatible
query I rowsort label-7060
SELECT ALL - 2 * + SUM ( ( - - col1 ) ) + 52 AS col0 FROM tab0 AS cor0
----
-154

query I rowsort
SELECT + col0 + - col0 * + + 61 - + + col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT DISTINCT - 12 + - MAX( ALL - 97 ) * - 98 * + 78 AS col2 FROM tab2 AS cor0
----
-741480

skipif mysql # not compatible
query I rowsort label-7062
SELECT DISTINCT - 12 + - MAX ( ALL - 97 ) * - 98 * + 78 AS col2 FROM tab2 AS cor0
----
-741480

query II rowsort
SELECT + - col1 AS col2, + col1 FROM tab2 cor0
----
-51
51
-67
67
-77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 col0 FROM tab0
----
-54
-54
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7065
SELECT + CAST( 20 AS SIGNED ) - col1 * + col2 AS col1 FROM tab1
----
-1324
-275
-3176

skipif mysql # not compatible
query I rowsort label-7065
SELECT + CAST ( 20 AS INTEGER ) - col1 * + col2 AS col1 FROM tab1
----
-1324
-275
-3176

query I rowsort
SELECT ALL - col2 - - 49 FROM tab2
----
-9
26
9

query I rowsort
SELECT ALL 69 + + col1 AS col2 FROM tab1
----
116
74
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7068
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( + 84, - CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-7068
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( + 84, - CAST ( NULL AS REAL ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7069
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN - CAST( NULL AS SIGNED ) * - + col1 * + col1 + + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7069
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN - CAST ( NULL AS INTEGER ) * - + col1 * + col1 + + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7070
SELECT ALL - col2 DIV - ( - - 43 ) AS col1, col1 + - + 96 FROM tab2
----
0
-19
0
-45
1
-29

skipif mysql # not compatible
query II rowsort label-7070
SELECT ALL - col2 / - ( - - 43 ) AS col1, col1 + - + 96 FROM tab2
----
0
-19
0
-45
1
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7071
SELECT + CAST( - 37 AS SIGNED ) AS col2 FROM tab0 cor0
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-7071
SELECT + CAST ( - 37 AS INTEGER ) AS col2 FROM tab0 cor0
----
-37
-37
-37

query I rowsort
SELECT ALL - col2 * + 6 AS col2 FROM tab1 AS cor0
----
-354
-408
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT DISTINCT COUNT( ALL ( 93 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7073
SELECT DISTINCT COUNT ( ALL ( 93 ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 53 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 * - 24 col1 FROM tab2 AS cor0
----
-28152
-73920
-93264

onlyif mysql # DIV for integer division: 
query II rowsort label-7076
SELECT - - 45 AS col2, + 48 DIV + 82 * col0 AS col1 FROM tab2 AS cor0
----
45
0
45
0
45
0

skipif mysql # not compatible
query II rowsort label-7076
SELECT - - 45 AS col2, + 48 / + 82 * col0 AS col1 FROM tab2 AS cor0
----
45
0
45
0
45
0

query I rowsort
SELECT ALL + + 31 AS col1 FROM tab0 AS cor0
----
31
31
31

query I rowsort
SELECT + + col0 * - + ( - col0 ) FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7079
SELECT DISTINCT + COUNT( * ) AS col2, 35 DIV - 11 AS col0 FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-7079
SELECT DISTINCT + COUNT ( * ) AS col2, 35 / - 11 AS col0 FROM tab2
----
3
-3

query I rowsort
SELECT ALL + AVG ( DISTINCT - 7 ) AS col1 FROM tab2 WHERE NOT NULL > ( col2 )
----
NULL

query I rowsort
SELECT ALL col2 * - - col1 * - - ( - 39 ) AS col0 FROM tab1
----
-11505
-124644
-52416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + col2 col0 FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7083
SELECT DISTINCT + col2 + + - ( - + col0 ) FROM tab0 WHERE NOT NULL <= ( CAST( + 34 AS SIGNED ) * + + col2 - + col0 * + + col2 )
----

skipif mysql # not compatible
query I rowsort label-7083
SELECT DISTINCT + col2 + + - ( - + col0 ) FROM tab0 WHERE NOT NULL <= ( CAST ( + 34 AS INTEGER ) * + + col2 - + col0 * + + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) + + col1 col0 FROM tab2
----
-8
13
5

query I rowsort
SELECT + col0 + + + col1 * - col0 AS col1 FROM tab0 WHERE ( + col0 ) IS NOT NULL
----
-1200
-1740
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT + 26 + - + SUM( ALL - - col2 ) * + COUNT( * ) * + 62 AS col0 FROM tab1
----
-41452

skipif mysql # not compatible
query I rowsort label-7086
SELECT + 26 + - + SUM ( ALL - - col2 ) * + COUNT ( * ) * + 62 AS col0 FROM tab1
----
-41452

query I rowsort
SELECT - col2 + 21 FROM tab2
----
-19
-2
-37

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + + 9 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT - 16 * + + COUNT( ALL - + col1 ) + - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7089
SELECT - 16 * + + COUNT ( ALL - + col1 ) + - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-7090
SELECT ALL + 44 * + ( - col2 ) * col2 + + - col1 DIV - col2 + - - 25 AS col0 FROM tab0
----
-431219
-4373
-97170

skipif mysql # not compatible
query I rowsort label-7090
SELECT ALL + 44 * + ( - col2 ) * col2 + + - col1 / - col2 + - - 25 AS col0 FROM tab0
----
-431219
-4373
-97170

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT - 59 - + COUNT( * ) + 58 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-7091
SELECT - 59 - + COUNT ( * ) + 58 FROM tab1
----
-4

query I rowsort
SELECT ALL - - col1 FROM tab0 AS cor0 WHERE NULL = NULL AND ( ( NOT col2 * + ( - 22 ) IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT - COUNT( * ) - - 86 AS col2 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-7093
SELECT - COUNT ( * ) - - 86 AS col2 FROM tab2 AS cor0
----
83

query I rowsort
SELECT + + col1 - + col1 * col2 FROM tab0 AS cor0
----
-189
-3726
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT - MIN( ALL + col2 ) + + MAX( + 13 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7095
SELECT - MIN ( ALL + col2 ) + + MAX ( + 13 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + 78 FROM tab2 WHERE NOT - col1 IS NULL
----
78
78
78

onlyif mysql # DIV for integer division: 
query II rowsort label-7097
SELECT + col2 AS col0, 51 DIV - - 47 AS col2 FROM tab0
----
10
1
47
1
99
1

skipif mysql # not compatible
query II rowsort label-7097
SELECT + col2 AS col0, 51 / - - 47 AS col2 FROM tab0
----
10
1
47
1
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT DISTINCT COUNT( + + col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7098
SELECT DISTINCT COUNT ( + + col2 ) FROM tab0
----
3

query I rowsort
SELECT col2 * ( - col0 ) AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 93 AND - - 98
----

query I rowsort
SELECT ALL + 61 * 56 FROM tab0 AS cor0
----
3416
3416
3416

query I rowsort
SELECT + ( 81 ) * - col0 + col1 FROM tab1 cor0
----
-4117
-6880
-7324

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, - col1 FROM tab0 cor0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT + 25 + + col1 <> 22
----

query I rowsort
SELECT DISTINCT + 67 * + - 83 FROM tab2
----
-5561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 col1 FROM tab0 WHERE NOT + - 0 BETWEEN + 4 AND NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7107
SELECT ALL - + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < + 23
----

skipif mysql # not compatible
query I rowsort label-7107
SELECT ALL - + CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < + 23
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 - - ( + - col1 ) IS NOT NULL
----

query I rowsort
SELECT + 31 * - col1 AS col0 FROM tab2 AS cor0 WHERE NOT 79 / col1 * col1 IS NOT NULL
----

query I rowsort
SELECT ALL + ( - ( - col0 ) ) AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL - 60 * ( - 41 ) FROM tab0 AS cor0
----
2460
2460
2460

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 * - col1 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN - col1 AND ( 39 ) * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 + + + col0 + col1 FROM tab2 AS cor0
----
148
209
218

query I rowsort
SELECT - - ( + col0 ) + - col2 FROM tab1 AS cor0
----
-45
23
26

query II rowsort
SELECT + col0 * - col1 * - col2 AS col1, 73 FROM tab1
----
25075
73
290836
73
68544
73

onlyif mysql # DIV for integer division: 
query I rowsort label-7117
SELECT DISTINCT + 56 DIV col1 AS col2 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-7117
SELECT DISTINCT + 56 / col1 AS col2 FROM tab2
----
0
1

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE + 56 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 > NULL
----

query II rowsort
SELECT DISTINCT 17, - col2 AS col2 FROM tab0
----
17
-10
17
-47
17
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-7121
SELECT - col2 DIV + + col1 - + col1 FROM tab1 AS cor0
----
-16
-20
-48

skipif mysql # not compatible
query I rowsort label-7121
SELECT - col2 / + + col1 - + col1 FROM tab1 AS cor0
----
-16
-20
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-7122
SELECT 67 DIV + col0 + - 76 AS col0 FROM tab1 AS cor0
----
-75
-76
-76

skipif mysql # not compatible
query I rowsort label-7122
SELECT 67 / + col0 + - 76 AS col0 FROM tab1 AS cor0
----
-75
-76
-76

query I rowsort
SELECT + 46 + + + 31 AS col2 FROM tab0 AS cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT MAX( col1 ) + + COUNT( * ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-7124
SELECT MAX ( col1 ) + + COUNT ( * ) FROM tab0
----
84

query I rowsort
SELECT - 60 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

onlyif mysql # DIV for integer division: 
query I rowsort label-7126
SELECT col1 + col1 DIV + 6 FROM tab1
----
16
5
54

skipif mysql # not compatible
query I rowsort label-7126
SELECT col1 + col1 / + 6 FROM tab1
----
16
5
54

query I rowsort
SELECT - col1 * - 54 AS col0 FROM tab1
----
2538
270
756

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT + COUNT( - col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7128
SELECT + COUNT ( - col1 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 82 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT + + SUM( ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-7130
SELECT + + SUM ( ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
103

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7131
SELECT - col2 DIV col2 AS col1, + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1
NULL
-1
NULL
-1
NULL

skipif mysql # not compatible
query II rowsort label-7131
SELECT - col2 / col2 AS col1, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1
NULL
-1
NULL
-1
NULL

query I rowsort
SELECT DISTINCT + - AVG ( DISTINCT + + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT - 91 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT ALL - - MAX( ALL + col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7133
SELECT ALL - - MAX ( ALL + col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT DISTINCT MAX( DISTINCT + + col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7134
SELECT DISTINCT MAX ( DISTINCT + + col1 ) AS col0 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT MAX( - col0 ) col2 FROM tab1 cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7135
SELECT MAX ( - col0 ) col2 FROM tab1 cor0
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7136
SELECT DISTINCT - + col2 AS col0, + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-7136
SELECT DISTINCT - + col2 AS col0, + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 47 >= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 col1 FROM tab0 AS cor0
----
52
52
52

query I rowsort
SELECT DISTINCT - ( ( - - 17 ) ) FROM tab0 AS cor0
----
-17

onlyif mysql # DIV for integer division: 
query II rowsort label-7140
SELECT col1 DIV - col2, + col0 FROM tab0
----
-1
15
-2
87
0
97

skipif mysql # not compatible
query II rowsort label-7140
SELECT col1 / - col2, + col0 FROM tab0
----
-1
15
-2
87
0
97

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7141
SELECT DISTINCT col0 AS col1, 58 FROM tab2 WHERE 18 IN ( - + ( - CAST( col2 AS DECIMAL ) ) * col1, col0 * - - col0, - 5, - col1 )
----

skipif mysql # not compatible
query II rowsort label-7141
SELECT DISTINCT col0 AS col1, 58 FROM tab2 WHERE 18 IN ( - + ( - CAST ( col2 AS REAL ) ) * col1, col0 * - - col0, - 5, - col1 )
----

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT + + 26 * - - col0 IS NULL
----
-14
-47
-5

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT - col2 IS NULL
----
51
85
91

query I rowsort
SELECT ALL col2 * - 78 + + - 11 + col0 * col1 + - - col1 AS col1 FROM tab1 AS cor0
----
-4183
-6771
-991

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 32 col2 FROM tab1 AS cor0
----
-32
-32
-32

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 83 IS NULL
----

query I rowsort
SELECT + + ( + 55 ) * + col1 * 55 FROM tab1 AS cor0
----
142175
15125
42350

query I rowsort
SELECT DISTINCT - col1 * + col0 * - col1 * - 70 + + + 37 FROM tab0 WHERE NOT 79 > - col2
----

query I rowsort
SELECT DISTINCT - 92 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT - - ( - 34 ) * + - SUM( 58 ) + 32 FROM tab1 cor0
----
5948

skipif mysql # not compatible
query I rowsort label-7150
SELECT - - ( - 34 ) * + - SUM ( 58 ) + 32 FROM tab1 cor0
----
5948

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 89 col0 FROM tab2 cor0
----
-89
-89
-89

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 NOT BETWEEN 8 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7153
SELECT CAST( - - ( + col0 ) AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7153
SELECT CAST ( - - ( + col0 ) AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT + col0 + - ( + - col2 ) AS col1 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT DISTINCT + - 58 * - - 50 AS col2 FROM tab1 AS cor0
----
-2900

query I rowsort
SELECT DISTINCT - col1 + + + col0 + - ( + ( - col2 ) ) + - col0 * + - col0 FROM tab0 AS cor0
----
206
7645
9604

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, + col1 AS col0 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT ALL - COUNT( * ) + 60 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-7158
SELECT ALL - COUNT ( * ) + 60 FROM tab0 AS cor0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7159
SELECT * FROM tab0 AS cor0 WHERE + col1 NOT IN ( + + 79 + + ( CAST( NULL AS SIGNED ) ), col2 )
----

skipif mysql # not compatible
query III rowsort label-7159
SELECT * FROM tab0 AS cor0 WHERE + col1 NOT IN ( + + 79 + + ( CAST ( NULL AS INTEGER ) ), col2 )
----

query I rowsort
SELECT - + AVG ( + 18 ) - - + 99 AS col0 FROM tab2 AS cor0 WHERE col1 * - + col0 / col1 * - + 81 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT DISTINCT - 28 + - COUNT( * ) AS col2 FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-7161
SELECT DISTINCT - 28 + - COUNT ( * ) AS col2 FROM tab2
----
-31

query I rowsort
SELECT col1 + - - col2 + col2 AS col2 FROM tab2
----
157
183
97

query I rowsort
SELECT + col0 * - 98 + - 25 AS col2 FROM tab2
----
-4533
-6297
-7375

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col0 * - col1 * 7 col0 FROM tab0
----
-12768
-678
-8424

query I rowsort
SELECT + col0 + + + col0 AS col2 FROM tab1
----
102
170
182

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7167
SELECT + 24 + CAST( - col1 AS SIGNED ) + - 5 AS col0, 76 AS col1 FROM tab0 AS cor0
----
-2
76
-62
76
18
76

skipif mysql # not compatible
query II rowsort label-7167
SELECT + 24 + CAST ( - col1 AS INTEGER ) + - 5 AS col0, 76 AS col1 FROM tab0 AS cor0
----
-2
76
-62
76
18
76

query I rowsort
SELECT 3 - + + col0 AS col2 FROM tab2
----
-43
-61
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7169
SELECT DISTINCT - col0 FROM tab2 cor0 WHERE col1 <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7169
SELECT DISTINCT - col0 FROM tab2 cor0 WHERE col1 <> - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT + col1 <= + col1
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL = NULL
----

query II rowsort
SELECT - col2, col2 FROM tab2 AS cor0 WHERE NOT ( ( + - col1 / - 7 ) IS NULL )
----
-23
23
-40
40
-58
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7173
SELECT COUNT( ALL + CAST( + 88 AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7173
SELECT COUNT ( ALL + CAST ( + 88 AS INTEGER ) ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT ( - col0 ) AS col2 FROM tab0 WHERE NOT - - col1 IS NOT NULL
----

query I rowsort
SELECT 41 * + 36 FROM tab1
----
1476
1476
1476

query I rowsort
SELECT + 51 * - + 56 FROM tab2
----
-2856
-2856
-2856

onlyif mysql # DIV for integer division: 
query II rowsort label-7177
SELECT ALL col1 AS col0, - col0 + + - 40 * - col2 DIV - - col2 FROM tab0
----
1
-57
21
-47
81
25

skipif mysql # not compatible
query II rowsort label-7177
SELECT ALL col1 AS col0, - col0 + + - 40 * - col2 / - - col2 FROM tab0
----
1
-57
21
-47
81
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, + 31 col2 FROM tab2
----
46
31
64
31
75
31

query I rowsort
SELECT + 18 * - col1 AS col0 FROM tab0
----
-1458
-18
-378

query I rowsort
SELECT 90 * col1 AS col2 FROM tab2
----
4590
6030
6930

query II rowsort
SELECT col2 AS col0, + 47 AS col1 FROM tab0
----
10
47
47
47
99
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7182
SELECT DISTINCT col0, + col1 * + CAST( NULL AS SIGNED ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-7182
SELECT DISTINCT col0, + col1 * + CAST ( NULL AS INTEGER ) FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE - col0 * + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7183
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE - col0 * + col0 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( col2 + + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 84 col2, + col2 - + - 32 + + col0 - - col1 - + col0 * - 39 * + col2 AS col0 FROM tab2 cor0
----
-84
100053
-84
169882
-84
41414

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT ALL - MAX( DISTINCT col1 ) AS col2 FROM tab1 AS cor0 WHERE NULL >= col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7186
SELECT ALL - MAX ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0 WHERE NULL >= col2
----
NULL

query I rowsort
SELECT ALL - 57 + + 51 FROM tab0 AS cor0
----
-6
-6
-6

query I rowsort
SELECT DISTINCT - 89 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7189
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - - 83, col0 * - - col2 col2 FROM tab0 WHERE NOT - 6 * + col2 + + col0 IS NULL
----
NULL
705
NULL
870
NULL
9603

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7189
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - - 83, col0 * - - col2 col2 FROM tab0 WHERE NOT - 6 * + col2 + + col0 IS NULL
----
NULL
705
NULL
870
NULL
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT DISTINCT - SUM( DISTINCT + col0 ) * + COUNT( * ) FROM tab0 cor0
----
-597

skipif mysql # not compatible
query I rowsort label-7191
SELECT DISTINCT - SUM ( DISTINCT + col0 ) * + COUNT ( * ) FROM tab0 cor0
----
-597

query I rowsort
SELECT - 52 + - col1 AS col0 FROM tab2 AS cor0
----
-103
-119
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT ALL COUNT( * ) + 58 col1 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7193
SELECT ALL COUNT ( * ) + 58 col1 FROM tab2 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT DISTINCT - COUNT( * ) + 95 FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-7194
SELECT DISTINCT - COUNT ( * ) + 95 FROM tab1 AS cor0
----
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 col2 FROM tab2 WHERE NULL IS NULL
----
2601
4489
5929

query I rowsort
SELECT ALL 76 + col2 AS col1 FROM tab0
----
123
175
86

query I rowsort
SELECT DISTINCT - col0 * + col2 - - + 77 FROM tab1
----
-4819
-4938
-6111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, col0 FROM tab2
----
51
46
67
75
77
64

query II rowsort
SELECT + col0 AS col1, col1 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7200
SELECT * FROM tab2 WHERE - col2 NOT BETWEEN - col2 * col2 * - CAST( + 64 AS DECIMAL ) + col1 + - 23 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7200
SELECT * FROM tab2 WHERE - col2 NOT BETWEEN - col2 * col2 * - CAST ( + 64 AS REAL ) + col1 + - 23 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NULL > + col2 + - col2 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7202
SELECT * FROM tab2 AS cor0 WHERE ( + col0 * + col1 ) = ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7202
SELECT * FROM tab2 AS cor0 WHERE ( + col0 * + col1 ) = ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7203
SELECT + CAST( NULL AS DECIMAL ) - - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7203
SELECT + CAST ( NULL AS REAL ) - - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7204
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) * - + 38 + ( 60 ) FROM tab1 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-7204
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) * - + 38 + ( 60 ) FROM tab1 AS cor0
----
174

onlyif mysql # DIV for integer division: 
query I rowsort label-7205
SELECT ALL - col1 DIV + col1 AS col2 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7205
SELECT ALL - col1 / + col1 AS col2 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL 12 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT ALL 38 * + col2 - + ( col0 ) + 79 AS col2 FROM tab2 cor0
----
1535
2208
907

onlyif mysql # DIV for integer division: 
query I rowsort label-7208
SELECT DISTINCT - 8 DIV + 11 col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7208
SELECT DISTINCT - 8 / + 11 col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - + col1 * - - 67 FROM tab2 AS cor0
----
-3417
-4489
-5159

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT ALL - - SUM( col2 ) * 86 AS col2 FROM tab2 AS cor0
----
10406

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL - - SUM ( col2 ) * 86 AS col2 FROM tab2 AS cor0
----
10406

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 65 IS NOT NULL AND ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7212
SELECT col2 DIV - col0 * + - col0 - + - col0 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7212
SELECT col2 / - col0 * + - col0 - + - col0 FROM tab2 cor0
----
46
64
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7213
SELECT + ( - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7213
SELECT + ( - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + 38 * + - col2 > - - 57
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - ( - col0 ) AS col0 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7216
SELECT ALL + CAST( col1 AS SIGNED ) AS col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7216
SELECT ALL + CAST ( col1 AS INTEGER ) AS col0 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT ALL 35 * + + COUNT( * ) FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL 35 * + + COUNT ( * ) FROM tab0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT DISTINCT + - MAX( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7218
SELECT DISTINCT + - MAX ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT + 75 + + col0 + col1 * - - col1 * + - col1 + col1 - 41 * - 7 FROM tab1 AS cor0
----
-103323
-2317
327

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 WHERE NULL <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL BETWEEN + col0 * - + col2 AND 29
----

query II rowsort
SELECT - - 27 AS col2, 32 FROM tab2 AS cor0
----
27
32
27
32
27
32

query I rowsort
SELECT ALL + + 48 AS col0 FROM tab1 AS cor0
----
48
48
48

query I rowsort
SELECT + col0 - - - 76 + + col2 FROM tab2 cor0
----
-7
28
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7225
SELECT DISTINCT CAST( - 66 AS SIGNED ) + + - col0 AS col1 FROM tab0 AS cor0
----
-153
-163
-81

skipif mysql # not compatible
query I rowsort label-7225
SELECT DISTINCT CAST ( - 66 AS INTEGER ) + + - col0 AS col1 FROM tab0 AS cor0
----
-153
-163
-81

query I rowsort
SELECT col1 + - 62 + - - col1 FROM tab2 AS cor0
----
40
72
92

query III rowsort
SELECT * FROM tab2 WHERE + col2 >= - - 0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 7 + + col1 FROM tab2
----
58
74
84

query I rowsort
SELECT 91 + - + col1 AS col0 FROM tab2
----
14
24
40

query III rowsort
SELECT * FROM tab1 WHERE col2 / - col1 = - col0 / 35
----

query II rowsort
SELECT DISTINCT + 45 * + col2 AS col1, col0 * + 76 FROM tab2
----
1035
3496
1800
4864
2610
5700

query I rowsort
SELECT 32 + + col0 AS col0 FROM tab2
----
107
78
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7233
SELECT + ( ( CAST( ( + + col2 ) AS SIGNED ) ) ) + + col2 FROM tab1
----
118
136
192

skipif mysql # not compatible
query I rowsort label-7233
SELECT + ( ( CAST ( ( + + col2 ) AS INTEGER ) ) ) + + col2 FROM tab1
----
118
136
192

onlyif mysql # DIV for integer division: 
query I rowsort label-7234
SELECT ALL + col1 * col0 DIV - col2 AS col1 FROM tab1
----
-62
-7
-7

skipif mysql # not compatible
query I rowsort label-7234
SELECT ALL + col1 * col0 / - col2 AS col1 FROM tab1
----
-62
-7
-7

query II rowsort
SELECT ALL col1 - - - 32, 78 AS col1 FROM tab1
----
-18
78
-27
78
15
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7236
SELECT ALL - - CAST( - ( + AVG ( col1 ) ) AS SIGNED ) + - SUM( ALL - - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT - 12 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7236
SELECT ALL - - CAST ( - ( + AVG ( col1 ) ) AS INTEGER ) + - SUM ( ALL - - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT - 12 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-7238
SELECT 36 AS col2, col1 DIV + col1 AS col0 FROM tab0
----
36
1
36
1
36
1

skipif mysql # not compatible
query II rowsort label-7238
SELECT 36 AS col2, col1 / + col1 AS col0 FROM tab0
----
36
1
36
1
36
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7239
SELECT + 36 AS col2, CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
36
3

skipif mysql # not compatible
query II rowsort label-7239
SELECT + 36 AS col2, CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
36
3

query I rowsort
SELECT DISTINCT - + ( + 69 ) FROM tab2 AS cor0
----
-69

query I rowsort
SELECT - - col2 * + 87 FROM tab1 AS cor0
----
5133
5916
8352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7242
SELECT - col1 * + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7242
SELECT - col1 * + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 67 * - col0 * - - ( + col2 ) FROM tab0
----
-47235
-58290
-643401

onlyif mysql # DIV for integer division: 
query I rowsort label-7244
SELECT ALL col2 DIV - - ( + col2 ) FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7244
SELECT ALL col2 / - - ( + col2 ) FROM tab1
----
1
1
1

query I rowsort
SELECT ALL 32 * 4 * - + col0 FROM tab1
----
-10880
-11648
-6528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7246
SELECT DISTINCT + + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT - - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7246
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT - - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT + col1 * + col0 * + 1 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7248
SELECT ALL - + CAST( + col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7248
SELECT ALL - + CAST ( + col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
-51
-85
-91

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query II rowsort
SELECT ALL ( + col1 ), - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
-97
21
-87
81
-15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 19 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col2, - 38 FROM tab0 AS cor0
----
10
-38
47
-38
99
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab0 AS cor0 WHERE + 5 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT MAX( + 89 ) FROM tab1 cor0
----
89

skipif mysql # not compatible
query I rowsort label-7254
SELECT MAX ( + 89 ) FROM tab1 cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT ALL + + 87 + - + COUNT( + 48 ) + + 95 FROM tab0 AS cor0
----
179

skipif mysql # not compatible
query I rowsort label-7255
SELECT ALL + + 87 + - + COUNT ( + 48 ) + + 95 FROM tab0 AS cor0
----
179

query I rowsort
SELECT + col2 * 84 * - + col1 * - - col2 AS col2 FROM tab2 AS cor0
----
-10348800
-18932592
-2266236

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT - MAX( - - col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7257
SELECT - MAX ( - - col0 ) AS col1 FROM tab0 AS cor0
----
-97

query III rowsort
SELECT * FROM tab2 WHERE ( ( NOT - 64 / col1 + + - 54 IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE - col0 / - col0 >= + col0 * - col2 * - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE + col2 NOT BETWEEN NULL AND col1
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7261
SELECT col0 DIV - 16 FROM tab0 WHERE - 52 NOT BETWEEN col0 AND - + 28
----
-5
-6
0

skipif mysql # not compatible
query I rowsort label-7261
SELECT col0 / - 16 FROM tab0 WHERE - 52 NOT BETWEEN col0 AND - + 28
----
-5
-6
0

query I rowsort
SELECT - col1 - + col1 AS col2 FROM tab2
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query II rowsort label-7263
SELECT DISTINCT + + COUNT( * ) AS col2, + ( + ( 83 ) ) AS col0 FROM tab1 AS cor0
----
3
83

skipif mysql # not compatible
query II rowsort label-7263
SELECT DISTINCT + + COUNT ( * ) AS col2, + ( + ( 83 ) ) AS col0 FROM tab1 AS cor0
----
3
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT ALL COUNT( * ) * - MIN( col1 ) AS col0 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7264
SELECT ALL COUNT ( * ) * - MIN ( col1 ) AS col0 FROM tab1 AS cor0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7265
SELECT ALL - MIN( ALL + CAST( NULL AS DECIMAL ) ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL - MIN ( ALL + CAST ( NULL AS REAL ) ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 WHERE NULL < NULL
----

query I rowsort
SELECT - + 4 * + col0 * - col0 + - col2 AS col0 FROM tab0 WHERE NOT 50 IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query II rowsort
SELECT 84 * + col1, + 88 + - - col2 AS col1 FROM tab1 AS cor0
----
1176
184
3948
156
420
147

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT ALL + MIN( - col0 ) * 60 AS col1 FROM tab0 AS cor0
----
-5820

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL + MIN ( - col0 ) * 60 AS col1 FROM tab0 AS cor0
----
-5820

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT ALL + MAX( ALL + col0 ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL + MAX ( ALL + col0 ) FROM tab2 cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT ALL COUNT( * ) * - - COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL COUNT ( * ) * - - COUNT ( * ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT 60 + - + col0 * - col2 AS col0 FROM tab1
----
4956
5075
6248

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 < NULL
----

query II rowsort
SELECT - col1, col0 * col1 AS col2 FROM tab2
----
-51
2346
-67
5025
-77
4928

query I rowsort
SELECT ALL - 99 * col2 FROM tab0 AS cor0 WHERE - col0 / + col0 * 84 IS NOT NULL
----
-4653
-9801
-990

query I rowsort
SELECT - - col1 * - ( - + 87 ) + + col0 FROM tab1 AS cor0
----
1269
4180
520

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL > + 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT DISTINCT 23 + COUNT( - col0 ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-7279
SELECT DISTINCT 23 + COUNT ( - col0 ) FROM tab2 AS cor0
----
26

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( - + 82 IS NULL )
----
54 values hashing to 375f372843089b03f23b00160007527a

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE - 56 * - 6 = NULL
----

query I rowsort
SELECT - 70 - - col1 FROM tab0 cor0
----
-49
-69
11

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE 10 + 28 IS NULL
----

query I rowsort
SELECT ALL 15 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
15
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 18 - - 6 + ( col0 ) col2 FROM tab2
----
70
88
99

query I rowsort
SELECT - 48 + col1 + + col1 * + col0 - + col1 AS col1 FROM tab2
----
2298
4880
4977

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + col0 ) - + - col1 + + - col0 col2 FROM tab2
----
-41
-51
-83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7288
SELECT ALL 21 AS col1 FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN col2 AND + col2 * col2 * + - CAST( NULL AS DECIMAL ) - - 67 + + 51
----

skipif mysql # not compatible
query I rowsort label-7288
SELECT ALL 21 AS col1 FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN col2 AND + col2 * col2 * + - CAST ( NULL AS REAL ) - - 67 + + 51
----

query II rowsort
SELECT + col1 * - col1 * - - col1 AS col1, col2 AS col0 FROM tab0 cor0 WHERE NOT ( col2 + - + col2 ) <= NULL
----

query I rowsort
SELECT ALL + - ( + 79 ) FROM tab1 AS cor0
----
-79
-79
-79

query II rowsort
SELECT + 4 / col2 - - col1 AS col1, - col1 * + col0 * - col2 FROM tab0 AS cor0 WHERE NOT NULL <= col0
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + 47 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ALL 95 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query III rowsort
SELECT * FROM tab2 WHERE ( NOT NULL = + col0 ) OR ( + - 60 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT - MIN( + 27 ) FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-7296
SELECT - MIN ( + 27 ) FROM tab0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT DISTINCT + SUM( - ( + - 55 ) ) FROM tab1 WHERE NOT 54 - + col1 >= 21
----
55

skipif mysql # not compatible
query I rowsort label-7297
SELECT DISTINCT + SUM ( - ( + - 55 ) ) FROM tab1 WHERE NOT 54 - + col1 >= 21
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT - + SUM( ALL + col1 ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-7298
SELECT - + SUM ( ALL + col1 ) FROM tab0 cor0
----
-103

query I rowsort
SELECT + col1 + + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query II rowsort
SELECT DISTINCT + col2, col1 * - - col2 AS col0 FROM tab0 AS cor0
----
10
210
47
3807
99
99

query I rowsort
SELECT DISTINCT ( - col0 ) + + col1 AS col0 FROM tab2 cor0
----
-8
13
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7303
SELECT - + CAST( - - 3 AS SIGNED ) + - 40 + - 53 col1, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-96
NULL
-96
NULL
-96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7303
SELECT - + CAST ( - - 3 AS INTEGER ) + - 40 + - 53 col1, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-96
NULL
-96
NULL
-96
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 = - + 20
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col0 AS col1, + col2 * - 0 FROM tab2 AS cor0
----
46
0
64
0
75
0

query I rowsort
SELECT + + 23 + + - col1 FROM tab1 AS cor0
----
-24
18
9

query II rowsort
SELECT DISTINCT col2 * + col1 * + + 4 * + - col0 AS col0, - col0 AS col1 FROM tab1 cor0
----
-100300
-85
-1163344
-91
-274176
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT DISTINCT + MAX( + col0 ) * + SUM( 4 ) FROM tab2
----
900

skipif mysql # not compatible
query I rowsort label-7308
SELECT DISTINCT + MAX ( + col0 ) * + SUM ( 4 ) FROM tab2
----
900

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7309
SELECT + ( CAST( NULL AS SIGNED ) ) col2, - col0 AS col0 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7309
SELECT + ( CAST ( NULL AS INTEGER ) ) col2, - col0 AS col0 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7310
SELECT DISTINCT + col0 + + + CAST( col2 AS SIGNED ) FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-7310
SELECT DISTINCT + col0 + + + CAST ( col2 AS INTEGER ) FROM tab2
----
104
133
69

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 54 * - - col1 FROM tab1
----
2538
270
756

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT ALL MIN( + 80 ) FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-7313
SELECT ALL MIN ( + 80 ) FROM tab0
----
80

query I rowsort
SELECT 15 * + - col0 * 57 * + col1 AS col0 FROM tab1
----
-363375
-3656835
-610470

query III rowsort
SELECT * FROM tab2 WHERE - - 9 = - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7316
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col1 + - + col0 + - col1 / + CAST( + 19 AS DECIMAL ) + - 61
----

skipif mysql # not compatible
query III rowsort label-7316
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col1 + - + col0 + - col1 / + CAST ( + 19 AS REAL ) + - 61
----

query I rowsort
SELECT ALL - col0 + 46 AS col1 FROM tab0
----
-41
-51
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT DISTINCT + COUNT( ALL + 5 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7318
SELECT DISTINCT + COUNT ( ALL + 5 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT ALL - ( - COUNT( * ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7319
SELECT ALL - ( - COUNT ( * ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-7320
SELECT DISTINCT - + COUNT( * ) AS col2, - 15 * - 90 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
1350

skipif mysql # not compatible
query II rowsort label-7320
SELECT DISTINCT - + COUNT ( * ) AS col2, - 15 * - 90 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
1350

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= - 45
----

query I rowsort
SELECT - + 18 * - col0 FROM tab1 AS cor0
----
1530
1638
918

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT DISTINCT + COUNT( * ) * + 65 FROM tab1 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7323
SELECT DISTINCT + COUNT ( * ) * + 65 FROM tab1 AS cor0
----
195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7324
SELECT COUNT( DISTINCT - 86 ) DIV + 4 + ( 87 ) FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-7324
SELECT COUNT ( DISTINCT - 86 ) / + 4 + ( 87 ) FROM tab1 AS cor0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7325
SELECT DISTINCT - 99 DIV + 15 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7325
SELECT DISTINCT - 99 / + 15 FROM tab0 AS cor0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7326
SELECT ( - CAST( - - MAX( + col1 ) AS SIGNED ) ) FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
-81

skipif mysql # not compatible
query I rowsort label-7326
SELECT ( - CAST ( - - MAX ( + col1 ) AS INTEGER ) ) FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
-81

query I rowsort
SELECT + ( + col0 ) AS col1 FROM tab2 AS cor0 WHERE ( + + col2 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT DISTINCT + ( - - COUNT( * ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7328
SELECT DISTINCT + ( - - COUNT ( * ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7329
SELECT ALL - CAST( - + COUNT( * ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 62 * + 97 * + col2 col1 FROM tab2
----
-138322
-240560
-348812

query I rowsort
SELECT - - 38 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT - + 85 * MAX( + col1 ) * + 25 AS col0 FROM tab2 AS cor0
----
-163625

skipif mysql # not compatible
query I rowsort label-7332
SELECT - + 85 * MAX ( + col1 ) * + 25 AS col0 FROM tab2 AS cor0
----
-163625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7333
SELECT DISTINCT - ( - + CAST( NULL AS SIGNED ) ) / + - col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7333
SELECT DISTINCT - ( - + CAST ( NULL AS INTEGER ) ) / + - col1 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7334
SELECT ALL + + CAST( NULL AS DECIMAL ) * COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL + + CAST ( NULL AS REAL ) * COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT 69 FROM tab1, tab0 cor0
----
69

query I rowsort
SELECT ALL col2 * + 55 - - + ( col1 ) FROM tab1 AS cor0
----
3250
3787
5294

query I rowsort
SELECT ALL ( - + 17 ) * - 62 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 94 / - col2 * col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col1 * - ( + ( + - col2 ) ) * ( + col2 ) FROM tab2 AS cor0
----
-123200
-225388
-26979

query I rowsort
SELECT DISTINCT ( - + 43 ) + col1 AS col1 FROM tab1 AS cor0
----
-29
-38
4

query III rowsort
SELECT * FROM tab0 WHERE NULL > + ( col2 ) + - - col1 * - ( - - col1 ) + col1
----

query I rowsort
SELECT ALL - ( - - col2 ) FROM tab1
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col0, 24 col1 FROM tab1
----
14
24
47
24
5
24

query II rowsort
SELECT ALL + - 20 - 51, AVG ( DISTINCT + col1 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
-71
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7345
SELECT ALL col0, + CAST( + col0 AS SIGNED ) FROM tab0
----
15
15
87
87
97
97

skipif mysql # not compatible
query II rowsort label-7345
SELECT ALL col0, + CAST ( + col0 AS INTEGER ) FROM tab0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7346
SELECT + col0 + - col0 * + ( - CAST( NULL AS SIGNED ) ) col1, 92 AS col0 FROM tab1
----
NULL
92
NULL
92
NULL
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7346
SELECT + col0 + - col0 * + ( - CAST ( NULL AS INTEGER ) ) col1, 92 AS col0 FROM tab1
----
NULL
92
NULL
92
NULL
92

query I rowsort
SELECT DISTINCT - ( + - ( 16 ) ) AS col0 FROM tab0
----
16

query I rowsort
SELECT - col1 + + 23 + - 47 + col1 FROM tab1 AS cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT DISTINCT - COUNT( * ) + COUNT( * ) + - 2 col2 FROM tab2 cor0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7349
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) + - 2 col2 FROM tab2 cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT + SUM( - - col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7350
SELECT + SUM ( - - col1 ) FROM tab2
----
195

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 60 - - - col2 + - - col2 FROM tab2
----
60
60
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7354
SELECT ALL + col0 - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7354
SELECT ALL + col0 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7355
SELECT DISTINCT 54 DIV + col0 AS col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-7355
SELECT DISTINCT 54 / + col0 AS col1 FROM tab1
----
0
1

query I rowsort
SELECT ALL + + 36 FROM tab0 AS cor0
----
36
36
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7357
SELECT ALL + 81 DIV + COUNT( * ) AS col1 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-7357
SELECT ALL + 81 / + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
27

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * - col0 NOT IN ( + ( + col1 ), 20, + 74 * + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7359
SELECT DISTINCT + - 8 DIV + col2 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7359
SELECT DISTINCT + - 8 / + col2 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - + 31 FROM tab1 cor0
----
-31
-31
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 7 * + col2, + col2 * + - col2 col1 FROM tab1 AS cor0
----
-413
-3481
-476
-4624
-672
-9216

onlyif mysql # aggregate syntax: 
query II rowsort label-7362
SELECT - 52, + COUNT( * ) * - COUNT( * ) + - COUNT( * ) AS col1 FROM tab0 WHERE NOT 5 <= NULL
----
-52
0

skipif mysql # not compatible
query II rowsort label-7362
SELECT - 52, + COUNT ( * ) * - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0 WHERE NOT 5 <= NULL
----
-52
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7363
SELECT + - col1 AS col0 FROM tab2 WHERE NOT - + CAST( col2 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-7363
SELECT + - col1 AS col0 FROM tab2 WHERE NOT - + CAST ( col2 AS INTEGER ) = NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NOT + 67 + - 95 < - col2 * - col0 + - + col1
----

query II rowsort
SELECT + 97 AS col2, 36 FROM tab2
----
97
36
97
36
97
36

query I rowsort
SELECT - - col0 FROM tab0 WHERE NOT ( NOT col2 IS NOT NULL )
----
15
87
97

query II rowsort
SELECT 62 AS col1, + 68 + + + col1 AS col1 FROM tab0
----
62
149
62
69
62
89

query I rowsort
SELECT ALL col2 * + - ( col1 ) FROM tab0
----
-210
-3807
-99

query II rowsort
SELECT DISTINCT + ( + - col2 ) * - + 12 * + col2 * - col2 + - 74 AS col1, col0 AS col0 FROM tab0
----
-11643662
97
-12074
87
-1245950
15

onlyif mysql # DIV for integer division: 
query II rowsort label-7370
SELECT - col0 AS col0, 96 DIV - + 39 FROM tab2 AS cor0
----
-46
-2
-64
-2
-75
-2

skipif mysql # not compatible
query II rowsort label-7370
SELECT - col0 AS col0, 96 / - + 39 FROM tab2 AS cor0
----
-46
-2
-64
-2
-75
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 AS col1, col2 * + col2 col0 FROM tab2 cor0
----
-51
529
-67
3364
-77
1600

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 26 IS NOT NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE ( col2 ) IS NOT NULL
----
59
68
96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 75 + - 34 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7375
SELECT * FROM tab1 WHERE NOT 35 IN ( + CAST( - col0 AS SIGNED ) + 62 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7375
SELECT * FROM tab1 WHERE NOT 35 IN ( + CAST ( - col0 AS INTEGER ) + 62 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + 42 ) AS col2 FROM tab2 WHERE ( col2 * - 62 + 33 ) IS NULL
----

query I rowsort
SELECT 53 AS col0 FROM tab1 WHERE NOT col2 * - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 74 - col1 FROM tab0
----
-7
53
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT ALL MIN( + col1 ) AS col2 FROM tab2 WHERE 17 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7379
SELECT ALL MIN ( + col1 ) AS col2 FROM tab2 WHERE 17 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT - 56 * ( + 25 * SUM( ALL col2 * ( - 74 ) ) ) FROM tab2
----
12535600

skipif mysql # not compatible
query I rowsort label-7380
SELECT - 56 * ( + 25 * SUM ( ALL col2 * ( - 74 ) ) ) FROM tab2
----
12535600

query I rowsort
SELECT DISTINCT - 90 AS col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT + 46 * - col2 FROM tab1
----
-2714
-3128
-4416

query III rowsort
SELECT * FROM tab2 WHERE + col0 NOT BETWEEN + 35 / ( + col1 ) AND + 52
----
64
77
40
75
67
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 66 NOT BETWEEN + col2 AND NULL
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT COUNT( * ) * 7 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-7385
SELECT COUNT ( * ) * 7 FROM tab0
----
21

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 + + 9 ) = ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * 12 + col1 FROM tab2
----
327
557
763

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT MAX( ALL 73 ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-7388
SELECT MAX ( ALL 73 ) FROM tab0
----
73

query I rowsort
SELECT - 36 * - col0 AS col0 FROM tab2 WHERE NOT col1 <> ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7390
SELECT col2 + col0 DIV 80 FROM tab1
----
60
69
96

skipif mysql # not compatible
query I rowsort label-7390
SELECT col2 + col0 / 80 FROM tab1
----
60
69
96

query I rowsort
SELECT ALL col2 * 28 FROM tab2
----
1120
1624
644

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 / - col1 col2 FROM tab0 WHERE + col2 IN ( + col1 + - col1 )
----

query I rowsort
SELECT + 70 + + col2 AS col2 FROM tab0
----
117
169
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT - MIN( ALL col0 ) + + 97 AS col0 FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-7394
SELECT - MIN ( ALL col0 ) + + 97 AS col0 FROM tab1
----
46

query I rowsort
SELECT DISTINCT col0 + col2 AS col1 FROM tab2 WHERE NOT 14 <> ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7396
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NOT col0 + + col1 > ( 9 ) + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7396
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NOT col0 + + col1 > ( 9 ) + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col1 * 11 + + col2 AS col0 FROM tab1
----
114
250
585

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7398
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) + 39 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7398
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) + 39 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7399
SELECT - 53 * 77 col2 FROM tab1 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
-4081
-4081
-4081

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7399
SELECT - 53 * 77 col2 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
-4081
-4081
-4081

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 BETWEEN ( ( + 41 ) ) AND NULL
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab2 WHERE NOT 46 * + 94 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( + AVG ( DISTINCT ( 27 ) ) ) * + 60 AS col2 FROM tab0 WHERE NOT ( + 94 * + ( 8 ) ) BETWEEN ( 89 ) AND ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT ALL COUNT( DISTINCT col0 ) * - MIN( DISTINCT col2 ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-7403
SELECT ALL COUNT ( DISTINCT col0 ) * - MIN ( DISTINCT col2 ) FROM tab0
----
-30

query I rowsort
SELECT DISTINCT 6 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7405
SELECT DISTINCT CAST( ( - col1 ) AS SIGNED ) + + ( + CAST( col1 AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7405
SELECT DISTINCT CAST ( ( - col1 ) AS INTEGER ) + + ( + CAST ( col1 AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7406
SELECT 79 DIV + col2 + col0 FROM tab2 AS cor0
----
49
65
76

skipif mysql # not compatible
query I rowsort label-7406
SELECT 79 / + col2 + col0 FROM tab2 AS cor0
----
49
65
76

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 39 * 3 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * col2 + col2 * col2 AS col1 FROM tab0 AS cor0
----
19404
2914
970

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT DISTINCT - SUM( ALL col0 ) col0 FROM tab1 cor0 WHERE NOT col0 NOT BETWEEN NULL AND + col0 * col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7409
SELECT DISTINCT - SUM ( ALL col0 ) col0 FROM tab1 cor0 WHERE NOT col0 NOT BETWEEN NULL AND + col0 * col1
----
NULL

query I rowsort
SELECT DISTINCT - 33 * col2 AS col2 FROM tab2 AS cor0
----
-1320
-1914
-759

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT DISTINCT MAX( col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7411
SELECT DISTINCT MAX ( col0 ) AS col2 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT ALL - MIN( - 90 ) AS col2 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL - MIN ( - 90 ) AS col2 FROM tab1 AS cor0
----
90

query I rowsort
SELECT 37 * 46 FROM tab1 AS cor0
----
1702
1702
1702

query I rowsort
SELECT ALL + col2 * 94 AS col0 FROM tab2 AS cor0
----
2162
3760
5452

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( col1 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7416
SELECT * FROM tab2 WHERE NOT 43 IS NULL OR NOT + CAST( NULL AS SIGNED ) + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7416
SELECT * FROM tab2 WHERE NOT 43 IS NULL OR NOT + CAST ( NULL AS INTEGER ) + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT ALL + COUNT( * ) * + - 97 FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-7417
SELECT ALL + COUNT ( * ) * + - 97 FROM tab0
----
-291

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = + col1 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT COUNT( * ) FROM tab0 WHERE NOT ( NULL ) <> col1 + + col1
----
0

skipif mysql # not compatible
query I rowsort label-7419
SELECT COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) <> col1 + + col1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= 18 / + ( col1 ) + 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT - COUNT( * ) col1 FROM tab1 WHERE NOT NULL BETWEEN ( 39 * - col0 ) AND ( 97 * - col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7421
SELECT - COUNT ( * ) col1 FROM tab1 WHERE NOT NULL BETWEEN ( 39 * - col0 ) AND ( 97 * - col1 )
----
0

query I rowsort
SELECT DISTINCT 63 + col1 FROM tab1 WHERE - col2 NOT BETWEEN NULL AND ( col1 * + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN + col1 AND NULL
----

query I rowsort
SELECT + ( - - 60 ) AS col1 FROM tab1 AS cor0
----
60
60
60

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 51 ) < 82
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 * 96 AS col1 FROM tab1 WHERE NOT - 50 = ( + ( 5 ) + 71 )
----
1344
4512
480

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT - COUNT( * ) * 22 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-198

skipif mysql # not compatible
query I rowsort label-7428
SELECT - COUNT ( * ) * 22 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT DISTINCT 16 + + COUNT( * ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT 16 + + COUNT ( * ) FROM tab0
----
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 8 col2 FROM tab0 AS cor0
----
-8

query II rowsort
SELECT ALL 78 AS col2, - 30 FROM tab0 AS cor0
----
78
-30
78
-30
78
-30

query I rowsort
SELECT DISTINCT + col0 + + 48 AS col1 FROM tab2 AS cor0
----
112
123
94

query I rowsort
SELECT ALL col0 FROM tab2 cor0 WHERE NOT + 30 IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 = ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col2 * col0 + + 66 FROM tab2 cor0 WHERE + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT ALL + COUNT( * ) + + - 54 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL + COUNT ( * ) + + - 54 FROM tab0 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT ALL + - SUM( col2 ) FROM tab0 AS cor0 WHERE - col0 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL + - SUM ( col2 ) FROM tab0 AS cor0 WHERE - col0 > NULL
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 > col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - 12 AND - col2 + - 49
----

query III rowsort
SELECT * FROM tab2 WHERE - + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col0 + + + col1 FROM tab2
----
141
142
97

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT COUNT( + + col1 ) AS col2 FROM tab0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7443
SELECT COUNT ( + + col1 ) AS col2 FROM tab0 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT DISTINCT ( - + ( + + col1 ) ) + 39 * - col0 FROM tab1
----
-2003
-3320
-3596

query I rowsort
SELECT DISTINCT + 60 * + ( + col2 ) FROM tab0 WHERE NULL <> ( + - col0 * - 45 * 16 + ( - ( col0 ) ) / + col2 - - 0 * col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col0 ) IN ( col2 * + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * 29 - - + 52 FROM tab0 AS cor0
----
-2471
-2761
-383

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE NULL < - 3 * + 54 / - col0 / col1 + - 8
----

query I rowsort
SELECT ( - + col1 ) - - col2 AS col2 FROM tab0
----
-11
-34
98

query I rowsort
SELECT col0 - - 90 AS col1 FROM tab0
----
105
177
187

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7451
SELECT - MAX( - col1 ) AS col0 FROM tab2 WHERE NOT col0 BETWEEN col1 + 61 AND ( + ( CAST( NULL AS DECIMAL ) ) )
----
51

skipif mysql # not compatible
query I rowsort label-7451
SELECT - MAX ( - col1 ) AS col0 FROM tab2 WHERE NOT col0 BETWEEN col1 + 61 AND ( + ( CAST ( NULL AS REAL ) ) )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT ALL COUNT( DISTINCT 85 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL COUNT ( DISTINCT 85 ) AS col0 FROM tab0
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( col2 / + col0 - 75 )
----

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE 11 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT + 96 * - MIN( ALL col2 ) + + + 42 + + - COUNT( * ) * - 36 * - 24 FROM tab2 cor0
----
-4758

skipif mysql # not compatible
query I rowsort label-7455
SELECT + 96 * - MIN ( ALL col2 ) + + + 42 + + - COUNT ( * ) * - 36 * - 24 FROM tab2 cor0
----
-4758

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( ( + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT DISTINCT 74 * - COUNT( 75 ) FROM tab2
----
-222

skipif mysql # not compatible
query I rowsort label-7457
SELECT DISTINCT 74 * - COUNT ( 75 ) FROM tab2
----
-222

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 WHERE NOT NULL >= + col1
----

query I rowsort
SELECT ALL col2 * 72 * - col0 AS col2 FROM tab1
----
-352512
-361080
-445536

query I rowsort
SELECT - col1 * 45 FROM tab1
----
-2115
-225
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT MIN( DISTINCT + - col0 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7461
SELECT MIN ( DISTINCT + - col0 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col2 * + 44 * col0 * - col2 AS col2 FROM tab1
----
-13018940
-18514496
-20680704

query II rowsort
SELECT DISTINCT 9 AS col0, + col2 FROM tab2
----
9
23
9
40
9
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7464
SELECT 47 DIV - - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7464
SELECT 47 / - - col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * col1 <> + - col1
----

query II rowsort
SELECT - col0, - col2 AS col2 FROM tab0 AS cor0
----
-15
-47
-87
-10
-97
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col1, + 19 col1 FROM tab1 AS cor0
----
59
19
68
19
96
19

query I rowsort
SELECT ALL - col2 + + + col0 + + + col1 AS col0 FROM tab1 AS cor0
----
-31
31
70

onlyif mysql # aggregate syntax: 
query II rowsort label-7469
SELECT - 6 AS col2, - 13 - - COUNT( * ) AS col1 FROM tab2 cor0
----
-6
-10

skipif mysql # not compatible
query II rowsort label-7469
SELECT - 6 AS col2, - 13 - - COUNT ( * ) AS col1 FROM tab2 cor0
----
-6
-10

query I rowsort
SELECT - ( 21 ) FROM tab2
----
-21
-21
-21

query I rowsort
SELECT DISTINCT - + 86 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-86

query I rowsort
SELECT DISTINCT ( + + ( col0 ) ) * 93 + + - col1 FROM tab0 cor0
----
1314
8070
9020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7473
SELECT + - SUM( + - col0 ) DIV 45 AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7473
SELECT + - SUM ( + - col0 ) / 45 AS col2 FROM tab1 AS cor0
----
5

query II rowsort
SELECT DISTINCT - ( col0 ) AS col1, 74 * - + 4 FROM tab1 AS cor0
----
-51
-296
-85
-296
-91
-296

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7475
SELECT ALL + col2 + - + CAST( col2 AS SIGNED ) DIV + col0 AS col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7475
SELECT ALL + col2 + - + CAST ( col2 AS INTEGER ) / + col0 AS col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7476
SELECT + + col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7476
SELECT + + col0 / + col0 AS col2 FROM tab1 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 9 ) NOT BETWEEN ( NULL ) AND 24
----

query I rowsort
SELECT 85 AS col0 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
85
85
85

query II rowsort
SELECT ALL col2 + - 29 * col2 + col2, - col1 AS col2 FROM tab1
----
-1593
-5
-1836
-47
-2592
-14

query I rowsort
SELECT DISTINCT + + 94 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - - col1 ) col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT + 5 - + col2 FROM tab0
----
-42
-5
-94

query I rowsort
SELECT DISTINCT col1 * - + col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT - - 63 * - col1 + col2 + - 85 + - + col0 + - col0 * col1 * + col2 + col0 AS col2 FROM tab0 AS cor0
----
-19668
-62246
-9652

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7485
SELECT ALL CAST( - col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7485
SELECT ALL CAST ( - col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * col2 + col1 + + 19 col0 FROM tab1 AS cor0
----
-3457
-4558
-9183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7487
SELECT - CAST( NULL AS SIGNED ) + MAX( DISTINCT - col1 ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7487
SELECT - CAST ( NULL AS INTEGER ) + MAX ( DISTINCT - col1 ) AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + - col2 + + - col2 FROM tab0 AS cor0 WHERE NOT 77 * col0 IS NULL
----
-198
-20
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT + + MAX( 17 ) + ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-7489
SELECT + + MAX ( 17 ) + ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7490
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 69, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7490
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 69, - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + - 29 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT DISTINCT MAX( + 8 ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-7492
SELECT DISTINCT MAX ( + 8 ) FROM tab1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7493
SELECT - SUM( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7493
SELECT - SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + + 3 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT col2 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7496
SELECT * FROM tab1 AS cor0 WHERE NOT + 89 * + + CAST( col2 AS DECIMAL ) >= + col0 / + col2
----

skipif mysql # not compatible
query III rowsort label-7496
SELECT * FROM tab1 AS cor0 WHERE NOT + 89 * + + CAST ( col2 AS REAL ) >= + col0 / + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 85 col2 FROM tab1 AS cor0 WHERE NOT - col2 < - + col0
----
-85

query I rowsort
SELECT + col0 * 28 + + + col0 FROM tab2 AS cor0
----
1334
1856
2175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 / col1 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > ( + 32 + ( col0 ) * + col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 IN ( + + col2 - 14 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - 34 AS col1 FROM tab1 AS cor0
----
-34

query I rowsort
SELECT ALL + col2 * + col2 + - col2 AS col0 FROM tab1 AS cor0
----
3422
4556
9120

query II rowsort
SELECT DISTINCT - col0, + 62 * - - col2 * - 78 AS col2 FROM tab2
----
-46
-111228
-64
-193440
-75
-280488

query II rowsort
SELECT DISTINCT + 8, col0 AS col0 FROM tab2
----
8
46
8
64
8
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col2 ) col2 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT COUNT( * ) + 91 AS col1 FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-7506
SELECT COUNT ( * ) + 91 AS col1 FROM tab2
----
94

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 37 ) > - 43
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7508
SELECT + + 60 + - - 51 DIV + - col1 + - - 89 FROM tab0 AS cor0
----
147
149
98

skipif mysql # not compatible
query I rowsort label-7508
SELECT + + 60 + - - 51 / + - col1 + - - 89 FROM tab0 AS cor0
----
147
149
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT + + COUNT( * ) + + - 82 col1 FROM tab1 AS cor0
----
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7509
SELECT + + COUNT ( * ) + + - 82 col1 FROM tab1 AS cor0
----
-79

query I rowsort
SELECT + col1 + + 64 AS col1 FROM tab0 AS cor0
----
145
65
85

query II rowsort
SELECT col1 AS col2, 54 AS col2 FROM tab1
----
14
54
47
54
5
54

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL IS NOT NULL OR ( NULL ) IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT ALL + 24 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7515
SELECT + CAST( + 31 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
31
31
31

skipif mysql # not compatible
query I rowsort label-7515
SELECT + CAST ( + 31 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
31
31
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7516
SELECT DISTINCT - col1 * + col0 * + CAST( col1 AS SIGNED ) + - - col0 AS col1 FROM tab2 AS cor0
----
-119600
-336600
-379392

skipif mysql # not compatible
query I rowsort label-7516
SELECT DISTINCT - col1 * + col0 * + CAST ( col1 AS INTEGER ) + - - col0 AS col1 FROM tab2 AS cor0
----
-119600
-336600
-379392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7517
SELECT + - COUNT( * ) DIV - - 99 + + 51 * + 28 - - 49 AS col1 FROM tab0 AS cor0
----
1477

skipif mysql # not compatible
query I rowsort label-7517
SELECT + - COUNT ( * ) / - - 99 + + 51 * + 28 - - 49 AS col1 FROM tab0 AS cor0
----
1477

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT + + ( 71 ) - - + COUNT( * ) FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-7518
SELECT + + ( 71 ) - - + COUNT ( * ) FROM tab1 AS cor0
----
74

query I rowsort
SELECT DISTINCT + 92 + - col0 + + col1 + 75 * - + col1 + + col2 * col2 + - col1 * col1 * - 60 * - col2 FROM tab0 AS cor0
----
-18505728
-266049
3782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7520
SELECT ALL MIN( DISTINCT 12 ) DIV - 64 - - + 70 AS col0 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL MIN ( DISTINCT 12 ) / - 64 - - + 70 AS col0 FROM tab1 AS cor0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7521
SELECT ALL CAST( col2 AS SIGNED ) + - 8 FROM tab2 cor0
----
15
32
50

skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL CAST ( col2 AS INTEGER ) + - 8 FROM tab2 cor0
----
15
32
50

onlyif mysql # DIV for integer division: 
query I rowsort label-7522
SELECT ALL + + col0 + - col2 DIV - col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL + + col0 + - col2 / - col0 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT * FROM tab1 WHERE 10 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 + + col1 + 96 FROM tab1
----
161
186
234

query I rowsort
SELECT DISTINCT col2 - + ( + + col2 ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT - MIN( + - col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-7526
SELECT - MIN ( + - col0 ) AS col0 FROM tab0
----
97

query I rowsort
SELECT DISTINCT - 68 * col2 - - + col2 FROM tab2
----
-1541
-2680
-3886

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7528
SELECT ALL SUM( ALL 69 ) DIV - + COUNT( * ) + + 3 * + COUNT( * ) AS col2, 10 * 47 AS col1 FROM tab1
----
-60
470

skipif mysql # not compatible
query II rowsort label-7528
SELECT ALL SUM ( ALL 69 ) / - + COUNT ( * ) + + 3 * + COUNT ( * ) AS col2, 10 * 47 AS col1 FROM tab1
----
-60
470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7529
SELECT DISTINCT CAST( NULL AS SIGNED ) - col0 + - - col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7529
SELECT DISTINCT CAST ( NULL AS INTEGER ) - col0 + - - col1 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7530
SELECT ALL 60 * + 70 + COUNT( * ) - + COUNT( * ) FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
4200

skipif mysql # not compatible
query I rowsort label-7530
SELECT ALL 60 * + 70 + COUNT ( * ) - + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
4200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7531
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-7531
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7532
SELECT ALL - col0 DIV 84 * + - 1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7532
SELECT ALL - col0 / 84 * + - 1 FROM tab1
----
0
1
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 + - col1 ) <> - 89
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col2 AS col2, - col2 + col2 + - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - + 11 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT + MIN( + col1 ) * + 85 FROM tab2 AS cor0
----
4335

skipif mysql # not compatible
query I rowsort label-7536
SELECT + MIN ( + col1 ) * + 85 FROM tab2 AS cor0
----
4335

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7537
SELECT DISTINCT 8 * - CAST( NULL AS SIGNED ) + - - ( - col2 ) / ( col2 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7537
SELECT DISTINCT 8 * - CAST ( NULL AS INTEGER ) + - - ( - col2 ) / ( col2 ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 19 + - 68 AS col2 FROM tab1 WHERE NOT - - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 69 <= 11
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 * - + 82 col0 FROM tab0
----
-1640
-1640
-1640

onlyif mysql # DIV for integer division: 
query I rowsort label-7541
SELECT ( - - col1 ) DIV - 28 col2 FROM tab0
----
-2
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7541
SELECT ( - - col1 ) / - 28 col2 FROM tab0
----
-2
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7542
SELECT ALL COUNT( * ) + + COUNT( * ) AS col1, 60 col1 FROM tab1 AS cor0
----
6
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7542
SELECT ALL COUNT ( * ) + + COUNT ( * ) AS col1, 60 col1 FROM tab1 AS cor0
----
6
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7543
SELECT ALL 87 + + CAST( + SUM( ALL + col0 ) AS SIGNED ) FROM tab1
----
314

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL 87 + + CAST ( + SUM ( ALL + col0 ) AS INTEGER ) FROM tab1
----
314

query II rowsort
SELECT + col1 + col0 * + col1, col0 FROM tab0
----
1296
15
1848
87
98
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 72 + - - col1 col1 FROM tab0
----
153
73
93

query I rowsort
SELECT - 86 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7547
SELECT ALL - col0 * - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7547
SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7548
SELECT DISTINCT + - col0 * 44 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7548
SELECT DISTINCT + - col0 * 44 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * + col2 + col0 * ( + col0 ) FROM tab2 AS cor0
----
3289
7176
9511

query I rowsort
SELECT ALL col1 + + - 98 AS col0 FROM tab0 AS cor0
----
-17
-77
-97

query I rowsort
SELECT ALL col2 + - - 54 FROM tab1 AS cor0
----
113
122
150

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT ALL + + 84 * + 8 + - COUNT( * ) + COUNT( col1 ) + + SUM( - - 63 ) FROM tab0 cor0 WHERE 33 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL + + 84 * + 8 + - COUNT ( * ) + COUNT ( col1 ) + + SUM ( - - 63 ) FROM tab0 cor0 WHERE 33 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT DISTINCT - + COUNT( * ) - + ( - COUNT( * ) ) col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7553
SELECT DISTINCT - + COUNT ( * ) - + ( - COUNT ( * ) ) col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col2 - - + 36 AS col1 FROM tab2
----
59
76
94

query I rowsort
SELECT ALL ( + col0 ) - ( - ( + 95 ) ) * + col0 * + col0 FROM tab1
----
247146
686460
786786

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7556
SELECT DISTINCT - 43 * + + CAST( - + 62 AS SIGNED ) * col1 / col1 FROM tab0 WHERE + col0 * col1 - 80 + ( - col2 ) - + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7556
SELECT DISTINCT - 43 * + + CAST ( - + 62 AS INTEGER ) * col1 / col1 FROM tab0 WHERE + col0 * col1 - 80 + ( - col2 ) - + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7557
SELECT ALL - 81 DIV + 70 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL - 81 / + 70 AS col0 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7558
SELECT ( - 20 ) + + 64 + - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT 9 IN ( - col2 / - + col1 + + - col2 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7558
SELECT ( - 20 ) + + 64 + - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT 9 IN ( - col2 / - + col1 + + - col2 )
----
NULL
NULL
NULL

query I rowsort
SELECT ( - ( - col2 ) ) * - col0 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT + + 75 + + + 3 FROM tab1 AS cor0
----
78

query I rowsort
SELECT - + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - 52 AS col0 FROM tab2 cor0
----
-52
-52
-52

query I rowsort
SELECT ALL + + col2 + + + 30 * + 11 FROM tab0 AS cor0
----
340
377
429

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT DISTINCT - + MAX( - + 6 ) FROM tab0 cor0 WHERE 57 NOT IN ( 84, + col1 )
----
6

skipif mysql # not compatible
query I rowsort label-7564
SELECT DISTINCT - + MAX ( - + 6 ) FROM tab0 cor0 WHERE 57 NOT IN ( 84, + col1 )
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0 WHERE NOT ( NOT ( NULL IN ( + col0, 81 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7566
SELECT DISTINCT col2 * + + col2 * - CAST( NULL AS SIGNED ), col0 DIV 11 AS col2 FROM tab2
----
NULL
4
NULL
5
NULL
6

skipif mysql # not compatible
query II rowsort label-7566
SELECT DISTINCT col2 * + + col2 * - CAST ( NULL AS INTEGER ), col0 / 11 AS col2 FROM tab2
----
NULL
4
NULL
5
NULL
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7567
SELECT 57 + 10 + - - col2 DIV - col2 FROM tab2
----
66
66
66

skipif mysql # not compatible
query I rowsort label-7567
SELECT 57 + 10 + - - col2 / - col2 FROM tab2
----
66
66
66

query I rowsort
SELECT col0 * + + 56 * - ( - 35 ) + ( col1 ) * + 60 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7569
SELECT * FROM tab0 WHERE ( NOT CAST( NULL AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-7569
SELECT * FROM tab0 WHERE ( NOT CAST ( NULL AS INTEGER ) IS NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 63 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 = 66
----

query I rowsort
SELECT ALL - 20 * + col1 AS col2 FROM tab2
----
-1020
-1340
-1540

query I rowsort
SELECT + 54 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7574
SELECT - col0 * + 82 + - ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7574
SELECT - col0 * + 82 + - ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 75 FROM tab1 AS cor0 WHERE - 9 IS NOT NULL
----
-75
-75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7576
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT - 92 <= CAST( NULL AS SIGNED ) * + + 83
----

skipif mysql # not compatible
query I rowsort label-7576
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT - 92 <= CAST ( NULL AS INTEGER ) * + + 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT ALL - COUNT( - ( 17 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL - COUNT ( - ( 17 ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7578
SELECT + col0 + - + 80 DIV + col1 AS col0 FROM tab1 AS cor0
----
46
69
90

skipif mysql # not compatible
query I rowsort label-7578
SELECT + col0 + - + 80 / + col1 AS col0 FROM tab1 AS cor0
----
46
69
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT - SUM( DISTINCT - + 35 ) + - 7 FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-7579
SELECT - SUM ( DISTINCT - + 35 ) + - 7 FROM tab1 AS cor0
----
28

query II rowsort
SELECT col0, - 12 AS col2 FROM tab1
----
51
-12
85
-12
91
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7581
SELECT DISTINCT CAST( col1 AS SIGNED ) * - col1 + col0 FROM tab2
----
-2555
-4414
-5865

skipif mysql # not compatible
query I rowsort label-7581
SELECT DISTINCT CAST ( col1 AS INTEGER ) * - col1 + col0 FROM tab2
----
-2555
-4414
-5865

query I rowsort
SELECT DISTINCT - 20 * + col1 AS col1 FROM tab2
----
-1020
-1340
-1540

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT COUNT( ALL + - col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7583
SELECT COUNT ( ALL + - col1 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT - 3 * + - col2 * - col2 * - 87 FROM tab2
----
138069
417600
878004

query II rowsort
SELECT DISTINCT col1 AS col2, - col1 FROM tab0
----
1
-1
21
-21
81
-81

query I rowsort
SELECT DISTINCT - 84 * + col1 * + col2 + - col0 AS col0 FROM tab0 AS cor0
----
-17727
-319803
-8413

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7587
SELECT ( - - CAST( + 59 AS SIGNED ) ) FROM tab1
----
59
59
59

skipif mysql # not compatible
query I rowsort label-7587
SELECT ( - - CAST ( + 59 AS INTEGER ) ) FROM tab1
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT - COUNT( * ) * - COUNT( * ) + ( + 50 ) + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
140

skipif mysql # not compatible
query I rowsort label-7588
SELECT - COUNT ( * ) * - COUNT ( * ) + ( + 50 ) + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
140

query I rowsort
SELECT ALL 89 * + + 37 * - col1 FROM tab1
----
-154771
-16465
-46102

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 22 * + 80 + - col2 NOT IN ( 79 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7591
SELECT COUNT( * ) DIV + 35 col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7591
SELECT COUNT ( * ) / + 35 col1 FROM tab0
----
0

query II rowsort
SELECT ALL + col0, + col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT ALL + 78 + + + ( + - 43 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7594
SELECT - 83 + + SUM( - 50 ) + + + 97 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7594
SELECT - 83 + + SUM ( - 50 ) + + + 97 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL - - 92, + col2 * + ( + + col1 ) AS col0 FROM tab0 AS cor0
----
92
210
92
3807
92
99

query I rowsort
SELECT ALL + - col1 * + + col1 AS col1 FROM tab0 cor0
----
-1
-441
-6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 79 col1 FROM tab1 AS cor0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT + COUNT( * ) * 31 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-7598
SELECT + COUNT ( * ) * 31 FROM tab2 AS cor0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-7599
SELECT ALL col0 DIV + col0 + + ( + 94 ) AS col2 FROM tab0
----
95
95
95

skipif mysql # not compatible
query I rowsort label-7599
SELECT ALL col0 / + col0 + + ( + 94 ) AS col2 FROM tab0
----
95
95
95

onlyif mysql # DIV for integer division: 
query I rowsort label-7600
SELECT DISTINCT + 14 DIV + col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7600
SELECT DISTINCT + 14 / + col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT DISTINCT - SUM( + - col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT - SUM ( + - col0 ) AS col2 FROM tab1
----
227

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 28 <> ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab1 WHERE NOT + col1 <> + ( + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7604
SELECT + + CAST( NULL AS SIGNED ) FROM tab0 WHERE - col0 * + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7604
SELECT + + CAST ( NULL AS INTEGER ) FROM tab0 WHERE - col0 * + col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 75 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 98 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7607
SELECT ALL - 99 * col0 + + + col1 + + - 51 + - - col0 * + col1 + - ( - col1 ) + + + col1 * - + col1 DIV col1 col0 FROM tab0 AS cor0
----
-240
-6816
-9556

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7607
SELECT ALL - 99 * col0 + + + col1 + + - 51 + - - col0 * + col1 + - ( - col1 ) + + + col1 * - + col1 / col1 col0 FROM tab0 AS cor0
----
-240
-6816
-9556

query I rowsort
SELECT - + col1 + - col0 + - col0 FROM tab0 AS cor0
----
-111
-195
-195

query I rowsort
SELECT DISTINCT - - ( col1 ) AS col1 FROM tab2 cor0 WHERE ( - col1 IS NULL )
----

query I rowsort
SELECT + col1 + + + col1 * col2 + - col2 AS col0 FROM tab2 AS cor0
----
1201
3117
3895

query I rowsort
SELECT + + col2 + + ( col1 ) AS col1 FROM tab1 cor0
----
110
115
64

query I rowsort
SELECT DISTINCT + col1 - + + col1 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE col2 NOT BETWEEN + 39 AND NULL
----
46
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT DISTINCT - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7614
SELECT DISTINCT - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT ALL col0 * - 11 * col0 FROM tab2 WHERE + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT + - MAX( - col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7616
SELECT + - MAX ( - col1 ) AS col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT ALL ( + - col1 ) * ( - ( - + col0 ) ) FROM tab1 AS cor0
----
-425
-4277
-714

query II rowsort
SELECT + col0 AS col0, col2 * + - col2 FROM tab2 AS cor0
----
46
-529
64
-1600
75
-3364

onlyif mysql # aggregate syntax: 
query II rowsort label-7619
SELECT - 18, COUNT( * ) AS col2 FROM tab1 AS cor0
----
-18
3

skipif mysql # not compatible
query II rowsort label-7619
SELECT - 18, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-18
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7620
SELECT col0 DIV - ( col2 ) FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7620
SELECT col0 / - ( col2 ) FROM tab1
----
-1
-1
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 BETWEEN col1 AND + - 98 * - 45 + + col2 + + 62
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 29 > - - col2 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT DISTINCT + MAX( col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-7623
SELECT DISTINCT + MAX ( col0 ) AS col1 FROM tab2
----
75

query III rowsort
SELECT * FROM tab1 WHERE NOT - 12 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - 13 ) AS col2 FROM tab2
----
13
13
13

onlyif mysql # DIV for integer division: 
query I rowsort label-7626
SELECT DISTINCT col1 DIV + 6 col0 FROM tab2 cor0 WHERE NULL IS NULL
----
11
12
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7626
SELECT DISTINCT col1 / + 6 col0 FROM tab2 cor0 WHERE NULL IS NULL
----
11
12
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 col2 FROM tab0 cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT DISTINCT + - COUNT( * ) * 50 AS col1 FROM tab2 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-7628
SELECT DISTINCT + - COUNT ( * ) * 50 AS col1 FROM tab2 AS cor0
----
-150

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + - 29 + - col2 )
----

query I rowsort
SELECT ALL + ( + + ( - col0 ) ) AS col0 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + + 98 * 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT + MIN( DISTINCT + 25 ) AS col2 FROM tab1 cor0
----
25

skipif mysql # not compatible
query I rowsort label-7632
SELECT + MIN ( DISTINCT + 25 ) AS col2 FROM tab1 cor0
----
25

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE - col1 * - col1 * - col0 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT + ( - + 55 ) FROM tab2 AS cor0
----
-55
-55
-55

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 34 / col1 IS NULL
----

query I rowsort
SELECT ALL - + col2 + + + 4 AS col2 FROM tab2 cor0
----
-19
-36
-54

query I rowsort
SELECT + - 9 AS col2 FROM tab1 WHERE + - 31 * - col0 / col0 IS NOT NULL
----
-9
-9
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 * - + 5 * + col2 + + col0 + - col1 + - - col0 <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 57 + + col1 AS col2 FROM tab2
----
-6
10
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7640
SELECT CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ), - ( COUNT( * ) ) AS col0 FROM tab1 WHERE NULL IS NULL
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-7640
SELECT CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ), - ( COUNT ( * ) ) AS col0 FROM tab1 WHERE NULL IS NULL
----
NULL
-3

query I rowsort
SELECT - col1 + + - col1 AS col1 FROM tab2
----
-102
-134
-154

query I rowsort
SELECT 49 + + 6 + - col2 FROM tab1
----
-13
-4
-41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7643
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= NULL OR NOT 81 / + 39 * + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7643
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= NULL OR NOT 81 / + 39 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT DISTINCT + + MIN( DISTINCT col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7644
SELECT DISTINCT + + MIN ( DISTINCT col2 ) FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT ALL - + MAX( - col1 ) + COUNT( * ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL - + MAX ( - col1 ) + COUNT ( * ) FROM tab2 AS cor0
----
54

query I rowsort
SELECT ALL - ( + - ( + col1 ) ) * - - col0 AS col1 FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col2 <= - + 40
----
46
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT DISTINCT - + COUNT( * ) + + COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT - + COUNT ( * ) + + COUNT ( * ) FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT DISTINCT COUNT( * ) + - + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7649
SELECT DISTINCT COUNT ( * ) + - + COUNT ( * ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT + MIN( - + ( + - ( + + 66 ) ) ) AS col2 FROM tab2, tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7650
SELECT + MIN ( - + ( + - ( + + 66 ) ) ) AS col2 FROM tab2, tab1 AS cor0
----
66

query III rowsort
SELECT * FROM tab0 WHERE + 42 IS NULL
----

query I rowsort
SELECT ALL col2 * 82 - col0 * - + col2 AS col1 FROM tab0
----
1690
17721
4559

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7653
SELECT - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT col0 * + 24 AS col0 FROM tab2
----
1104
1536
1800

query I rowsort
SELECT - col2 + + 33 + - + col0 FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND - col1 * + col1
----

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT 14 / + - col2 IS NULL
----
1
21
81

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT 98 NOT BETWEEN + + col2 + + - col0 + - col2 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 * - col1 * - 49 FROM tab0
----
-4753
-59535
-89523

query II rowsort
SELECT ALL col2 AS col1, 49 * col2 + + + col0 FROM tab2
----
23
1173
40
2024
58
2917

query II rowsort
SELECT ALL 92 AS col0, 87 AS col0 FROM tab2
----
92
87
92
87
92
87

onlyif mysql # DIV for integer division: 
query II rowsort label-7661
SELECT + 54 AS col1, + col2 DIV col0 FROM tab2
----
54
0
54
0
54
0

skipif mysql # not compatible
query II rowsort label-7661
SELECT + 54 AS col1, + col2 / col0 FROM tab2
----
54
0
54
0
54
0

query II rowsort
SELECT ALL 99, - col2 AS col2 FROM tab0
----
99
-10
99
-47
99
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 66 NOT BETWEEN - col1 AND NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col0, 24 * col1 + + - col2 AS col0 FROM tab2 AS cor0
----
-51
1201
-67
1550
-77
1808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7665
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7665
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT + col0 * - ( + - 40 ) FROM tab1
----
2040
3400
3640

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( + col1 ) NOT BETWEEN col0 * - - col2 * + - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 87 col1 FROM tab0 AS cor0
----
-87
-87
-87

query I rowsort
SELECT DISTINCT - 97 * + col0 + 87 AS col1 FROM tab2 AS cor0
----
-4375
-6121
-7188

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT DISTINCT MIN( 46 ) + 94 FROM tab1 AS cor0
----
140

skipif mysql # not compatible
query I rowsort label-7670
SELECT DISTINCT MIN ( 46 ) + 94 FROM tab1 AS cor0
----
140

query I rowsort
SELECT DISTINCT - 89 FROM tab1 AS cor0 WHERE NULL BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT SUM( DISTINCT - 17 ) FROM tab2 cor0
----
-17

skipif mysql # not compatible
query I rowsort label-7672
SELECT SUM ( DISTINCT - 17 ) FROM tab2 cor0
----
-17

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 AS cor0 WHERE + col2 * ( + + 96 ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT - + ( + - col0 ) AS col2 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT ALL - - col0 + col2 * col2 FROM tab2 AS cor0
----
1664
3439
575

onlyif mysql # DIV for integer division: 
query I rowsort label-7676
SELECT + col1 * + + 25 DIV + 1 FROM tab2
----
1275
1675
1925

skipif mysql # not compatible
query I rowsort label-7676
SELECT + col1 * + + 25 / + 1 FROM tab2
----
1275
1675
1925

query I rowsort
SELECT ALL col2 * col2 + col1 AS col1 FROM tab2
----
1677
3431
580

query II rowsort
SELECT - 65, + col2 FROM tab0
----
-65
10
-65
47
-65
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7679
SELECT DISTINCT col2 * CAST( - - col2 AS SIGNED ) FROM tab2
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-7679
SELECT DISTINCT col2 * CAST ( - - col2 AS INTEGER ) FROM tab2
----
1600
3364
529

query I rowsort
SELECT col0 + + 47 + - ( + 71 ) AS col0 FROM tab2 AS cor0
----
22
40
51

query I rowsort
SELECT DISTINCT ( - 97 ) * col2 FROM tab2 AS cor0 WHERE NOT col2 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7682
SELECT DISTINCT + - 56 DIV - col2 AS col0 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7682
SELECT DISTINCT + - 56 / - col2 AS col0 FROM tab2 AS cor0
----
0
1
2

query II rowsort
SELECT - 27 AS col1, 17 * + 42 AS col2 FROM tab0 AS cor0
----
-27
714
-27
714
-27
714

query I rowsort
SELECT - col1 * + 74 * + - 43 FROM tab2 AS cor0 WHERE NOT - col0 / + - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) > + col0
----

query II rowsort
SELECT ALL col1, - col2 + 83 AS col0 FROM tab2 AS cor0
----
51
60
67
25
77
43

query II rowsort
SELECT - col2, - 34 AS col0 FROM tab0 AS cor0
----
-10
-34
-47
-34
-99
-34

query I rowsort
SELECT 2 * + - 49 * + col0 AS col0 FROM tab2
----
-4508
-6272
-7350

query I rowsort
SELECT ALL + col2 * - + 19 FROM tab1
----
-1121
-1292
-1824

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 10 ) col0 FROM tab1
----
-10
-10
-10

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query II rowsort
SELECT col2 * - ( + col1 ), col0 * + + col2 AS col0 FROM tab0 AS cor0
----
-210
870
-3807
705
-99
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - col1 col0 FROM tab0 cor0
----
-108
-96
-98

query I rowsort
SELECT DISTINCT + + 22 * + - col2 * - - col0 AS col2 FROM tab1 AS cor0
----
-107712
-110330
-136136

query I rowsort
SELECT ALL 19 + - 40 AS col2 FROM tab2 AS cor0
----
-21
-21
-21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7696
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= col1 + + col2 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7696
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= col1 + + col2 + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7697
SELECT - SUM( DISTINCT 7 ) + 61 DIV COUNT( * ) col1 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7697
SELECT - SUM ( DISTINCT 7 ) + 61 / COUNT ( * ) col1 FROM tab1 AS cor0
----
13

query I rowsort
SELECT ALL - 88 + col1 AS col0 FROM tab2 AS cor0
----
-11
-21
-37

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * col2 - col0 + - ( + col2 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT DISTINCT - + COUNT( * ) + + + 24 * + 75 AS col1 FROM tab1 AS cor0
----
1797

skipif mysql # not compatible
query I rowsort label-7700
SELECT DISTINCT - + COUNT ( * ) + + + 24 * + 75 AS col1 FROM tab1 AS cor0
----
1797

query I rowsort
SELECT ALL + 58 + - col1 - + col2 AS col1 FROM tab1
----
-52
-57
-6

query I rowsort
SELECT DISTINCT col0 * - ( - + 33 ) - + - 13 * + + 86 AS col1 FROM tab0
----
1613
3989
4319

query II rowsort
SELECT ALL col1 + - + col1 AS col0, 0 + + 9 + + col1 + - + 99 + - col0 * - col0 FROM tab0
----
0
216
0
7500
0
9320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) + - 51 col2 FROM tab0
----
-36
36
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7705
SELECT COUNT( * ) + - - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7705
SELECT COUNT ( * ) + - - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 11 * col2 AS col1 FROM tab1
----
1056
649
748

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT ALL - MAX( + col0 ) * + 26 AS col1 FROM tab0
----
-2522

skipif mysql # not compatible
query I rowsort label-7707
SELECT ALL - MAX ( + col0 ) * + 26 AS col1 FROM tab0
----
-2522

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7708
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + col2 * col0 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7708
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + col2 * col0 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT DISTINCT COUNT( - + ( col1 ) ) * + COUNT( * ) FROM tab0 WHERE NOT col1 * 92 IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-7709
SELECT DISTINCT COUNT ( - + ( col1 ) ) * + COUNT ( * ) FROM tab0 WHERE NOT col1 * 92 IS NULL
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7710
SELECT ALL + 43 DIV + + MIN( col2 ) AS col2 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-7710
SELECT ALL + 43 / + + MIN ( col2 ) AS col2 FROM tab0
----
4

query I rowsort
SELECT + col0 * - ( col1 ) AS col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT MAX( + 17 ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-7712
SELECT MAX ( + 17 ) FROM tab1
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7713
SELECT ALL col2 + - - CAST( NULL AS SIGNED ) + + col2 + col1 * + + col2 * - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7713
SELECT ALL col2 + - - CAST ( NULL AS INTEGER ) + + col2 + col1 * + + col2 * - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7714
SELECT + CAST( NULL AS SIGNED ) AS col0, + 55 AS col2 FROM tab1
----
NULL
55
NULL
55
NULL
55

skipif mysql # not compatible
query II rowsort label-7714
SELECT + CAST ( NULL AS INTEGER ) AS col0, + 55 AS col2 FROM tab1
----
NULL
55
NULL
55
NULL
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT MIN( 19 ) AS col1 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-7715
SELECT MIN ( 19 ) AS col1 FROM tab2
----
19

query I rowsort
SELECT ALL + 47 * + 83 FROM tab2
----
3901
3901
3901

query I rowsort
SELECT ALL + col0 * - 82 FROM tab1 AS cor0
----
-4182
-6970
-7462

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT ALL + + MAX( ALL col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7718
SELECT ALL + + MAX ( ALL col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT ALL SUM( DISTINCT 57 ) FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-7719
SELECT ALL SUM ( DISTINCT 57 ) FROM tab1 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT 6 * COUNT( * ) AS col0 FROM tab2 cor0
----
18

skipif mysql # not compatible
query I rowsort label-7720
SELECT 6 * COUNT ( * ) AS col0 FROM tab2 cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT - 83 * - COUNT( * ) FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-7721
SELECT - 83 * - COUNT ( * ) FROM tab0
----
249

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7722
SELECT ( - - CAST( + 3 AS SIGNED ) ) DIV 89 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7722
SELECT ( - - CAST ( + 3 AS INTEGER ) ) / 89 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + 20 + + col2 FROM tab0 WHERE NOT NULL = + col0 * - 41 / - col2 * - 26
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7724
SELECT ALL COUNT( * ), - 61 AS col2 FROM tab1
----
3
-61

skipif mysql # not compatible
query II rowsort label-7724
SELECT ALL COUNT ( * ), - 61 AS col2 FROM tab1
----
3
-61

query II rowsort
SELECT DISTINCT 4 AS col1, - col2 + + + col1 * + col2 * - + 12 AS col2 FROM tab1
----
4
-16224
4
-3599
4
-38420

query I rowsort
SELECT DISTINCT + 18 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
18

query I rowsort
SELECT 19 * - 81 AS col2 FROM tab0
----
-1539
-1539
-1539

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT ( + - 90 ) IS NULL
----
23
40
58

query I rowsort
SELECT + 11 FROM tab0 WHERE NOT ( ( NOT NULL BETWEEN NULL AND NULL ) )
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE NOT + col0 + + + 51 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( 43 ) + + col0 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + + col1 * - col2 <> col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT + COUNT( * ) + 46 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-7733
SELECT + COUNT ( * ) + 46 FROM tab1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT ALL + - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL + - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

query II rowsort
SELECT DISTINCT col1 * + col1 + - col1, + col2 AS col0 FROM tab2 AS cor0
----
2550
23
4422
58
5852
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT DISTINCT - COUNT( * ) + 75 AS col0 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-7736
SELECT DISTINCT - COUNT ( * ) + 75 AS col0 FROM tab0 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT - 98 * + COUNT( * ) FROM tab1 cor0
----
-294

skipif mysql # not compatible
query I rowsort label-7737
SELECT - 98 * + COUNT ( * ) FROM tab1 cor0
----
-294

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7738
SELECT * FROM tab0 AS cor0 WHERE - col2 * + CAST( - col0 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-7738
SELECT * FROM tab0 AS cor0 WHERE - col2 * + CAST ( - col0 AS INTEGER ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7739
SELECT - - col1 / + ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7739
SELECT - - col1 / + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7740
SELECT DISTINCT - 14 * col0 + + 88 AS col2, - col2 * + CAST( col2 AS SIGNED ) + + col1 DIV - 19 AS col0 FROM tab1
----
-1102
-3481
-1186
-4626
-626
-9216

skipif mysql # not compatible
query II rowsort label-7740
SELECT DISTINCT - 14 * col0 + + 88 AS col2, - col2 * + CAST ( col2 AS INTEGER ) + + col1 / - 19 AS col0 FROM tab1
----
-1102
-3481
-1186
-4626
-626
-9216

query I rowsort
SELECT col2 - - - col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - col1 + + - 73 AS col0 FROM tab2 WHERE + col1 + - ( col0 ) - - 79 / - col1 NOT IN ( + col0, 21, + 25 * col0 )
----
-124
-140
-150

query I rowsort
SELECT DISTINCT - col1 + - ( - col2 ) * + + 33 + - + col1 FROM tab0
----
1389
288
3265

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7744
SELECT ALL - 47 - - col1 + + col0 DIV - CAST( + + 75 AS SIGNED ) + - - col0 * col1 + - - col1 - + - col1 * + col0 FROM tab1
----
1409
812
8600

skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL - 47 - - col1 + + col0 / - CAST ( + + 75 AS INTEGER ) + - - col0 * col1 + - - col1 - + - col1 * + col0 FROM tab1
----
1409
812
8600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7745
SELECT ALL CAST( - + ( 62 ) AS SIGNED ) FROM tab0
----
-62
-62
-62

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL CAST ( - + ( 62 ) AS INTEGER ) FROM tab0
----
-62
-62
-62

query I rowsort
SELECT col1 + + 1 AS col0 FROM tab1
----
15
48
6

query I rowsort
SELECT - 29 * ( 6 ) FROM tab0 AS cor0
----
-174
-174
-174

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * 52 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7749
SELECT - SUM( ALL CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7749
SELECT - SUM ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * + 66 * col0 FROM tab2
----
-139656
-270336
-371250

query I rowsort
SELECT ALL ( - + col0 ) AS col1 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + 51 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7753
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7753
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
3

query II rowsort
SELECT + ( + col1 ) AS col0, - col1 * ( + 7 ) AS col2 FROM tab0 AS cor0
----
1
-7
21
-147
81
-567

query I rowsort
SELECT + col1 AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 76 AS col2 FROM tab2
----
76
76
76

query I rowsort
SELECT - 74 * - + 88 * 62 * 58 + + 13 + - 25 FROM tab0
----
23417140
23417140
23417140

query I rowsort
SELECT + col1 * + col2 + col1 FROM tab0
----
100
231
3888

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 = + col1 - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 16 + + - col1 - + 44 col0 FROM tab0 cor0
----
-141
-61
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + + - col1 col2 FROM tab1 cor0
----
0

query I rowsort
SELECT + 74 + - col0 * - col1 FROM tab0 AS cor0
----
1289
171
1901

query I rowsort
SELECT DISTINCT col0 * + ( - col2 ) + - col1 * - 63 + col2 + + - col2 FROM tab0 AS cor0
----
-9540
4398
453

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 51 * - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 / col1 - + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7766
SELECT ALL - + col1 + col0 + - col0 + - col2 DIV + col0 AS col1 FROM tab1 AS cor0
----
-15
-47
-5

skipif mysql # not compatible
query I rowsort label-7766
SELECT ALL - + col1 + col0 + - col0 + - col2 / + col0 AS col1 FROM tab1 AS cor0
----
-15
-47
-5

query III rowsort
SELECT * FROM tab2 WHERE - col0 - col2 + - 27 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 55 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT + COUNT( + + col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7769
SELECT + COUNT ( + + col2 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT - 16 * col2 AS col2 FROM tab1 AS cor0
----
-1088
-1536
-944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7771
SELECT ALL CAST( + - COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7771
SELECT ALL CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT + + COUNT( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-7772
SELECT + + COUNT ( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query I rowsort
SELECT + 67 AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= - ( + 66 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7774
SELECT - ( + - 43 ) * - COUNT( * ) + - 20 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7774
SELECT - ( + - 43 ) * - COUNT ( * ) + - 20 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - col1 - - col2 AS col1, col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT DISTINCT + SUM( ALL col2 ) FROM tab1 AS cor0 WHERE - 43 * + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7776
SELECT DISTINCT + SUM ( ALL col2 ) FROM tab1 AS cor0 WHERE - 43 * + col0 IS NULL
----
NULL

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT 81 * + + col2 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1 * 30, 47 )
----

query II rowsort
SELECT col2 AS col1, 21 AS col0 FROM tab2 cor0
----
23
21
40
21
58
21

onlyif mysql # DIV for integer division: 
query II rowsort label-7780
SELECT ALL ( + col2 ) DIV - + col2 AS col2, + col1 AS col0 FROM tab2 AS cor0
----
-1
51
-1
67
-1
77

skipif mysql # not compatible
query II rowsort label-7780
SELECT ALL ( + col2 ) / - + col2 AS col2, + col1 AS col0 FROM tab2 AS cor0
----
-1
51
-1
67
-1
77

query I rowsort
SELECT ALL - - col0 + col1 + - - col0 FROM tab0 AS cor0
----
111
195
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7782
SELECT + CAST( - col0 AS SIGNED ) * - col0 AS col1 FROM tab0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-7782
SELECT + CAST ( - col0 AS INTEGER ) * - col0 AS col1 FROM tab0
----
225
7569
9409

query I rowsort
SELECT ALL 45 * + col0 + col1 FROM tab2
----
2121
2957
3442

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7784
SELECT - 76 * - CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7784
SELECT - 76 * - CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7785
SELECT DISTINCT ( 19 ) DIV + + COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-7785
SELECT DISTINCT ( 19 ) / + + COUNT ( * ) AS col1 FROM tab1
----
6

query I rowsort
SELECT + col0 * + 0 FROM tab0
----
0
0
0

query I rowsort
SELECT - col2 * + + col1 AS col2 FROM tab1
----
-1344
-295
-3196

query II rowsort
SELECT - ( col2 ) * - col2 * - col0, col2 * + col1 + - col1 AS col1 FROM tab0
----
-33135
3726
-8700
189
-950697
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + + col1 col0, 26 FROM tab1
----
196
26
2209
26
25
26

query III rowsort
SELECT * FROM tab0 WHERE NULL > - - ( col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE 92 > NULL
----

query I rowsort
SELECT ALL - 55 * + - col1 FROM tab0 AS cor0
----
1155
4455
55

query I rowsort
SELECT - + 86 + + - col1 * col0 * - - ( 75 ) FROM tab1 AS cor0
----
-31961
-320861
-53636

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7794
SELECT CAST( NULL AS DECIMAL ) + - - 71 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7794
SELECT CAST ( NULL AS REAL ) + - - 71 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + 26 * + ( + 92 ) FROM tab1 AS cor0
----
2443
2477
2483

query I rowsort
SELECT col2 * - 46 + + col0 + - 37 FROM tab2
----
-1049
-1813
-2630

query I rowsort
SELECT - + 20 - col0 AS col1 FROM tab2 WHERE NULL IS NULL
----
-66
-84
-95

query I rowsort
SELECT - 40 * + 85 FROM tab2 AS cor0
----
-3400
-3400
-3400

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 <> NULL
----

query I rowsort
SELECT DISTINCT - - col1 * - 16 * + 72 + - 80 - - col2 FROM tab2 cor0
----
-58809
-77206
-88744

query I rowsort
SELECT DISTINCT + 80 + - col1 AS col2 FROM tab0 AS cor0
----
-1
59
79

onlyif mysql # DIV for integer division: 
query I rowsort label-7802
SELECT ( - col2 ) DIV - ( col2 ) AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7802
SELECT ( - col2 ) / - ( col2 ) AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 AS cor0 WHERE NOT 38 * + - col0 IS NULL
----
-1
-21
-81

query I rowsort
SELECT col1 * - col0 - + col1 + - col1 + col1 FROM tab0 AS cor0 WHERE - col1 BETWEEN NULL AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7805
SELECT col1 * + col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7805
SELECT col1 * + col1 / + col1 AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ALL - - 52 + + col0 FROM tab0 AS cor0
----
139
149
67

query I rowsort
SELECT col0 - - - 4 FROM tab2 AS cor0
----
42
60
71

query I rowsort
SELECT DISTINCT - 72 + + 84 AS col0 FROM tab2 AS cor0
----
12

query II rowsort
SELECT DISTINCT col2 AS col1, + 27 * ( + - col2 ) * + 62 FROM tab2 AS cor0
----
23
-38502
40
-66960
58
-97092

query I rowsort
SELECT ( + 83 ) AS col2 FROM tab2
----
83
83
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7811
SELECT - CAST( + - AVG ( DISTINCT + - 15 ) AS SIGNED ) AS col2 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-7811
SELECT - CAST ( + - AVG ( DISTINCT + - 15 ) AS INTEGER ) AS col2 FROM tab1
----
-15

query I rowsort
SELECT DISTINCT col1 / + 36 + col1 FROM tab2 WHERE - + col1 BETWEEN + + 10 * + col0 AND NULL
----

query II rowsort
SELECT ALL col1, - 75 FROM tab1
----
14
-75
47
-75
5
-75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 >= + 95 * - 5
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT + COUNT( * ) * + COUNT( * ) + - SUM( DISTINCT + 72 ) AS col2 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-7815
SELECT + COUNT ( * ) * + COUNT ( * ) + - SUM ( DISTINCT + 72 ) AS col2 FROM tab1 AS cor0
----
-63

query I rowsort
SELECT ALL col0 * + - 91 FROM tab1 AS cor0
----
-4641
-7735
-8281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7817
SELECT MIN( DISTINCT CAST( + - col2 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7817
SELECT MIN ( DISTINCT CAST ( + - col2 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 67 / - col1 IS NOT NULL
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT col1 * - col1 * + - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - 37 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7821
SELECT + + col1 / - - CAST( NULL AS SIGNED ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7821
SELECT + + col1 / - - CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 * - 37 * + col0 > + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT AVG ( ALL + + col1 ) FROM tab1 AS cor0 WHERE NULL IN ( - col0 * + 89 / + col2 * + + 3 )
----
NULL

query I rowsort
SELECT DISTINCT + col0 * - - 90 + - col0 AS col1 FROM tab1 AS cor0
----
4539
7565
8099

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NULL <= + col1 * - 17
----
0

skipif mysql # not compatible
query I rowsort label-7825
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <= + col1 * - 17
----
0

query I rowsort
SELECT DISTINCT - 59 + ( col2 ) AS col0 FROM tab1 AS cor0
----
0
37
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7827
SELECT col2 DIV - - col2 + - + col0 + - col0 + + 97 * ( - col0 ) FROM tab2
----
-4553
-6335
-7424

skipif mysql # not compatible
query I rowsort label-7827
SELECT col2 / - - col2 + - + col0 + - col0 + + 97 * ( - col0 ) FROM tab2
----
-4553
-6335
-7424

query I rowsort
SELECT ALL + + 9 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - - 20 <= col0 * + 45
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT - 85 + - COUNT( * ) * - COUNT( * ) - + + 45 * + - 96 AS col2 FROM tab2 AS cor0
----
4244

skipif mysql # not compatible
query I rowsort label-7830
SELECT - 85 + - COUNT ( * ) * - COUNT ( * ) - + + 45 * + - 96 AS col2 FROM tab2 AS cor0
----
4244

query I rowsort
SELECT ALL 70 + - - col2 FROM tab0 AS cor0
----
117
169
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 2 col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-10
-28
-94

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 ) >= 40
----
51
14
96
85
5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7834
SELECT ALL 30 DIV 91 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL 30 / 91 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7835
SELECT col1 DIV + 45 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7835
SELECT col1 / + 45 FROM tab1
----
0
0
1

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT NULL IN ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 7 ) = - 82 * - col0
----

query I rowsort
SELECT DISTINCT col0 + - 27 AS col0 FROM tab1
----
24
58
64

query III rowsort
SELECT * FROM tab2 WHERE + col2 + + 20 IS NULL
----

query I rowsort
SELECT col0 + - 11 AS col1 FROM tab2
----
35
53
64

query I rowsort
SELECT 74 * + ( - col1 ) FROM tab2
----
-3774
-4958
-5698

onlyif mysql # DIV for integer division: 
query I rowsort label-7842
SELECT ALL 43 DIV col2 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL 43 / col2 FROM tab0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 + - ( 98 ) col1 FROM tab1
----
-10

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT ( NULL ) >= ( - col2 * - 61 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * col1 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT ALL ( COUNT( + col1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL ( COUNT ( + col1 ) ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 6 NOT IN ( 89 * - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7848
SELECT ALL MIN( + col1 ) AS col1 FROM tab1 WHERE - col0 + col0 NOT IN ( CAST( NULL AS SIGNED ) - + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL MIN ( + col1 ) AS col1 FROM tab1 WHERE - col0 + col0 NOT IN ( CAST ( NULL AS INTEGER ) - + col0 )
----
NULL

query I rowsort
SELECT ALL col1 * col1 FROM tab0 WHERE col2 IN ( + 91 / - 34 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 53 = NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 + 34 IS NULL
----

query I rowsort
SELECT 46 + 46 AS col0 FROM tab1
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT MAX( ALL col2 ) + 66 * + SUM( DISTINCT + 88 ) AS col1 FROM tab2
----
5866

skipif mysql # not compatible
query I rowsort label-7853
SELECT MAX ( ALL col2 ) + 66 * + SUM ( DISTINCT + 88 ) AS col1 FROM tab2
----
5866

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 * + col2 + - col0 * col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 col2 FROM tab0 AS cor0
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT ALL + MIN( DISTINCT + 75 ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7856
SELECT ALL + MIN ( DISTINCT + 75 ) FROM tab1 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT + 19 - ( 92 ) * - 18 NOT IN ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7857
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT + 19 - ( 92 ) * - 18 NOT IN ( - col0 )
----
0

query I rowsort
SELECT + 29 + - col0 FROM tab1
----
-22
-56
-62

query I rowsort
SELECT ALL + 58 * - 38 + + col0 AS col1 FROM tab1 AS cor0
----
-2113
-2119
-2153

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7861
SELECT ALL + col0 FROM tab0 AS cor0 WHERE - col2 + CAST( - col2 AS SIGNED ) <> col0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7861
SELECT ALL + col0 FROM tab0 AS cor0 WHERE - col2 + CAST ( - col2 AS INTEGER ) <> col0
----
15
87
97

query I rowsort
SELECT DISTINCT - ( col2 ) * - ( 80 ) FROM tab1 AS cor0
----
4720
5440
7680

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7863
SELECT ALL * FROM tab2 AS cor0 WHERE + 22 = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7863
SELECT ALL * FROM tab2 AS cor0 WHERE + 22 = + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 97 + + col0 FROM tab0 cor0
----
112
184
194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7865
SELECT ALL CAST( NULL AS SIGNED ) + col2 * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL CAST ( NULL AS INTEGER ) + col2 * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT ALL SUM( DISTINCT + col1 ) + + 81 * 0 AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-7866
SELECT ALL SUM ( DISTINCT + col1 ) + + 81 * 0 AS col0 FROM tab0
----
103

query I rowsort
SELECT ALL - col1 + + col2 * col0 FROM tab1
----
4882
5010
6141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 62 ) + + col0 col2 FROM tab0
----
149
159
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7869
SELECT ALL - CAST( NULL AS SIGNED ) * + 8 - MAX( 58 ) AS col0 FROM tab2 WHERE NOT CAST( NULL AS DECIMAL ) * + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL - CAST ( NULL AS INTEGER ) * + 8 - MAX ( 58 ) AS col0 FROM tab2 WHERE NOT CAST ( NULL AS REAL ) * + col1 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + col1 col1 FROM tab2
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7871
SELECT 60 + - col1 * col2 FROM tab0 WHERE ( CAST( - col0 AS SIGNED ) * + 52 - + ( + 17 ) ) <= col0 - col2
----
-150
-3747
-39

skipif mysql # not compatible
query I rowsort label-7871
SELECT 60 + - col1 * col2 FROM tab0 WHERE ( CAST ( - col0 AS INTEGER ) * + 52 - + ( + 17 ) ) <= col0 - col2
----
-150
-3747
-39

query I rowsort
SELECT ALL 83 * col0 AS col2 FROM tab2
----
3818
5312
6225

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT + col1 + + col0 NOT IN ( - ( col0 ) / + col2 )
----

query I rowsort
SELECT ALL + col2 * + - 89 AS col1 FROM tab0
----
-4183
-8811
-890

query III rowsort
SELECT * FROM tab2 WHERE col1 * - 75 + + col2 BETWEEN ( col1 * - col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT + col1 * + + 18 + 2 FROM tab2 AS cor0
----
1208
1388
920

onlyif mysql # DIV for integer division: 
query I rowsort label-7877
SELECT ALL + col1 + - col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
0
21
78

skipif mysql # not compatible
query I rowsort label-7877
SELECT ALL + col1 + - col2 / + col0 AS col2 FROM tab0 AS cor0
----
0
21
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT - SUM( ALL + 5 ) FROM tab2 AS cor0 WHERE ( col1 + 84 * + col0 ) IS NOT NULL
----
-15

skipif mysql # not compatible
query I rowsort label-7878
SELECT - SUM ( ALL + 5 ) FROM tab2 AS cor0 WHERE ( col1 + 84 * + col0 ) IS NOT NULL
----
-15

query I rowsort
SELECT - col0 * + 68 + col2 AS col0 FROM tab0 AS cor0
----
-5906
-6497
-973

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT + COUNT( * ) + + 31 + - - 89 + ( SUM( DISTINCT col1 ) ) FROM tab0
----
226

skipif mysql # not compatible
query I rowsort label-7880
SELECT + COUNT ( * ) + + 31 + - - 89 + ( SUM ( DISTINCT col1 ) ) FROM tab0
----
226

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 IS NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL < - - 95 * - col2 + + 93
----

query I rowsort
SELECT DISTINCT AVG ( - 19 ) AS col2 FROM tab2 WHERE ( NOT ( col1 * col2 + col1 ) > + 22 )
----
NULL

query I rowsort
SELECT + ( ( + col1 ) ) * col2 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7885
SELECT col1 / col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 / + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-7885
SELECT col1 / col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 / + CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 90 IN ( - - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7887
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-7887
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) <= NULL
----

query I rowsort
SELECT + col2 * + ( - 38 ) * - 9 FROM tab2 AS cor0
----
13680
19836
7866

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 >= ( + 46 * + 18 + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL IN ( + 50 + + col0 + + col0 * 42 )
----

query II rowsort
SELECT ALL col2, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT - - col2 * + + col0 FROM tab1 AS cor0
----
4896
5015
6188

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 / 91 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7896
SELECT CAST( - SUM( DISTINCT + col1 ) AS SIGNED ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-7896
SELECT CAST ( - SUM ( DISTINCT + col1 ) AS INTEGER ) AS col2 FROM tab2
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-7897
SELECT DISTINCT 74 DIV 80 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7897
SELECT DISTINCT 74 / 80 AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7898
SELECT DISTINCT * FROM tab0 WHERE ( col2 ) NOT BETWEEN ( + col2 ) AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7898
SELECT DISTINCT * FROM tab0 WHERE ( col2 ) NOT BETWEEN ( + col2 ) AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT 94 - col0 NOT IN ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 41 IS NULL
----

query I rowsort
SELECT - col1 + col0 AS col0 FROM tab1 WHERE NOT - 66 * + ( col1 ) IS NULL
----
37
44
80

query I rowsort
SELECT 99 AS col1 FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( col2 )
----

query I rowsort
SELECT + + 23 AS col0 FROM tab0 AS cor0
----
23
23
23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 59 * - col2 * 34 + - col0 * col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( col1 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( - + col2 ) * - + ( + + 53 ) AS col0 FROM tab0 cor0
----
2491
5247
530

query I rowsort
SELECT DISTINCT 50 * + 85 FROM tab0 AS cor0 WHERE + col1 * - - col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + 86 / - col1
----

query I rowsort
SELECT - 80 * + - col2 AS col0 FROM tab1
----
4720
5440
7680

query I rowsort
SELECT - 52 * - 60 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 75ef03e4ac82ad4326417387530b4bae

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT DISTINCT COUNT( ALL - col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7911
SELECT DISTINCT COUNT ( ALL - col1 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT + + ( - 58 ) - + - col2 - + 48 * col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
-1139
-1938
-2784

query I rowsort
SELECT - ( 44 ) FROM tab2
----
-44
-44
-44

query I rowsort
SELECT DISTINCT - col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 * - col2 + 50 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3431
-4574
-9166

query I rowsort
SELECT + col1 * + 1 AS col0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT ( 46 ) FROM tab0 AS cor0
----
46

query I rowsort
SELECT DISTINCT - ( - 60 ) + col0 FROM tab2 AS cor0
----
106
124
135

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT - + MIN( DISTINCT - 51 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7919
SELECT - + MIN ( DISTINCT - 51 ) AS col2 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT + + MIN( + 91 ) FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7920
SELECT + + MIN ( + 91 ) FROM tab0 AS cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 9 * - + col0 + col2 + col2 * col0 col1 FROM tab2 AS cor0
----
1495
3176
5083

query I rowsort
SELECT col2 / - col1 FROM tab2 AS cor0 WHERE - col2 + - + col0 IS NULL AND ( - 21 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 col0 FROM tab1 cor0
----
22
22
22

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE ( - ( + col1 ) ) <= NULL AND NOT 4 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7925
SELECT ALL + col2 DIV - ( - col2 ) + - col1 AS col0 FROM tab2
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-7925
SELECT ALL + col2 / - ( - col2 ) + - col1 AS col0 FROM tab2
----
-50
-66
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, + col1 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT col1 + + - col0 - col2 * + 48 + + 75 + + 6 AS col1 FROM tab0
----
-2109
-465
-4767

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - - 92 - col1 * - + 14 ) BETWEEN + 33 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 - - ( col1 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 * + - 46 * - 17 AS col1 FROM tab1
----
10948
36754
3910

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT 85 + + COUNT( * ) * 99 FROM tab1 WHERE - 93 NOT IN ( - col1 + + col1 * col2 - col0 )
----
382

skipif mysql # not compatible
query I rowsort label-7932
SELECT 85 + + COUNT ( * ) * 99 FROM tab1 WHERE - 93 NOT IN ( - col1 + + col1 * col2 - col0 )
----
382

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT COUNT( ALL - + ( - + 6 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7933
SELECT COUNT ( ALL - + ( - + 6 ) ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE - + 63 + 58 - + 61 / + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT DISTINCT COUNT( * ) - 90 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-7935
SELECT DISTINCT COUNT ( * ) - 90 FROM tab2
----
-87

query II rowsort
SELECT DISTINCT col1, + 23 AS col2 FROM tab1
----
14
23
47
23
5
23

query II rowsort
SELECT ALL - 47 AS col1, + 4 * + ( + col0 ) AS col2 FROM tab0 AS cor0
----
-47
348
-47
388
-47
60

query I rowsort
SELECT 19 * - col0 FROM tab0 AS cor0
----
-1653
-1843
-285

query I rowsort
SELECT ALL + - col0 + - - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT DISTINCT - ( - COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7940
SELECT DISTINCT - ( - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL BETWEEN - col0 AND - col2 / + + 31
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL > col1 * + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7943
SELECT + MIN( - CAST( NULL AS SIGNED ) ) * - 18 AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7943
SELECT + MIN ( - CAST ( NULL AS INTEGER ) ) * - 18 AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT col2 / - col1 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7945
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - 44 col1 FROM tab2
----
-2024
-2816
-3300

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7947
SELECT * FROM tab2 WHERE NOT - 97 NOT BETWEEN col0 AND + - col0 * + CAST( - col2 AS SIGNED ) + + col1 + - 48 / col2 OR ( 61 ) IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7947
SELECT * FROM tab2 WHERE NOT - 97 NOT BETWEEN col0 AND + - col0 * + CAST ( - col2 AS INTEGER ) + + col1 + - 48 / col2 OR ( 61 ) IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7948
SELECT + 17 DIV - + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7948
SELECT + 17 / - + col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT ALL - MIN( DISTINCT - ( col2 ) ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL - MIN ( DISTINCT - ( col2 ) ) AS col2 FROM tab1
----
96

query I rowsort
SELECT DISTINCT + col0 * + - col0 / - - 46 + + 13 + col0 / + 49 FROM tab1 WHERE NOT - 3 + col1 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + + col1 ) * + + col2 * + col0 + + + 52 = NULL
----

query II rowsort
SELECT DISTINCT + + 4, col0 FROM tab2 AS cor0
----
4
46
4
64
4
75

onlyif mysql # DIV for integer division: 
query II rowsort label-7953
SELECT DISTINCT + ( + col1 ) DIV col2 * - + col0, + col0 + + - 95 AS col0 FROM tab0 AS cor0
----
-15
-80
-174
-8
0
2

skipif mysql # not compatible
query II rowsort label-7953
SELECT DISTINCT + ( + col1 ) / col2 * - + col0, + col0 + + - 95 AS col0 FROM tab0 AS cor0
----
-15
-80
-174
-8
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 71 + + + 71 col2 FROM tab2 AS cor0
----
-3550
-4686
-5396

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 15 col1, + 83 + + + 29 + + col0 AS col1 FROM tab0 AS cor0
----
15
127
15
199
15
209

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7956
SELECT DISTINCT + col2 DIV col0 AS col2, + CAST( NULL AS SIGNED ) FROM tab2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7956
SELECT DISTINCT + col2 / col0 AS col2, + CAST ( NULL AS INTEGER ) FROM tab2
----
0
NULL

query I rowsort
SELECT + 24 + 11 * - col2 FROM tab1
----
-1032
-625
-724

query I rowsort
SELECT DISTINCT - 25 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT DISTINCT + ( + - SUM( ALL + 47 ) ) FROM tab0
----
-141

skipif mysql # not compatible
query I rowsort label-7959
SELECT DISTINCT + ( + - SUM ( ALL + 47 ) ) FROM tab0
----
-141

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT + ( col1 ) + + 47 <= ( - col1 ) / + + col2
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + col2 / col0 FROM tab0 AS cor0 WHERE ( 66 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7962
SELECT + COUNT( * ) DIV - - 97 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7962
SELECT + COUNT ( * ) / - - 97 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT ALL + AVG ( ALL + 91 ) * - 92 * MIN( col1 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL + AVG ( ALL + 91 ) * - 92 * MIN ( col1 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7964
SELECT ALL - + CAST( NULL AS SIGNED ) + + SUM( DISTINCT + col2 ) col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7964
SELECT ALL - + CAST ( NULL AS INTEGER ) + + SUM ( DISTINCT + col2 ) col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT - 72 + - ( 32 ) AS col2 FROM tab2 AS cor0
----
-104

query II rowsort
SELECT - ( + + col2 ), col2 AS col0 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT ALL - col0 * col2 - - col2 * + col2 FROM tab0
----
-770
1504
198

query III rowsort
SELECT * FROM tab1 WHERE - + col1 BETWEEN - + col1 / col1 AND NULL
----

query I rowsort
SELECT col0 - + 14 FROM tab0
----
1
73
83

query I rowsort
SELECT ALL col2 + - 16 FROM tab2
----
24
42
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7971
SELECT - 88 - col2 * - 39 * + CAST( + col0 AS SIGNED ) AS col0 FROM tab0
----
27407
33842
374429

skipif mysql # not compatible
query I rowsort label-7971
SELECT - 88 - col2 * - 39 * + CAST ( + col0 AS INTEGER ) AS col0 FROM tab0
----
27407
33842
374429

query I rowsort
SELECT DISTINCT 76 - col2 * - - 68 AS col2 FROM tab1
----
-3936
-4548
-6452

query I rowsort
SELECT + + col2 + + + col1 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query II rowsort label-7974
SELECT ALL 22, ( ( - COUNT( DISTINCT + col2 ) ) ) AS col1 FROM tab1 AS cor0
----
22
-3

skipif mysql # not compatible
query II rowsort label-7974
SELECT ALL 22, ( ( - COUNT ( DISTINCT + col2 ) ) ) AS col1 FROM tab1 AS cor0
----
22
-3

query I rowsort
SELECT - - col1 + + col1 + + - col1 * + + col2 FROM tab0 AS cor0
----
-168
-3645
-97

query I rowsort
SELECT ALL - 87 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= col1
----

query I rowsort
SELECT ALL + 10 * + 70 * - col2 FROM tab0
----
-32900
-69300
-7000

query II rowsort
SELECT DISTINCT + col0 AS col1, - col2 + - col0 AS col2 FROM tab2
----
46
-69
64
-104
75
-133

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NULL IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query II rowsort
SELECT DISTINCT col0 AS col1, + 88 FROM tab1
----
51
88
85
88
91
88

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) >= - 36 - 10
----

query II rowsort
SELECT DISTINCT - 60, - col2 AS col2 FROM tab2 AS cor0
----
-60
-23
-60
-40
-60
-58

query II rowsort
SELECT ALL 89 AS col2, + col1 AS col2 FROM tab1 AS cor0
----
89
14
89
47
89
5

query I rowsort
SELECT - 25 * + col0 AS col0 FROM tab0 AS cor0
----
-2175
-2425
-375

onlyif mysql # DIV for integer division: 
query II rowsort label-7985
SELECT - col0 AS col0, ( + col1 ) DIV + + col2 + - - 55 AS col2 FROM tab1 AS cor0
----
-51
55
-85
55
-91
55

skipif mysql # not compatible
query II rowsort label-7985
SELECT - col0 AS col0, ( + col1 ) / + + col2 + - - 55 AS col2 FROM tab1 AS cor0
----
-51
55
-85
55
-91
55

query I rowsort
SELECT DISTINCT - col1 * - 1 AS col1 FROM tab0 AS cor0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 col0 FROM tab2 cor0
----
88
88
88

query I rowsort
SELECT - 39 * col2 AS col1 FROM tab0 AS cor0
----
-1833
-3861
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NOT ( ( NULL ) IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7989
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( ( NULL ) IS NULL )
----
0

query I rowsort
SELECT - ( + col0 ) AS col1 FROM tab0 WHERE NOT ( NOT ( NULL <> col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT - MAX( - - col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-7991
SELECT - MAX ( - - col0 ) FROM tab2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7992
SELECT DISTINCT - 64 + - + col2 + - 89 * + 24 FROM tab2 WHERE + col2 = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7992
SELECT DISTINCT - 64 + - + col2 + - 89 * + 24 FROM tab2 WHERE + col2 = - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7993
SELECT COUNT( ALL - col1 ) + - - CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-7993
SELECT COUNT ( ALL - col1 ) + - - CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
6

query II rowsort
SELECT DISTINCT - + col1 + - - col2 * - + 9 AS col2, 76 FROM tab2 AS cor0
----
-258
76
-437
76
-589
76

query I rowsort
SELECT DISTINCT 76 + + col0 * + 28 AS col1 FROM tab2 AS cor0
----
1364
1868
2176

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7996
SELECT * FROM tab0 AS cor0 WHERE col1 IN ( + - col1, + CAST( NULL AS SIGNED ), + CAST( + + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7996
SELECT * FROM tab0 AS cor0 WHERE col1 IN ( + - col1, + CAST ( NULL AS INTEGER ), + CAST ( + + col0 AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7997
SELECT - CAST( - COUNT( * ) AS SIGNED ), + COUNT( * ) + + + COUNT( * ) AS col0 FROM tab0 cor0
----
3
6

skipif mysql # not compatible
query II rowsort label-7997
SELECT - CAST ( - COUNT ( * ) AS INTEGER ), + COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab0 cor0
----
3
6

query I rowsort
SELECT - 22 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT ALL - 62 * + + COUNT( * ) * + 54 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-30132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7999
SELECT ALL - 62 * + + COUNT ( * ) * + 54 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-30132

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT - 40 + - + 13 + COUNT( * ) FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-8000
SELECT - 40 + - + 13 + COUNT ( * ) FROM tab1 AS cor0
----
-50

query I rowsort
SELECT + col1 + - + 83 * + + col1 AS col2 FROM tab0 AS cor0
----
-1722
-6642
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8002
SELECT - col2 + - col0 - + CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8002
SELECT - col2 + - col0 - + CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + - 7 AS col0 FROM tab0 AS cor0
----
3
40
92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 / + 75 NOT IN ( - col0 * col1 / ( + col1 ) * - col2, col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col1 + - - 50 FROM tab0 cor0 WHERE NOT - col0 BETWEEN + 79 AND 75
----
131
51
71

query I rowsort
SELECT - 30 + + 68 * - col0 - - - col0 AS col0 FROM tab1 AS cor0
----
-3549
-5895
-6309

query I rowsort
SELECT col1 + - 77 FROM tab0 AS cor0 WHERE + col0 / - 67 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8008
SELECT DISTINCT - 85 + + COUNT( * ) + COUNT( * ) DIV - COUNT( - col0 ) FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-8008
SELECT DISTINCT - 85 + + COUNT ( * ) + COUNT ( * ) / - COUNT ( - col0 ) FROM tab2 AS cor0
----
-83

query II rowsort
SELECT ALL + + col0, - col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 53 * + col1 * - ( + + col1 ) - + col1 * - col0 * + col1 + - + 38 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 86 + - - col0 AS col2 FROM tab2
----
132
150
161

query I rowsort
SELECT DISTINCT col1 - - 50 FROM tab0
----
131
51
71

query I rowsort
SELECT - col2 * - 26 AS col2 FROM tab0
----
1222
2574
260

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT ALL COUNT( + 94 ) - - + SUM( DISTINCT - - ( + - 45 ) ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL COUNT ( + 94 ) - - + SUM ( DISTINCT - - ( + - 45 ) ) FROM tab2
----
-42

query I rowsort
SELECT ALL + ( col0 ) - col2 FROM tab2
----
17
23
24

query III rowsort
SELECT * FROM tab1 WHERE + col0 / col0 + 1 < + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 + - 29 + - col1 AS col1 FROM tab1 WHERE + 92 NOT BETWEEN ( + ( + - col1 ) * + + ( - 53 ) ) AND NULL
----
-29
-29
-29

query I rowsort
SELECT DISTINCT + 72 - + col1 + + - col2 AS col1 FROM tab1
----
-38
-43
8

query I rowsort
SELECT - col0 * - 10 AS col0 FROM tab1 AS cor0
----
510
850
910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8020
SELECT ALL - + col2 + + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= + CAST( NULL AS SIGNED ) * - col0
----

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL - + col2 + + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= + CAST ( NULL AS INTEGER ) * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT + + COUNT( * ) * 70 AS col2 FROM tab2 cor0
----
210

skipif mysql # not compatible
query I rowsort label-8021
SELECT + + COUNT ( * ) * 70 AS col2 FROM tab2 cor0
----
210

query I rowsort
SELECT - 62 * - 21 FROM tab1 AS cor0
----
1302
1302
1302

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT + MAX( DISTINCT - 89 ) FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-8023
SELECT + MAX ( DISTINCT - 89 ) FROM tab2 AS cor0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT + - SUM( ALL ( - 18 ) ) - - 72 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
234

skipif mysql # not compatible
query I rowsort label-8024
SELECT + - SUM ( ALL ( - 18 ) ) - - 72 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
234

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 <= col1 + - col2
----
87
21
10
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL <> ( + col2 )
----

query I rowsort
SELECT DISTINCT col0 * - 4 AS col2 FROM tab2 AS cor0
----
-184
-256
-300

onlyif mysql # aggregate syntax: 
query II rowsort label-8028
SELECT DISTINCT + COUNT( + - col0 ), + 51 AS col2 FROM tab0
----
3
51

skipif mysql # not compatible
query II rowsort label-8028
SELECT DISTINCT + COUNT ( + - col0 ), + 51 AS col2 FROM tab0
----
3
51

query I rowsort
SELECT + 39 FROM tab1 WHERE NOT NULL < - - col0 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT DISTINCT COUNT( ALL - - col2 ) + - - 25 + + - 1 - + + COUNT( * ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-8030
SELECT DISTINCT COUNT ( ALL - - col2 ) + - - 25 + + - 1 - + + COUNT ( * ) FROM tab0
----
24

query II rowsort
SELECT ALL - 46, + col1 FROM tab2
----
-46
51
-46
67
-46
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8032
SELECT + COUNT( * ) DIV + - CAST( - 60 AS SIGNED ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8032
SELECT + COUNT ( * ) / + - CAST ( - 60 AS INTEGER ) AS col1 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - 25
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN + ( - ( col1 ) ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <= - col2 * 29 + - col2 + + ( - - col0 )
----

query II rowsort
SELECT 21 + col0 AS col0, - 78 FROM tab0 AS cor0
----
108
-78
118
-78
36
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-8037
SELECT DISTINCT + 94 DIV col0 + - col0 FROM tab0
----
-86
-9
-97

skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT + 94 / col0 + - col0 FROM tab0
----
-86
-9
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 49 * + - col0, + col0 col0 FROM tab1
----
-2499
51
-4165
85
-4459
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT DISTINCT MIN( - col2 ) * - - COUNT( * ) FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-8039
SELECT DISTINCT MIN ( - col2 ) * - - COUNT ( * ) FROM tab0
----
-297

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + ( - - 36 ), - col0, + - 87 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8041
SELECT * FROM tab2 AS cor0 WHERE col0 / - col2 NOT BETWEEN ( CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8041
SELECT * FROM tab2 AS cor0 WHERE col0 / - col2 NOT BETWEEN ( CAST ( NULL AS INTEGER ) ) AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8042
SELECT ALL + 97 DIV - 85, - col0 AS col2 FROM tab2 AS cor0
----
-1
-46
-1
-64
-1
-75

skipif mysql # not compatible
query II rowsort label-8042
SELECT ALL + 97 / - 85, - col0 AS col2 FROM tab2 AS cor0
----
-1
-46
-1
-64
-1
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT DISTINCT + 18 + MIN( ALL + + ( - col0 ) ) * COUNT( * ) FROM tab0 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-8043
SELECT DISTINCT + 18 + MIN ( ALL + + ( - col0 ) ) * COUNT ( * ) FROM tab0 AS cor0
----
-273

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - - 31 = - - col1 * 22 + - 56 + + - 29 * + 39 AND - 62 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8045
SELECT - CAST( ( + + col0 ) AS SIGNED ) / col2 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8045
SELECT - CAST ( ( + + col0 ) AS INTEGER ) / col2 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > - 14
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 95 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL 97 * + + ( + + col1 ), + col0, + col0 col1 FROM tab1
----
9 values hashing to feefa4fb0416ed6fce680f010651fb8c

query I rowsort
SELECT DISTINCT 2 FROM tab0 WHERE ( col1 BETWEEN col0 AND 56 )
----

query I rowsort
SELECT ALL - col2 * col1 * - - col1 FROM tab2
----
-237160
-260362
-59823

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT + SUM( DISTINCT + 64 ) FROM tab2 cor0
----
64

skipif mysql # not compatible
query I rowsort label-8051
SELECT + SUM ( DISTINCT + 64 ) FROM tab2 cor0
----
64

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col2 NOT BETWEEN NULL AND - - col2 * + col0 * - ( + 32 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT col2 NOT IN ( - col1, col1, - col2 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 98 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT + + SUM( col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-8055
SELECT + + SUM ( col2 ) FROM tab1 AS cor0
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-8056
SELECT ALL - + col1 + + 45 DIV 19 AS col2 FROM tab1 AS cor0
----
-12
-3
-45

skipif mysql # not compatible
query I rowsort label-8056
SELECT ALL - + col1 + + 45 / 19 AS col2 FROM tab1 AS cor0
----
-12
-3
-45

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NOT NULL >= - + 14 )
----

query I rowsort
SELECT + ( + - ( + 85 ) ) * + col1 AS col1 FROM tab0 cor0
----
-1785
-6885
-85

query I rowsort
SELECT DISTINCT - ( col1 ) + 86 FROM tab1 AS cor0
----
39
72
81

query I rowsort
SELECT - - col2 * col0 + col1 AS col1 FROM tab2 AS cor0
----
1109
2637
4417

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 <> NULL
----

query I rowsort
SELECT DISTINCT + + 15 * - 17 * 73 FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 AND - - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NULL <> + col0
----

query I rowsort
SELECT ALL 73 * - 99 AS col2 FROM tab2
----
-7227
-7227
-7227

query I rowsort
SELECT - col1 + - - 89 AS col2 FROM tab1
----
42
75
84

query II rowsort
SELECT ( - - col0 ) + + 72, + col1 FROM tab1
----
123
14
157
5
163
47

query I rowsort
SELECT DISTINCT + - 95 + + 51 FROM tab2 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT + - COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8068
SELECT + - COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8069
SELECT + 40 - + col0 - + 94 * - + 13 + + col2 DIV 94 FROM tab2
----
1187
1198
1216

skipif mysql # not compatible
query I rowsort label-8069
SELECT + 40 - + col0 - + 94 * - + 13 + + col2 / 94 FROM tab2
----
1187
1198
1216

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT DISTINCT - 55 - - 92 - - + COUNT( * ) FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-8070
SELECT DISTINCT - 55 - - 92 - - + COUNT ( * ) FROM tab0
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-8071
SELECT DISTINCT + 43, MIN( + 20 ) + 51 AS col1 FROM tab1 AS cor0
----
43
71

skipif mysql # not compatible
query II rowsort label-8071
SELECT DISTINCT + 43, MIN ( + 20 ) + 51 AS col1 FROM tab1 AS cor0
----
43
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 31 col1, - ( - 40 ) AS col2 FROM tab0 AS cor0
----
31
40

onlyif mysql # DIV for integer division: 
query II rowsort label-8073
SELECT ALL - + 63 * + 55 + - 78 + - col2 + - col0 + - ( + + col2 ) DIV + - col2 + 42 + - + col0 * 80 AS col0, - col0 FROM tab2 AS cor0
----
-7249
-46
-8724
-64
-9633
-75

skipif mysql # not compatible
query II rowsort label-8073
SELECT ALL - + 63 * + 55 + - 78 + - col2 + - col0 + - ( + + col2 ) / + - col2 + 42 + - + col0 * 80 AS col0, - col0 FROM tab2 AS cor0
----
-7249
-46
-8724
-64
-9633
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8074
SELECT DISTINCT + col2 AS col0, CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-8074
SELECT DISTINCT + col2 AS col0, CAST ( NULL AS REAL ) FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE col2 IN ( - - col1, 44 * - col2 * - col0, + col2, col1 )
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8076
SELECT DISTINCT 80 DIV 64 AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8076
SELECT DISTINCT 80 / 64 AS col0 FROM tab2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8077
SELECT + SUM( - + col2 ) DIV - 23 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8077
SELECT + SUM ( - + col2 ) / - 23 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT SUM( ALL + + col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8078
SELECT SUM ( ALL + + col2 ) AS col2 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT - COUNT( * ) FROM tab1 WHERE NOT - + col1 + ( 20 ) * + col0 + + + 51 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8079
SELECT - COUNT ( * ) FROM tab1 WHERE NOT - + col1 + ( 20 ) * + col0 + + + 51 IS NOT NULL
----
0

query I rowsort
SELECT ALL + 76 * - col1 FROM tab0
----
-1596
-6156
-76

query I rowsort
SELECT ALL - 61 * - - 15 - + - col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) > - 16 * + 43 * + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 36 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8083
SELECT ALL - CAST( NULL AS DECIMAL ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8083
SELECT ALL - CAST ( NULL AS REAL ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8084
SELECT DISTINCT + ( - + col0 ) + 29 AS col0 FROM tab2 AS cor0 WHERE NOT + ( - col2 ) < + col2 - - CAST( NULL AS SIGNED ) * - ( col0 ) / + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8084
SELECT DISTINCT + ( - + col0 ) + 29 AS col0 FROM tab2 AS cor0 WHERE NOT + ( - col2 ) < + col2 - - CAST ( NULL AS INTEGER ) * - ( col0 ) / + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + col1 * - - 15 AS col2 FROM tab1
----
210
705
75

query I rowsort
SELECT ALL + col2 * + 5 AS col1 FROM tab1
----
295
340
480

query I rowsort
SELECT DISTINCT 62 * col2 / - 13 AS col1 FROM tab0 WHERE NOT NULL IN ( + - col1, - col1, col0 * col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8088
SELECT DISTINCT - col1 DIV + 72 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8088
SELECT DISTINCT - col1 / + 72 FROM tab0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT + - COUNT( * ) + - + COUNT( * ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8089
SELECT + - COUNT ( * ) + - + COUNT ( * ) FROM tab0 cor0
----
-6

query I rowsort
SELECT DISTINCT - col1 + - - ( + col1 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - ( - col2 ) + - + ( + 27 ) + col2 AS col2 FROM tab1 cor0
----
109
165
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT + + MAX( ALL + 78 ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-8092
SELECT + + MAX ( ALL + 78 ) FROM tab1 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT ALL - - 33 + + - COUNT( * ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8093
SELECT ALL - - 33 + + - COUNT ( * ) FROM tab0 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT ( SUM( ALL col1 ) ) AS col2 FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-8094
SELECT ( SUM ( ALL col1 ) ) AS col2 FROM tab0 cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT DISTINCT MIN( - col0 ) + + + COUNT( DISTINCT + 87 ) - 98 AS col2 FROM tab1
----
-188

skipif mysql # not compatible
query I rowsort label-8095
SELECT DISTINCT MIN ( - col0 ) + + + COUNT ( DISTINCT + 87 ) - 98 AS col2 FROM tab1
----
-188

onlyif mysql # aggregate syntax: 
query II rowsort label-8096
SELECT DISTINCT - 35 AS col0, + COUNT( * ) AS col0 FROM tab0, tab1 AS cor0
----
-35
9

skipif mysql # not compatible
query II rowsort label-8096
SELECT DISTINCT - 35 AS col0, + COUNT ( * ) AS col0 FROM tab0, tab1 AS cor0
----
-35
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 )
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 WHERE - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 * - 21 * - - col1 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8100
SELECT ALL - col0 DIV - col1 - col0 AS col0 FROM tab1
----
-48
-68
-90

skipif mysql # not compatible
query I rowsort label-8100
SELECT ALL - col0 / - col1 - col0 AS col0 FROM tab1
----
-48
-68
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab1 WHERE - 6 NOT BETWEEN - col0 AND 85 + - 2
----

query I rowsort
SELECT ALL + 52 AS col0 FROM tab1 cor0
----
52
52
52

query I rowsort
SELECT DISTINCT 43 AS col2 FROM tab2 cor0
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-8104
SELECT - 85 col2, SUM( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-85
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8104
SELECT - 85 col2, SUM ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-85
-195

query II rowsort
SELECT + 42, col0 AS col0 FROM tab1 AS cor0
----
42
51
42
85
42
91

query I rowsort
SELECT 70 AS col0 FROM tab2 cor0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT ( MAX( DISTINCT - col0 ) ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8107
SELECT ( MAX ( DISTINCT - col0 ) ) FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8108
SELECT ( - 30 ) * + CAST( ( col2 ) AS SIGNED ) FROM tab1
----
-1770
-2040
-2880

skipif mysql # not compatible
query I rowsort label-8108
SELECT ( - 30 ) * + CAST ( ( col2 ) AS INTEGER ) FROM tab1
----
-1770
-2040
-2880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8109
SELECT DISTINCT + COUNT( * ) * - MAX( - CAST( + col1 AS SIGNED ) ) FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT + COUNT ( * ) * - MAX ( - CAST ( + col1 AS INTEGER ) ) FROM tab2
----
153

query II rowsort
SELECT DISTINCT - + 97, + 12 AS col0 FROM tab0 AS cor0
----
-97
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT - COUNT( + - col0 ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8111
SELECT - COUNT ( + - col0 ) AS col2 FROM tab2 cor0
----
-3

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT + + col2 * + + 5 < - 19
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8114
SELECT - - MAX( DISTINCT - 74 ), - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-8114
SELECT - - MAX ( DISTINCT - 74 ), - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
-74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT + + MIN( DISTINCT - 44 ) FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-8115
SELECT + + MIN ( DISTINCT - 44 ) FROM tab0 AS cor0
----
-44

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE col2 / + + 86 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT - 59 + + + MIN( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8117
SELECT - 59 + + + MIN ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
-58

query II rowsort
SELECT ALL - 65 + col0, col1 AS col1 FROM tab2 AS cor0
----
-1
77
-19
51
10
67

query II rowsort
SELECT DISTINCT + 26, + col2 AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
26
10
26
47
26
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 + + col2 BETWEEN - + col1 AND + col1
----
15
81
47
87
21
10

query I rowsort
SELECT col1 * col2 FROM tab2 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8122
SELECT DISTINCT + col2 + - CAST( - col0 AS SIGNED ) * col2 + + 87 AS col0 FROM tab1 AS cor0
----
5079
5161
6343

skipif mysql # not compatible
query I rowsort label-8122
SELECT DISTINCT + col2 + - CAST ( - col0 AS INTEGER ) * col2 + + 87 AS col0 FROM tab1 AS cor0
----
5079
5161
6343

query I rowsort
SELECT DISTINCT + 84 + col1 AS col2 FROM tab1
----
131
89
98

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 + - - ( - - 51 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8125
SELECT DISTINCT col2 DIV 96 + 9 AS col2 FROM tab0
----
10
9

skipif mysql # not compatible
query I rowsort label-8125
SELECT DISTINCT col2 / 96 + 9 AS col2 FROM tab0
----
10
9

query II rowsort
SELECT DISTINCT - col1 AS col0, 75 AS col0 FROM tab2
----
-51
75
-67
75
-77
75

query III rowsort
SELECT * FROM tab0 WHERE + + col2 + col2 + 21 * + 31 * 18 * + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8128
SELECT ALL + col2 * - + CAST( + col1 AS SIGNED ) FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL + col2 * - + CAST ( + col1 AS INTEGER ) FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query II rowsort label-8129
SELECT DISTINCT + 48 AS col2, MAX( DISTINCT - col1 ) * - - 16 AS col1 FROM tab2 AS cor0
----
48
-816

skipif mysql # not compatible
query II rowsort label-8129
SELECT DISTINCT + 48 AS col2, MAX ( DISTINCT - col1 ) * - - 16 AS col1 FROM tab2 AS cor0
----
48
-816

query I rowsort
SELECT - + 10 * + 73 + 20 + col0 FROM tab1 AS cor0
----
-619
-625
-659

query I rowsort
SELECT ALL - col1 * + col1 * - 36 + - col2 FROM tab0 cor0
----
-63
15866
236149

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * + + col0 <> - col1 - - + col0 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + ( col0 ), 31 * - + 3 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT ALL MAX( + col0 ) - MIN( + - col1 ) AS col2 FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-8134
SELECT ALL MAX ( + col0 ) - MIN ( + - col1 ) AS col2 FROM tab1
----
138

query I rowsort
SELECT + 17 * + col0 - - - col1 FROM tab2
----
1011
1208
731

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 41 col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
41

query I rowsort
SELECT DISTINCT + - ( - 68 ) AS col1 FROM tab0 AS cor0
----
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 24 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * - + col0 * - col0 FROM tab1 AS cor0
----
249696
426275
563108

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT DISTINCT + + COUNT( * ) * + MAX( DISTINCT col1 ) FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT + + COUNT ( * ) * + MAX ( DISTINCT col1 ) FROM tab0 AS cor0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT COUNT( * ) * 23 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-8141
SELECT COUNT ( * ) * 23 FROM tab1
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8142
SELECT 96 DIV 89 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8142
SELECT 96 / 89 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT + MIN( DISTINCT + col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-8143
SELECT + MIN ( DISTINCT + col2 ) AS col1 FROM tab0
----
10

query I rowsort
SELECT DISTINCT - ( 73 ) AS col0 FROM tab1
----
-73

query II rowsort
SELECT ALL + col1 AS col0, 14 AS col0 FROM tab0
----
1
14
21
14
81
14

onlyif mysql # aggregate syntax: 
query II rowsort label-8146
SELECT + COUNT( * ) col0, + MAX( DISTINCT 74 ) col2 FROM tab1
----
3
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8146
SELECT + COUNT ( * ) col0, + MAX ( DISTINCT 74 ) col2 FROM tab1
----
3
74

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + col2 ) BETWEEN - col0 AND - 40
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE - col2 * - - col0 * col2 BETWEEN - col0 - + col2 + - - col0 / col2 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT + 40 + MIN( - col1 ) AS col0 FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-8149
SELECT + 40 + MIN ( - col1 ) AS col0 FROM tab0
----
-41

query II rowsort
SELECT ALL ( + col0 ) AS col2, 48 AS col2 FROM tab2
----
46
48
64
48
75
48

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 - + 24 * + col0 * + - col2 + 95 <= col0
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + col1 ) <> - col0 - - col0 + + + 9
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 * + + col1 FROM tab2 cor0
----
1173
3080
3886

query I rowsort
SELECT ALL + col2 * - 1 AS col2 FROM tab2 AS cor0
----
-23
-40
-58

query II rowsort
SELECT ALL + + 72 + + ( - col0 ) * 35 AS col1, - 98 FROM tab0 AS cor0
----
-2973
-98
-3323
-98
-453
-98

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8157
SELECT + col2 DIV + - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8157
SELECT + col2 / + - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 45 - col2 FROM tab1
----
-14
-23
-51

query I rowsort
SELECT DISTINCT col2 * + 13 FROM tab0
----
1287
130
611

query I rowsort
SELECT + 55 * ( + ( col2 ) ) * - + col2 - - col0 AS col1 FROM tab2
----
-184945
-29049
-87936

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT ALL COUNT( * ) * + + 11 - + - 7 + + 22 AS col0 FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-8161
SELECT ALL COUNT ( * ) * + + 11 - + - 7 + + 22 AS col0 FROM tab0
----
62

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT ( + col0 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT + 57 - + ( + + 3 ) + - + COUNT( * ) FROM tab0 WHERE NULL = - col0
----
54

skipif mysql # not compatible
query I rowsort label-8163
SELECT + 57 - + ( + + 3 ) + - + COUNT ( * ) FROM tab0 WHERE NULL = - col0
----
54

query I rowsort
SELECT + col0 * col0 + - col2 FROM tab1 AS cor0
----
2505
7166
8213

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT DISTINCT - 23 + COUNT( * ) FROM tab2 cor0
----
-20

skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT - 23 + COUNT ( * ) FROM tab2 cor0
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-8166
SELECT DISTINCT - 99 DIV 72 + + col1 + - col2 FROM tab1 AS cor0
----
-22
-55
-83

skipif mysql # not compatible
query I rowsort label-8166
SELECT DISTINCT - 99 / 72 + + col1 + - col2 FROM tab1 AS cor0
----
-22
-55
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 + + col0 + col0 + - col1 col0 FROM tab2 AS cor0
----
-9
1
33

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 ) > NULL
----

query II rowsort
SELECT ALL col0 AS col0, col0 + ( 17 ) AS col1 FROM tab2 AS cor0
----
46
63
64
81
75
92

query I rowsort
SELECT DISTINCT + 23 * - col1 + + col1 FROM tab0 AS cor0 WHERE col2 * + 61 IS NOT NULL
----
-1782
-22
-462

onlyif mysql # DIV for integer division: 
query I rowsort label-8171
SELECT - col0 DIV + col2 + + - col1 FROM tab2 AS cor0
----
-53
-68
-78

skipif mysql # not compatible
query I rowsort label-8171
SELECT - col0 / + col2 + + - col1 FROM tab2 AS cor0
----
-53
-68
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 20 * + + 89 col2 FROM tab0 AS cor0
----
-1780
-1780
-1780

query I rowsort
SELECT col2 * - ( - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT DISTINCT ( SUM( col0 ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT ( SUM ( col0 ) ) FROM tab0
----
199

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NULL IS NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - + col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 WHERE NOT - 6 <= NULL
----

query I rowsort
SELECT - 49 + col1 FROM tab2
----
18
2
28

query I rowsort
SELECT + + col1 + + col1 * + + col2 AS col2 FROM tab2 AS cor0
----
1224
3157
3953

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT + + SUM( + 46 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
414

skipif mysql # not compatible
query I rowsort label-8180
SELECT + + SUM ( + 46 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
414

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE - 49 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT DISTINCT - + ( col1 ) * col0 * col0 + - 28 + + - col0 AS col1 FROM tab0 AS cor0
----
-159064
-18268
-9534

query I rowsort
SELECT - ( - - 47 ) + + 20 * col1 FROM tab1 AS cor0
----
233
53
893

query I rowsort
SELECT 4 + col0 * + + col0 AS col0 FROM tab0 cor0
----
229
7573
9413

onlyif mysql # DIV for integer division: 
query II rowsort label-8185
SELECT - col1 + + col0 DIV + 11, - 88 AS col2 FROM tab0 AS cor0
----
-14
-88
-80
-88
7
-88

skipif mysql # not compatible
query II rowsort label-8185
SELECT - col1 + + col0 / + 11, - 88 AS col2 FROM tab0 AS cor0
----
-14
-88
-80
-88
7
-88

query I rowsort
SELECT ALL - col2 * + 77 + - + 22 * - + col0 AS col0 FROM tab0 AS cor0
----
-3289
-5489
1144

query I rowsort
SELECT + 87 + col2 FROM tab1 AS cor0
----
146
155
183

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT + + 83 * + + COUNT( * ) + + MAX( ALL - + col0 ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-8188
SELECT + + 83 * + + COUNT ( * ) + + MAX ( ALL - + col0 ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 26 + - + 12 col1 FROM tab2 AS cor0
----
1184
1652
1938

query I rowsort
SELECT DISTINCT col1 - + - col0 AS col0 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT + + 16 - - - 91 FROM tab2 AS cor0 WHERE 35 / + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8192
SELECT + col0, col1 * - CAST( - - col1 AS SIGNED ) AS col1 FROM tab0
----
15
-6561
87
-441
97
-1

skipif mysql # not compatible
query II rowsort label-8192
SELECT + col0, col1 * - CAST ( - - col1 AS INTEGER ) AS col1 FROM tab0
----
15
-6561
87
-441
97
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8193
SELECT + 19, CAST( NULL AS SIGNED ) * - + 18 AS col0 FROM tab0
----
19
NULL
19
NULL
19
NULL

skipif mysql # not compatible
query II rowsort label-8193
SELECT + 19, CAST ( NULL AS INTEGER ) * - + 18 AS col0 FROM tab0
----
19
NULL
19
NULL
19
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( - 30 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT ALL + 32 * 1 * + MIN( col0 ) AS col1 FROM tab2
----
1472

skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL + 32 * 1 * + MIN ( col0 ) AS col1 FROM tab2
----
1472

onlyif mysql # DIV for integer division: 
query I rowsort label-8196
SELECT DISTINCT + col0 DIV - - col2 AS col1 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8196
SELECT DISTINCT + col0 / - - col2 AS col1 FROM tab1 cor0
----
0
1

query I rowsort
SELECT + ( + 26 ) AS col1 FROM tab1 cor0
----
26
26
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8198
SELECT col0 FROM tab1 AS cor0 WHERE NOT + 82 + col0 - col0 / - col1 * + CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-8198
SELECT col0 FROM tab1 AS cor0 WHERE NOT + 82 + col0 - col0 / - col1 * + CAST ( NULL AS INTEGER ) = NULL
----

query I rowsort
SELECT col0 * + 59 AS col1 FROM tab2
----
2714
3776
4425

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8200
SELECT + 26 * CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8200
SELECT + 26 * CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( 95 ) AS col1 FROM tab2
----
95
95
95

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 IN ( + 27 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8203
SELECT ALL + 5 DIV - COUNT( * ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8203
SELECT ALL + 5 / - COUNT ( * ) FROM tab2
----
-1

query I rowsort
SELECT ALL + 99 + - col0 FROM tab1
----
14
48
8

onlyif mysql # DIV for integer division: 
query II rowsort label-8205
SELECT DISTINCT col1 AS col0, col0 * col0 DIV + col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

skipif mysql # not compatible
query II rowsort label-8205
SELECT DISTINCT col1 AS col0, col0 * col0 / + col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT - - MAX( ALL - 51 ) AS col0 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8206
SELECT - - MAX ( ALL - 51 ) AS col0 FROM tab0 AS cor0
----
-51

query I rowsort
SELECT DISTINCT - - 11 + col0 AS col1 FROM tab2 cor0
----
57
75
86

query II rowsort
SELECT DISTINCT + 6, - col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - 2 + - + col1 - - col2 * + 28 FROM tab2 AS cor0
----
1041
1555
591

onlyif mysql # aggregate syntax: 
query II rowsort label-8210
SELECT + 99 + + + COUNT( * ) AS col2, + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
108
9

skipif mysql # not compatible
query II rowsort label-8210
SELECT + 99 + + + COUNT ( * ) AS col2, + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
108
9

query II rowsort
SELECT + + 12 * + 76, col0 FROM tab1 AS cor0
----
912
51
912
85
912
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * + col2 + - col1 * - - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col1 * + col0 + + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 52 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 47 col0 FROM tab0 AS cor0
----
-37
0
52

onlyif mysql # DIV for integer division: 
query I rowsort label-8216
SELECT + 68 DIV + ( ( - col2 ) ) FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8216
SELECT + 68 / + ( ( - col2 ) ) FROM tab2 AS cor0
----
-1
-1
-2

query I rowsort
SELECT + + col2 * + - col0 - - 71 FROM tab1 AS cor0
----
-4825
-4944
-6117

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT DISTINCT 97 + + + MAX( + col1 ) FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-8218
SELECT DISTINCT 97 + + + MAX ( + col1 ) FROM tab1
----
144

query I rowsort
SELECT col2 - - + 34 FROM tab0
----
133
44
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + + col2 col2 FROM tab1
----
118
136
192

query III rowsort
SELECT * FROM tab0 WHERE - ( - - col1 ) NOT IN ( + col2 - - col2 * col0, col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 + + + 78 col0 FROM tab0
----
-19
-19
-19

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT ALL ( COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - col1 * col2 - col0 FROM tab2 AS cor0
----
-1219
-3144
-3961

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT ALL MIN( - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL MIN ( - col2 ) FROM tab2 AS cor0
----
-58

query II rowsort
SELECT col0 * + col2 + - + 91, + col2 AS col0 FROM tab0 AS cor0
----
614
47
779
10
9512
99

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 96 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT ALL - 44 * col1 FROM tab1
----
-2068
-220
-616

query I rowsort
SELECT DISTINCT - col1 * - - col1 * col0 AS col2 FROM tab1
----
-201019
-2125
-9996

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 NOT BETWEEN + 82 AND + 97
----

query II rowsort
SELECT DISTINCT + 45 AS col0, - col0 AS col1 FROM tab1
----
45
-51
45
-85
45
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT + - SUM( - col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8233
SELECT + - SUM ( - col1 ) FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT + - SUM( DISTINCT - 27 ) FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-8234
SELECT + - SUM ( DISTINCT - 27 ) FROM tab1 AS cor0
----
27

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 86 - ( + - col1 ) * - col0 BETWEEN + + col0 * + col1 + col2 AND col2 + - col2 + 98 + - col2 * - col2 + col0 * + + ( - col1 )
----

query II rowsort
SELECT 66 AS col2, col0 FROM tab1 AS cor0
----
66
51
66
85
66
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 31 + + 49 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8238
SELECT ALL - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8238
SELECT ALL - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT DISTINCT 4 * - SUM( + col1 ) FROM tab2
----
-780

skipif mysql # not compatible
query I rowsort label-8239
SELECT DISTINCT 4 * - SUM ( + col1 ) FROM tab2
----
-780

onlyif mysql # DIV for integer division: 
query I rowsort label-8240
SELECT ALL 89 DIV - col2 AS col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL 89 / - col2 AS col0 FROM tab1
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8241
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8241
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT 21 * - SUM( - - col1 ) + MIN( ALL 98 ) FROM tab2
----
-3997

skipif mysql # not compatible
query I rowsort label-8242
SELECT 21 * - SUM ( - - col1 ) + MIN ( ALL 98 ) FROM tab2
----
-3997

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT + COUNT( * ) + ( 63 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8243
SELECT + COUNT ( * ) + ( 63 ) FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8244
SELECT + + CAST( - + col1 AS SIGNED ) + + 24 FROM tab1 AS cor0
----
-23
10
19

skipif mysql # not compatible
query I rowsort label-8244
SELECT + + CAST ( - + col1 AS INTEGER ) + + 24 FROM tab1 AS cor0
----
-23
10
19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 NOT IN ( col1, + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( + 77 ) + + col2 FROM tab0 cor0
----
124
176
87

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT ALL COUNT( * ) + MAX( - col0 ) AS col2 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-8248
SELECT ALL COUNT ( * ) + MAX ( - col0 ) AS col2 FROM tab2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT DISTINCT - MIN( + + 98 ) FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT - MIN ( + + 98 ) FROM tab1
----
-98

query I rowsort
SELECT + ( ( - col0 ) ) FROM tab2
----
-46
-64
-75

query I rowsort
SELECT + 42 * + ( 93 ) AS col2 FROM tab0
----
3906
3906
3906

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8252
SELECT + MIN( ALL col2 ) + + + COUNT( * ) DIV 96 AS col0 FROM tab1 WHERE NULL IS NOT NULL OR NOT col2 IS NULL
----
59

skipif mysql # not compatible
query I rowsort label-8252
SELECT + MIN ( ALL col2 ) + + + COUNT ( * ) / 96 AS col0 FROM tab1 WHERE NULL IS NOT NULL OR NOT col2 IS NULL
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT - + MIN( col2 ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8253
SELECT - + MIN ( col2 ) AS col1 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT 3 * + 52 + + + SUM( - - 45 ) col0 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8254
SELECT 3 * + 52 + + + SUM ( - - 45 ) col0 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----
NULL

query I rowsort
SELECT DISTINCT + - 83 AS col2 FROM tab2 cor0
----
-83

query I rowsort
SELECT DISTINCT col2 * + 94 AS col2 FROM tab1 AS cor0
----
5546
6392
9024

query I rowsort
SELECT 84 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT - 95 * - col1 * - col1 * - col2 + + 76 AS col2 FROM tab1 AS cor0
----
140201
14270216
1787596

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8260
SELECT DISTINCT + COUNT( * ) + - MAX( - 71 ) * - ( MIN( - CAST( NULL AS SIGNED ) ) ) col2, 36 FROM tab2 AS cor0
----
NULL
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8260
SELECT DISTINCT + COUNT ( * ) + - MAX ( - 71 ) * - ( MIN ( - CAST ( NULL AS INTEGER ) ) ) col2, 36 FROM tab2 AS cor0
----
NULL
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8261
SELECT ALL + CAST( NULL AS SIGNED ) - - col1 + - col1 FROM tab2 cor0 WHERE - col1 + + - 82 / - col1 * - + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL + CAST ( NULL AS INTEGER ) - - col1 + - col1 FROM tab2 cor0 WHERE - col1 + + - 82 / - col1 * - + col0 IS NULL
----

query I rowsort
SELECT + 9 * + + col2 + col2 FROM tab0 AS cor0
----
100
470
990

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT - MIN( ALL - 11 ) * COUNT( * ) AS col0 FROM tab0 WHERE - + col0 - - 35 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8263
SELECT - MIN ( ALL - 11 ) * COUNT ( * ) AS col0 FROM tab0 WHERE - + col0 - - 35 IS NULL
----
NULL

query I rowsort
SELECT col2 * + - col1 AS col0 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8265
SELECT - CAST( - + ( 91 ) AS SIGNED ) FROM tab2
----
91
91
91

skipif mysql # not compatible
query I rowsort label-8265
SELECT - CAST ( - + ( 91 ) AS INTEGER ) FROM tab2
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT COUNT( * ) * - - COUNT( * ) col0 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8266
SELECT COUNT ( * ) * - - COUNT ( * ) col0 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT DISTINCT + ( + - COUNT( * ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8267
SELECT DISTINCT + ( + - COUNT ( * ) ) FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8268
SELECT col2 DIV col2 * col0 AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8268
SELECT col2 / col2 * col0 AS col0 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8269
SELECT DISTINCT col0, + ( - CAST( NULL AS SIGNED ) ) FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-8269
SELECT DISTINCT col0, + ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT + + 48 + 65 FROM tab0 AS cor0
----
113
113
113

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - + col0 * + col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + 18 * - - 17 * col2 FROM tab1 AS cor0
----
18054
20808
29376

query I rowsort
SELECT + col2 + + 43 FROM tab1 cor0
----
102
111
139

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT DISTINCT - COUNT( * ) + + ( - ( COUNT( * ) ) ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8274
SELECT DISTINCT - COUNT ( * ) + + ( - ( COUNT ( * ) ) ) FROM tab0 cor0
----
-6

query I rowsort
SELECT - + 91 * - + 74 + 70 AS col0 FROM tab2 AS cor0
----
6804
6804
6804

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8276
SELECT ALL CAST( col2 AS SIGNED ) * + + col2 AS col2 FROM tab2
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-8276
SELECT ALL CAST ( col2 AS INTEGER ) * + + col2 AS col2 FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT ALL - SUM( - col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8277
SELECT ALL - SUM ( - col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 - col0 * + 14 col1 FROM tab1 AS cor0
----
-1206
-1290
-730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8279
SELECT ( CAST( - - col0 AS SIGNED ) ) - col1 FROM tab2 AS cor0
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-8279
SELECT ( CAST ( - - col0 AS INTEGER ) ) - col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8280
SELECT + col1 - - + 36 DIV col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8280
SELECT + col1 - - + 36 / col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT - + SUM( col0 ) - - + 35 AS col2 FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-8281
SELECT - + SUM ( col0 ) - - + 35 AS col2 FROM tab1 AS cor0
----
-192

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8282
SELECT + - 70 DIV + - COUNT( * ) col2, - 97 AS col0 FROM tab2 AS cor0
----
23
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8282
SELECT + - 70 / + - COUNT ( * ) col2, - 97 AS col0 FROM tab2 AS cor0
----
23
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 88 - col2 NOT BETWEEN NULL AND - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8284
SELECT ALL - col0 DIV - - 12 FROM tab1 AS cor0
----
-4
-7
-7

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL - col0 / - - 12 FROM tab1 AS cor0
----
-4
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT ALL COUNT( - - 21 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8285
SELECT ALL COUNT ( - - 21 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8286
SELECT + 98 AS col2, + SUM( - - CAST( - col2 AS SIGNED ) ) AS col0 FROM tab1
----
98
-223

skipif mysql # not compatible
query II rowsort label-8286
SELECT + 98 AS col2, + SUM ( - - CAST ( - col2 AS INTEGER ) ) AS col0 FROM tab1
----
98
-223

query II rowsort
SELECT + col0 AS col2, 4 - + col0 FROM tab2
----
46
-42
64
-60
75
-71

query II rowsort
SELECT col0 AS col0, + 6 * + col1 * col0 * - col1 * + col0 AS col2 FROM tab2
----
46
-33022296
64
-145711104
75
-151503750

query II rowsort
SELECT col1, 9 FROM tab1 AS cor0
----
14
9
47
9
5
9

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8291
SELECT col1, 9 * 91 DIV - 38 + 1 AS col1 FROM tab0 AS cor0
----
1
-20
21
-20
81
-20

skipif mysql # not compatible
query II rowsort label-8291
SELECT col1, 9 * 91 / - 38 + 1 AS col1 FROM tab0 AS cor0
----
1
-20
21
-20
81
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-8292
SELECT 66 col0, COUNT( * ) FROM tab0 AS cor0
----
66
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8292
SELECT 66 col0, COUNT ( * ) FROM tab0 AS cor0
----
66
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8293
SELECT - CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab2 AS cor0 WHERE NOT + 10 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8293
SELECT - CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab2 AS cor0 WHERE NOT + 10 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8294
SELECT col1 DIV col2 - - 82 DIV - col2 FROM tab0
----
-6
0
0

skipif mysql # not compatible
query I rowsort label-8294
SELECT col1 / col2 - - 82 / - col2 FROM tab0
----
-6
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 40 - col2 * col2 ) >= - col0 / col2
----

query I rowsort
SELECT ALL - 4 + + ( - 57 - - 77 * 28 ) AS col0 FROM tab0
----
2095
2095
2095

query I rowsort
SELECT + col1 FROM tab2 WHERE - 97 * + col0 + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 32 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8299
SELECT DISTINCT * FROM tab2 WHERE 18 NOT BETWEEN 92 AND ( + CAST( NULL AS DECIMAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8299
SELECT DISTINCT * FROM tab2 WHERE 18 NOT BETWEEN 92 AND ( + CAST ( NULL AS REAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8300
SELECT col0 DIV col1 + col1 FROM tab1
----
17
22
48

skipif mysql # not compatible
query I rowsort label-8300
SELECT col0 / col1 + col1 FROM tab1
----
17
22
48

query I rowsort
SELECT ALL - 75 * + ( - 62 ) + 25 AS col1 FROM tab1
----
4675
4675
4675

query I rowsort
SELECT - 38 * col1 AS col2 FROM tab2 WHERE NULL BETWEEN ( + 26 * col2 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT DISTINCT + COUNT( DISTINCT - ( 99 ) ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8303
SELECT DISTINCT + COUNT ( DISTINCT - ( 99 ) ) AS col0 FROM tab0
----
1

query III rowsort
SELECT * FROM tab2 WHERE 7 = col2 / - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 8 = + col0 * 55
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( + 80 ) * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 - + col1 * + col2 AS col2 FROM tab0 WHERE NOT col2 - col2 <= ( ( - 71 ) * col0 )
----
-189
-3726
-98

query I rowsort
SELECT ALL col2 + - col0 FROM tab0 WHERE NOT ( 30 ) IS NOT NULL
----

query I rowsort
SELECT ALL ( - 29 ) FROM tab2 WHERE NOT ( col1 ) <> - col0
----

query I rowsort
SELECT 66 + ( 57 + + col0 ) FROM tab0
----
138
210
220

query I rowsort
SELECT ALL - col2 + - col1 * - col1 AS col0 FROM tab1
----
-34
100
2141

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT DISTINCT COUNT( * ) * + 65 AS col1 FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-8312
SELECT DISTINCT COUNT ( * ) * + 65 AS col1 FROM tab0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT + COUNT( * ) * + 78 + 34 AS col0 FROM tab1
----
268

skipif mysql # not compatible
query I rowsort label-8313
SELECT + COUNT ( * ) * + 78 + 34 AS col0 FROM tab1
----
268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8314
SELECT + ( CAST( NULL AS SIGNED ) ) * - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8314
SELECT + ( CAST ( NULL AS INTEGER ) ) * - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 34 * col1 FROM tab1
----
-1598
-170
-476

query I rowsort
SELECT - col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * - col0 AS col0 FROM tab0 WHERE col0 * col1 NOT BETWEEN 85 AND 92 + col2
----
225
7569

query III rowsort
SELECT * FROM tab2 WHERE col1 / col0 + col1 IS NULL
----

query I rowsort
SELECT 38 + - 83 FROM tab1
----
-45
-45
-45

query I rowsort
SELECT ALL - col1 - + 89 FROM tab2 WHERE + col0 NOT IN ( col2 )
----
-140
-156
-166

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8322
SELECT col2 DIV + 85 + - col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8322
SELECT col2 / + 85 + - col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL - 25 + - col0 * + 98 FROM tab1 AS cor0 WHERE NOT 88 + col0 <> col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8324
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8324
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) = NULL
----
0

query I rowsort
SELECT col0 * - 33 AS col0 FROM tab0 cor0
----
-2871
-3201
-495

onlyif mysql # DIV for integer division: 
query I rowsort label-8326
SELECT col2 - col0 DIV col0 AS col0 FROM tab0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-8326
SELECT col2 - col0 / col0 AS col0 FROM tab0
----
46
9
98

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 WHERE ( NULL ) >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 65 / col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT col2 - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 89 AS col0 FROM tab1 cor0
----
89

query I rowsort
SELECT + ( + col2 ) * + col1 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND 36
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8333
SELECT ALL - + ( col1 ) DIV - col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL - + ( col1 ) / - col2 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8334
SELECT ALL * FROM tab2 AS cor0 WHERE ( CAST( + col2 AS SIGNED ) ) * - 96 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8334
SELECT ALL * FROM tab2 AS cor0 WHERE ( CAST ( + col2 AS INTEGER ) ) * - 96 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 ) = - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT + MAX( - + col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-8336
SELECT + MAX ( - + col2 ) FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE NOT ( - 56 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8337
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( - 56 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT ALL - SUM( DISTINCT - + col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-8338
SELECT ALL - SUM ( DISTINCT - + col0 ) FROM tab1
----
227

query I rowsort
SELECT - 67 * - + col2 FROM tab1
----
3953
4556
6432

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 + - col1 ) NOT BETWEEN + col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT DISTINCT + MAX( ALL - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-8341
SELECT DISTINCT + MAX ( ALL - col0 ) FROM tab2
----
-46

query III rowsort
SELECT * FROM tab2 WHERE ( + 85 ) IS NULL OR NOT + col2 - col1 * + col0 NOT IN ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 - col1 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 * + col0 + + col1 * 73 ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT + 15 * + - COUNT( * ) - - 86 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-8345
SELECT + 15 * + - COUNT ( * ) - - 86 FROM tab0 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT ALL - COUNT( col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8346
SELECT ALL - COUNT ( col0 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + 91 FROM tab2 AS cor0 WHERE NOT 61 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT ALL - ( COUNT( * ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL - ( COUNT ( * ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT + col0 + + 81 * + - col0 + col1 FROM tab0
----
-1119
-6939
-7759

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT ALL + - COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-8350
SELECT ALL + - COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
-9

query I rowsort
SELECT DISTINCT 7 * + col1 FROM tab1 AS cor0
----
329
35
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8352
SELECT ALL - CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) > ( + col2 + ( - 8 ) )
----

skipif mysql # not compatible
query I rowsort label-8352
SELECT ALL - CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) > ( + col2 + ( - 8 ) )
----

query I rowsort
SELECT - 86 FROM tab0 AS cor0 WHERE ( + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT - MAX( ALL + + col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8354
SELECT - MAX ( ALL + + col1 ) AS col1 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8355
SELECT + COUNT( * ) DIV - 53 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8355
SELECT + COUNT ( * ) / - 53 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 NOT IN ( + ( 21 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - ( + 52 ) + - - col1 FROM tab1 AS cor0
----
-38
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT DISTINCT - ( - MIN( DISTINCT - col1 ) ) col0 FROM tab2 cor0 WHERE 72 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8358
SELECT DISTINCT - ( - MIN ( DISTINCT - col1 ) ) col0 FROM tab2 cor0 WHERE 72 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT DISTINCT + + 41 * + COUNT( * ) + 51 AS col2 FROM tab1 cor0
----
174

skipif mysql # not compatible
query I rowsort label-8359
SELECT DISTINCT + + 41 * + COUNT ( * ) + 51 AS col2 FROM tab1 cor0
----
174

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - + 57 + + + 26 ) >= ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8361
SELECT DISTINCT + col2 + CAST( - col1 AS SIGNED ) AS col0 FROM tab0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-8361
SELECT DISTINCT + col2 + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0
----
-11
-34
98

query I rowsort
SELECT DISTINCT + 74 + col2 + col2 + - col1 * + ( + col2 ) AS col0 FROM tab0
----
-116
-3639
173

query I rowsort
SELECT DISTINCT 93 * + - 99 AS col2 FROM tab1
----
-9207

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT ALL + COUNT( * ) * - 90 + - 90 AS col0 FROM tab2 cor0
----
-360

skipif mysql # not compatible
query I rowsort label-8364
SELECT ALL + COUNT ( * ) * - 90 + - 90 AS col0 FROM tab2 cor0
----
-360

query I rowsort
SELECT + 6 + + + 44 AS col0 FROM tab1 AS cor0
----
50
50
50

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( 81 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8367
SELECT col2 * + - col1 * - CAST( + col1 AS SIGNED ) * - col0 + col1 FROM tab2 AS cor0
----
-15178163
-19527083
-2751807

skipif mysql # not compatible
query I rowsort label-8367
SELECT col2 * + - col1 * - CAST ( + col1 AS INTEGER ) * - col0 + col1 FROM tab2 AS cor0
----
-15178163
-19527083
-2751807

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8368
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * + col0 IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8368
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * + col0 IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8369
SELECT col1 DIV + 92 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8369
SELECT col1 / + 92 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + 39 * + + col0 * - - col2 / - 36 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 50 FROM tab1 WHERE NOT - + col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8372
SELECT ALL 95 FROM tab1 WHERE NULL BETWEEN + - col1 * + ( - 82 ) * col1 AND + 36 / - 32 + + col1 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL 95 FROM tab1 WHERE NULL BETWEEN + - col1 * + ( - 82 ) * col1 AND + 36 / - 32 + + col1 * + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - + col0 * - col0 >= NULL AND NOT NULL < ( + 38 + col1 * + 88 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8374
SELECT DISTINCT + + col1 DIV col1 + 42 AS col1, col0 FROM tab1 cor0
----
43
51
43
85
43
91

skipif mysql # not compatible
query II rowsort label-8374
SELECT DISTINCT + + col1 / col1 + 42 AS col1, col0 FROM tab1 cor0
----
43
51
43
85
43
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT - - MIN( DISTINCT + 33 ) AS col1 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-8375
SELECT - - MIN ( DISTINCT + 33 ) AS col1 FROM tab0 AS cor0
----
33

query II rowsort
SELECT + + 46 AS col2, 27 * + col0 + - - col2 AS col1 FROM tab0 AS cor0
----
46
2359
46
2718
46
452

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT + 57 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-8377
SELECT + 57 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8378
SELECT - CAST( - - 43 AS SIGNED ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-8378
SELECT - CAST ( - - 43 AS INTEGER ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT COUNT( * ) * + - 79 FROM tab1 cor0
----
-237

skipif mysql # not compatible
query I rowsort label-8379
SELECT COUNT ( * ) * + - 79 FROM tab1 cor0
----
-237

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + col0 + + 93 - + col0 + + 67 <> - col0 * - 8 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT ALL + 35 * + 81 * + - COUNT( * ) AS col1 FROM tab0
----
-8505

skipif mysql # not compatible
query I rowsort label-8381
SELECT ALL + 35 * + 81 * + - COUNT ( * ) AS col1 FROM tab0
----
-8505

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT + 13 * - COUNT( * ) * - 60 AS col0 FROM tab0
----
2340

skipif mysql # not compatible
query I rowsort label-8382
SELECT + 13 * - COUNT ( * ) * - 60 AS col0 FROM tab0
----
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT DISTINCT COUNT( - col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8383
SELECT DISTINCT COUNT ( - col0 ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8384
SELECT + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT + + 93 + - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) IN ( + col0 + + col2 )
----

skipif mysql # not compatible
query I rowsort label-8384
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT + + 93 + - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) IN ( + col0 + + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT - 87 * - 7 BETWEEN NULL AND col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col2 AS col0, - 82 FROM tab2
----
23
-82
40
-82
58
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8387
SELECT ALL - - 12 DIV - COUNT( * ) FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-8387
SELECT ALL - - 12 / - COUNT ( * ) FROM tab2 AS cor0
----
-4

query I rowsort
SELECT 33 * - - 97 FROM tab1 AS cor0
----
3201
3201
3201

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT - MAX( - + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8389
SELECT - MAX ( - + col2 ) FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT ALL + ( COUNT( DISTINCT - col1 ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8390
SELECT ALL + ( COUNT ( DISTINCT - col1 ) ) AS col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT + 49 AS col0, ( + - col0 ) FROM tab0 AS cor0
----
49
-15
49
-87
49
-97

query I rowsort
SELECT DISTINCT + ( col0 ) * - - col1 + 41 AS col1 FROM tab1 AS cor0
----
4318
466
755

query I rowsort
SELECT ALL 80 + + - 33 * col1 FROM tab2 AS cor0
----
-1603
-2131
-2461

query I rowsort
SELECT - col0 + - - ( - 32 ) FROM tab0 cor0
----
-119
-129
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT - - MAX( + + col1 ) + + ( - - 50 ) AS col0 FROM tab0 AS cor0
----
131

skipif mysql # not compatible
query I rowsort label-8395
SELECT - - MAX ( + + col1 ) + + ( - - 50 ) AS col0 FROM tab0 AS cor0
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-8396
SELECT ALL 19 DIV + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8396
SELECT ALL 19 / + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE ( - col0 ) < col2 / + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8398
SELECT ALL col2 + CAST( - col1 AS SIGNED ) AS col0, col0 FROM tab1
----
21
91
54
85
82
51

skipif mysql # not compatible
query II rowsort label-8398
SELECT ALL col2 + CAST ( - col1 AS INTEGER ) AS col0, col0 FROM tab1
----
21
91
54
85
82
51

query I rowsort
SELECT ALL + col0 + + 96 AS col1 FROM tab1
----
147
181
187

query I rowsort
SELECT - 58 + + col2 FROM tab0
----
-11
-48
41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8401
SELECT 82 * - - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8401
SELECT 82 * - - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col2 AND ( + col1 + + 96 )
----

query I rowsort
SELECT ALL col0 - + - 71 FROM tab2
----
117
135
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8404
SELECT - 56 * + 6 * - - col0 / + CAST( NULL AS SIGNED ) * - col2 / + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8404
SELECT - 56 * + 6 * - - col0 / + CAST ( NULL AS INTEGER ) * - col2 / + col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, - col2 * - col2 - + ( + 41 ) AS col1 FROM tab1
----
51
9175
85
3440
91
4583

onlyif mysql # aggregate syntax: 
query II rowsort label-8406
SELECT DISTINCT + 13, + MIN( 2 ) + - 23 AS col0 FROM tab1
----
13
-21

skipif mysql # not compatible
query II rowsort label-8406
SELECT DISTINCT + 13, + MIN ( 2 ) + - 23 AS col0 FROM tab1
----
13
-21

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( col0 )
----

query I rowsort
SELECT + 23 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) = ( - + 90 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
70

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT ( ( NULL ) IS NULL )
----

query I rowsort
SELECT - 72 * col1 - 69 * + col2 FROM tab2 AS cor0
----
-5259
-8304
-8826

query I rowsort
SELECT ALL - 85 FROM tab0 cor0
----
-85
-85
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-8414
SELECT ALL col0 DIV 47 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL col0 / 47 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT - col2 * - 9 FROM tab1
----
531
612
864

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT DISTINCT MAX( - ( col0 ) ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-8416
SELECT DISTINCT MAX ( - ( col0 ) ) FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8417
SELECT CAST( col1 AS SIGNED ) * - col0 AS col2 FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-8417
SELECT CAST ( col1 AS INTEGER ) * - col0 AS col2 FROM tab0
----
-1215
-1827
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 80 col1 FROM tab1
----
4720
5440
7680

query III rowsort
SELECT * FROM tab2 WHERE NOT - 46 * - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8420
SELECT + COUNT( * ) AS col2, SUM( DISTINCT - - col2 ) FROM tab0
----
3
156

skipif mysql # not compatible
query II rowsort label-8420
SELECT + COUNT ( * ) AS col2, SUM ( DISTINCT - - col2 ) FROM tab0
----
3
156

query I rowsort
SELECT + 11 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + + 25 + - col1 AS col2 FROM tab1 AS cor0
----
-22
11
20

query I rowsort
SELECT + 60 + col0 AS col0 FROM tab0 AS cor0
----
147
157
75

query I rowsort
SELECT 75 + + - col1 FROM tab0
----
-6
54
74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8425
SELECT - col2 + 91 + ( + col2 ) - - + col2 * - col0 + - CAST( - - col2 AS SIGNED ) + - col1 DIV col2 * + 41 * 76 AS col1 FROM tab2
----
-5625
-7222
-7433

skipif mysql # not compatible
query I rowsort label-8425
SELECT - col2 + 91 + ( + col2 ) - - + col2 * - col0 + - CAST ( - - col2 AS INTEGER ) + - col1 / col2 * + 41 * 76 AS col1 FROM tab2
----
-5625
-7222
-7433

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT COUNT( * ) + + 49 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-8426
SELECT COUNT ( * ) + + 49 FROM tab1
----
52

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 31 + - - col1 FROM tab0 AS cor0 WHERE NOT col2 <> col0
----

query I rowsort
SELECT ALL col1 + col0 + + col2 - - + col1 * - + col0 FROM tab2 cor0
----
-2226
-4747
-4825

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT DISTINCT + ( - - COUNT( * ) ) / 75 * COUNT( * ) + SUM( ALL + 50 ) FROM tab2 cor0 WHERE NOT NULL = ( - - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8430
SELECT DISTINCT + ( - - COUNT ( * ) ) / 75 * COUNT ( * ) + SUM ( ALL + 50 ) FROM tab2 cor0 WHERE NOT NULL = ( - - col2 )
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 * - col0 / - + 64 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8432
SELECT - CAST( col2 AS SIGNED ), + col0 AS col2 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

skipif mysql # not compatible
query II rowsort label-8432
SELECT - CAST ( col2 AS INTEGER ), + col0 AS col2 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8433
SELECT CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8433
SELECT CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT DISTINCT 13 + + COUNT( * ) AS col0 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-8434
SELECT DISTINCT 13 + + COUNT ( * ) AS col0 FROM tab0
----
16

query I rowsort
SELECT ALL + col2 + 80 + + col0 AS col1 FROM tab0
----
142
177
276

query I rowsort
SELECT 52 - + + 22 * + + col0 FROM tab1
----
-1070
-1818
-1950

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT DISTINCT MAX( col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8437
SELECT DISTINCT MAX ( col1 ) AS col2 FROM tab1
----
47

query I rowsort
SELECT + 33 - - col0 * col2 FROM tab2
----
1091
2593
4383

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8439
SELECT ALL - ( + + col1 ) AS col0, CAST( + col0 AS SIGNED ) FROM tab2
----
-51
46
-67
75
-77
64

skipif mysql # not compatible
query II rowsort label-8439
SELECT ALL - ( + + col1 ) AS col0, CAST ( + col0 AS INTEGER ) FROM tab2
----
-51
46
-67
75
-77
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8440
SELECT ALL + col0 - 4 DIV + - col1 col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8440
SELECT ALL + col0 - 4 / + - col1 col2 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL >= - col2 * - col1 + + + 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT DISTINCT MAX( ALL + + col0 ) - + 38 AS col0 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-8442
SELECT DISTINCT MAX ( ALL + + col0 ) - + 38 AS col0 FROM tab1 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT + - MIN( col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8443
SELECT + - MIN ( col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 col1 FROM tab2 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8445
SELECT - + col1 DIV + 74 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8445
SELECT - + col1 / + 74 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ( - ( - ( - + 75 ) ) ) FROM tab2 AS cor0
----
-75
-75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8447
SELECT DISTINCT - 52 * col0 FROM tab1 WHERE col2 * + 99 / col0 - + CAST( + + col2 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-8447
SELECT DISTINCT - 52 * col0 FROM tab1 WHERE col2 * + 99 / col0 - + CAST ( + + col2 AS INTEGER ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT - + SUM( col1 ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8448
SELECT - + SUM ( col1 ) FROM tab0 cor0
----
-103

query I rowsort
SELECT + - 44 * - col1 AS col0 FROM tab0 AS cor0
----
3564
44
924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 39 col1 FROM tab2 AS cor0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT + + MAX( + col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8451
SELECT + + MAX ( + col0 ) AS col2 FROM tab1 AS cor0
----
91

query I rowsort
SELECT - + 21 * - - col2 FROM tab1 AS cor0
----
-1239
-1428
-2016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 col2 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8454
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT + + 73 FROM tab1 WHERE NOT + 3 * - + col2 + + - 94 IS NOT NULL
----

query I rowsort
SELECT ALL + 41 + - + col1 AS col1 FROM tab2 WHERE NOT - col1 + - col1 IS NULL
----
-10
-26
-36

query III rowsort
SELECT * FROM tab2 WHERE NOT 3 * - 22 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8458
SELECT ALL + CAST( - - col1 AS SIGNED ) * - - col0 AS col0 FROM tab0 AS cor0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL + CAST ( - - col1 AS INTEGER ) * - - col0 AS col0 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT ALL + col2 + col0 - + col1 AS col1 FROM tab2 AS cor0 WHERE - 58 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 4 AND ( + col1 * - + 5 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + 26 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT ALL - 35 + COUNT( * ) * + 68 AS col0 FROM tab0
----
169

skipif mysql # not compatible
query I rowsort label-8462
SELECT ALL - 35 + COUNT ( * ) * + 68 AS col0 FROM tab0
----
169

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT DISTINCT MAX( - col2 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-8463
SELECT DISTINCT MAX ( - col2 ) AS col1 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT ALL + SUM( ALL + - 66 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-594

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL + SUM ( ALL + - 66 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-594

query I rowsort
SELECT col0 + - + col1 FROM tab2
----
-13
-5
8

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 + col1 + - col2 * - col1 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8467
SELECT + 67 DIV - + col1 + 54 AS col1 FROM tab1 AS cor0
----
41
50
53

skipif mysql # not compatible
query I rowsort label-8467
SELECT + 67 / - + col1 + 54 AS col1 FROM tab1 AS cor0
----
41
50
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8468
SELECT CAST( MAX( + ( + - 55 ) ) AS SIGNED ) + + MAX( - - col0 ) DIV - + 25 AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8468
SELECT CAST ( MAX ( + ( + - 55 ) ) AS INTEGER ) + + MAX ( - - col0 ) / - + 25 AS col1 FROM tab2 AS cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + + + col2 col2 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8470
SELECT col2 + - col2 AS col2 FROM tab1 AS cor0 WHERE col1 - - - CAST( NULL AS SIGNED ) > ( + + 39 )
----

skipif mysql # not compatible
query I rowsort label-8470
SELECT col2 + - col2 AS col2 FROM tab1 AS cor0 WHERE col1 - - - CAST ( NULL AS INTEGER ) > ( + + 39 )
----

query I rowsort
SELECT DISTINCT 13 * - - 31 AS col2 FROM tab1 AS cor0
----
403

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT ALL - - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( 38 ) = col0 * col1 * + + col2 * 88
----
3

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL - - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( 38 ) = col0 * col1 * + + col2 * 88
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8473
SELECT + + COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8473
SELECT + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT + - col2 + - + col2 FROM tab2 AS cor0
----
-116
-46
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8475
SELECT DISTINCT + + col0 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT + + col0 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 88 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= col0
----

query I rowsort
SELECT col1 + - ( + + ( col1 ) ) AS col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + col0 + - 37 * + ( col1 ) * - - col2 AS col0 FROM tab1
----
-10745
-118070
-49626

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN ( - col2 ) AND + col2
----

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE + - 8 / + + col1 IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL + col0 + - - col1 FROM tab0
----
108
96
98

query II rowsort
SELECT + col1, + 90 + 88 AS col0 FROM tab1
----
14
178
47
178
5
178

query I rowsort
SELECT DISTINCT 49 + col0 FROM tab2 WHERE NULL IS NULL
----
113
124
95

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 WHERE ( - + col0 ) >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT - MAX( - + ( - col1 ) ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-8485
SELECT - MAX ( - + ( - col1 ) ) AS col1 FROM tab1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-8486
SELECT ALL col1 DIV + col0 * - - 1 col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8486
SELECT ALL col1 / + col0 * - - 1 col1 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT ALL ( - COUNT( * ) ) * - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL ( - COUNT ( * ) ) * - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8488
SELECT ALL + COUNT( * ) AS col1, - 22 FROM tab0 AS cor0
----
3
-22

skipif mysql # not compatible
query II rowsort label-8488
SELECT ALL + COUNT ( * ) AS col1, - 22 FROM tab0 AS cor0
----
3
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT DISTINCT + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8489
SELECT DISTINCT + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT 22 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
22

query I rowsort
SELECT DISTINCT col2 * 7 + - col1 FROM tab0 WHERE ( - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT ALL - ( + COUNT( * ) ) - + 3 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-12

skipif mysql # not compatible
query I rowsort label-8492
SELECT ALL - ( + COUNT ( * ) ) - + 3 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-12

query I rowsort
SELECT ALL - 65 AS col0 FROM tab1 cor0 WHERE NULL < + 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT DISTINCT SUM( 48 ) AS col0 FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-8494
SELECT DISTINCT SUM ( 48 ) AS col0 FROM tab2
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-8495
SELECT - 15 DIV col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8495
SELECT - 15 / col0 FROM tab0
----
-1
0
0

query I rowsort
SELECT - col1 * + + 10 FROM tab0
----
-10
-210
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT MAX( ( + col1 ) ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8497
SELECT MAX ( ( + col1 ) ) FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT DISTINCT - 97 * + COUNT( * ) AS col2 FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-8498
SELECT DISTINCT - 97 * + COUNT ( * ) AS col2 FROM tab0
----
-291

query I rowsort
SELECT DISTINCT col1 * - + 74 AS col1 FROM tab0
----
-1554
-5994
-74

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-8500
SELECT col0 DIV ( + 41 ) col1, CAST( NULL AS DECIMAL ) * - - col1 * + - col2 DIV + col0 AS col1 FROM tab1 AS cor0
----
1
NULL
2
NULL
2
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8500
SELECT col0 / ( + 41 ) col1, CAST ( NULL AS REAL ) * - - col1 * + - col2 / + col0 AS col1 FROM tab1 AS cor0
----
1
NULL
2
NULL
2
NULL

query I rowsort
SELECT DISTINCT col0 * col2 * - - 61 * + col1 FROM tab1 AS cor0
----
1529575
17740996
4181184

query II rowsort
SELECT - col1 + - 19 * + col1 AS col1, col0 FROM tab1 AS cor0
----
-100
85
-280
51
-940
91

query I rowsort
SELECT ALL - + col1 * + 66 AS col2 FROM tab1 AS cor0
----
-3102
-330
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT + 35 + - + SUM( ALL + col2 ) AS col1 FROM tab1
----
-188

skipif mysql # not compatible
query I rowsort label-8504
SELECT + 35 + - + SUM ( ALL + col2 ) AS col1 FROM tab1
----
-188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8505
SELECT ALL * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * + col0 + - - 10 + + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8505
SELECT ALL * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * + col0 + - - 10 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT col2 - 4 AS col0 FROM tab2
----
19
36
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8507
SELECT CAST( ( + + col0 ) AS SIGNED ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8507
SELECT CAST ( ( + + col0 ) AS INTEGER ) FROM tab2
----
46
64
75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT - ( - + col1 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8509
SELECT + col0 DIV - + col2 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-8509
SELECT + col0 / - + col2 FROM tab0 AS cor0
----
-8
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8510
SELECT ALL - - CAST( NULL AS SIGNED ) * + ( + - col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8510
SELECT ALL - - CAST ( NULL AS INTEGER ) * + ( + - col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 9 AS col0 FROM tab2 AS cor0 WHERE + col2 IN ( + col2 * - col2 + - - col2, - col1, + col1 )
----

query I rowsort
SELECT col0 * + 94 - col1 AS col2 FROM tab1 AS cor0
----
4780
7985
8507

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL >= NULL )
----

query I rowsort
SELECT ALL + col0 + - - 86 AS col0 FROM tab2 AS cor0
----
132
150
161

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 < NULL
----

query I rowsort
SELECT ALL + 96 + - 77 FROM tab2
----
19
19
19

query I rowsort
SELECT col0 * + col1 - + 60 AS col2 FROM tab0
----
1155
1767
37

query I rowsort
SELECT DISTINCT + col0 / - col1 * col2 + - col2 FROM tab1 WHERE - 78 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT - COUNT( DISTINCT - - col0 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8519
SELECT - COUNT ( DISTINCT - - col0 ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT 87 * + + col2 FROM tab0
----
4089
8613
870

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 / - col0 + col1 * ( + 20 ) * + 28 + + 9 = ( - - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT + COUNT( ALL + - col2 ) * + MIN( ALL + 89 ) FROM tab1 cor0
----
267

skipif mysql # not compatible
query I rowsort label-8523
SELECT + COUNT ( ALL + - col2 ) * + MIN ( ALL + 89 ) FROM tab1 cor0
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT DISTINCT + COUNT( * ) + MAX( DISTINCT - 26 ) - - + 98 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-8524
SELECT DISTINCT + COUNT ( * ) + MAX ( DISTINCT - 26 ) - - + 98 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

query II rowsort
SELECT DISTINCT + - col1 AS col0, - col2 + + ( col2 ) FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

query I rowsort
SELECT DISTINCT col1 - + 84 FROM tab2 AS cor0 WHERE ( NULL ) >= + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8527
SELECT ALL - - 62 DIV - 91 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8527
SELECT ALL - - 62 / - 91 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT - - COUNT( + 37 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8528
SELECT - - COUNT ( + 37 ) FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT + + col2 + - ( - 49 ) FROM tab2 AS cor0
----
107
72
89

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 59 * col2 - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8531
SELECT + CAST( NULL AS SIGNED ) + - SUM( ALL col1 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8531
SELECT + CAST ( NULL AS INTEGER ) + - SUM ( ALL col1 ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8532
SELECT - 98 DIV + col1 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8532
SELECT - 98 / + col1 AS col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL - + col2 + - + col1 + - col1 FROM tab2 AS cor0
----
-125
-192
-194

query II rowsort
SELECT DISTINCT - col0 + 3 AS col1, col1 + 76 FROM tab1 cor0
----
-48
90
-82
81
-88
123

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT 19 - - ( - - MAX( + col0 ) ) FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-8535
SELECT 19 - - ( - - MAX ( + col0 ) ) FROM tab2
----
94

query I rowsort
SELECT + col0 + - col0 + + + 29 FROM tab1
----
29
29
29

query II rowsort
SELECT 25 AS col1, 15 FROM tab1 WHERE ( NULL ) IS NULL
----
25
15
25
15
25
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT - COUNT( * ) + 81 AS col1 FROM tab2 cor0
----
78

skipif mysql # not compatible
query I rowsort label-8538
SELECT - COUNT ( * ) + 81 AS col1 FROM tab2 cor0
----
78

query I rowsort
SELECT + col2 + + 33 AS col1 FROM tab0 AS cor0
----
132
43
80

query II rowsort
SELECT ALL col1 * - 17 + - + col0, col2 AS col0 FROM tab1 cor0
----
-170
59
-289
96
-890
68

query I rowsort
SELECT ALL - + col1 * + 50 - + col1 AS col0 FROM tab2 cor0 WHERE NOT - 76 < ( + - 53 )
----

query II rowsort
SELECT + - 93, col1 + col0 + + + 35 * + col2 AS col0 FROM tab0 AS cor0
----
-93
1741
-93
3563
-93
458

query I rowsort
SELECT 53 - - col0 / - col0 FROM tab1 AS cor0 WHERE NOT NULL <= col1 * - - col0 * + 73
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8545
SELECT + 44 DIV - + ( + 38 ) AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8545
SELECT + 44 / - + ( + 38 ) AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( NOT + col1 IS NOT NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8547
SELECT ALL + col1 * + col1 * + + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8547
SELECT ALL + col1 * + col1 * + + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT - + col2 > - col2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8549
SELECT CAST( - col2 AS SIGNED ) AS col2, col2 AS col2 FROM tab2
----
-23
23
-40
40
-58
58

skipif mysql # not compatible
query II rowsort label-8549
SELECT CAST ( - col2 AS INTEGER ) AS col2, col2 AS col2 FROM tab2
----
-23
23
-40
40
-58
58

query I rowsort
SELECT DISTINCT + 68 * col1 * - 61 * 54 * 43 AS col0 FROM tab1
----
-134843184
-452687832
-48158280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 col2 FROM tab2
----
-79
-79
-79

query I rowsort
SELECT DISTINCT + + 98 AS col1 FROM tab1 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT DISTINCT - COUNT( * ) * - + ( - - 46 ) FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-8553
SELECT DISTINCT - COUNT ( * ) * - + ( - - 46 ) FROM tab1 AS cor0
----
138

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= col0 * - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8555
SELECT * FROM tab1 WHERE NOT + - col2 NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8555
SELECT * FROM tab1 WHERE NOT + - col2 NOT IN ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8556
SELECT ALL * FROM tab0 AS cor0 WHERE ( - ( - col2 ) * - ( + 63 ) - + col0 + + col2 * + CAST( NULL AS SIGNED ) ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-8556
SELECT ALL * FROM tab0 AS cor0 WHERE ( - ( - col2 ) * - ( + 63 ) - + col0 + + col2 * + CAST ( NULL AS INTEGER ) ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT + COUNT( ALL col1 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8558
SELECT + COUNT ( ALL col1 ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT ALL COUNT( ALL - + 40 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8559
SELECT ALL COUNT ( ALL - + 40 ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8560
SELECT + - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8560
SELECT + - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8561
SELECT DISTINCT ( + col1 ) DIV + + 78 + ( col2 ), + col0 AS col1 FROM tab1 AS cor0
----
59
85
68
91
96
51

skipif mysql # not compatible
query II rowsort label-8561
SELECT DISTINCT ( + col1 ) / + + 78 + ( col2 ), + col0 AS col1 FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT DISTINCT + - 35 FROM tab0 AS cor0
----
-35

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - col2 < - 30 + ( + 22 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 94 * col1 AS col1, - 79 AS col1 FROM tab2
----
4794
-79
6298
-79
7238
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-8565
SELECT ALL + 28 DIV - + col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL + 28 / - + col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8566
SELECT 12, COUNT( * ) AS col1 FROM tab1
----
12
3

skipif mysql # not compatible
query II rowsort label-8566
SELECT 12, COUNT ( * ) AS col1 FROM tab1
----
12
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT COUNT( * ) FROM tab0 WHERE - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8567
SELECT COUNT ( * ) FROM tab0 WHERE - col2 IS NOT NULL
----
3

query I rowsort
SELECT + + col1 AS col0 FROM tab0 AS cor0 WHERE 34 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT ALL - MIN( - - 40 ) AS col2 FROM tab1 cor0 WHERE NULL <> + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL - MIN ( - - 40 ) AS col2 FROM tab1 cor0 WHERE NULL <> + col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8570
SELECT col2 + - col1 DIV - + 54 + - - col0 FROM tab0 cor0
----
196
63
97

skipif mysql # not compatible
query I rowsort label-8570
SELECT col2 + - col1 / - + 54 + - - col0 FROM tab0 cor0
----
196
63
97

query I rowsort
SELECT DISTINCT - 24 - + ( 6 ) + + 26 + + col1 AS col0 FROM tab2
----
47
63
73

query I rowsort
SELECT DISTINCT + 70 AS col2 FROM tab2
----
70

query I rowsort
SELECT col1 * + 82 + - + col2 FROM tab1 cor0
----
1052
351
3786

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8574
SELECT - ( + - col1 ) * + CAST( NULL AS SIGNED ) + - - col2 - - col2 / - 44 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8574
SELECT - ( + - col1 ) * + CAST ( NULL AS INTEGER ) + - - col2 - - col2 / - 44 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8575
SELECT DISTINCT + 0 AS col0, 1 DIV + - 50 * col1 FROM tab1
----
0
0

skipif mysql # not compatible
query II rowsort label-8575
SELECT DISTINCT + 0 AS col0, 1 / + - 50 * col1 FROM tab1
----
0
0

query I rowsort
SELECT + + col2 + col0 FROM tab0 WHERE NOT - col1 IS NULL
----
196
62
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 74 * col0 col2 FROM tab0
----
-1110
-6438
-7178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col2 + - col0 + + + 91 col1 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col0, + col0 AS col1 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT ALL - col0 * 6 FROM tab0 AS cor0
----
-522
-582
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-8581
SELECT ALL - - 22 + + col1 + - + col1 DIV + col1 AS col2 FROM tab0 AS cor0
----
102
22
42

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL - - 22 + + col1 + - + col1 / + col1 AS col2 FROM tab0 AS cor0
----
102
22
42

onlyif mysql # DIV for integer division: 
query I rowsort label-8582
SELECT DISTINCT + 68 DIV col0 col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8582
SELECT DISTINCT + 68 / col0 col2 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT + 40 + 64 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d32adf5fdd5e4096e2c037977ca3f009

query I rowsort
SELECT ALL - 81 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT DISTINCT ( - col0 ) * - - col1 AS col1 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT ALL ( + 95 ) FROM tab2
----
95
95
95

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 56 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8588
SELECT + COUNT( * ) DIV - + 23 + + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8588
SELECT + COUNT ( * ) / - + 23 + + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + - col0 + col1 + col0 AS col2 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + + col0 = NULL
----

query I rowsort
SELECT DISTINCT + 27 + - col1 FROM tab0 AS cor0
----
-54
26
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT + 18 * - COUNT( * ) + - 53 FROM tab2 cor0
----
-107

skipif mysql # not compatible
query I rowsort label-8592
SELECT + 18 * - COUNT ( * ) + - 53 FROM tab2 cor0
----
-107

onlyif mysql # DIV for integer division: 
query II rowsort label-8593
SELECT + col1 + col0 + + ( col1 ) * + 96 AS col1, col1 * col2 DIV - + col1 FROM tab1 AS cor0
----
1409
-96
4650
-68
570
-59

skipif mysql # not compatible
query II rowsort label-8593
SELECT + col1 + col0 + + ( col1 ) * + 96 AS col1, col1 * col2 / - + col1 FROM tab1 AS cor0
----
1409
-96
4650
-68
570
-59

query I rowsort
SELECT ALL + 38 + col2 - - - col1 AS col2 FROM tab2 AS cor0
----
1
10
29

query II rowsort
SELECT ALL - 23 + + col1, ( - 65 ) * - col0 + - + col2 + 91 AS col2 FROM tab1 AS cor0
----
-18
5557
-9
3310
24
5938

onlyif mysql # DIV for integer division: 
query I rowsort label-8596
SELECT ALL + col1 DIV + col2 col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8596
SELECT ALL + col1 / + col2 col2 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT ALL col1 + + 45 AS col0 FROM tab0
----
126
46
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8598
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= + - ( - col0 ) * + col0 * - - 12 * col2 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8598
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= + - ( - col0 ) * + col0 * - - 12 * col2 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8599
SELECT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8599
SELECT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8600
SELECT - col2 + 14 DIV - col0 AS col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8600
SELECT - col2 + 14 / - col0 AS col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ALL col1 - - 0 AS col0 FROM tab1
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, - col0 AS col2 FROM tab1
----
59
-85
68
-91
96
-51

query I rowsort
SELECT - + ( - + 64 ) FROM tab0 AS cor0
----
64
64
64

query I rowsort
SELECT DISTINCT + + 65 + - + 41 * col1 AS col0 FROM tab1 AS cor0
----
-140
-1862
-509

query I rowsort
SELECT DISTINCT + - 66 * col0 FROM tab2 AS cor0
----
-3036
-4224
-4950

query I rowsort
SELECT - col1 * + + 77 AS col0 FROM tab0 AS cor0
----
-1617
-6237
-77

query II rowsort
SELECT + 67 AS col0, col0 FROM tab0 cor0
----
67
15
67
87
67
97

query I rowsort
SELECT + col2 * - col2 * col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-129024
-17405
-217328

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT + + col2 AS col1 FROM tab0 WHERE NOT - 55 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8611
SELECT + CAST( + ( - col1 ) AS SIGNED ) AS col0 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8611
SELECT + CAST ( + ( - col1 ) AS INTEGER ) AS col0 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT + SUM( - - col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8612
SELECT + SUM ( - - col0 ) FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT - COUNT( ALL - + 34 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8613
SELECT - COUNT ( ALL - + 34 ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT - MAX( ( + col0 ) ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8614
SELECT - MAX ( ( + col0 ) ) AS col1 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-8615
SELECT ALL - 85 AS col0, SUM( DISTINCT - - 30 ) FROM tab2 AS cor0
----
-85
30

skipif mysql # not compatible
query II rowsort label-8615
SELECT ALL - 85 AS col0, SUM ( DISTINCT - - 30 ) FROM tab2 AS cor0
----
-85
30

query II rowsort
SELECT DISTINCT - - 95, col1 AS col0 FROM tab2 cor0
----
95
51
95
67
95
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT ALL COUNT( * ) * - 53 + + COUNT( * ) + + - COUNT( DISTINCT col1 ) FROM tab0 AS cor0 WHERE NOT ( NOT 50 >= + 5 )
----
-159

skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL COUNT ( * ) * - 53 + + COUNT ( * ) + + - COUNT ( DISTINCT col1 ) FROM tab0 AS cor0 WHERE NOT ( NOT 50 >= + 5 )
----
-159

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - 21 AS col1, col0 FROM tab1 cor0
----
-21
51
-21
85
-21
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8620
SELECT - - 25 DIV - col0 + + col0 AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8620
SELECT - - 25 / - col0 + + col0 AS col0 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 65 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8622
SELECT + col0 DIV + 96 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8622
SELECT + col0 / + 96 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8623
SELECT + MIN( - - ( + ( - CAST( - col1 AS SIGNED ) ) ) ) AS col1, 56 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
51
NULL

skipif mysql # not compatible
query II rowsort label-8623
SELECT + MIN ( - - ( + ( - CAST ( - col1 AS INTEGER ) ) ) ) AS col1, 56 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
51
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT COUNT( * ) * COUNT( DISTINCT - + col0 ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8624
SELECT COUNT ( * ) * COUNT ( DISTINCT - + col0 ) FROM tab1
----
9

query II rowsort
SELECT - ( - col1 ), + col2 AS col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8626
SELECT ALL + - AVG ( CAST( + - 33 AS SIGNED ) ) + + COUNT( + CAST( + + col0 AS SIGNED ) ) FROM tab1 AS cor0 WHERE - CAST( col0 AS SIGNED ) IN ( + col0 * - col0, 58, + 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL + - AVG ( CAST ( + - 33 AS INTEGER ) ) + + COUNT ( + CAST ( + + col0 AS INTEGER ) ) FROM tab1 AS cor0 WHERE - CAST ( col0 AS INTEGER ) IN ( + col0 * - col0, 58, + 48 )
----
NULL

query II rowsort
SELECT DISTINCT col0, col0 * + col2 * + 50 * - col0 FROM tab2
----
46
-2433400
64
-8192000
75
-16312500

query II rowsort
SELECT DISTINCT 59 AS col0, + col0 AS col0 FROM tab2
----
59
46
59
64
59
75

query I rowsort
SELECT 97 + + 97 FROM tab2
----
194
194
194

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col0 > - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT DISTINCT + + SUM( ( - - 44 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
396

skipif mysql # not compatible
query I rowsort label-8631
SELECT DISTINCT + + SUM ( ( - - 44 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
396

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8632
SELECT ALL 6 * - - 86 * - CAST( NULL AS SIGNED ) / + + 71, col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-8632
SELECT ALL 6 * - - 86 * - CAST ( NULL AS INTEGER ) / + + 71, col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query II rowsort
SELECT - col0 * + - col2 + - + col2 AS col2, ( col2 ) AS col0 FROM tab1 AS cor0
----
4800
96
4956
59
6120
68

query I rowsort
SELECT ALL col0 * - + 61 FROM tab0 AS cor0
----
-5307
-5917
-915

onlyif mysql # DIV for integer division: 
query I rowsort label-8635
SELECT DISTINCT + col2 * + 52 - + col1 + + 2 DIV + col2 + - col2 + 38 * - col2 AS col0 FROM tab2 AS cor0
----
248
443
687

skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT + col2 * + 52 - + col1 + + 2 / + col2 + - col2 + 38 * - col2 AS col0 FROM tab2 AS cor0
----
248
443
687

query I rowsort
SELECT 71 * - + col1 AS col1 FROM tab1 WHERE - 58 IS NOT NULL
----
-3337
-355
-994

query II rowsort
SELECT 35 - col1 AS col2, col1 FROM tab1
----
-12
47
21
14
30
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8638
SELECT col2 - + + col1 DIV col2 * + + 27 AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8638
SELECT col2 - + + col1 / col2 * + + 27 AS col2 FROM tab1
----
59
68
96

query I rowsort
SELECT 42 - - - col0 - - col1 FROM tab2
----
34
47
55

query I rowsort
SELECT + col2 * + col1 * col0 - + col2 FROM tab1
----
25016
290768
68448

query II rowsort
SELECT ( ( - col1 ) ) + + + col2 AS col0, + col2 + + + col0 AS col0 FROM tab1
----
21
159
54
144
82
147

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 72 * - - col1 <= - col2 AND NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT ( NULL ) IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + 85 * + - 12 AS col2, - col1 AS col2 FROM tab0 AS cor0
----
-1020
-1
-1020
-21
-1020
-81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - ( col0 ) NOT BETWEEN NULL AND ( col2 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8646
SELECT + COUNT( * ) + 23 DIV - COUNT( * ) FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-8646
SELECT + COUNT ( * ) + 23 / - COUNT ( * ) FROM tab0 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT + SUM( ALL - ( + 96 ) ) FROM tab0
----
-288

skipif mysql # not compatible
query I rowsort label-8647
SELECT + SUM ( ALL - ( + 96 ) ) FROM tab0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT DISTINCT SUM( + - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-8648
SELECT DISTINCT SUM ( + - col2 ) FROM tab2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT + COUNT( + + col1 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8649
SELECT + COUNT ( + + col1 ) AS col2 FROM tab2 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 14 * + - 27 col1 FROM tab0 AS cor0 WHERE NOT ( - + col2 ) > - col1
----
378

query I rowsort
SELECT DISTINCT + ( + 14 ) FROM tab2 AS cor0
----
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) col2 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( - + col2 ) - + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col0, col1 + col0 AS col1 FROM tab0
----
15
96
87
108
97
98

onlyif mysql # DIV for integer division: 
query II rowsort label-8655
SELECT ALL - col1, col0 DIV - + 82 AS col0 FROM tab0
----
-1
-1
-21
-1
-81
0

skipif mysql # not compatible
query II rowsort label-8655
SELECT ALL - col1, col0 / - + 82 AS col0 FROM tab0
----
-1
-1
-21
-1
-81
0

query II rowsort
SELECT ALL col0, 0 AS col2 FROM tab2
----
46
0
64
0
75
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8657
SELECT ALL COUNT( * ) AS col2, - COUNT( * ) * + - COUNT( * ) FROM tab1
----
3
9

skipif mysql # not compatible
query II rowsort label-8657
SELECT ALL COUNT ( * ) AS col2, - COUNT ( * ) * + - COUNT ( * ) FROM tab1
----
3
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8658
SELECT ALL COUNT( * ), + COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-8658
SELECT ALL COUNT ( * ), + COUNT ( * ) FROM tab2
----
3
3

query I rowsort
SELECT DISTINCT 56 + + - col1 * + col1 * + + col0 FROM tab2 AS cor0
----
-119590
-336619
-379400

query II rowsort
SELECT + + col2, - 70 * + 68 AS col1 FROM tab2 AS cor0
----
23
-4760
40
-4760
58
-4760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8661
SELECT ALL COUNT( * ) + - - ( + COUNT( * ) ) + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8661
SELECT ALL COUNT ( * ) + - - ( + COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + 90, col0 + - col2 AS col0 FROM tab0 AS cor0
----
90
-2
90
-32
90
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT DISTINCT + MAX( DISTINCT - + col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8663
SELECT DISTINCT + MAX ( DISTINCT - + col1 ) AS col2 FROM tab0
----
-1

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab1 cor1 ON NOT NULL = 44 + - - 99
----

query III rowsort
SELECT * FROM tab1 WHERE ( ( + - col0 ) * - + 9 ) > NULL
----

query I rowsort
SELECT DISTINCT + col2 * 39 FROM tab2
----
1560
2262
897

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( NOT col2 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8668
SELECT - + CAST( NULL AS SIGNED ) + - 85 + + - col2 + + + 8 * - col2 - 68 * - col1 col1 FROM tab2 AS cor0 WHERE NULL IN ( + col2, col2, + col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8668
SELECT - + CAST ( NULL AS INTEGER ) + - 85 + + - col2 + + + 8 * - col2 - 68 * - col1 col1 FROM tab2 AS cor0 WHERE NULL IN ( + col2, col2, + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8669
SELECT - COUNT( * ) + + COUNT( - CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8669
SELECT - COUNT ( * ) + + COUNT ( - CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query II rowsort
SELECT 49 + + col1 AS col2, - col0 + 44 FROM tab1 AS cor0
----
54
-41
63
-7
96
-47

query I rowsort
SELECT 84 + + 82 - + 51 + + + col2 + - col1 * + col0 * col1 * - + 88 * + + col2 FROM tab0 AS cor0
----
33763085
407044602
845278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8673
SELECT DISTINCT - + col0 * 10 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8673
SELECT DISTINCT - + col0 * 10 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 91 + - col2 FROM tab1 AS cor0
----
-5
23
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8675
SELECT 1 + + - CAST( col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-8675
SELECT 1 + + - CAST ( col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
-22
-39
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT DISTINCT COUNT( * ) + + 11 AS col1 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-8676
SELECT DISTINCT COUNT ( * ) + + 11 AS col1 FROM tab0 AS cor0
----
14

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 <= - ( + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT DISTINCT - COUNT( * ) * + ( - + COUNT( * ) ) + - 26 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-8678
SELECT DISTINCT - COUNT ( * ) * + ( - + COUNT ( * ) ) + - 26 FROM tab2
----
-17

onlyif mysql # DIV for integer division: 
query II rowsort label-8679
SELECT + 61 col0, col1 DIV - col2 col2 FROM tab1
----
61
0
61
0
61
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8679
SELECT + 61 col0, col1 / - col2 col2 FROM tab1
----
61
0
61
0
61
0

query I rowsort
SELECT ALL 79 - - 13 FROM tab1
----
92
92
92

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 * + 19 / - 28 + - 5 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 FROM tab1 WHERE NULL < - + 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT ALL 11 * COUNT( * ) AS col1 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL 11 * COUNT ( * ) AS col1 FROM tab0
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-8684
SELECT 12, + COUNT( * ) AS col1 FROM tab2
----
12
3

skipif mysql # not compatible
query II rowsort label-8684
SELECT 12, + COUNT ( * ) AS col1 FROM tab2
----
12
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 87 AS col2, + col0 col2 FROM tab2
----
87
46
87
64
87
75

query I rowsort
SELECT 14 - - ( - col1 ) AS col2 FROM tab2
----
-37
-53
-63

query I rowsort
SELECT - - 32 - + col1 + col2 + + 55 * - - col1 AS col0 FROM tab1 AS cor0
----
2638
361
884

onlyif mysql # DIV for integer division: 
query I rowsort label-8689
SELECT ALL - - col0 DIV - col2 + col0 + + col0 AS col1 FROM tab0 cor0
----
166
194
30

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL - - col0 / - col2 + col0 + + col0 AS col1 FROM tab0 cor0
----
166
194
30

query I rowsort
SELECT ALL - 15 * - col1 FROM tab0 AS cor0
----
1215
15
315

onlyif mysql # DIV for integer division: 
query I rowsort label-8691
SELECT ( + col0 ) DIV ( + - 65 ) AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8691
SELECT ( + col0 ) / ( + - 65 ) AS col1 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT - - COUNT( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8692
SELECT - - COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT ALL - - ( + ( - - col1 ) ) FROM tab2 AS cor0 WHERE + 17 + - 28 IS NOT NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8694
SELECT ALL 79 DIV - col1 + + - col1 AS col1 FROM tab2 AS cor0
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-8694
SELECT ALL 79 / - col1 + + - col1 AS col1 FROM tab2 AS cor0
----
-52
-68
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8695
SELECT ALL CAST( NULL AS SIGNED ) + col1 - - ( 19 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8695
SELECT ALL CAST ( NULL AS INTEGER ) + col1 - - ( 19 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT col2 * + col2 * + - 21 + col2 * + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8697
SELECT - ( - col1 ) * - 36 + - ( - - ( + + CAST( NULL AS DECIMAL ) ) ) - - 98 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8697
SELECT - ( - col1 ) * - 36 + - ( - - ( + + CAST ( NULL AS REAL ) ) ) - - 98 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8698
SELECT MAX( ALL - 99 ) * + + COUNT( * ) * - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8698
SELECT MAX ( ALL - 99 ) * + + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 33 col0 FROM tab1
----
-1551
-165
-462

query I rowsort
SELECT DISTINCT + col2 * + 0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8701
SELECT DISTINCT + col2 DIV + col0 * 83 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8701
SELECT DISTINCT + col2 / + col0 * 83 AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT - col2 - col1 * - col1 * - - 96 IS NULL
----
10
47
99

query I rowsort
SELECT + col1 * + ( + ( 5 ) ) FROM tab1
----
235
25
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT - MIN( + col1 ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-8704
SELECT - MIN ( + col1 ) AS col2 FROM tab1
----
-5

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col0 <> 55
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8706
SELECT ALL - 36 DIV + col2 + + ( + 13 ) FROM tab0 AS cor0
----
10
13
13

skipif mysql # not compatible
query I rowsort label-8706
SELECT ALL - 36 / + col2 + + ( + 13 ) FROM tab0 AS cor0
----
10
13
13

query II rowsort
SELECT ALL col2 AS col0, col2 AS col1 FROM tab1
----
59
59
68
68
96
96

query II rowsort
SELECT ALL + col1 AS col2, ( col2 ) FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT ALL + 1 + - 13 FROM tab2 AS cor0
----
-12
-12
-12

query I rowsort
SELECT - - col1 * - - col0 - + - col1 FROM tab0 AS cor0
----
1296
1848
98

query I rowsort
SELECT + 22 - + + 79 * + + col2 FROM tab1
----
-4639
-5350
-7562

query I rowsort
SELECT ALL 75 - col0 * col2 AS col2 FROM tab2
----
-2485
-4275
-983

query I rowsort
SELECT DISTINCT + col1 - - col2 + + 80 FROM tab2
----
154
197
205

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN NULL AND ( col0 * - - col2 )
----

query I rowsort
SELECT ALL + col2 * + - 82 AS col1 FROM tab1
----
-4838
-5576
-7872

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 22 IS NOT NULL
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT - 6 * ( + 88 ) * + col2 AS col2 FROM tab0 AS cor0
----
-24816
-52272
-5280

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 79 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT - + MIN( col0 ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8720
SELECT - + MIN ( col0 ) AS col2 FROM tab0 AS cor0
----
-15

query II rowsort
SELECT DISTINCT col1, - col2 AS col0 FROM tab2
----
51
-23
67
-58
77
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 * - 33 * - - col0 col1 FROM tab2
----
10407936
12436875
3561228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, col1 col2 FROM tab1
----
14
14
47
47
5
5

query II rowsort
SELECT + - col2, 98 AS col2 FROM tab0 AS cor0
----
-10
98
-47
98
-99
98

query II rowsort
SELECT - col0, + col0 FROM tab1 cor0
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE + col2 * - + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8726
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE + col2 * - + col2 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + - 37 + - col2 col0 FROM tab2 AS cor0
----
-1725
-2408
-2833

query I rowsort
SELECT DISTINCT + + col0 * - col1 * - + col1 FROM tab1 AS cor0
----
201019
2125
9996

query II rowsort
SELECT + col0 AS col0, 80 AS col1 FROM tab0 AS cor0
----
15
80
87
80
97
80

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + col0 ) <> + + 15
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8731
SELECT DISTINCT - 88 + - - 78 - + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8731
SELECT DISTINCT - 88 + - - 78 - + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8732
SELECT + col1, + CAST( - 33 AS SIGNED ) FROM tab0 cor0
----
1
-33
21
-33
81
-33

skipif mysql # not compatible
query II rowsort label-8732
SELECT + col1, + CAST ( - 33 AS INTEGER ) FROM tab0 cor0
----
1
-33
21
-33
81
-33

query I rowsort
SELECT DISTINCT - col0 + - - 62 AS col1 FROM tab1 cor0
----
-23
-29
11

query I rowsort
SELECT DISTINCT + 23 * - + col2 AS col2 FROM tab2
----
-1334
-529
-920

query I rowsort
SELECT + col1 + - + ( col1 ) * - - ( + 59 ) FROM tab1
----
-2726
-290
-812

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) * - - col2 * + 78 col1 FROM tab2
----
199680
339300
82524

query I rowsort
SELECT DISTINCT col1 * 45 * - + 95 FROM tab2
----
-218025
-286425
-329175

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8739
SELECT - + CAST( + - COUNT( - + 24 ) AS SIGNED ) AS col0 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8739
SELECT - + CAST ( + - COUNT ( - + 24 ) AS INTEGER ) AS col0 FROM tab1 WHERE NULL IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8740
SELECT DISTINCT CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8740
SELECT DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT col0 + + + 43 FROM tab1
----
128
134
94

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 * col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8744
SELECT + + col1 col0 FROM tab2 WHERE col2 / CAST( col0 AS DECIMAL ) BETWEEN NULL AND - col1 + + ( - col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8744
SELECT + + col1 col0 FROM tab2 WHERE col2 / CAST ( col0 AS REAL ) BETWEEN NULL AND - col1 + + ( - col1 )
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8746
SELECT ALL - COUNT( * ), COUNT( * ) AS col0 FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-8746
SELECT ALL - COUNT ( * ), COUNT ( * ) AS col0 FROM tab1
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8747
SELECT ALL - CAST( 23 AS SIGNED ) FROM tab1, tab0 cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL - CAST ( 23 AS INTEGER ) FROM tab1, tab0 cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

onlyif mysql # DIV for integer division: 
query I rowsort label-8748
SELECT col2 + - + col1 * col2 DIV - + 40 FROM tab1
----
129
147
66

skipif mysql # not compatible
query I rowsort label-8748
SELECT col2 + - + col1 * col2 / - + 40 FROM tab1
----
129
147
66

query III rowsort
SELECT * FROM tab2 WHERE - 67 IS NULL
----

query I rowsort
SELECT + 39 + + col0 FROM tab0 AS cor0
----
126
136
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, + 18 FROM tab1 AS cor0
----
14
18
47
18
5
18

query I rowsort
SELECT ALL + 24 + - col2 FROM tab2 cor0
----
-16
-34
1

query II rowsort
SELECT DISTINCT + col2 AS col0, 58 AS col2 FROM tab1
----
59
58
68
58
96
58

query I rowsort
SELECT ALL + 25 FROM tab1 WHERE - + col1 NOT IN ( - - ( + col0 ) - - col2, + col1, - col2 + + col1 )
----
25
25
25

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 34 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8756
SELECT ALL MIN( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8756
SELECT ALL MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8757
SELECT DISTINCT COUNT( * ) AS col0, + 69 FROM tab1
----
3
69

skipif mysql # not compatible
query II rowsort label-8757
SELECT DISTINCT COUNT ( * ) AS col0, + 69 FROM tab1
----
3
69

query II rowsort
SELECT DISTINCT - 4, 41 - - - col2 AS col1 FROM tab0
----
-4
-58
-4
-6
-4
31

query I rowsort
SELECT DISTINCT - col2 * 58 FROM tab0 WHERE + ( col2 ) <= - col2 / 70 + - 98 - col0 * - 45 + + - 57 + - 11 + + col1 * + col0 + - col1
----
-2726
-5742
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT DISTINCT COUNT( ALL + 64 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT COUNT ( ALL + 64 ) AS col2 FROM tab2
----
3

query II rowsort
SELECT col1 AS col2, 89 AS col0 FROM tab0
----
1
89
21
89
81
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8762
SELECT + SUM( - + CAST( NULL AS SIGNED ) ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8762
SELECT + SUM ( - + CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8763
SELECT ALL col2 DIV + 88 * - 6 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL col2 / + 88 * - 6 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - ( + - ( + + col2 ) ) AS col0 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT + MIN( - ( - 92 ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
92

skipif mysql # not compatible
query I rowsort label-8765
SELECT + MIN ( - ( - 92 ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
92

query I rowsort
SELECT DISTINCT + - 36 FROM tab2 WHERE NULL <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT - MAX( + + 10 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8767
SELECT - MAX ( + + 10 ) FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT + SUM( + col0 ) FROM tab0 AS cor0 WHERE NOT NULL < col1 * ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8768
SELECT + SUM ( + col0 ) FROM tab0 AS cor0 WHERE NOT NULL < col1 * ( + col1 )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + - col1 NOT BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT DISTINCT + SUM( + col2 ) + - 38 AS col0 FROM tab0 AS cor0 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8770
SELECT DISTINCT + SUM ( + col2 ) + - 38 AS col0 FROM tab0 AS cor0 WHERE - col2 IS NULL
----
NULL

query II rowsort
SELECT + + col2 + + ( col2 ) AS col0, + col2 * - - col1 * - - col2 FROM tab2 AS cor0 WHERE NOT NULL > 42
----

query I rowsort
SELECT ALL + 16 + ( + col2 ) FROM tab1 AS cor0
----
112
75
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT DISTINCT + COUNT( DISTINCT col0 ) * - - COUNT( ALL + col1 ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8773
SELECT DISTINCT + COUNT ( DISTINCT col0 ) * - - COUNT ( ALL + col1 ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT 69 * + + col2 FROM tab0
----
3243
6831
690

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 + + col0 <> NULL
----

query I rowsort
SELECT - col2 * + 3 FROM tab2
----
-120
-174
-69

query II rowsort
SELECT DISTINCT - col2 AS col2, - col2 FROM tab2
----
-23
-23
-40
-40
-58
-58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT COUNT( * ) AS col2 FROM tab1 WHERE ( NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8779
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE ( NULL IS NOT NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 29 ) * + col1 col2 FROM tab2
----
-1479
-1943
-2233

query I rowsort
SELECT 18 * + + 97 AS col0 FROM tab1
----
1746
1746
1746

query I rowsort
SELECT - col2 * col1 * - 12 FROM tab0
----
1188
2520
45684

query II rowsort
SELECT + col2 * - col1 + - 47 AS col0, + 35 + - + col0 AS col2 FROM tab1
----
-1391
-16
-3243
-56
-342
-50

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-8784
SELECT DISTINCT * FROM tab0, tab0 cor0 WHERE NULL > + - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query IIIIII rowsort label-8784
SELECT DISTINCT * FROM tab0, tab0 cor0 WHERE NULL > + - CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT - col1 * - - 3 AS col0 FROM tab2 AS cor0
----
-153
-201
-231

query I rowsort
SELECT ALL - + col2 + - + ( + - col0 ) * 63 FROM tab0 cor0
----
5471
6012
898

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT DISTINCT + 87 + + COUNT( * ) FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-8787
SELECT DISTINCT + 87 + + COUNT ( * ) FROM tab2 AS cor0
----
90

query I rowsort
SELECT DISTINCT col0 + - 32 FROM tab1
----
19
53
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8789
SELECT ALL COUNT( * ) / - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8790
SELECT 24 * CAST( NULL AS SIGNED ) + col1 FROM tab2 WHERE col0 + + col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8790
SELECT 24 * CAST ( NULL AS INTEGER ) + col1 FROM tab2 WHERE col0 + + col2 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * 15 AS col1 FROM tab1
----
1020
1440
885

query I rowsort
SELECT DISTINCT + 14 * col0 AS col0 FROM tab0
----
1218
1358
210

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8793
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-8793
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 + col0 AND + 26
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8795
SELECT AVG ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8795
SELECT AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 - col1 * 83 IS NOT NULL
----

query I rowsort
SELECT ALL col2 + - col2 AS col1 FROM tab1 WHERE NOT 76 / + 58 >= ( 66 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT COUNT( ALL - 29 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8798
SELECT COUNT ( ALL - 29 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + ( - col1 ) - col1 FROM tab0
----
-162
-2
-42

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 53 * 20 FROM tab0
----
1060

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT COUNT( * ) + MAX( + 44 ) AS col1 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-8802
SELECT COUNT ( * ) + MAX ( + 44 ) AS col1 FROM tab0
----
47

query I rowsort
SELECT ALL - ( + 79 ) + 87 FROM tab2
----
8
8
8

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col2 ) IN ( - col0 + - 17 )
----

query I rowsort
SELECT ALL + 42 + ( + col1 ) AS col2 FROM tab2
----
109
119
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 5 col0 FROM tab0
----
102
20
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab0 WHERE NOT NULL = ( - col2 * + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8808
SELECT col1 DIV 25 + - 66 FROM tab1
----
-65
-66
-66

skipif mysql # not compatible
query I rowsort label-8808
SELECT col1 / 25 + - 66 FROM tab1
----
-65
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT ( - 30 * - 22 ) BETWEEN - col0 AND col1
----
3

skipif mysql # not compatible
query I rowsort label-8809
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( - 30 * - 22 ) BETWEEN - col0 AND col1
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 <= ( NULL )
----

query I rowsort
SELECT col1 FROM tab2 WHERE NULL < - col1 * col2
----

query I rowsort
SELECT 24 + - 69 FROM tab1
----
-45
-45
-45

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( 81 ) > - ( - col0 )
----
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT 62 + 49 * + COUNT( * ) AS col1 FROM tab2
----
209

skipif mysql # not compatible
query I rowsort label-8814
SELECT 62 + 49 * + COUNT ( * ) AS col1 FROM tab2
----
209

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8815
SELECT + 45 + + SUM( ALL 5 ) * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8815
SELECT + 45 + + SUM ( ALL 5 ) * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 ) <> ( + 85 * - col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( col1 ) NOT BETWEEN ( NULL ) AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT COUNT( 39 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8818
SELECT COUNT ( 39 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT 66 + - col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 - + 34 * - 36 NOT BETWEEN NULL AND - 14
----

query I rowsort
SELECT - 14 * col2 AS col1 FROM tab2 AS cor0
----
-322
-560
-812

query I rowsort
SELECT DISTINCT 85 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT DISTINCT - SUM( ALL - 78 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
702

skipif mysql # not compatible
query I rowsort label-8823
SELECT DISTINCT - SUM ( ALL - 78 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
702

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 * + 27 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8825
SELECT ALL CAST( - 0 AS SIGNED ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL CAST ( - 0 AS INTEGER ) AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT DISTINCT MIN( 27 ) AS col2 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-8826
SELECT DISTINCT MIN ( 27 ) AS col2 FROM tab1
----
27

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col1 + - col0 ) > + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT ( MIN( - col2 ) ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8828
SELECT ( MIN ( - col2 ) ) FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT DISTINCT + COUNT( * ) * 86 AS col0 FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-8829
SELECT DISTINCT + COUNT ( * ) * 86 AS col0 FROM tab2 AS cor0
----
258

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8830
SELECT ALL - 92 * CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL - 92 * CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * 54 FROM tab0 AS cor0 WHERE ( - col0 ) >= col2 / 82
----

query I rowsort
SELECT ALL col1 + 30 FROM tab1 AS cor0
----
35
44
77

query I rowsort
SELECT + - 88 + 66 FROM tab0 AS cor0
----
-22
-22
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8834
SELECT - ( - CAST( NULL AS SIGNED ) ) + - col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8834
SELECT - ( - CAST ( NULL AS INTEGER ) ) + - col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE - 36 >= ( col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT + 67 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-8837
SELECT + 67 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
70

query I rowsort
SELECT - - col1 + ( col1 ) FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT DISTINCT + col2 + 72 AS col2 FROM tab0 AS cor0
----
119
171
82

query I rowsort
SELECT + 72 + 39 FROM tab0 AS cor0
----
111
111
111

query I rowsort
SELECT + ( + col0 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8842
SELECT * FROM tab2 AS cor0 WHERE ( - CAST( col1 AS SIGNED ) / col1 ) NOT IN ( ( - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8842
SELECT * FROM tab2 AS cor0 WHERE ( - CAST ( col1 AS INTEGER ) / col1 ) NOT IN ( ( - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 80 FROM tab2 WHERE NOT 99 IS NULL
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8844
SELECT ALL CAST( - + 1 AS SIGNED ) AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL CAST ( - + 1 AS INTEGER ) AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT DISTINCT SUM( - col0 ) + + COUNT( * ) AS col0 FROM tab2
----
-182

skipif mysql # not compatible
query I rowsort label-8845
SELECT DISTINCT SUM ( - col0 ) + + COUNT ( * ) AS col0 FROM tab2
----
-182

onlyif mysql # DIV for integer division: 
query I rowsort label-8846
SELECT - col1 + - 57 DIV - col1 AS col2 FROM tab0
----
-19
-81
56

skipif mysql # not compatible
query I rowsort label-8846
SELECT - col1 + - 57 / - col1 AS col2 FROM tab0
----
-19
-81
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) col0 FROM tab2 WHERE col2 <> NULL
----

query I rowsort
SELECT DISTINCT col0 * 14 FROM tab0 WHERE NOT - 43 IS NULL
----
1218
1358
210

query I rowsort
SELECT col0 * + + ( - 43 ) FROM tab1
----
-2193
-3655
-3913

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8850
SELECT DISTINCT * FROM tab2 WHERE NOT 40 / col1 + - 50 NOT IN ( CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8850
SELECT DISTINCT * FROM tab2 WHERE NOT 40 / col1 + - 50 NOT IN ( CAST ( col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT DISTINCT + MIN( ALL 93 ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-8851
SELECT DISTINCT + MIN ( ALL 93 ) FROM tab2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT COUNT( * ) * 94 FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-8852
SELECT COUNT ( * ) * 94 FROM tab2
----
282

query I rowsort
SELECT ALL + col0 * col1 * col1 - 64 FROM tab0
----
33
38303
98351

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT NULL <= - col0 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT SUM( + + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-8855
SELECT SUM ( + + col1 ) FROM tab0
----
103

query I rowsort
SELECT DISTINCT - 78 * - col2 AS col2 FROM tab0 AS cor0
----
3666
7722
780

query I rowsort
SELECT col2 * - 15 AS col1 FROM tab0 AS cor0 WHERE ( col0 ) BETWEEN col1 AND 17
----

query I rowsort
SELECT DISTINCT + col1 * + ( - col2 / col2 ) FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8859
SELECT DISTINCT MIN( DISTINCT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) * ( 74 ) + - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8859
SELECT DISTINCT MIN ( DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) * ( 74 ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 36 col1 FROM tab0
----
117
37
57

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 >= + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT ALL - COUNT( * ) * + - 3 col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8862
SELECT ALL - COUNT ( * ) * + - 3 col1 FROM tab2 AS cor0
----
9

query I rowsort
SELECT ALL + col1 * + 61 AS col2 FROM tab1 AS cor0
----
2867
305
854

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8864
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8864
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= CAST ( + col1 AS INTEGER )
----

query I rowsort
SELECT + 83 * + + col0 FROM tab2 AS cor0
----
3818
5312
6225

query I rowsort
SELECT ALL + col0 / col1 FROM tab0 AS cor0 WHERE NOT NULL <> ( 8 * col0 )
----

query I rowsort
SELECT ALL + - 73 FROM tab1 cor0
----
-73
-73
-73

query II rowsort
SELECT ALL + + col0 AS col1, - col1 AS col0 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= - - col1 + 29
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8870
SELECT ALL * FROM tab2 WHERE 36 <> + CAST( - ( col0 ) AS DECIMAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8870
SELECT ALL * FROM tab2 WHERE 36 <> + CAST ( - ( col0 ) AS REAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT MIN( + col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8871
SELECT MIN ( + col2 ) AS col0 FROM tab1
----
59

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT BETWEEN ( - 23 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= col0 + - + col1
----

query I rowsort
SELECT - 56 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col2 AND ( - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT ALL COUNT( * ) * + 93 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL COUNT ( * ) * + 93 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
282

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 * + + 25 = NULL
----

query I rowsort
SELECT - col1 + - - 54 + col1 * + - col1 AS col1 FROM tab0
----
-408
-6588
52

query I rowsort
SELECT ALL col2 * + col2 + - + col2 FROM tab1
----
3422
4556
9120

query I rowsort
SELECT - 77 + - col1 AS col1 FROM tab0
----
-158
-78
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8880
SELECT + CAST( NULL AS SIGNED ) + - - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8880
SELECT + CAST ( NULL AS INTEGER ) + - - col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 86 AS col0 FROM tab0 AS cor0 WHERE + 64 NOT IN ( - 52 )
----
86
86
86

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE - 82 * - col0 + ( - col1 ) * col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT ALL - MAX( DISTINCT + + 17 ) AS col2 FROM tab1 AS cor0 WHERE col2 * + col1 IS NOT NULL
----
-17

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL - MAX ( DISTINCT + + 17 ) AS col2 FROM tab1 AS cor0 WHERE col2 * + col1 IS NOT NULL
----
-17

query I rowsort
SELECT 58 FROM tab2 AS cor0 WHERE 39 IS NULL
----

query I rowsort
SELECT ALL - 92 + - ( + - col1 ) AS col1 FROM tab0 AS cor0
----
-11
-71
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT + MAX( 29 ) AS col2 FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-8887
SELECT + MAX ( 29 ) AS col2 FROM tab0
----
29

query I rowsort
SELECT ALL - 32 + + col1 AS col0 FROM tab0
----
-11
-31
49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND ( 62 + col0 * + + col1 )
----

query I rowsort
SELECT ALL - col1 * - + 73 + + - 8 * - 10 FROM tab2
----
3803
4971
5701

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( - 30 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT 77 - + - MAX( - + col1 ) * - - COUNT( * ) + - 55 AS col0 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-8892
SELECT 77 - + - MAX ( - + col1 ) * - - COUNT ( * ) + - 55 AS col0 FROM tab0
----
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col2 * + col2 col2 FROM tab2
----
-1523
-3297
-478

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 83 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE + col2 > ( - col1 + + 90 * ( col0 ) * + 81 + - col1 / + col2 )
----

query I rowsort
SELECT DISTINCT - col2 - + - col2 AS col1 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8897
SELECT DISTINCT - col2 * + CAST( + ( + + 91 ) AS SIGNED ) FROM tab2
----
-2093
-3640
-5278

skipif mysql # not compatible
query I rowsort label-8897
SELECT DISTINCT - col2 * + CAST ( + ( + + 91 ) AS INTEGER ) FROM tab2
----
-2093
-3640
-5278

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT + - COUNT( DISTINCT - - col0 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8898
SELECT + - COUNT ( DISTINCT - - col0 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + - 22 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
-22
-22
-22

query III rowsort
SELECT * FROM tab1 WHERE 39 < ( NULL )
----

query I rowsort
SELECT ( + 33 ) AS col2 FROM tab2
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT + MAX( ALL - 85 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-85

skipif mysql # not compatible
query I rowsort label-8902
SELECT + MAX ( ALL - 85 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-85

query I rowsort
SELECT - 48 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( - col2 ) NOT IN ( - 85 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL - 38 * - + col2 FROM tab0 AS cor0
----
1786
3762
380

query I rowsort
SELECT - col2 * 63 * col1 * + 42 AS col0 FROM tab0 AS cor0
----
-10073322
-261954
-555660

query II rowsort
SELECT DISTINCT - col1 AS col2, + col0 + col0 + + col1 AS col1 FROM tab0
----
-1
195
-21
195
-81
111

query II rowsort
SELECT ALL + 93 AS col0, col2 FROM tab2
----
93
23
93
40
93
58

query I rowsort
SELECT DISTINCT + col2 * - col1 * - - col2 * + - 65 FROM tab1
----
1131325
14126320
8386560

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN ( 71 ) AND NULL
----

query I rowsort
SELECT + 74 * + col1 FROM tab2 WHERE NOT 92 = NULL
----

query I rowsort
SELECT col2 + col1 * + 62 FROM tab1 WHERE NOT - - ( + ( - 87 ) ) * col0 - - + col0 * - col2 IS NULL
----
2982
369
964

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8914
SELECT DISTINCT - + 63 * - - col2 col0 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8914
SELECT DISTINCT - + 63 * - - col2 col0 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 90 BETWEEN NULL AND ( + 76 )
----

query I rowsort
SELECT - ( + col2 ) * - - col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8917
SELECT * FROM tab1 WHERE - CAST( + 13 AS SIGNED ) <> + - col1 + + + col0 + - + col1 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8917
SELECT * FROM tab1 WHERE - CAST ( + 13 AS INTEGER ) <> + - col1 + + + col0 + - + col1 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8918
SELECT + col0 DIV + col1 AS col0 FROM tab1 WHERE ( + - col0 * + col2 ) IS NOT NULL
----
1
17
3

skipif mysql # not compatible
query I rowsort label-8918
SELECT + col0 / + col1 AS col0 FROM tab1 WHERE ( + - col0 * + col2 ) IS NOT NULL
----
1
17
3

query I rowsort
SELECT - - col2 * + ( + - 43 ) + + col1 + + 36 FROM tab0 AS cor0
----
-1904
-373
-4220

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 46 >= + 50 + + col0 - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8921
SELECT + COUNT( * ) * + 59 + CAST( - + COUNT( * ) AS SIGNED ) AS col0 FROM tab1 cor0
----
174

skipif mysql # not compatible
query I rowsort label-8921
SELECT + COUNT ( * ) * + 59 + CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 cor0
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8922
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL >= + col1
----

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL >= + col1
----

query I rowsort
SELECT ALL - - 33 AS col1 FROM tab0 AS cor0
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT DISTINCT - 75 + - 55 + - + 31 * 69 - + COUNT( - col1 ) FROM tab0 AS cor0
----
-2272

skipif mysql # not compatible
query I rowsort label-8924
SELECT DISTINCT - 75 + - 55 + - + 31 * 69 - + COUNT ( - col1 ) FROM tab0 AS cor0
----
-2272

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8925
SELECT DISTINCT - + col1 + - - CAST( - 39 AS SIGNED ) FROM tab1 cor0
----
-44
-53
-86

skipif mysql # not compatible
query I rowsort label-8925
SELECT DISTINCT - + col1 + - - CAST ( - 39 AS INTEGER ) FROM tab1 cor0
----
-44
-53
-86

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE 63 <= - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 48 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE ( - col1 ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8929
SELECT * FROM tab0 WHERE NULL NOT BETWEEN CAST( NULL AS SIGNED ) AND col2
----

skipif mysql # not compatible
query III rowsort label-8929
SELECT * FROM tab0 WHERE NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND col2
----

query I rowsort
SELECT col0 * + + 77 FROM tab0
----
1155
6699
7469

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT DISTINCT + - SUM( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8931
SELECT DISTINCT + - SUM ( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8932
SELECT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) * - 84 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8932
SELECT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * - 84 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col2 > + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 <> 21
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8935
SELECT CAST( - MAX( ALL 61 ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-61

skipif mysql # not compatible
query I rowsort label-8935
SELECT CAST ( - MAX ( ALL 61 ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-61

query II rowsort
SELECT ALL col2 AS col0, - 33 FROM tab1 AS cor0
----
59
-33
68
-33
96
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT DISTINCT - MIN( + col1 ) AS col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8937
SELECT DISTINCT - MIN ( + col1 ) AS col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----
NULL

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE ( + col1 / + col0 ) <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= col0 + - - 45
----

query I rowsort
SELECT DISTINCT col2 * + - 73 AS col0 FROM tab0
----
-3431
-7227
-730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8941
SELECT + COUNT( * ) / - - 3 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8941
SELECT + COUNT ( * ) / - - 3 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL 86 * - 76 * + 7 FROM tab2
----
-45752
-45752
-45752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8943
SELECT + col0 / col2 * + col0 - col1 + col1 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8943
SELECT + col0 / col2 * + col0 - col1 + col1 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8944
SELECT - col0 DIV + + col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8944
SELECT - col0 / + + col0 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( col0 / - + col0 * + 44 * - col2 + - + 9 ) IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col0 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col2 + 99 + - col0 AS col1 FROM tab2
----
75
76
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 + + - col0 col1 FROM tab1 cor0
----
1293
210
3105

query I rowsort
SELECT DISTINCT - 66 AS col2 FROM tab1 cor0
----
-66

query I rowsort
SELECT + 47 + - col0 + - + col0 FROM tab0 AS cor0
----
-127
-147
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT DISTINCT - - ( - MAX( col0 ) ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8951
SELECT DISTINCT - - ( - MAX ( col0 ) ) AS col2 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT + 5 + - col1 AS col1 FROM tab2
----
-46
-62
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8953
SELECT - - COUNT( * ) FROM tab2 WHERE - ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8953
SELECT - - COUNT ( * ) FROM tab2 WHERE - ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
0

query I rowsort
SELECT - 72 + - col0 + + col1 * - 64 AS col0 FROM tab2
----
-3382
-4435
-5064

query I rowsort
SELECT DISTINCT + 22 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 col0, + col1 AS col0 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL col2 * 27 + col2 FROM tab2 AS cor0
----
1120
1624
644

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col0 + - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8959
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + CAST( NULL AS SIGNED ) / + 54 + 47 / - - ( + + col1 ) * - + col2 * col1 AND ( + + col2 - + col2 * - col2 )
----

skipif mysql # not compatible
query III rowsort label-8959
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) / + 54 + 47 / - - ( + + col1 ) * - + col2 * col1 AND ( + + col2 - + col2 * - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8960
SELECT + CAST( NULL AS SIGNED ) / + 95 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8960
SELECT + CAST ( NULL AS INTEGER ) / + 95 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 8 AS col2 FROM tab0 AS cor0 WHERE ( NOT ( NULL ) IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8962
SELECT + + COUNT( ALL - + ( - - ( + CAST( - 80 AS SIGNED ) ) ) ) - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8962
SELECT + + COUNT ( ALL - + ( - - ( + CAST ( - 80 AS INTEGER ) ) ) ) - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + + 39 - col2 FROM tab2 AS cor0
----
-1
-19
16

query I rowsort
SELECT - 71 - - col2 AS col2 FROM tab2
----
-13
-31
-48

query I rowsort
SELECT + 38 - - col0 AS col0 FROM tab2
----
102
113
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8966
SELECT DISTINCT 77 - + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8966
SELECT DISTINCT 77 - + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 4 + col2 + + col2 * col1 col2, col1 AS col2 FROM tab2
----
1192
51
3116
77
3940
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT DISTINCT 4 - COUNT( * ) * 95 FROM tab0
----
-281

skipif mysql # not compatible
query I rowsort label-8968
SELECT DISTINCT 4 - COUNT ( * ) * 95 FROM tab0
----
-281

query I rowsort
SELECT DISTINCT 44 + + col1 + + + 57 AS col2 FROM tab1
----
106
115
148

query I rowsort
SELECT 55 AS col0 FROM tab1 WHERE - 65 + - 43 IS NOT NULL
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8971
SELECT - CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8971
SELECT - CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 col0 FROM tab0 cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT DISTINCT + MAX( - - 80 ) AS col0 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-8973
SELECT DISTINCT + MAX ( - - 80 ) AS col0 FROM tab0 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT ALL COUNT( DISTINCT - 9 ) col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8974
SELECT ALL COUNT ( DISTINCT - 9 ) col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT col2 * 42 AS col2 FROM tab0 WHERE NOT ( + col0 + - col1 ) IS NULL
----
1974
4158
420

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8976
SELECT - - col0, ( - - CAST( - col0 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

skipif mysql # not compatible
query II rowsort label-8976
SELECT - - col0, ( - - CAST ( - col0 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 52 * col0 BETWEEN - - 27 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + - 53 * + col1 * + col2 AS col2, + 12 FROM tab0 cor0
----
-11130
12
-201771
12
-5247
12

query I rowsort
SELECT ALL + - 33 * + + col2 AS col2 FROM tab1 AS cor0
----
-1947
-2244
-3168

query I rowsort
SELECT DISTINCT - 63 * 25 FROM tab1 AS cor0
----
-1575

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 43 col2, - col2 col2 FROM tab1 cor0
----
43
-59
43
-68
43
-96

query II rowsort
SELECT ALL + + col1 AS col2, col0 AS col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT DISTINCT - SUM( DISTINCT - 88 ) AS col0 FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-8983
SELECT DISTINCT - SUM ( DISTINCT - 88 ) AS col0 FROM tab0 AS cor0
----
88

query I rowsort
SELECT DISTINCT col1 * 13 - + 60 FROM tab2 AS cor0
----
603
811
941

query I rowsort
SELECT + 11 * + col0 FROM tab1 AS cor0
----
1001
561
935

query I rowsort
SELECT col2 * - 86 + - - col1 + + 87 AS col2 FROM tab2
----
-1840
-3276
-4834

query I rowsort
SELECT - 68 + - col2 FROM tab2
----
-108
-126
-91

query II rowsort
SELECT - col2, ( col0 ) * col1 + col0 AS col2 FROM tab1
----
-59
510
-68
4368
-96
765

query I rowsort
SELECT DISTINCT + col2 + - col1 + - col2 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT ( - + col0 ) AS col1 FROM tab0 AS cor0 WHERE ( - - col1 BETWEEN - col0 AND + - col0 )
----

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE col1 / col2 + - col0 * + + 62 IS NULL
----

query I rowsort
SELECT ALL - + col0 + + col1 AS col0 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8993
SELECT ALL + ( + col1 ) AS col0, CAST( + 74 AS SIGNED ) AS col2 FROM tab2
----
51
74
67
74
77
74

skipif mysql # not compatible
query II rowsort label-8993
SELECT ALL + ( + col1 ) AS col0, CAST ( + 74 AS INTEGER ) AS col2 FROM tab2
----
51
74
67
74
77
74

query III rowsort
SELECT * FROM tab2 WHERE + 85 / + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 27 + + + col2 AS col2 FROM tab2 AS cor0
----
50
67
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8996
SELECT - + col0 + + 12 AS col1, + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-39
NULL
-73
NULL
-79
NULL

skipif mysql # not compatible
query II rowsort label-8996
SELECT - + col0 + + 12 AS col1, + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-39
NULL
-73
NULL
-79
NULL

query II rowsort
SELECT 7 + - + 85 AS col0, - 23 AS col1 FROM tab0 AS cor0
----
-78
-23
-78
-23
-78
-23

query II rowsort
SELECT - - col1 + + col0 AS col1, - col1 - - col2 FROM tab2 AS cor0
----
141
-37
142
-9
97
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT - MAX( DISTINCT + col1 ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-8999
SELECT - MAX ( DISTINCT + col1 ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-44

query I rowsort
SELECT DISTINCT col0 * + 60 AS col1 FROM tab0 AS cor0
----
5220
5820
900

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE ( - 56 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + + col0 * - + 65 AS col1 FROM tab1 cor0
----
-3264
-5440
-5824

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9003
SELECT DISTINCT + - 92 DIV + COUNT( * ) + - 96 * - 89 AS col1 FROM tab1 AS cor0
----
8514

skipif mysql # not compatible
query I rowsort label-9003
SELECT DISTINCT + - 92 / + COUNT ( * ) + - 96 * - 89 AS col1 FROM tab1 AS cor0
----
8514

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 16 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE 31 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT + COUNT( + + 31 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9006
SELECT + COUNT ( + + 31 ) FROM tab2
----
3

query I rowsort
SELECT - col1 * - ( + + 4 ) FROM tab1
----
188
20
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 20 col0 FROM tab2 cor0
----
20
20
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9009
SELECT DISTINCT + - CAST( - 74 AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
74

skipif mysql # not compatible
query I rowsort label-9009
SELECT DISTINCT + - CAST ( - 74 AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
74

query I rowsort
SELECT DISTINCT - + 78 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9011
SELECT - CAST( - col1 AS SIGNED ) AS col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9011
SELECT - CAST ( - col1 AS INTEGER ) AS col0 FROM tab0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9012
SELECT - 87 * 98 DIV - col1 FROM tab1
----
1705
181
609

skipif mysql # not compatible
query I rowsort label-9012
SELECT - 87 * 98 / - col1 FROM tab1
----
1705
181
609

query I rowsort
SELECT ( + - col0 ) FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9014
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) * - - 29 * + - 65 IN ( - + 98 )
----

skipif mysql # not compatible
query III rowsort label-9014
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) * - - 29 * + - 65 IN ( - + 98 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9015
SELECT + ( - - 44 ) col0, AVG ( - 24 ) * ( - COUNT( col0 ) ) FROM tab2 cor0 WHERE NOT - 45 = NULL
----
44
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9015
SELECT + ( - - 44 ) col0, AVG ( - 24 ) * ( - COUNT ( col0 ) ) FROM tab2 cor0 WHERE NOT - 45 = NULL
----
44
NULL

query I rowsort
SELECT DISTINCT - - 80 AS col2 FROM tab0 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT - COUNT( ALL col2 ) col2 FROM tab0 AS cor0 WHERE NOT - col1 NOT IN ( - col1 + col2, + col2 + - col2 - + col1 * col0 * col1 * - 9 / + 48 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9017
SELECT - COUNT ( ALL col2 ) col2 FROM tab0 AS cor0 WHERE NOT - col1 NOT IN ( - col1 + col2, + col2 + - col2 - + col1 * col0 * col1 * - 9 / + 48 )
----
0

query I rowsort
SELECT DISTINCT + - 90 FROM tab2 cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT - - COUNT( * ) * - COUNT( * ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9019
SELECT - - COUNT ( * ) * - COUNT ( * ) FROM tab1 cor0
----
-9

query I rowsort
SELECT - col2 AS col2 FROM tab0 cor0 WHERE NOT + 88 NOT IN ( + ( - + col2 ), - col1 * + - col0 + - col2 + col1 * + 62 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT + COUNT( * ) * - COUNT( * ) + + 95 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
86

skipif mysql # not compatible
query I rowsort label-9021
SELECT + COUNT ( * ) * - COUNT ( * ) + + 95 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
86

query II rowsort
SELECT + 11 * col2 * + col0, + col2 * - ( - - col1 ) AS col0 FROM tab2
----
11638
-1173
28160
-3080
47850
-3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9023
SELECT + CAST( - COUNT( * ) AS SIGNED ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9023
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9024
SELECT ( - - COUNT( 72 ) ) DIV COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9024
SELECT ( - - COUNT ( 72 ) ) / COUNT ( * ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT 8 * - - SUM( ALL + + 42 ) FROM tab0
----
1008

skipif mysql # not compatible
query I rowsort label-9025
SELECT 8 * - - SUM ( ALL + + 42 ) FROM tab0
----
1008

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 + 35 = + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NULL <> - 59
----

query I rowsort
SELECT ALL + col0 + - + 13 FROM tab2 AS cor0
----
33
51
62

query I rowsort
SELECT ALL - ( - col2 ) + col0 AS col2 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9030
SELECT ALL - COUNT( * ) DIV - COUNT( col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9030
SELECT ALL - COUNT ( * ) / - COUNT ( col1 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT ALL + ( + ( + 50 ) ) AS col2 FROM tab0 cor0
----
50
50
50

query I rowsort
SELECT ALL col1 * - col1 + + 15 FROM tab2 cor0
----
-2586
-4474
-5914

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 - col1 < 38 + - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( + - 51 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 50 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + ( - col0 ) + - col1 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT - - COUNT( * ) - - - 98 - + + COUNT( * ) * - ( - COUNT( * ) ) * + SUM( col1 ) FROM tab2 AS cor0
----
-1850

skipif mysql # not compatible
query I rowsort label-9037
SELECT - - COUNT ( * ) - - - 98 - + + COUNT ( * ) * - ( - COUNT ( * ) ) * + SUM ( col1 ) FROM tab2 AS cor0
----
-1850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 32 col0 FROM tab0 AS cor0
----
-15
-67
22

query I rowsort
SELECT - col1 * 54 - + 8 FROM tab0 AS cor0
----
-1142
-4382
-62

query I rowsort
SELECT col2 * + 17 * + + col1 FROM tab1 AS cor0
----
22848
5015
54332

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT + COUNT( * ) * - COUNT( DISTINCT + - 38 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9041
SELECT + COUNT ( * ) * - COUNT ( DISTINCT + - 38 ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT 97 * + - 4 FROM tab2
----
-388

query I rowsort
SELECT DISTINCT + col0 * + - 60 FROM tab2
----
-2760
-3840
-4500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9044
SELECT DISTINCT - 20 / - 5 * - - COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9044
SELECT DISTINCT - 20 / - 5 * - - COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9045
SELECT + ( - CAST( col0 AS SIGNED ) ) * + 71 AS col1 FROM tab2 AS cor0
----
-3266
-4544
-5325

skipif mysql # not compatible
query I rowsort label-9045
SELECT + ( - CAST ( col0 AS INTEGER ) ) * + 71 AS col1 FROM tab2 AS cor0
----
-3266
-4544
-5325

onlyif mysql # aggregate syntax: 
query II rowsort label-9046
SELECT ALL SUM( DISTINCT - col1 ), + SUM( - - col1 ) - + + 72 col2 FROM tab2 AS cor0
----
-195
123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9046
SELECT ALL SUM ( DISTINCT - col1 ), + SUM ( - - col1 ) - + + 72 col2 FROM tab2 AS cor0
----
-195
123

onlyif mysql # DIV for integer division: 
query I rowsort label-9047
SELECT + + col0 DIV col1 AS col0 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-9047
SELECT + + col0 / col1 AS col0 FROM tab0 AS cor0
----
0
4
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT MAX( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9048
SELECT MAX ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9050
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 43 ) IN ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-9050
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 43 ) IN ( CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT DISTINCT - - col1 + - 88 AS col1 FROM tab0 AS cor0
----
-67
-7
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, - col1 + - col0 * - col1 + - col2 * + + 16 col2 FROM tab2 AS cor0
----
51
1927
67
4030
77
4211

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT + SUM( col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-9053
SELECT + SUM ( col0 ) AS col2 FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9054
SELECT DISTINCT + - 39 + CAST( NULL AS SIGNED ) + - 69 * - ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9054
SELECT DISTINCT + - 39 + CAST ( NULL AS INTEGER ) + - 69 * - ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT DISTINCT - COUNT( - - ( + + 64 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9055
SELECT DISTINCT - COUNT ( - - ( + + 64 ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9056
SELECT COUNT( * ), - 70 AS col1 FROM tab1, tab2 AS cor0
----
9
-70

skipif mysql # not compatible
query II rowsort label-9056
SELECT COUNT ( * ), - 70 AS col1 FROM tab1, tab2 AS cor0
----
9
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 10 col0 FROM tab0 WHERE + + col2 + + col0 < + - col1
----

query I rowsort
SELECT 90 + + - col0 FROM tab2
----
15
26
44

query I rowsort
SELECT - 76 + col1 FROM tab1
----
-29
-62
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-9060
SELECT col2 DIV - + col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9060
SELECT col2 / - + col2 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9061
SELECT MAX( + col2 ) AS col2, - 41 AS col2 FROM tab0 AS cor0
----
99
-41

skipif mysql # not compatible
query II rowsort label-9061
SELECT MAX ( + col2 ) AS col2, - 41 AS col2 FROM tab0 AS cor0
----
99
-41

query I rowsort
SELECT DISTINCT - col0 + 13 * col2 FROM tab0 cor0
----
1190
43
596

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT ALL + - 6 + COUNT( * ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL + - 6 + COUNT ( * ) AS col1 FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL + 70 - 76 FROM tab2
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT COUNT( * ) * + 53 + 67 FROM tab2 AS cor0
----
226

skipif mysql # not compatible
query I rowsort label-9065
SELECT COUNT ( * ) * + 53 + 67 FROM tab2 AS cor0
----
226

query I rowsort
SELECT DISTINCT + col2 - + col0 + - col0 * - col0 FROM tab1 AS cor0
----
2646
7199
8258

query I rowsort
SELECT ALL + col1 * - 3 FROM tab1 AS cor0
----
-141
-15
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9068
SELECT DISTINCT + ( - + col1 ) / - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col1
----

skipif mysql # not compatible
query I rowsort label-9068
SELECT DISTINCT + ( - + col1 ) / - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT ALL + + 30 AS col0 FROM tab1 cor0
----
30
30
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9070
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9070
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT DISTINCT - 93 * - COUNT( * ) col2 FROM tab1
----
279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9071
SELECT DISTINCT - 93 * - COUNT ( * ) col2 FROM tab1
----
279

onlyif mysql # DIV for integer division: 
query I rowsort label-9072
SELECT + col2 DIV - + ( - col1 ) FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-9072
SELECT + col2 / - + ( - col1 ) FROM tab1
----
1
11
6

query II rowsort
SELECT 92 AS col0, + 61 FROM tab0
----
92
61
92
61
92
61

query I rowsort
SELECT col1 * - + col2 AS col1 FROM tab0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-9075
SELECT DISTINCT col1 DIV 43 col2, 71 FROM tab0
----
0
71
1
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9075
SELECT DISTINCT col1 / 43 col2, 71 FROM tab0
----
0
71
1
71

query I rowsort
SELECT ALL - col2 * + col2 * - col2 * - 69 AS col0 FROM tab0
----
-66950631
-69000
-7163787

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 col0 FROM tab2
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT DISTINCT + - COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT + - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT + col0 * + 95 + + col0 + + ( - col1 ) AS col0 FROM tab0 cor0 WHERE NOT NULL <= - ( - col2 ) + col2
----

query I rowsort
SELECT DISTINCT - col2 * + 83 + col0 AS col0 FROM tab1 cor0
----
-4812
-5553
-7917

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9081
SELECT - + CAST( NULL AS DECIMAL ) / - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9081
SELECT - + CAST ( NULL AS REAL ) / - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9083
SELECT DISTINCT + 20 DIV col0 AS col2, col0 col2 FROM tab0
----
0
87
0
97
1
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9083
SELECT DISTINCT + 20 / col0 AS col2, col0 col2 FROM tab0
----
0
87
0
97
1
15

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT + + 31 * col0 FROM tab0 AS cor0
----
2697
3007
465

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9087
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN CAST( - col0 AS SIGNED ) / col2 + + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9087
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN CAST ( - col0 AS INTEGER ) / col2 + + col0 AND NULL
----

query I rowsort
SELECT ALL 31 + 73 * + - col0 FROM tab0 AS cor0
----
-1064
-6320
-7050

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT DISTINCT - 68 + MIN( DISTINCT - 24 ) + - MIN( ALL col1 ) + COUNT( * ) FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-9089
SELECT DISTINCT - 68 + MIN ( DISTINCT - 24 ) + - MIN ( ALL col1 ) + COUNT ( * ) FROM tab0 AS cor0
----
-90

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 78 * - col0 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 > ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 + 69 FROM tab0 cor0
----
156
166
84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9093
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( + CAST( NULL AS SIGNED ) + + - 28 + + col1 )
----

skipif mysql # not compatible
query III rowsort label-9093
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( + CAST ( NULL AS INTEGER ) + + - 28 + + col1 )
----

query II rowsort
SELECT DISTINCT - 52, + col2 AS col1 FROM tab1
----
-52
59
-52
68
-52
96

query I rowsort
SELECT + + col0 AS col1 FROM tab1 WHERE - col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9096
SELECT ALL ( + + 94 ) + + col2 + CAST( + col1 AS SIGNED ) * col2 AS col2 FROM tab1
----
1534
3358
448

skipif mysql # not compatible
query I rowsort label-9096
SELECT ALL ( + + 94 ) + + col2 + CAST ( + col1 AS INTEGER ) * col2 AS col2 FROM tab1
----
1534
3358
448

query II rowsort
SELECT + 46 AS col1, col1 - - + col0 + - - 13 FROM tab0
----
46
109
46
111
46
121

query II rowsort
SELECT ALL col1, - 29 * 79 AS col1 FROM tab2
----
51
-2291
67
-2291
77
-2291

query I rowsort
SELECT ( + + 62 ) + col2 FROM tab0
----
109
161
72

query I rowsort
SELECT ALL + 33 * - + ( - col1 ) AS col1 FROM tab2
----
1683
2211
2541

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * 98 * + col2 + - - 1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT - + 77 + + COUNT( * ) FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-9102
SELECT - + 77 + + COUNT ( * ) FROM tab2 AS cor0
----
-74

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 8 / - 99 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 cor0 WHERE NOT col0 IS NULL
----
14
47
5

query I rowsort
SELECT 47 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT DISTINCT col0 - - ( - - col2 ) FROM tab0
----
196
62
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - + col2 >= col1 * - col1 * + - 89 + - - 72 AND NULL IS NOT NULL
----

query I rowsort
SELECT - ( + + 37 ) + - col0 * + 8 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + col0 + ( - ( col1 ) ) = - col1 + - 65
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9110
SELECT 55 DIV col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9110
SELECT 55 / col0 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND + - col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9112
SELECT + CAST( + 86 AS SIGNED ), col1 + - + 16 + + col0 + + - col0 DIV + col0 AS col1 FROM tab0 AS cor0
----
86
79
86
81
86
91

skipif mysql # not compatible
query II rowsort label-9112
SELECT + CAST ( + 86 AS INTEGER ), col1 + - + 16 + + col0 + + - col0 / + col0 AS col1 FROM tab0 AS cor0
----
86
79
86
81
86
91

query I rowsort
SELECT ALL + - col2 * + 88 + - + col1 FROM tab1 AS cor0
----
-5197
-6031
-8462

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT ALL COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT ( - col2 ) + 24 < - col0 * + col2 - - col2
----
3

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT ( - col2 ) + 24 < - col0 * + col2 - - col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT COUNT( * ) * - MAX( ALL 18 ) AS col2 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-9115
SELECT COUNT ( * ) * - MAX ( ALL 18 ) AS col2 FROM tab1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT DISTINCT 58 * - COUNT( - 69 ) FROM tab0
----
-174

skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT 58 * - COUNT ( - 69 ) FROM tab0
----
-174

onlyif mysql # DIV for integer division: 
query I rowsort label-9117
SELECT DISTINCT col1 DIV - 85 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9117
SELECT DISTINCT col1 / - 85 col0 FROM tab1
----
0

query I rowsort
SELECT + + col1 AS col0 FROM tab1 WHERE NOT + col1 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT - MIN( - + 7 ) FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-9119
SELECT - MIN ( - + 7 ) FROM tab2
----
7

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT - ( col1 ) IS NULL
----
-59
-68
-96

query II rowsort
SELECT + col0, 47 FROM tab2 AS cor0
----
46
47
64
47
75
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT COUNT( - col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9122
SELECT COUNT ( - col0 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + 53 * - ( + + 14 ) FROM tab1
----
-742

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT ALL + MIN( - 19 ) AS col1 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL + MIN ( - 19 ) AS col1 FROM tab0 AS cor0
----
-19

query I rowsort
SELECT - 17 + 36 + - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-422
-6542
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9126
SELECT col1 + CAST( NULL AS SIGNED ) / - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9126
SELECT col1 + CAST ( NULL AS INTEGER ) / - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT 40 * - COUNT( * ) + - - 71 col0 FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9127
SELECT 40 * - COUNT ( * ) + - - 71 col0 FROM tab0 AS cor0
----
-49

query I rowsort
SELECT col0 + + - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT DISTINCT + - COUNT( * ) + + 29 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-9129
SELECT DISTINCT + - COUNT ( * ) + + 29 FROM tab2 AS cor0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-9130
SELECT ALL - col2 DIV col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL - col2 / col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1
-11
-6

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 <= - 46 * 27
----

query I rowsort
SELECT + 78 + 83 FROM tab1 AS cor0
----
161
161
161

query I rowsort
SELECT DISTINCT + 99 + + + col1 FROM tab2
----
150
166
176

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT DISTINCT AVG ( - ( - 29 ) ) + + + MAX( col1 ) FROM tab1 WHERE + 49 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9134
SELECT DISTINCT AVG ( - ( - 29 ) ) + + + MAX ( col1 ) FROM tab1 WHERE + 49 <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT ALL + SUM( DISTINCT + col1 ) FROM tab1 WHERE - col2 / + + col0 IS NOT NULL
----
66

skipif mysql # not compatible
query I rowsort label-9135
SELECT ALL + SUM ( DISTINCT + col1 ) FROM tab1 WHERE - col2 / + + col0 IS NOT NULL
----
66

query II rowsort
SELECT DISTINCT + col1 - col0 AS col2, col1 FROM tab1
----
-37
14
-44
47
-80
5

query I rowsort
SELECT DISTINCT + col2 * + 34 AS col2 FROM tab2
----
1360
1972
782

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * col1 = NULL
----

query I rowsort
SELECT col1 * + 38 FROM tab1
----
1786
190
532

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT ALL + MIN( DISTINCT + 17 ) + - 28 - - 55 col2 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9140
SELECT ALL + MIN ( DISTINCT + 17 ) + - 28 - - 55 col2 FROM tab0 AS cor0
----
44

query II rowsort
SELECT col2 AS col0, col2 * + + col0 * + + col1 AS col1 FROM tab0
----
10
18270
47
57105
99
9603

query I rowsort
SELECT DISTINCT + ( + 87 ) AS col2 FROM tab1
----
87

query II rowsort
SELECT DISTINCT + - 46 AS col1, - 14 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-46
-14

query I rowsort
SELECT col1 * + col1 + + col2 + col2 + 63 * + 96 FROM tab2 AS cor0 WHERE NOT NULL > + 92 * col1 * + + 88
----

query I rowsort
SELECT + - col1 * 56 AS col0 FROM tab1 AS cor0
----
-2632
-280
-784

query II rowsort
SELECT col2, - col2 * col1 + - col1 AS col2 FROM tab0 AS cor0
----
10
-231
47
-3888
99
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT DISTINCT + MIN( - 29 ) AS col1 FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-9147
SELECT DISTINCT + MIN ( - 29 ) AS col1 FROM tab1 AS cor0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9148
SELECT DISTINCT CAST( - 82 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-9148
SELECT DISTINCT CAST ( - 82 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-82

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 62 NOT IN ( - ( col0 ) / + + col1 )
----

query I rowsort
SELECT DISTINCT + 66 * - - col0 FROM tab2
----
3036
4224
4950

query I rowsort
SELECT DISTINCT + - 76 + + col0 FROM tab0 WHERE + 76 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9152
SELECT ALL MIN( DISTINCT + col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL MIN ( DISTINCT + col0 ) AS col0 FROM tab0
----
15

query I rowsort
SELECT + 47 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 * ( - col0 ) AS col1 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 > - + 3
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + - + 26 + col1 FROM tab2 cor0
----
115
116
71

onlyif mysql # DIV for integer division: 
query I rowsort label-9157
SELECT 6 DIV col2 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9157
SELECT 6 / col2 AS col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9158
SELECT DISTINCT 86 + + + ( - ( + col0 ) ) DIV - - ( 37 ) AS col2 FROM tab2
----
84
85

skipif mysql # not compatible
query I rowsort label-9158
SELECT DISTINCT 86 + + + ( - ( + col0 ) ) / - - ( 37 ) AS col2 FROM tab2
----
84
85

query I rowsort
SELECT + col1 * + - col2 + - + 30 FROM tab0 AS cor0
----
-129
-240
-3837

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9160
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 AND NULL
----
0

query I rowsort
SELECT DISTINCT + 67 + - col1 AS col2 FROM tab1 AS cor0
----
20
53
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9162
SELECT ALL + col1 + col2 * + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9162
SELECT ALL + col1 + col2 * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + col0 + - col2 * - col1 AS col2 FROM tab0 AS cor0
----
295
307
3869

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - - 21 col2 FROM tab0 AS cor0
----
-1701
-21
-441

query I rowsort
SELECT + col2 * - col1 - 63 FROM tab1 AS cor0
----
-1407
-3259
-358

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9166
SELECT col1 FROM tab2 cor0 WHERE - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9166
SELECT col1 FROM tab2 cor0 WHERE - CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 80 + + 15 - + + 42 FROM tab1 AS cor0
----
53

query I rowsort
SELECT - col2 - - col1 AS col1 FROM tab2
----
28
37
9

query I rowsort
SELECT - 74 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT ALL col1 + + - col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab0 WHERE NULL IS NULL
----
10
47
99

query I rowsort
SELECT col2 * + col1 - + + 11 AS col0 FROM tab1
----
1333
284
3185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + ( col0 ) + + - col1 * 86 col1 FROM tab0
----
-1709
-6904
110

query I rowsort
SELECT col2 * + + col2 + - - col2 FROM tab0
----
110
2256
9900

onlyif mysql # DIV for integer division: 
query I rowsort label-9175
SELECT 70 DIV - col0 + - col2 * + 44 AS col1 FROM tab2
----
-1013
-1761
-2552

skipif mysql # not compatible
query I rowsort label-9175
SELECT 70 / - col0 + - col2 * + 44 AS col1 FROM tab2
----
-1013
-1761
-2552

query I rowsort
SELECT ALL - col1 - 6 * - + col2 AS col1 FROM tab2
----
163
281
87

query I rowsort
SELECT - 73 + + + col0 + + 5 AS col2 FROM tab0
----
-53
19
29

query I rowsort
SELECT - ( col0 ) + col0 * + - 5 FROM tab1
----
-306
-510
-546

query II rowsort
SELECT DISTINCT + col0 AS col2, + col0 AS col2 FROM tab2 AS cor0
----
46
46
64
64
75
75

query II rowsort
SELECT DISTINCT - + col1 AS col1, + 87 AS col1 FROM tab2 cor0
----
-51
87
-67
87
-77
87

query I rowsort
SELECT DISTINCT 57 * 88 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
5016

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT ( + + SUM( ALL + 44 ) ) FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-9182
SELECT ( + + SUM ( ALL + 44 ) ) FROM tab2 AS cor0
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-9183
SELECT + col2 DIV + 31 FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9183
SELECT + col2 / + 31 FROM tab2 cor0
----
0
1
1

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 AS cor0 WHERE + col0 <= - col1 - col1 + - col1 * + 64 + + + 41 * - - 82
----
51
85
91

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 93 + + col0 - - 61 * col2 - 69 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 37 col2, + col0 - + 44 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT ALL + COUNT( + col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9187
SELECT ALL + COUNT ( + col2 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 32 * + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9189
SELECT CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-9189
SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT + col0 + + - col1 + + - col2 FROM tab1
----
-24
-59
21

query I rowsort
SELECT - 84 * - col1 AS col2 FROM tab1
----
1176
3948
420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9192
SELECT AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT 68 > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9192
SELECT AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT 68 > ( NULL )
----
NULL

query I rowsort
SELECT DISTINCT + 45 * + col2 - 0 + 53 FROM tab0 AS cor0
----
2168
4508
503

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT - MAX( - 65 ) FROM tab1 cor0
----
65

skipif mysql # not compatible
query I rowsort label-9194
SELECT - MAX ( - 65 ) FROM tab1 cor0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-9195
SELECT DISTINCT + col0 + - + col1 DIV 97 * col0 - col2 FROM tab0 AS cor0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-9195
SELECT DISTINCT + col0 + - + col1 / 97 * col0 - col2 FROM tab0 AS cor0
----
-2
-32
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 77 col2 FROM tab2 AS cor0
----
77
77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9197
SELECT ALL - - 11 DIV 25 * - + 61 + + col0 + 48 AS col0 FROM tab2 AS cor0
----
112
123
94

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL - - 11 / 25 * - + 61 + + col0 + 48 AS col0 FROM tab2 AS cor0
----
112
123
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT + MAX( - 90 ) AS col1 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-9198
SELECT + MAX ( - 90 ) AS col1 FROM tab2
----
-90

query I rowsort
SELECT DISTINCT + 39 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 41 col1 FROM tab2
----
1640
2378
943

query I rowsort
SELECT - + 80 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT + 51 + + 14 + 58 + 24 AS col1 FROM tab1
----
147
147
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9203
SELECT AVG ( - 66 ) + + - SUM( ALL - - ( CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9203
SELECT AVG ( - 66 ) + + - SUM ( ALL - - ( CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) <= 35 * + - 85
----
0

skipif mysql # not compatible
query I rowsort label-9204
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) <= 35 * + - 85
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 54 + - + col1 * + col2 + col0 + + + 87 FROM tab2 AS cor0
----
-1094
-2983
-3778

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT - - COUNT( * ) + - COUNT( * ) * + + COUNT( * ) + + 53 + - 70 * COUNT( * ) FROM tab0 AS cor0
----
-163

skipif mysql # not compatible
query I rowsort label-9207
SELECT - - COUNT ( * ) + - COUNT ( * ) * + + COUNT ( * ) + + 53 + - 70 * COUNT ( * ) FROM tab0 AS cor0
----
-163

query I rowsort
SELECT + col1 * + 29 + + col0 AS col0 FROM tab1 AS cor0
----
1454
230
457

query I rowsort
SELECT ALL - 41 * - col1 AS col2 FROM tab1 cor0
----
1927
205
574

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9210
SELECT + CAST( - col2 AS SIGNED ) + 19 AS col1 FROM tab2 cor0
----
-21
-39
-4

skipif mysql # not compatible
query I rowsort label-9210
SELECT + CAST ( - col2 AS INTEGER ) + 19 AS col1 FROM tab2 cor0
----
-21
-39
-4

query I rowsort
SELECT ALL - col2 * + col1 + - - col1 + - - col0 - 72 FROM tab0 AS cor0
----
-174
-3783
-73

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> 6
----

query II rowsort
SELECT + col0, col1 + ( col2 ) FROM tab0 WHERE ( NULL ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9214
SELECT DISTINCT - col1 * + col2 + + ( - - ( + + col2 ) ) + + + ( + CAST( col0 AS SIGNED ) ) FROM tab2
----
-1104
-2976
-3753

skipif mysql # not compatible
query I rowsort label-9214
SELECT DISTINCT - col1 * + col2 + + ( - - ( + + col2 ) ) + + + ( + CAST ( col0 AS INTEGER ) ) FROM tab2
----
-1104
-2976
-3753

query I rowsort
SELECT ALL - col2 + + + col1 + - col0 * + 10 AS col2 FROM tab1
----
-592
-904
-931

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT MAX( DISTINCT col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-9216
SELECT MAX ( DISTINCT col0 ) FROM tab0
----
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 + - + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9218
SELECT ALL 69 - CAST( + col1 AS SIGNED ) FROM tab0
----
-12
48
68

skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL 69 - CAST ( + col1 AS INTEGER ) FROM tab0
----
-12
48
68

onlyif mysql # aggregate syntax: 
query II rowsort label-9219
SELECT DISTINCT COUNT( - - col1 ) - + + COUNT( * ) AS col0, 61 FROM tab2
----
0
61

skipif mysql # not compatible
query II rowsort label-9219
SELECT DISTINCT COUNT ( - - col1 ) - + + COUNT ( * ) AS col0, 61 FROM tab2
----
0
61

query I rowsort
SELECT ALL - col1 * - 99 AS col2 FROM tab2
----
5049
6633
7623

query I rowsort
SELECT - 75 - + col1 AS col0 FROM tab0
----
-156
-76
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT ALL SUM( ALL + - col2 ) AS col0 FROM tab2 cor0 WHERE NOT col1 * col2 + + - 39 IN ( + col2 * - + col2 - col1 + 17 + + - 8 * + + ( + - col1 ), + 4, + 69 )
----
-121

skipif mysql # not compatible
query I rowsort label-9222
SELECT ALL SUM ( ALL + - col2 ) AS col0 FROM tab2 cor0 WHERE NOT col1 * col2 + + - 39 IN ( + col2 * - + col2 - col1 + 17 + + - 8 * + + ( + - col1 ), + 4, + 69 )
----
-121

query I rowsort
SELECT - col1 * - - col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT + - 26 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

query II rowsort
SELECT + 9 AS col2, - ( - col2 ) FROM tab2 AS cor0
----
9
23
9
40
9
58

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 81 * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9227
SELECT ALL - ( + CAST( + 84 AS SIGNED ) ) col2 FROM tab0 AS cor0 WHERE NOT NULL <> 83
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9227
SELECT ALL - ( + CAST ( + 84 AS INTEGER ) ) col2 FROM tab0 AS cor0 WHERE NOT NULL <> 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT DISTINCT - - COUNT( ALL + - col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9228
SELECT DISTINCT - - COUNT ( ALL + - col0 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT + ( - SUM( + + 87 ) ) FROM tab2 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-9229
SELECT + ( - SUM ( + + 87 ) ) FROM tab2 AS cor0
----
-261

onlyif mysql # DIV for integer division: 
query I rowsort label-9230
SELECT - + col2 DIV - 81 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9230
SELECT - + col2 / - 81 AS col2 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL - 15 * - + 8 AS col0, - col0 FROM tab1
----
120
-51
120
-85
120
-91

query I rowsort
SELECT + col1 * 16 AS col1 FROM tab2
----
1072
1232
816

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 <= + 43
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> 7
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9235
SELECT - col1 DIV - + col2, + col0 * + + col1 AS col0 FROM tab1
----
0
425
0
4277
0
714

skipif mysql # not compatible
query II rowsort label-9235
SELECT - col1 / - + col2, + col0 * + + col1 AS col0 FROM tab1
----
0
425
0
4277
0
714

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT ALL + MIN( ALL + 33 ) AS col0 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-9236
SELECT ALL + MIN ( ALL + 33 ) AS col0 FROM tab1
----
33

query I rowsort
SELECT ALL - col1 * - col1 + - + col0 FROM tab1 cor0
----
-60
145
2118

onlyif mysql # aggregate syntax: 
query II rowsort label-9238
SELECT DISTINCT + + COUNT( * ) + 31 + ( MIN( + col2 ) ), 32 AS col0 FROM tab0 AS cor0
----
44
32

skipif mysql # not compatible
query II rowsort label-9238
SELECT DISTINCT + + COUNT ( * ) + 31 + ( MIN ( + col2 ) ), 32 AS col0 FROM tab0 AS cor0
----
44
32

query I rowsort
SELECT ALL - - col2 * + 68 FROM tab2 AS cor0
----
1564
2720
3944

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT ALL + COUNT( DISTINCT - - 24 ) col1 FROM tab2 AS cor0 WHERE NULL <> col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9240
SELECT ALL + COUNT ( DISTINCT - - 24 ) col1 FROM tab2 AS cor0 WHERE NULL <> col0
----
0

query II rowsort
SELECT DISTINCT + 47 AS col0, col0 FROM tab0 AS cor0
----
47
15
47
87
47
97

query I rowsort
SELECT ALL ( + col1 ) + + 23 + + col2 * - - col0 * + col2 FROM tab2 cor0
----
102500
24408
252390

query I rowsort
SELECT - 28 - - + col0 AS col1 FROM tab2 AS cor0
----
18
36
47

query II rowsort
SELECT ALL - 64, col2 + - col0 AS col1 FROM tab2 cor0
----
-64
-17
-64
-23
-64
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT ALL - + ( COUNT( * ) ) + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL - + ( COUNT ( * ) ) + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9246
SELECT 5 DIV - col2 - col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9246
SELECT 5 / - col2 - col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT 93 + + + ( - 68 ) + + + col0 * + col0 FROM tab0
----
250
7594
9434

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT ALL - MAX( ALL + col0 ) - + - COUNT( ( - 21 ) ) AS col2 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-9248
SELECT ALL - MAX ( ALL + col0 ) - + - COUNT ( ( - 21 ) ) AS col2 FROM tab2
----
-72

query I rowsort
SELECT col2 + - + col1 + - - col2 AS col0 FROM tab0
----
-1
13
197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9250
SELECT ALL - CAST( NULL AS SIGNED ) * + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9250
SELECT ALL - CAST ( NULL AS INTEGER ) * + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9251
SELECT DISTINCT + col2 * - + col2 DIV col2 * - + 16 AS col0, + col0 * - + col2 + + col2 FROM tab1
----
1088
-6120
1536
-4800
944
-4956

skipif mysql # not compatible
query II rowsort label-9251
SELECT DISTINCT + col2 * - + col2 / col2 * - + 16 AS col0, + col0 * - + col2 + + col2 FROM tab1
----
1088
-6120
1536
-4800
944
-4956

query I rowsort
SELECT ALL col1 * - - col2 * + col0 FROM tab0
----
18270
57105
9603

query II rowsort
SELECT + col2 * + + col2 * - - col2 + + + col1 AS col0, col0 FROM tab2 AS cor0
----
12218
46
195179
75
64077
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT ALL + MIN( + + ( col2 ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL + MIN ( + + ( col2 ) ) FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9255
SELECT ( - - 6 ) * col2 * + - col1 * CAST( 43 AS SIGNED ) FROM tab2 AS cor0
----
-1002588
-302634
-794640

skipif mysql # not compatible
query I rowsort label-9255
SELECT ( - - 6 ) * col2 * + - col1 * CAST ( 43 AS INTEGER ) FROM tab2 AS cor0
----
-1002588
-302634
-794640

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT - MAX( ALL col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-9256
SELECT - MAX ( ALL col1 ) FROM tab1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-9257
SELECT DISTINCT + col1 DIV + 54 FROM tab0 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9257
SELECT DISTINCT + col1 / + 54 FROM tab0 cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT DISTINCT - SUM( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9258
SELECT DISTINCT - SUM ( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-185

query II rowsort
SELECT + - col0 AS col1, - col2 FROM tab2 AS cor0
----
-46
-23
-64
-40
-75
-58

query I rowsort
SELECT + - ( - - col2 ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL - ( - + 79 ) FROM tab1 cor0 WHERE NULL IS NULL
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT - - ( + + COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9262
SELECT - - ( + + COUNT ( * ) ) FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NULL > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9264
SELECT + col1 + - 36 DIV + col1 + 83 * col0 + - 7 AS col2, 17 FROM tab2
----
3862
17
5382
17
6285
17

skipif mysql # not compatible
query II rowsort label-9264
SELECT + col1 + - 36 / + col1 + 83 * col0 + - 7 AS col2, 17 FROM tab2
----
3862
17
5382
17
6285
17

onlyif mysql # DIV for integer division: 
query I rowsort label-9265
SELECT DISTINCT - col2 DIV - 53 AS col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT - col2 / - 53 AS col0 FROM tab2
----
0
1

query I rowsort
SELECT ALL ( + ( + 21 ) ) + + + col2 AS col0 FROM tab2
----
44
61
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT - MIN( + col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-9267
SELECT - MIN ( + col0 ) AS col1 FROM tab1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-9268
SELECT ALL - col2 DIV - ( - col2 ) AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL - col2 / - ( - col2 ) AS col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 74 + - + col0 AS col2 FROM tab1 AS cor0
----
-11
-17
23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + + 38 * + 6 + - col1 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + + 3 AS col1, + 54 col1 FROM tab0
----
-18
54
-78
54
2
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT - + SUM( - - col2 ) AS col1 FROM tab2 AS cor0 WHERE NULL IN ( 88, 72, - col0, + col0 * 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9272
SELECT - + SUM ( - - col2 ) AS col1 FROM tab2 AS cor0 WHERE NULL IN ( 88, 72, - col0, + col0 * 74 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT DISTINCT + - COUNT( + 44 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9273
SELECT DISTINCT + - COUNT ( + 44 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT col0 + - 32 * - - col2 * col0 FROM tab2 AS cor0
----
-139125
-33810
-81856

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT DISTINCT + ( + + MAX( 95 ) ) + 32 AS col2 FROM tab0 AS cor0
----
127

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT + ( + + MAX ( 95 ) ) + 32 AS col2 FROM tab0 AS cor0
----
127

query I rowsort
SELECT DISTINCT col0 * - col1 AS col2 FROM tab1 AS cor0 WHERE 25 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9277
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE ( + col2 NOT BETWEEN + CAST( NULL AS SIGNED ) AND col0 )
----
1

skipif mysql # not compatible
query I rowsort label-9277
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE ( + col2 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND col0 )
----
1

query I rowsort
SELECT ALL - 85 FROM tab0 WHERE NULL = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 NOT BETWEEN col0 + col2 AND col1 + - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT ALL + ( + SUM( DISTINCT col2 ) ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9280
SELECT ALL + ( + SUM ( DISTINCT col2 ) ) AS col2 FROM tab1
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9281
SELECT + 96, CAST( - + col2 AS SIGNED ) AS col0 FROM tab0
----
96
-10
96
-47
96
-99

skipif mysql # not compatible
query II rowsort label-9281
SELECT + 96, CAST ( - + col2 AS INTEGER ) AS col0 FROM tab0
----
96
-10
96
-47
96
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col1 * - col1 col2 FROM tab2 WHERE NOT - col1 / + col0 IS NULL
----
-2578
-4431
-5889

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT ( + COUNT( - - col2 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9283
SELECT ( + COUNT ( - - col2 ) ) FROM tab0
----
3

query II rowsort
SELECT - col1, ( col1 ) + - col0 * col2 AS col0 FROM tab1 cor0
----
-14
-4882
-47
-6141
-5
-5010

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT + MAX( col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9285
SELECT + MAX ( col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + - ( 43 ) FROM tab0 cor0
----
-43
-43
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0 col0, - col1 col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT - - COUNT( * ) * + 88 FROM tab1 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-9288
SELECT - - COUNT ( * ) * + 88 FROM tab1 AS cor0
----
264

query I rowsort
SELECT DISTINCT 37 FROM tab1 WHERE NOT ( 0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT - col0 >= ( - 66 )
----
2

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT - col0 >= ( - 66 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT DISTINCT MIN( 26 ) + + 3 AS col0 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-9291
SELECT DISTINCT MIN ( 26 ) + + 3 AS col0 FROM tab1
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-9292
SELECT DISTINCT + col0 + - ( + col1 ) DIV 97 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9292
SELECT DISTINCT + col0 + - ( + col1 ) / 97 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9293
SELECT DISTINCT - col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9293
SELECT DISTINCT - col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL - ( - ( + col0 ) ) FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9295
SELECT DISTINCT - CAST( col0 AS SIGNED ) FROM tab0 WHERE + 1 - 85 IS NOT NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT - CAST ( col0 AS INTEGER ) FROM tab0 WHERE + 1 - 85 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT col2 + ( col1 ) * - 43 FROM tab0
----
-3436
-893
56

query I rowsort
SELECT ALL 38 * 91 AS col0 FROM tab2
----
3458
3458
3458

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT 38 + MAX( DISTINCT - ( col2 ) ) FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-9298
SELECT 38 + MAX ( DISTINCT - ( col2 ) ) FROM tab1
----
-21

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND 52 * + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9300
SELECT 75 + - ( col0 ) DIV col2 AS col2 FROM tab0
----
67
75
75

skipif mysql # not compatible
query I rowsort label-9300
SELECT 75 + - ( col0 ) / col2 AS col2 FROM tab0
----
67
75
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9301
SELECT DISTINCT - CAST( NULL AS SIGNED ) * COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9301
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT DISTINCT COUNT( * ) * - COUNT( + col2 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9302
SELECT DISTINCT COUNT ( * ) * - COUNT ( + col2 ) FROM tab2
----
-9

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + 95 NOT IN ( + col1 * 29 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9304
SELECT DISTINCT 28 * - MIN( - 86 DIV 91 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9304
SELECT DISTINCT 28 * - MIN ( - 86 / 91 ) FROM tab1
----
0

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT + ( + COUNT( * ) ) FROM tab0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9306
SELECT + ( + COUNT ( * ) ) FROM tab0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9307
SELECT + 18 + ( + 73 ) DIV COUNT( * ) AS col0 FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-9307
SELECT + 18 + ( + 73 ) / COUNT ( * ) AS col0 FROM tab2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT + MIN( - 48 ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-9308
SELECT + MIN ( - 48 ) FROM tab2
----
-48

query I rowsort
SELECT col0 + + 36 * 34 AS col2 FROM tab0
----
1239
1311
1321

query III rowsort
SELECT * FROM tab1 WHERE + col2 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT ALL - 1 + - COUNT( * ) AS col0 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL - 1 + - COUNT ( * ) AS col0 FROM tab0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT + COUNT( * ) + 29 AS col0 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-9312
SELECT + COUNT ( * ) + 29 AS col0 FROM tab0 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT - MIN( ALL - col0 ) + 67 AS col1 FROM tab0 cor0
----
164

skipif mysql # not compatible
query I rowsort label-9313
SELECT - MIN ( ALL - col0 ) + 67 AS col1 FROM tab0 cor0
----
164

query I rowsort
SELECT - 86 + - col1 * - 87 FROM tab2 AS cor0
----
4351
5743
6613

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - 36 col0 FROM tab1
----
-22
-31
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9316
SELECT CAST( NULL AS SIGNED ) + - 89 AS col0 FROM tab0 WHERE col0 NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-9316
SELECT CAST ( NULL AS INTEGER ) + - 89 AS col0 FROM tab0 WHERE col0 NOT BETWEEN ( NULL ) AND NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 WHERE - 77 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT DISTINCT col0 + - col1 * + 18 FROM tab1
----
-201
-5
-755

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9320
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 - + col1 ) >= ( CAST( NULL AS SIGNED ) + col2 )
----

skipif mysql # not compatible
query III rowsort label-9320
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 - + col1 ) >= ( CAST ( NULL AS INTEGER ) + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < - 46 * + 7
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 91 + + 18 <> col2
----

query I rowsort
SELECT col0 * 55 + col1 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 NOT IN ( - 45 / 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT ( COUNT( * ) ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9325
SELECT ( COUNT ( * ) ) AS col1 FROM tab1 cor0
----
3

query I rowsort
SELECT 85 * + col0 FROM tab0
----
1275
7395
8245

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT DISTINCT COUNT( - 52 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9327
SELECT DISTINCT COUNT ( - 52 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 / col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT DISTINCT - SUM( - col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-9329
SELECT DISTINCT - SUM ( - col0 ) FROM tab2
----
185

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 99 * col0 NOT IN ( col0 + col0 * 79 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 * - 83 FROM tab2 WHERE ( + col2 ) >= NULL
----

query I rowsort
SELECT ALL + 75 * 41 * col1 AS col0 FROM tab2 AS cor0
----
156825
206025
236775

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) > 61
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 91 BETWEEN NULL AND 15 + ( - 59 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT COUNT( * ) FROM tab1 WHERE NOT + col0 - - col1 <= - col0
----
3

skipif mysql # not compatible
query I rowsort label-9335
SELECT COUNT ( * ) FROM tab1 WHERE NOT + col0 - - col1 <= - col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT ALL - MIN( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL - MIN ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 = + col0
----

query I rowsort
SELECT ALL + 11 * - - col2 AS col2 FROM tab1 AS cor0
----
1056
649
748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 94 col0 FROM tab2 AS cor0
----
-36
-54
-71

query I rowsort
SELECT DISTINCT col1 + col0 AS col0 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
141
142
97

query I rowsort
SELECT ALL 41 * 67 AS col0 FROM tab2 AS cor0 WHERE - 93 NOT BETWEEN - col0 AND col2
----
2747
2747
2747

query I rowsort
SELECT - - 77 + + ( - - 97 ) FROM tab2 AS cor0
----
174
174
174

query I rowsort
SELECT ALL - col0 * col1 + col2 + + col1 AS col2 FROM tab0 AS cor0
----
-1087
-1796
3

query I rowsort
SELECT + - col1 - - 69 * 88 AS col0 FROM tab2 AS cor0 WHERE 85 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9345
SELECT * FROM tab1 WHERE + col0 NOT BETWEEN + - 61 + col1 AND - ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9345
SELECT * FROM tab1 WHERE + col0 NOT BETWEEN + - 61 + col1 AND - ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < + col0 * - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9347
SELECT DISTINCT - CAST( + + 93 AS SIGNED ) + + + col2 - - col0 FROM tab0
----
-31
103
4

skipif mysql # not compatible
query I rowsort label-9347
SELECT DISTINCT - CAST ( + + 93 AS INTEGER ) + + + col2 - - col0 FROM tab0
----
-31
103
4

query I rowsort
SELECT ALL 92 - 31 + - col0 FROM tab0
----
-26
-36
46

query I rowsort
SELECT + + 56 AS col1 FROM tab0 WHERE - col2 IS NOT NULL
----
56
56
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9350
SELECT * FROM tab1 WHERE - + CAST( - 61 AS SIGNED ) + - CAST( NULL AS SIGNED ) > - col2
----

skipif mysql # not compatible
query III rowsort label-9350
SELECT * FROM tab1 WHERE - + CAST ( - 61 AS INTEGER ) + - CAST ( NULL AS INTEGER ) > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT - MAX( DISTINCT + + col2 ) * + + 61 FROM tab2
----
-3538

skipif mysql # not compatible
query I rowsort label-9351
SELECT - MAX ( DISTINCT + + col2 ) * + + 61 FROM tab2
----
-3538

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col1 * col1 col1 FROM tab1
----
1475
150212
18816

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT + COUNT( * ) * + + 30 AS col2 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-9353
SELECT + COUNT ( * ) * + + 30 AS col2 FROM tab2
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9354
SELECT 76 DIV - + COUNT( * ) + + 72 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9354
SELECT 76 / - + COUNT ( * ) + + 72 FROM tab2 AS cor0
----
47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 19 ) < 19
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT + COUNT( * ) * ( - + 7 ) FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-9356
SELECT + COUNT ( * ) * ( - + 7 ) FROM tab1 AS cor0
----
-21

query I rowsort
SELECT 58 - + + 1 AS col2 FROM tab0 AS cor0
----
57
57
57

query I rowsort
SELECT ALL col1 + - + 97 * - - col0 FROM tab1 AS cor0
----
-4933
-8240
-8780

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9359
SELECT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN ( - 15 * - + 97 * - col2 + + col0 ) AND CAST( - col2 AS SIGNED ) * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9359
SELECT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN ( - 15 * - + 97 * - col2 + + col0 ) AND CAST ( - col2 AS INTEGER ) * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( NULL ) OR NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 79 AS col0 FROM tab2 WHERE ( col0 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT ALL + + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL + + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT ALL + ( - COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL + ( - COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
-9

query I rowsort
SELECT ALL - - ( - col2 ) FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL 83 AS col0 FROM tab0 cor0
----
83
83
83

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 91 ) BETWEEN + 84 * + - col0 AND + col1 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9367
SELECT ALL - col0 * - col1 DIV - - col1 AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL - col0 * - col1 / - - col1 AS col2 FROM tab2
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9368
SELECT - col2 DIV 39 * - 16 col2 FROM tab0
----
0
16
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9368
SELECT - col2 / 39 * - 16 col2 FROM tab0
----
0
16
32

query I rowsort
SELECT DISTINCT ( 84 ) FROM tab1
----
84

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 23 * + - col2 > ( + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 * + col1 <> + col0
----

query II rowsort
SELECT ALL col2, + col2 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query II rowsort label-9373
SELECT ALL MIN( - + 86 ) AS col2, + SUM( ALL 35 ) FROM tab0
----
-86
105

skipif mysql # not compatible
query II rowsort label-9373
SELECT ALL MIN ( - + 86 ) AS col2, + SUM ( ALL 35 ) FROM tab0
----
-86
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT DISTINCT SUM( DISTINCT - col1 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-9374
SELECT DISTINCT SUM ( DISTINCT - col1 ) AS col1 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-9375
SELECT DISTINCT + COUNT( * ), - COUNT( * ) AS col1 FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-9375
SELECT DISTINCT + COUNT ( * ), - COUNT ( * ) AS col1 FROM tab0
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( 1 )
----
0

skipif mysql # not compatible
query I rowsort label-9376
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( 1 )
----
0

query I rowsort
SELECT ALL + 34 + + + col0 + col0 FROM tab0 AS cor0
----
208
228
64

onlyif mysql # DIV for integer division: 
query II rowsort label-9378
SELECT ALL - col2 AS col2, 38 DIV - ( + col2 ) AS col1 FROM tab2 AS cor0
----
-23
-1
-40
0
-58
0

skipif mysql # not compatible
query II rowsort label-9378
SELECT ALL - col2 AS col2, 38 / - ( + col2 ) AS col1 FROM tab2 AS cor0
----
-23
-1
-40
0
-58
0

query II rowsort
SELECT DISTINCT + col0 AS col1, + 6 * + col0 * + col0 FROM tab1 AS cor0
----
51
15606
85
43350
91
49686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 col0 FROM tab1
----
85
85
85

query I rowsort
SELECT ALL - 6 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9382
SELECT - 40 DIV - 74 + 57 FROM tab2
----
57
57
57

skipif mysql # not compatible
query I rowsort label-9382
SELECT - 40 / - 74 + 57 FROM tab2
----
57
57
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + + col2 col2 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT - 57 FROM tab1 AS cor0 WHERE + 27 NOT BETWEEN - + 14 AND NULL
----

query I rowsort
SELECT col0 * + col0 AS col1 FROM tab2 AS cor0 WHERE ( 62 * - 40 ) IN ( col2 )
----

query I rowsort
SELECT ALL - col2 * + - col0 AS col0 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT DISTINCT + col1 + - 43 AS col2 FROM tab2 AS cor0
----
24
34
8

onlyif mysql # aggregate syntax: 
query II rowsort label-9388
SELECT - SUM( + col0 ) AS col2, 79 AS col1 FROM tab1 AS cor0
----
-227
79

skipif mysql # not compatible
query II rowsort label-9388
SELECT - SUM ( + col0 ) AS col2, 79 AS col1 FROM tab1 AS cor0
----
-227
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT DISTINCT 42 + SUM( + - 96 ) FROM tab0 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-9389
SELECT DISTINCT 42 + SUM ( + - 96 ) FROM tab0 AS cor0
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT - MAX( DISTINCT + col2 ) - - 9 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-9390
SELECT - MAX ( DISTINCT + col2 ) - - 9 FROM tab1
----
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-9391
SELECT col2 DIV + col2 - 70, 55 AS col0 FROM tab1
----
-69
55
-69
55
-69
55

skipif mysql # not compatible
query II rowsort label-9391
SELECT col2 / + col2 - 70, 55 AS col0 FROM tab1
----
-69
55
-69
55
-69
55

query I rowsort
SELECT ALL - col1 * - 8 + + 67 + + col0 FROM tab1
----
192
230
534

query I rowsort
SELECT ALL col2 * + + col1 AS col0 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT SUM( DISTINCT + 95 ) + - 2 * COUNT( * ) FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-9394
SELECT SUM ( DISTINCT + 95 ) + - 2 * COUNT ( * ) FROM tab2
----
89

query I rowsort
SELECT DISTINCT + col1 * - 27 AS col1 FROM tab0
----
-2187
-27
-567

query I rowsort
SELECT - 89 + + col0 FROM tab2
----
-14
-25
-43

query I rowsort
SELECT DISTINCT col2 * + - col1 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT + 56 + + col1 AS col1 FROM tab2
----
107
123
133

query I rowsort
SELECT ALL 98 * + - 3 FROM tab1 cor0
----
-294
-294
-294

query I rowsort
SELECT col0 + 19 * ( - + col1 ) AS col1 FROM tab0 AS cor0
----
-1524
-312
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT ALL COUNT( * ) - - 32 AS col2 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL COUNT ( * ) - - 32 AS col2 FROM tab0 AS cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9402
SELECT ALL - 78 * - CAST( NULL AS SIGNED ) * - col1 / - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL - 78 * - CAST ( NULL AS INTEGER ) * - col1 / - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 86 - - - 6 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT DISTINCT 48 * - 84 AS col1 FROM tab1
----
-4032

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE - 70 >= 52
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT ALL + MIN( DISTINCT col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL + MIN ( DISTINCT col0 ) FROM tab1 cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9408
SELECT col2 * + 46 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9408
SELECT col2 * + 46 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 24 * - col1 FROM tab2 AS cor0
----
-1224
-1608
-1848

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col0 IS NOT NULL OR + ( - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( 7 ) <> ( col0 * col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 27 - - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9413
SELECT DISTINCT - col1 * - - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9413
SELECT DISTINCT - col1 * - - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col1 ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9415
SELECT DISTINCT + col0 DIV col1 col1 FROM tab1 cor0
----
1
17
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9415
SELECT DISTINCT + col0 / col1 col1 FROM tab1 cor0
----
1
17
3

query I rowsort
SELECT col2 * - + col0 + + 69 FROM tab2 AS cor0
----
-2491
-4281
-989

query I rowsort
SELECT - 44 * + 76 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 53b1c36460a4103ac31efc3cf2598048

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT DISTINCT + - MIN( + - 95 ) + + - MIN( DISTINCT 84 ) + + COUNT( * ) * - - 95 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
866

skipif mysql # not compatible
query I rowsort label-9418
SELECT DISTINCT + - MIN ( + - 95 ) + + - MIN ( DISTINCT 84 ) + + COUNT ( * ) * - - 95 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
866

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # DIV for integer division: 
query II rowsort label-9420
SELECT DISTINCT + - col1 AS col1, col0 DIV col2 AS col1 FROM tab1 AS cor0
----
-14
0
-47
1
-5
1

skipif mysql # not compatible
query II rowsort label-9420
SELECT DISTINCT + - col1 AS col1, col0 / col2 AS col1 FROM tab1 AS cor0
----
-14
0
-47
1
-5
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9421
SELECT DISTINCT + CAST( NULL AS SIGNED ) * ( + col2 ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * ( + col2 ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 22 * col2 + - + 14 AS col1 FROM tab1 AS cor0
----
1284
1482
2098

query I rowsort
SELECT ALL + - 96 AS col2 FROM tab0 AS cor0
----
-96
-96
-96

query I rowsort
SELECT + col2 + - + col0 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query II rowsort label-9425
SELECT ALL + MIN( DISTINCT + 10 ) * + COUNT( * ) + COUNT( * ) AS col1, COUNT( * ) AS col0 FROM tab1, tab0 AS cor0
----
99
9

skipif mysql # not compatible
query II rowsort label-9425
SELECT ALL + MIN ( DISTINCT + 10 ) * + COUNT ( * ) + COUNT ( * ) AS col1, COUNT ( * ) AS col0 FROM tab1, tab0 AS cor0
----
99
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9426
SELECT ALL ( - 4 ) DIV + COUNT( * ) AS col0 FROM tab0 WHERE ( NOT - col2 IS NULL )
----
-1

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL ( - 4 ) / + COUNT ( * ) AS col0 FROM tab0 WHERE ( NOT - col2 IS NULL )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9427
SELECT ALL col2 + - + 92 * CAST( NULL AS SIGNED ) * + col2 - + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL col2 + - + 92 * CAST ( NULL AS INTEGER ) * + col2 - + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9428
SELECT ALL MIN( DISTINCT - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) * - - 87 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL MIN ( DISTINCT - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) * - - 87 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 70 * 5 + 36 col0 FROM tab2 WHERE NULL IS NULL
----
386

query I rowsort
SELECT col2 * + - 5 FROM tab2
----
-115
-200
-290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 * col0 - - col0 col0 FROM tab2
----
3634
5056
5925

query I rowsort
SELECT ALL col2 * + + col2 AS col0 FROM tab0
----
100
2209
9801

query I rowsort
SELECT + - 33 * - 30 * + + col1 AS col1 FROM tab0 AS cor0
----
20790
80190
990

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT ALL 78 * COUNT( + col2 ) FROM tab2
----
234

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL 78 * COUNT ( + col2 ) FROM tab2
----
234

onlyif mysql # DIV for integer division: 
query I rowsort label-9436
SELECT 85 DIV + col0 AS col2 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-9436
SELECT 85 / + col0 AS col2 FROM tab0
----
0
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT ALL 44 * + + COUNT( * ) FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL 44 * + + COUNT ( * ) FROM tab2
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT + 97 * + COUNT( * ) AS col2 FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-9438
SELECT + 97 * + COUNT ( * ) AS col2 FROM tab1
----
291

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col0 - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( + col1 ) NOT BETWEEN col0 AND NULL
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT DISTINCT + 79 + + COUNT( * ) col1 FROM tab2 cor0
----
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9441
SELECT DISTINCT + 79 + + COUNT ( * ) col1 FROM tab2 cor0
----
82

query I rowsort
SELECT - 12 FROM tab0 AS cor0 WHERE NULL > col0
----

query I rowsort
SELECT ALL 76 * + col0 AS col0 FROM tab0
----
1140
6612
7372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9444
SELECT - + col1 AS col1 FROM tab0 WHERE ( col2 ) * col0 + + 74 + 28 IN ( - ( col2 ), CAST( NULL AS SIGNED ), - col0 )
----

skipif mysql # not compatible
query I rowsort label-9444
SELECT - + col1 AS col1 FROM tab0 WHERE ( col2 ) * col0 + + 74 + 28 IN ( - ( col2 ), CAST ( NULL AS INTEGER ), - col0 )
----

query II rowsort
SELECT col1 AS col2, 73 + 24 * col2 * + + col0 FROM tab2
----
51
25465
67
104473
77
61513

query I rowsort
SELECT DISTINCT 2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9447
SELECT ALL ( - 67 ) * + - 69 + - + col2 - - col1 * - 52 - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL ( - 67 ) * + - 69 + - + col2 - - col1 * - 52 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 col1 FROM tab2 AS cor0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9449
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE CAST( - 35 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9449
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE CAST ( - 35 AS INTEGER ) IS NULL
----

query I rowsort
SELECT - 97 - - col1 AS col1 FROM tab2 cor0
----
-20
-30
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9451
SELECT DISTINCT - col1 + CAST( NULL AS SIGNED ) + + + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9451
SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) + + + col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9452
SELECT + CAST( NULL AS SIGNED ) - + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9452
SELECT + CAST ( NULL AS INTEGER ) - + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9453
SELECT 18 - COUNT( * ) + + 52 * + + ( - + MAX( DISTINCT + col2 ) ) AS col0, 34 * + + 6 * 44 AS col2 FROM tab2 AS cor0
----
-3001
8976

skipif mysql # not compatible
query II rowsort label-9453
SELECT 18 - COUNT ( * ) + + 52 * + + ( - + MAX ( DISTINCT + col2 ) ) AS col0, 34 * + + 6 * 44 AS col2 FROM tab2 AS cor0
----
-3001
8976

query I rowsort
SELECT + + 28 + + - col1 + col2 AS col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( col1, - 73 )
----

query I rowsort
SELECT DISTINCT + 62 + - + col0 AS col2 FROM tab2
----
-13
-2
16

query I rowsort
SELECT ALL + 79 - 99 AS col0 FROM tab0
----
-20
-20
-20

query I rowsort
SELECT col0 + 67 * - - 47 AS col0 FROM tab2
----
3195
3213
3224

query II rowsort
SELECT ALL - col2, col1 FROM tab2
----
-23
51
-40
77
-58
67

query I rowsort
SELECT ALL + col0 * + - ( + + ( - + col0 ) ) - - col1 FROM tab2
----
2167
4173
5692

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - ( + ( + ( 80 ) ) ) AS col0 FROM tab2 AS cor0
----
-80
-80
-80

query I rowsort
SELECT ALL - 66 * col0 + 98 AS col1 FROM tab1 AS cor0
----
-3268
-5512
-5908

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9463
SELECT CAST( NULL AS SIGNED ) * SUM( DISTINCT col2 ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9463
SELECT CAST ( NULL AS INTEGER ) * SUM ( DISTINCT col2 ) FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 IN ( col0, 28 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - - 39 ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ALL col0 - + col1 AS col1 FROM tab2 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT - MIN( - + col2 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-9467
SELECT - MIN ( - + col2 ) AS col1 FROM tab2
----
58

query I rowsort
SELECT - - 92 AS col0 FROM tab2 AS cor0
----
92
92
92

query I rowsort
SELECT ALL + 2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9470
SELECT - col2 * - 33 + + + col2 * - - col0 DIV - + col0 + + + col0 FROM tab2 AS cor0
----
1344
1931
782

skipif mysql # not compatible
query I rowsort label-9470
SELECT - col2 * - 33 + + + col2 * - - col0 / - + col0 + + + col0 FROM tab2 AS cor0
----
1344
1931
782

query I rowsort
SELECT DISTINCT + + 65 * col0 - - col2 AS col0 FROM tab2 AS cor0
----
3013
4200
4933

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( - + ( + 53 ) ) * - col2 FROM tab2 AS cor0
----
1219
2120
3074

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 BETWEEN - 58 AND - col1 * - 88 + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9475
SELECT + 26 DIV + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9475
SELECT + 26 / + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9476
SELECT - COUNT( * ) * + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / - 57 * COUNT( * ) + + - COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9476
SELECT - COUNT ( * ) * + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / - 57 * COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT + 39 * col0 AS col0 FROM tab0
----
3393
3783
585

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9478
SELECT DISTINCT + col2 * + col0 * + - col2 / + col1 + col1 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9478
SELECT DISTINCT + col2 * + col0 * + - col2 / + col1 + col1 + - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 55 NOT BETWEEN col2 AND + + ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, ( + - 61 ) + col0 * col0 FROM tab0 AS cor0
----
10
7508
47
164
99
9348

query III rowsort
SELECT * FROM tab2 WHERE + + 63 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE ( NOT col0 IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-9482
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NOT col0 IS NULL )
----
3

query I rowsort
SELECT - col0 + - - 45 FROM tab0 AS cor0
----
-42
-52
30

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9484
SELECT + col0 + + CAST( NULL AS DECIMAL ), + col0 + - col2 AS col2 FROM tab2 AS cor0
----
NULL
17
NULL
23
NULL
24

skipif mysql # not compatible
query II rowsort label-9484
SELECT + col0 + + CAST ( NULL AS REAL ), + col0 + - col2 AS col2 FROM tab2 AS cor0
----
NULL
17
NULL
23
NULL
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9485
SELECT DISTINCT 90 * + CAST( NULL AS SIGNED ) AS col0, + col2 * - col2 AS col2 FROM tab2 AS cor0
----
NULL
-1600
NULL
-3364
NULL
-529

skipif mysql # not compatible
query II rowsort label-9485
SELECT DISTINCT 90 * + CAST ( NULL AS INTEGER ) AS col0, + col2 * - col2 AS col2 FROM tab2 AS cor0
----
NULL
-1600
NULL
-3364
NULL
-529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9486
SELECT 87 + col1 * + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
528
6648
88

skipif mysql # not compatible
query I rowsort label-9486
SELECT 87 + col1 * + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
528
6648
88

query I rowsort
SELECT ALL + 29 + - col2 FROM tab0 AS cor0
----
-18
-70
19

query I rowsort
SELECT ALL 79 + - + col2 * col2 AS col0 FROM tab2
----
-1521
-3285
-450

query III rowsort
SELECT * FROM tab2 WHERE 55 IS NULL
----

query I rowsort
SELECT ALL + ( - - 83 ) FROM tab0
----
83
83
83

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT col1 * + 51 / - col2 * col2 < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 99 NOT BETWEEN + 61 * 72 * + + col0 AND NULL
----

query I rowsort
SELECT ALL - 28 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9494
SELECT + + 97, + 81 - + + CAST( - ( + 33 ) AS SIGNED ) * + col0 col2 FROM tab0 AS cor0
----
97
2952
97
3282
97
576

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9494
SELECT + + 97, + 81 - + + CAST ( - ( + 33 ) AS INTEGER ) * + col0 col2 FROM tab0 AS cor0
----
97
2952
97
3282
97
576

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - ( - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <= - col2 * + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - ( - - col0 ) AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE - col2 * - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9498
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE - col2 * - col2 IS NULL
----
0

query I rowsort
SELECT - ( - col2 ) * + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT DISTINCT + COUNT( + - 98 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9500
SELECT DISTINCT + COUNT ( + - 98 ) AS col1 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9501
SELECT DISTINCT + ( - col0 ) DIV + col0 + col1 FROM tab2 AS cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-9501
SELECT DISTINCT + ( - col0 ) / + col0 + col1 FROM tab2 AS cor0
----
50
66
76

query I rowsort
SELECT - - col2 + - - 7 * + col0 AS col1 FROM tab0 AS cor0
----
152
619
778

query I rowsort
SELECT ALL 89 - + col1 AS col0 FROM tab0
----
68
8
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 col0 FROM tab1 AS cor0 WHERE 33 <= - ( + 18 )
----

query I rowsort
SELECT DISTINCT + 49 - - + 15 + + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-2282
-4864
-4961

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE - col1 BETWEEN - col1 AND NULL AND 69 IS NOT NULL
----

query I rowsort
SELECT 1 FROM tab0 AS cor0 WHERE col2 BETWEEN 43 + col0 * - col2 + 27 AND ( + + col2 )
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9508
SELECT - COUNT( * ) AS col0, 10 FROM tab1 AS cor0 WHERE - ( - col0 ) * CAST( - col0 AS SIGNED ) * CAST( NULL AS SIGNED ) + 23 - + ( + + col2 ) + - + col1 + - col2 + + 27 IS NOT NULL AND col0 <= + - col0 / + 42 + - col1
----
0
10

skipif mysql # not compatible
query II rowsort label-9508
SELECT - COUNT ( * ) AS col0, 10 FROM tab1 AS cor0 WHERE - ( - col0 ) * CAST ( - col0 AS INTEGER ) * CAST ( NULL AS INTEGER ) + 23 - + ( + + col2 ) + - + col1 + - col2 + + 27 IS NOT NULL AND col0 <= + - col0 / + 42 + - col1
----
0
10

query II rowsort
SELECT 27 AS col2, col2 FROM tab2 cor0 WHERE - 77 * + col2 NOT IN ( - - 36, col1 )
----
27
23
27
40
27
58

query II rowsort
SELECT DISTINCT col2, col1 * - col2 * col1 AS col1 FROM tab0 AS cor0
----
10
-4410
47
-308367
99
-99

query I rowsort
SELECT 96 - - 0 AS col1 FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT ( - col2 ) FROM tab1 WHERE NOT ( NULL NOT BETWEEN NULL AND NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 85 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9514
SELECT - CAST( - 44 AS SIGNED ), col2 * + + 92 AS col0 FROM tab1
----
44
5428
44
6256
44
8832

skipif mysql # not compatible
query II rowsort label-9514
SELECT - CAST ( - 44 AS INTEGER ), col2 * + + 92 AS col0 FROM tab1
----
44
5428
44
6256
44
8832

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 = - 0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1 AS col2, - ( + ( + 22 ) ) / col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + - col0 + + col0 AS col1, col0 * - col1 FROM tab0 AS cor0 WHERE NOT NULL <> col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, col1 - - + col0 col2 FROM tab1 AS cor0
----
51
65
85
90
91
138

query I rowsort
SELECT ALL - - 96 + - ( col0 ) AS col1 FROM tab0 AS cor0
----
-1
81
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9520
SELECT 39 DIV - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-9520
SELECT 39 / - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-13

query II rowsort
SELECT DISTINCT + col1, 69 + + col1 FROM tab1 cor0
----
14
83
47
116
5
74

query I rowsort
SELECT col1 * - + col1 FROM tab1 cor0
----
-196
-2209
-25

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 78 IS NOT NULL
----

query I rowsort
SELECT + 57 + + 34 FROM tab0 AS cor0
----
91
91
91

query I rowsort
SELECT + + col0 + + col2 - + 30 FROM tab0 AS cor0
----
166
32
67

query I rowsort
SELECT ALL + 48 + - 9 AS col0 FROM tab1 AS cor0
----
39
39
39

query I rowsort
SELECT ALL - - col0 * + col0 + 25 AS col0 FROM tab1 AS cor0
----
2626
7250
8306

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT COUNT( * ) + + 36 AS col1 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-9528
SELECT COUNT ( * ) + + 36 AS col1 FROM tab1 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT + COUNT( DISTINCT col1 ) + COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9529
SELECT + COUNT ( DISTINCT col1 ) + COUNT ( * ) AS col1 FROM tab1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9530
SELECT ALL CAST( NULL AS SIGNED ) AS col2, - col1 + - - 0 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-9530
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, - col1 + - - 0 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

query I rowsort
SELECT DISTINCT + col1 * - - col0 * col2 AS col2 FROM tab0
----
18270
57105
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-9532
SELECT - col0 DIV 98 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9532
SELECT - col0 / 98 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * col1 * - col0 AS col2 FROM tab2 AS cor0
----
-197120
-291450
-53958

query I rowsort
SELECT - 66 * - + 97 * + col1 + - 71 * - col0 - + ( col1 ) FROM tab0 AS cor0
----
13288
140598
519546

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 69 IS NULL
----

query I rowsort
SELECT - 27 AS col1 FROM tab0 cor0
----
-27
-27
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9537
SELECT - + COUNT( * ) DIV - COUNT( * ) + - COUNT( * ) AS col2, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-2
3

skipif mysql # not compatible
query II rowsort label-9537
SELECT - + COUNT ( * ) / - COUNT ( * ) + - COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-2
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9538
SELECT DISTINCT - 43 DIV + col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9538
SELECT DISTINCT - 43 / + col2 FROM tab2 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT DISTINCT + COUNT( DISTINCT - - col2 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9539
SELECT DISTINCT + COUNT ( DISTINCT - - col2 ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9540
SELECT DISTINCT - col0 * - ( - CAST( - - col1 AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-9540
SELECT DISTINCT - col0 * - ( - CAST ( - - col1 AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-425
-4277
-714

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * col1 + - col1 / 24 < - + col2 + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - 67 ) FROM tab0
----
-67
-67
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * - ( - 57 ) AS col1, + col1 col1 FROM tab1
----
3363
5
3876
47
5472
14

query II rowsort
SELECT col2 AS col1, 53 FROM tab0
----
10
53
47
53
99
53

query II rowsort
SELECT DISTINCT 46 AS col0, col1 FROM tab2
----
46
51
46
67
46
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT ALL + SUM( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL + SUM ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-199

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9547
SELECT - - CAST( NULL AS DECIMAL ) / + SUM( DISTINCT - 51 ) FROM tab1 WHERE NOT ( - 61 ) BETWEEN - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9547
SELECT - - CAST ( NULL AS REAL ) / + SUM ( DISTINCT - 51 ) FROM tab1 WHERE NOT ( - 61 ) BETWEEN - col0 AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9548
SELECT CAST( NULL AS SIGNED ) + COUNT( ALL + 24 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9548
SELECT CAST ( NULL AS INTEGER ) + COUNT ( ALL + 24 ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + 94 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9550
SELECT ALL COUNT( DISTINCT + + 1 ) AS col2, 75 col1 FROM tab0 AS cor0
----
1
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9550
SELECT ALL COUNT ( DISTINCT + + 1 ) AS col2, 75 col1 FROM tab0 AS cor0
----
1
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT + + ( - MIN( + col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9551
SELECT + + ( - MIN ( + col1 ) ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - col2 * + col1 + - col2 FROM tab2 AS cor0 WHERE - 45 IS NOT NULL
----
-1196
-3120
-3944

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT ALL 97 + - - 82 * - COUNT( * ) FROM tab0 AS cor0
----
-149

skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL 97 + - - 82 * - COUNT ( * ) FROM tab0 AS cor0
----
-149

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 34 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9555
SELECT ALL + 63 * + ( - col1 ) + + + CAST( - + 21 AS SIGNED ) AS col1 FROM tab1
----
-2982
-336
-903

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL + 63 * + ( - col1 ) + + + CAST ( - + 21 AS INTEGER ) AS col1 FROM tab1
----
-2982
-336
-903

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT ALL MAX( DISTINCT - - col0 ) * - - SUM( - col2 ) + 55 AS col0 FROM tab1
----
-20238

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL MAX ( DISTINCT - - col0 ) * - - SUM ( - col2 ) + 55 AS col0 FROM tab1
----
-20238

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT ALL + COUNT( * ) - - 56 AS col2 FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL + COUNT ( * ) - - 56 AS col2 FROM tab0
----
59

query I rowsort
SELECT col1 * + col2 + + col2 * - ( - + col1 ) AS col1 FROM tab0
----
198
420
7614

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9559
SELECT ALL + 39 - - col2 + - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL + 39 - - col2 + - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT - + MAX( - col2 ) col1 FROM tab0 WHERE NOT - + 66 IS NULL
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9560
SELECT - + MAX ( - col2 ) col1 FROM tab0 WHERE NOT - + 66 IS NULL
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 38, + col0 + - ( ( 40 ) ) col1 FROM tab1 AS cor0
----
38
11
38
45
38
51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 82 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9563
SELECT - - col2 DIV + - col1 * - CAST( ( 21 ) AS SIGNED ) + - col0 FROM tab2 AS cor0 WHERE NOT 87 IS NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9563
SELECT - - col2 / + - col1 * - CAST ( ( 21 ) AS INTEGER ) + - col0 FROM tab2 AS cor0 WHERE NOT 87 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-9564
SELECT ALL COUNT( * ), 13 AS col1 FROM tab0 AS cor0
----
3
13

skipif mysql # not compatible
query II rowsort label-9564
SELECT ALL COUNT ( * ), 13 AS col1 FROM tab0 AS cor0
----
3
13

query II rowsort
SELECT DISTINCT + col2 AS col0, + 36 AS col2 FROM tab2 AS cor0
----
23
36
40
36
58
36

query II rowsort
SELECT ALL + col2 AS col1, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT DISTINCT MAX( + - 56 ) AS col2 FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-9567
SELECT DISTINCT MAX ( + - 56 ) AS col2 FROM tab2 AS cor0
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-9568
SELECT - COUNT( * ), 64 AS col2 FROM tab2 cor0
----
-3
64

skipif mysql # not compatible
query II rowsort label-9568
SELECT - COUNT ( * ), 64 AS col2 FROM tab2 cor0
----
-3
64

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 + + + col1 >= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 5, + 57 col2 FROM tab1 AS cor0
----
5
57

query I rowsort
SELECT DISTINCT - + col1 * + 58 AS col2 FROM tab0 cor0
----
-1218
-4698
-58

query I rowsort
SELECT - 62 * - - ( + - 95 ) FROM tab2
----
5890
5890
5890

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT ALL COUNT( + col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9573
SELECT ALL COUNT ( + col1 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT DISTINCT 50 * + + col1 FROM tab0
----
1050
4050
50

query I rowsort
SELECT + 28 * + col2 AS col2 FROM tab2
----
1120
1624
644

query I rowsort
SELECT ALL col2 * 87 FROM tab2
----
2001
3480
5046

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9577
SELECT ALL 77 DIV COUNT( * ) * - 63 AS col2 FROM tab2
----
-1575

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL 77 / COUNT ( * ) * - 63 AS col2 FROM tab2
----
-1575

query II rowsort
SELECT ALL + 88 * col0, col2 FROM tab2
----
4048
23
5632
40
6600
58

query I rowsort
SELECT DISTINCT + ( + - col1 ) FROM tab0
----
-1
-21
-81

query I rowsort
SELECT - - col0 * + col2 * + - ( + col0 ) FROM tab0 cor0
----
-10575
-75690
-931491

query II rowsort
SELECT + + ( - col2 ), col2 * - col1 AS col1 FROM tab1 cor0
----
-59
-295
-68
-3196
-96
-1344

query I rowsort
SELECT ( - 31 ) AS col0 FROM tab1 AS cor0
----
-31
-31
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9583
SELECT DISTINCT - col1 * ( col1 ) * - 83 + - + CAST( NULL AS SIGNED ) + 48 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT - col1 * ( col1 ) * - 83 + - + CAST ( NULL AS INTEGER ) + 48 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9584
SELECT ALL + 26 AS col0, SUM( DISTINCT + 73 ) + - 74 AS col1 FROM tab2
----
26
-1

skipif mysql # not compatible
query II rowsort label-9584
SELECT ALL + 26 AS col0, SUM ( DISTINCT + 73 ) + - 74 AS col1 FROM tab2
----
26
-1

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col2 - + col0 * - 30 / - + col0 IS NULL
----

query II rowsort
SELECT ALL + col1 AS col1, - col0 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 + - 85 col0 FROM tab2 AS cor0
----
-6
-6
-6

query I rowsort
SELECT - + 41 FROM tab0 AS cor0 WHERE col0 < - + 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT DISTINCT + 8 + MIN( ALL col0 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9589
SELECT DISTINCT + 8 + MIN ( ALL col0 ) FROM tab1 AS cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9590
SELECT ALL CAST( NULL AS SIGNED ) + + + col2 + 46 / col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9590
SELECT ALL CAST ( NULL AS INTEGER ) + + + col2 + 46 / col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 71 + 9 - + - 38 AS col1 FROM tab0 AS cor0
----
118
118
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9592
SELECT + - col0 + + CAST( NULL AS SIGNED ) 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-9592
SELECT + - col0 + + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE - - 74 IN ( - + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE + + col2 + - ( col0 ) * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT - - COUNT( * ) * + COUNT( * ) + + 98 FROM tab0 AS cor0
----
107

skipif mysql # not compatible
query I rowsort label-9596
SELECT - - COUNT ( * ) * + COUNT ( * ) + + 98 FROM tab0 AS cor0
----
107

query II rowsort
SELECT + - 17 - - - col0, col2 AS col2 FROM tab0 AS cor0
----
-104
10
-114
99
-32
47

query I rowsort
SELECT - col1 * - 12 - col0 AS col0 FROM tab0 AS cor0
----
-85
165
957

query I rowsort
SELECT + col2 - - 95 AS col1 FROM tab2 AS cor0
----
118
135
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab0 cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE - col1 > - col2
----

query II rowsort
SELECT DISTINCT - 81, col1 FROM tab2 AS cor0 WHERE NOT col1 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND 14
----
0

skipif mysql # not compatible
query I rowsort label-9603
SELECT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND 14
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9604
SELECT + col0 DIV 7 FROM tab0
----
12
13
2

skipif mysql # not compatible
query I rowsort label-9604
SELECT + col0 / 7 FROM tab0
----
12
13
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT ALL MAX( - + 16 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-16

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL MAX ( - + 16 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-16

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 99 + col2 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9607
SELECT - + CAST( NULL AS SIGNED ) AS col0, - col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-9607
SELECT - + CAST ( NULL AS INTEGER ) AS col0, - col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

query I rowsort
SELECT DISTINCT + ( + + ( col2 ) ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT - 47 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL <= 14
----
0

skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL <= 14
----
0

query I rowsort
SELECT ALL + - ( - 9 ) * - col1 * 38 - + 83 + + ( + col1 ) * - col1 + - 18 FROM tab0 cor0
----
-34364
-444
-7724

query I rowsort
SELECT + col0 * + 10 - - col0 FROM tab2 cor0
----
506
704
825

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT 90 + + + col2 * - 14 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT 11 * + COUNT( col2 ) FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-9614
SELECT 11 * + COUNT ( col2 ) FROM tab2
----
33

query II rowsort
SELECT + 89 AS col0, ( + - col1 ) FROM tab1
----
89
-14
89
-47
89
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9616
SELECT - col1 DIV 29 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-9616
SELECT - col1 / 29 FROM tab2
----
-1
-2
-2

query I rowsort
SELECT ( + col1 ) * + - 93 FROM tab1
----
-1302
-4371
-465

query II rowsort
SELECT ALL ( - col2 ), 32 AS col1 FROM tab2
----
-23
32
-40
32
-58
32

query I rowsort
SELECT DISTINCT + col2 + 30 + + 15 AS col1 FROM tab0
----
144
55
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT DISTINCT + MAX( - - col2 ) + + + COUNT( * ) FROM tab1 cor0
----
99

skipif mysql # not compatible
query I rowsort label-9620
SELECT DISTINCT + MAX ( - - col2 ) + + + COUNT ( * ) FROM tab1 cor0
----
99

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 = + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT COUNT( * ) + - 8 * - 89 AS col2 FROM tab0
----
715

skipif mysql # not compatible
query I rowsort label-9622
SELECT COUNT ( * ) + - 8 * - 89 AS col2 FROM tab0
----
715

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE + 82 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # DIV for integer division: 
query I rowsort label-9624
SELECT + col0 DIV + + 77 AS col1 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9624
SELECT + col0 / + + 77 AS col1 FROM tab0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT + - COUNT( * ) * - ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9625
SELECT + - COUNT ( * ) * - ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT 78 * - - col1 AS col1 FROM tab1 AS cor0
----
1092
3666
390

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= 91
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 3 - + 44 + - col2 * + - col1 AS col0 FROM tab0 AS cor0
----
169
3766
58

query I rowsort
SELECT ALL + - col1 + - + 97 - - - col0 + col0 FROM tab1 AS cor0
----
-102
-111
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT DISTINCT + COUNT( * ) - + - 81 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-9631
SELECT DISTINCT + COUNT ( * ) - + - 81 FROM tab0 AS cor0
----
84

query I rowsort
SELECT DISTINCT + col2 + + col0 * ( - col1 ) + col1 FROM tab0 WHERE NULL IS NULL
----
-1087
-1796
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 + - 95 col1 FROM tab1
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT DISTINCT - SUM( DISTINCT - + col2 ) + - 59 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-9634
SELECT DISTINCT - SUM ( DISTINCT - + col2 ) + - 59 FROM tab0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9635
SELECT CAST( NULL AS SIGNED ) * + - col1 + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9635
SELECT CAST ( NULL AS INTEGER ) * + - col1 + col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9636
SELECT ALL 69 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL 69 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT 58 + - COUNT( * ) FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-9637
SELECT 58 + - COUNT ( * ) FROM tab2
----
55

query II rowsort
SELECT ALL + 19 AS col1, - col1 - + col0 FROM tab2 AS cor0
----
19
-141
19
-142
19
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT DISTINCT + + 30 + + ( COUNT( * ) ) FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-9639
SELECT DISTINCT + + 30 + + ( COUNT ( * ) ) FROM tab1 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT + - ( COUNT( * ) ) * - MIN( col2 ) AS col2 FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-9640
SELECT + - ( COUNT ( * ) ) * - MIN ( col2 ) AS col2 FROM tab1 AS cor0
----
177

query I rowsort
SELECT + col0 + + 28 * + col0 AS col2 FROM tab2 AS cor0 WHERE NOT col2 * + col1 + - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 > col0
----
87
21
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9643
SELECT DISTINCT - CAST( COUNT( - col2 ) AS SIGNED ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT - CAST ( COUNT ( - col2 ) AS INTEGER ) AS col2 FROM tab2 cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 94 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 83 * - col2 FROM tab1 AS cor0
----
-4897
-5644
-7968

onlyif mysql # DIV for integer division: 
query I rowsort label-9646
SELECT + col2 DIV + - 43 + + 14 FROM tab1
----
12
13
13

skipif mysql # not compatible
query I rowsort label-9646
SELECT + col2 / + - 43 + + 14 FROM tab1
----
12
13
13

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 88 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + + 71 AS col2 FROM tab2
----
111
129
94

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) = col0
----

query I rowsort
SELECT + - col0 AS col0 FROM tab2 AS cor0 WHERE 44 > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * - - col0 NOT IN ( ( - + col2 ) - + 78 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9652
SELECT ALL - ( + + AVG ( DISTINCT - ( + col0 ) ) ) + - CAST( NULL AS SIGNED ) col1, + COUNT( * ) col1 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9652
SELECT ALL - ( + + AVG ( DISTINCT - ( + col0 ) ) ) + - CAST ( NULL AS INTEGER ) col1, + COUNT ( * ) col1 FROM tab2 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT DISTINCT + SUM( - - col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9653
SELECT DISTINCT + SUM ( - - col2 ) FROM tab0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9654
SELECT DISTINCT - col1 * + CAST( 31 AS SIGNED ) FROM tab2
----
-1581
-2077
-2387

skipif mysql # not compatible
query I rowsort label-9654
SELECT DISTINCT - col1 * + CAST ( 31 AS INTEGER ) FROM tab2
----
-1581
-2077
-2387

onlyif mysql # DIV for integer division: 
query I rowsort label-9655
SELECT col1 + - col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-9655
SELECT col1 + - col1 / - col1 AS col0 FROM tab0 AS cor0
----
2
22
82

query I rowsort
SELECT - - 48 + - + 54 AS col2 FROM tab2 AS cor0
----
-6
-6
-6

query I rowsort
SELECT + ( + col0 ) + + col2 AS col2 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT DISTINCT + + MIN( - col1 ) * 12 FROM tab2 AS cor0
----
-924

skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT + + MIN ( - col1 ) * 12 FROM tab2 AS cor0
----
-924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9659
SELECT DISTINCT + COUNT( * ) DIV + + 84 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9659
SELECT DISTINCT + COUNT ( * ) / + + 84 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT + SUM( ALL + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9660
SELECT + SUM ( ALL + col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT 74 - COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
71

skipif mysql # not compatible
query I rowsort label-9661
SELECT 74 - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
71

query III rowsort
SELECT * FROM tab2 WHERE - 38 * - 55 * - 90 * ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9663
SELECT - SUM( ALL 41 ), 76 AS col1 FROM tab1
----
-123
76

skipif mysql # not compatible
query II rowsort label-9663
SELECT - SUM ( ALL 41 ), 76 AS col1 FROM tab1
----
-123
76

onlyif mysql # DIV for integer division: 
query I rowsort label-9664
SELECT 84 + + + col2 + + col2 * 54 DIV + 50 - + col0 FROM tab2 WHERE ( + col0 ) * + 19 <> 9
----
103
129
85

skipif mysql # not compatible
query I rowsort label-9664
SELECT 84 + + + col2 + + col2 * 54 / + 50 - + col0 FROM tab2 WHERE ( + col0 ) * + 19 <> 9
----
103
129
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9665
SELECT ALL + CAST( NULL AS SIGNED ) - + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9665
SELECT ALL + CAST ( NULL AS INTEGER ) - + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT DISTINCT - SUM( + + col0 ) - - COUNT( * ) col0 FROM tab2
----
-182

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9666
SELECT DISTINCT - SUM ( + + col0 ) - - COUNT ( * ) col0 FROM tab2
----
-182

onlyif mysql # DIV for integer division: 
query I rowsort label-9667
SELECT DISTINCT - col2 DIV - + 1 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9667
SELECT DISTINCT - col2 / - + 1 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9668
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE NULL >= NULL
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col2 + + ( - - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9670
SELECT ALL - - CAST( NULL AS SIGNED ) / + MAX( DISTINCT - - 24 ) - - + 47 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9670
SELECT ALL - - CAST ( NULL AS INTEGER ) / + MAX ( DISTINCT - - 24 ) - - + 47 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 43 AS col1 FROM tab2
----
43
43
43

query I rowsort
SELECT + col0 * + - col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9673
SELECT ALL CAST( - col2 AS SIGNED ) * col1 * + - 76 AS col1 FROM tab1
----
102144
22420
242896

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL CAST ( - col2 AS INTEGER ) * col1 * + - 76 AS col1 FROM tab1
----
102144
22420
242896

query II rowsort
SELECT 39 AS col1, + ( - col0 ) FROM tab2
----
39
-46
39
-64
39
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 31 ) col1 FROM tab0 AS cor0
----
31
31
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9676
SELECT ALL - - CAST( + 59 AS SIGNED ) FROM tab1 AS cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL - - CAST ( + 59 AS INTEGER ) FROM tab1 AS cor0
----
59
59
59

query I rowsort
SELECT ALL + + 17 FROM tab0 AS cor0
----
17
17
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab0 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col0 / - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9679
SELECT DISTINCT 4 DIV + col1 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9679
SELECT DISTINCT 4 / + col1 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9680
SELECT DISTINCT - SUM( + CAST( + 9 AS SIGNED ) ) FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9680
SELECT DISTINCT - SUM ( + CAST ( + 9 AS INTEGER ) ) FROM tab0 AS cor0
----
-27

query I rowsort
SELECT - ( - col1 ) * + + col1 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9682
SELECT 19 DIV - COUNT( * ) AS col0 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-9682
SELECT 19 / - COUNT ( * ) AS col0 FROM tab2
----
-6

query III rowsort
SELECT * FROM tab0 WHERE col2 + - col1 + - 15 = 11
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - + 62 * - 28 + + ( + col0 ) * - 23 BETWEEN + 41 + 98 + - col1 - - 38 AND 84 / + col0 AND NOT NULL >= - col2 * + - col0 * + - 38 - - col1 + col0
----

query I rowsort
SELECT 46 + + ( - col2 ) FROM tab2
----
-12
23
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9686
SELECT ALL COUNT( ALL + col2 ) + ( + 70 ) DIV 94 AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9686
SELECT ALL COUNT ( ALL + col2 ) + ( + 70 ) / 94 AS col0 FROM tab1
----
3

query I rowsort
SELECT ALL + 98 AS col1 FROM tab0, tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * + + ( + col0 ) * + col2 col1 FROM tab0
----
66975
82650
912285

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 - - col2 - col2 col1 FROM tab0 AS cor0
----
25
25
25

query I rowsort
SELECT col2 - col1 * + ( + col0 ) * + + col0 + + col0 FROM tab1 AS cor0
----
-35981
-36267
-389048

query I rowsort
SELECT DISTINCT col1 * - + 49 + col1 FROM tab1 AS cor0
----
-2256
-240
-672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9692
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + + MIN( - - col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9692
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + + MIN ( - - col2 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 * col2 - - col0 + + col1 AS col1 FROM tab1 cor0
----
1409
3334
385

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT + MIN( ALL - - col1 ) + - + 63 FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-9694
SELECT + MIN ( ALL - - col1 ) + - + 63 FROM tab0
----
-62

query I rowsort
SELECT ALL col2 + - 1 FROM tab0
----
46
9
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab2 WHERE NOT NULL <= + col2 + - 65 + - 55 * + 49 * + + col2
----

query II rowsort
SELECT DISTINCT + col1 * - col0, + col1 FROM tab1
----
-425
5
-4277
47
-714
14

query I rowsort
SELECT ALL - col0 * - + col1 * - - 78 FROM tab1
----
33150
333606
55692

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9699
SELECT ALL + 2 / + CAST( NULL AS SIGNED ) * + + ( - ( - + col2 ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL + 2 / + CAST ( NULL AS INTEGER ) * + + ( - ( - + col2 ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9700
SELECT DISTINCT - col2 DIV + 59 AS col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9700
SELECT DISTINCT - col2 / + 59 AS col0 FROM tab0
----
-1
0

query I rowsort
SELECT DISTINCT + col1 * - 72 AS col0 FROM tab2
----
-3672
-4824
-5544

query I rowsort
SELECT DISTINCT ( - + col2 ) AS col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL - col1 * ( - - 34 ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( col2 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT ALL COUNT( * ) * - COUNT( col0 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9704
SELECT ALL COUNT ( * ) * - COUNT ( col0 ) FROM tab2
----
-9

query I rowsort
SELECT 89 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT ALL + col0 + + col1 + + 48 FROM tab1 AS cor0
----
113
138
186

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 3 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * - col2 + - col2 FROM tab0 AS cor0
----
-110
-2256
-9900

onlyif mysql # DIV for integer division: 
query I rowsort label-9709
SELECT - + 58 + col0 DIV + col2 + - col2 AS col1 FROM tab0 AS cor0
----
-105
-157
-60

skipif mysql # not compatible
query I rowsort label-9709
SELECT - + 58 + col0 / + col2 + - col2 AS col1 FROM tab0 AS cor0
----
-105
-157
-60

query I rowsort
SELECT DISTINCT - - col0 AS col1 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT ALL + MIN( + - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9711
SELECT ALL + MIN ( + - col2 ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT col1 + + col1 * + 53 FROM tab2
----
2754
3618
4158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9713
SELECT - 11 * CAST( NULL AS SIGNED ) + + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9713
SELECT - 11 * CAST ( NULL AS INTEGER ) + + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 FROM tab1 WHERE ( 30 IS NULL )
----

query II rowsort
SELECT DISTINCT 38, col0 FROM tab2
----
38
46
38
64
38
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9716
SELECT ALL + ( + - ( 94 ) ) DIV - - col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL + ( + - ( 94 ) ) / - - col1 FROM tab2
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT - col2 * + + 73 * + + 44 + + 33 AS col2 FROM tab1 AS cor0
----
-189475
-218383
-308319

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 <= ( col2 )
----

query I rowsort
SELECT ( 6 ) * col0 AS col0 FROM tab2
----
276
384
450

query I rowsort
SELECT 83 * col2 FROM tab2
----
1909
3320
4814

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab1 WHERE NULL IN ( 18 + col1 )
----

query I rowsort
SELECT DISTINCT ( 57 ) + col1 AS col0 FROM tab1
----
104
62
71

onlyif mysql # DIV for integer division: 
query I rowsort label-9725
SELECT col1 DIV ( - ( + col1 ) ) + 10 FROM tab0
----
9
9
9

skipif mysql # not compatible
query I rowsort label-9725
SELECT col1 / ( - ( + col1 ) ) + 10 FROM tab0
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT + 56 * - COUNT( DISTINCT 40 ) AS col2 FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-9726
SELECT + 56 * - COUNT ( DISTINCT 40 ) AS col2 FROM tab2
----
-56

query I rowsort
SELECT - 45 * col2 AS col0 FROM tab1
----
-2655
-3060
-4320

query I rowsort
SELECT + ( + col2 ) * 77 AS col1 FROM tab0
----
3619
7623
770

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 * col0 + + 58 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 WHERE NOT NULL < ( + col1 )
----

query I rowsort
SELECT + col1 * 3 AS col2 FROM tab1
----
141
15
42

query I rowsort
SELECT col1 + - 67 FROM tab2
----
-16
0
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT ALL COUNT( * ) * 7 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL COUNT ( * ) * 7 FROM tab0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT + ( + ( COUNT( * ) ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9734
SELECT + ( + ( COUNT ( * ) ) ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT - SUM( - 43 ) AS col2 FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-9735
SELECT - SUM ( - 43 ) AS col2 FROM tab1
----
129

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col2 / + 0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT col1 + 54 AS col1 FROM tab1
----
101
59
68

query I rowsort
SELECT ALL col0 * col2 AS col2 FROM tab0 WHERE ( + ( - col1 ) ) NOT BETWEEN - col2 + + col0 AND - 89 + + col1 * + 45
----
705
870
9603

query I rowsort
SELECT 29 + + 67 FROM tab1
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT ALL + COUNT( * ) FROM tab1 WHERE NULL NOT BETWEEN col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NULL NOT BETWEEN col2 AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9741
SELECT COUNT( * ) + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9741
SELECT COUNT ( * ) + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9742
SELECT * FROM tab0 WHERE NOT ( - ( CAST( NULL AS SIGNED ) ) + - 36 ) NOT IN ( + 93 )
----

skipif mysql # not compatible
query III rowsort label-9742
SELECT * FROM tab0 WHERE NOT ( - ( CAST ( NULL AS INTEGER ) ) + - 36 ) NOT IN ( + 93 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9743
SELECT * FROM tab0 WHERE NOT + 36 - + col1 * + col2 BETWEEN ( col1 ) AND + CAST( col0 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9743
SELECT * FROM tab0 WHERE NOT + 36 - + col1 * + col2 BETWEEN ( col1 ) AND + CAST ( col0 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9744
SELECT ALL CAST( col2 AS SIGNED ) * col1 AS col0 FROM tab0 cor0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL CAST ( col2 AS INTEGER ) * col1 AS col0 FROM tab0 cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT DISTINCT 2 + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( ( - col2 ) ) BETWEEN - col2 AND ( ( col1 ) * + col1 )
----
5

skipif mysql # not compatible
query I rowsort label-9745
SELECT DISTINCT 2 + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( ( - col2 ) ) BETWEEN - col2 AND ( ( col1 ) * + col1 )
----
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> 58
----

query I rowsort
SELECT col1 + 8 FROM tab2
----
59
75
85

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9749
SELECT DISTINCT + COUNT( * ) / - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 CROSS JOIN tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9749
SELECT DISTINCT + COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 CROSS JOIN tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9750
SELECT DISTINCT 74 DIV COUNT( * ) AS col2 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-9750
SELECT DISTINCT 74 / COUNT ( * ) AS col2 FROM tab0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9751
SELECT MAX( ALL - CAST( NULL AS SIGNED ) ) + - 20 * - 31 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9751
SELECT MAX ( ALL - CAST ( NULL AS INTEGER ) ) + - 20 * - 31 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 col0 FROM tab0 WHERE NOT 69 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9753
SELECT ALL * FROM tab0 cor0 WHERE ( + 51 * CAST( NULL AS SIGNED ) + + col1 ) BETWEEN ( NULL ) AND 27
----

skipif mysql # not compatible
query III rowsort label-9753
SELECT ALL * FROM tab0 cor0 WHERE ( + 51 * CAST ( NULL AS INTEGER ) + + col1 ) BETWEEN ( NULL ) AND 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT ALL - - COUNT( * ) + - MIN( - col1 ) AS col1 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-9754
SELECT ALL - - COUNT ( * ) + - MIN ( - col1 ) AS col1 FROM tab0 AS cor0
----
84

query I rowsort
SELECT DISTINCT col0 + + 12 * + 36 FROM tab0 AS cor0 WHERE - col0 + - 94 / + col0 IS NOT NULL
----
447
519
529

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9757
SELECT DISTINCT + + col1 DIV - 33 + col0 AS col2 FROM tab2 AS cor0
----
45
62
73

skipif mysql # not compatible
query I rowsort label-9757
SELECT DISTINCT + + col1 / - 33 + col0 AS col2 FROM tab2 AS cor0
----
45
62
73

query I rowsort
SELECT DISTINCT - ( 86 ) / + col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 = NULL
----

query I rowsort
SELECT + AVG ( ALL + ( col1 ) ) + - 55 FROM tab1 AS cor0 WHERE - col1 BETWEEN + 72 + - 91 AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9760
SELECT DISTINCT col0 + + - col0 DIV - col2 col2 FROM tab0
----
15
95
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9760
SELECT DISTINCT col0 + + - col0 / - col2 col2 FROM tab0
----
15
95
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 16 ) col0 FROM tab1
----
16
16
16

query I rowsort
SELECT 87 FROM tab1 WHERE - 57 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9763
SELECT 25 FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9763
SELECT 25 FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - col0 * - 61 + 73 AS col0 FROM tab1
----
3184
5258
5624

query I rowsort
SELECT DISTINCT + col2 + + col1 + - 93 * - 95 FROM tab1
----
8899
8945
8950

onlyif mysql # DIV for integer division: 
query I rowsort label-9766
SELECT ALL - col1 DIV - 93 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9766
SELECT ALL - col1 / - 93 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT col2 + + 72 + ( + col0 ) FROM tab2
----
141
176
205

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9769
SELECT ALL - + CAST( - + col0 AS SIGNED ) * col2 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL - + CAST ( - + col0 AS INTEGER ) * col2 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT - SUM( ALL - 59 ) AS col2 FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-9770
SELECT - SUM ( ALL - 59 ) AS col2 FROM tab1 AS cor0
----
177

query I rowsort
SELECT ALL + ( 15 ) AS col0 FROM ( tab1 cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # aggregate syntax: 
query II rowsort label-9772
SELECT DISTINCT 42 col0, COUNT( * ) AS col1 FROM tab1
----
42
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9772
SELECT DISTINCT 42 col0, COUNT ( * ) AS col1 FROM tab1
----
42
3

query I rowsort
SELECT 67 - + col1 AS col1 FROM tab0 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9774
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 40 IN ( CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9774
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 40 IN ( CAST ( - col2 AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 54 col1 FROM tab2 AS cor0 WHERE NOT col0 * + + col0 IS NULL
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT - - COUNT( * ) * - ( + 25 ) * MIN( DISTINCT + col0 ) FROM tab0 AS cor0
----
-1125

skipif mysql # not compatible
query I rowsort label-9776
SELECT - - COUNT ( * ) * - ( + 25 ) * MIN ( DISTINCT + col0 ) FROM tab0 AS cor0
----
-1125

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 - - - 34 ) >= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 32 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 66 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 95 col2, + col2 * + + 49 AS col0 FROM tab1 cor0
----
-95
2891
-95
3332
-95
4704

query I rowsort
SELECT ALL col0 * 98 FROM tab1 AS cor0 WHERE col0 IS NULL OR ( NULL ) IS NULL
----
4998
8330
8918

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9781
SELECT - CAST( NULL AS SIGNED ) AS col1, - ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9781
SELECT - CAST ( NULL AS INTEGER ) AS col1, - ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT + - COUNT( * ) * - 43 + - COUNT( * ) * 81 AS col0 FROM tab1 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-9782
SELECT + - COUNT ( * ) * - 43 + - COUNT ( * ) * 81 AS col0 FROM tab1 AS cor0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT - SUM( - + col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-9783
SELECT - SUM ( - + col0 ) AS col1 FROM tab2
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - - col2 ) col2 FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9785
SELECT DISTINCT col0 FROM tab1 WHERE NOT ( - - CAST( + 28 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9785
SELECT DISTINCT col0 FROM tab1 WHERE NOT ( - - CAST ( + 28 AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9786
SELECT - ( + 95 ), + 71 * MIN( + ( + col1 ) ) AS col0 FROM tab1
----
-95
355

skipif mysql # not compatible
query II rowsort label-9786
SELECT - ( + 95 ), + 71 * MIN ( + ( + col1 ) ) AS col0 FROM tab1
----
-95
355

onlyif mysql # DIV for integer division: 
query II rowsort label-9787
SELECT 81 DIV + col0 AS col1, 69 FROM tab2
----
1
69
1
69
1
69

skipif mysql # not compatible
query II rowsort label-9787
SELECT 81 / + col0 AS col1, 69 FROM tab2
----
1
69
1
69
1
69

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE - col1 * - - col1 + - col1 + col1 >= ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 >= - + col0
----

query I rowsort
SELECT - + 69 FROM tab1 AS cor0 WHERE NOT NULL >= + 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( ( - - 24 * + 5 ) BETWEEN NULL AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9791
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( ( - - 24 * + 5 ) BETWEEN NULL AND NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 cor0 WHERE ( 42 < NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9792
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 cor0 WHERE ( 42 < NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9793
SELECT ALL col2 + + CAST( NULL AS SIGNED ), + CAST( + 49 AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
49
NULL
49
NULL
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9793
SELECT ALL col2 + + CAST ( NULL AS INTEGER ), + CAST ( + 49 AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
49
NULL
49
NULL
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + col1 * col0 * + + 78 col2 FROM tab2
----
-24600576
-29396250
-8417448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9795
SELECT ALL COUNT( * ) + - CAST( - SUM( DISTINCT col2 ) AS SIGNED ) FROM tab1 WHERE NOT - col1 - + col2 * - + col0 - - CAST( NULL AS SIGNED ) BETWEEN col0 + col2 / col2 AND + col1 + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9795
SELECT ALL COUNT ( * ) + - CAST ( - SUM ( DISTINCT col2 ) AS INTEGER ) FROM tab1 WHERE NOT - col1 - + col2 * - + col0 - - CAST ( NULL AS INTEGER ) BETWEEN col0 + col2 / col2 AND + col1 + - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT ALL + + ( + + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9796
SELECT ALL + + ( + + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 46 + + col2 FROM tab1 AS cor0
----
13
22
50

query I rowsort
SELECT - + 73 + + col2 FROM tab1 cor0
----
-14
-5
23

query I rowsort
SELECT DISTINCT + col2 + - + col2 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9800
SELECT - - COUNT( * ) + - MIN( - col1 ), - 27 * - ( 56 ) + COUNT( * ) * 80 AS col2 FROM tab1 AS cor0
----
50
1752

skipif mysql # not compatible
query II rowsort label-9800
SELECT - - COUNT ( * ) + - MIN ( - col1 ), - 27 * - ( 56 ) + COUNT ( * ) * 80 AS col2 FROM tab1 AS cor0
----
50
1752

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9801
SELECT COUNT( * ) DIV 49 AS col2 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9801
SELECT COUNT ( * ) / 49 AS col2 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT - 80 * + col2 + - col2 * - col0 + - 40 FROM tab2 AS cor0
----
-330
-680
-822

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT - COUNT( - + col0 ) + 59 col0 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9803
SELECT - COUNT ( - + col0 ) + 59 col0 FROM tab1 AS cor0
----
56

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( 63 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 86 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT DISTINCT + MAX( DISTINCT - 23 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT + MAX ( DISTINCT - 23 ) AS col1 FROM tab2
----
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9807
SELECT CAST( NULL AS DECIMAL ) * - ( + COUNT( * ) ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9807
SELECT CAST ( NULL AS REAL ) * - ( + COUNT ( * ) ) col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT ( 23 ) + + 63 AS col2 FROM tab1 WHERE NOT ( NULL ) IN ( 75 + - col2 - col2 * - - col2 )
----

query I rowsort
SELECT ALL col1 * - 1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL + 8 FROM tab1 WHERE NOT - col1 * + + col0 + 47 - + col1 + + col0 * - col0 IS NULL
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT DISTINCT SUM( + col0 ) + + 53 AS col1 FROM tab0
----
252

skipif mysql # not compatible
query I rowsort label-9811
SELECT DISTINCT SUM ( + col0 ) + + 53 AS col1 FROM tab0
----
252

onlyif mysql # aggregate syntax: 
query II rowsort label-9812
SELECT + - 86 AS col0, COUNT( * ) col0 FROM tab0 cor0
----
-86
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9812
SELECT + - 86 AS col0, COUNT ( * ) col0 FROM tab0 cor0
----
-86
3

query I rowsort
SELECT - + 48 - - col1 * + 48 * + col0 FROM tab2 AS cor0
----
112560
236496
241152

query I rowsort
SELECT ALL - col2 * - 56 FROM tab2 AS cor0
----
1288
2240
3248

query I rowsort
SELECT col2 - + col0 * + - col2 FROM tab0 AS cor0
----
752
880
9702

query I rowsort
SELECT ALL + 85 FROM tab1 AS cor0 WHERE ( NOT ( NOT 23 > col0 * col0 ) ) OR col0 NOT BETWEEN col2 + + col2 AND + col0
----
85
85
85

query I rowsort
SELECT ( + col1 ) FROM tab0 AS cor0 WHERE NULL IN ( + 34 + + 68 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * - 55 + + - 45 + + + ( - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT DISTINCT COUNT( ALL - 40 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT COUNT ( ALL - 40 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9820
SELECT ALL col0 * 63 + + ( CAST( NULL AS SIGNED ) ) + + 90 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9820
SELECT ALL col0 * 63 + + ( CAST ( NULL AS INTEGER ) ) + + 90 col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT ALL + COUNT( * ) * - + COUNT( * ) + - MAX( + col0 ) col2 FROM tab0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9821
SELECT ALL + COUNT ( * ) * - + COUNT ( * ) + - MAX ( + col0 ) col2 FROM tab0 WHERE NULL = NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9822
SELECT col2 * CAST( - col0 AS SIGNED ) AS col2 FROM tab2 cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-9822
SELECT col2 * CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 cor0
----
-1058
-2560
-4350

query II rowsort
SELECT - col1 * - col2, - ( - + col1 ) + col0 AS col0 FROM tab0 AS cor0
----
210
108
3807
96
99
98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 - col1 <> ( - + ( + 43 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + - col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 + - - 58 AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT + col1 < col2 )
----
105
63
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9827
SELECT ALL + + ( - 62 ) / + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL + + ( - 62 ) / + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9828
SELECT DISTINCT - + 13 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) + - col0 IS NOT NULL
----
-13

skipif mysql # not compatible
query I rowsort label-9828
SELECT DISTINCT - + 13 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) + - col0 IS NOT NULL
----
-13

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 99 + - + ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT DISTINCT + MIN( - - 28 ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-9830
SELECT DISTINCT + MIN ( - - 28 ) FROM tab0
----
28

query II rowsort
SELECT - col0 AS col0, col1 * - col1 AS col1 FROM tab1
----
-51
-196
-85
-25
-91
-2209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + + col2 col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9833
SELECT MIN( ALL + 44 ) FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-9833
SELECT MIN ( ALL + 44 ) FROM tab0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT - COUNT( ALL - col1 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9834
SELECT - COUNT ( ALL - col1 ) AS col0 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9835
SELECT + col0, CAST( NULL AS SIGNED ) FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-9835
SELECT + col0, CAST ( NULL AS INTEGER ) FROM tab2
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE + col1 * - 91 * + 80 * + 88 IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9837
SELECT ALL - - 1 col2, COUNT( * ) * + + 4 AS col2 FROM tab2 AS cor0
----
1
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9837
SELECT ALL - - 1 col2, COUNT ( * ) * + + 4 AS col2 FROM tab2 AS cor0
----
1
12

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 + - col0 ) IN ( + col1, - col2 )
----
64
77
40
75
67
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( - 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT ALL + - SUM( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL + - SUM ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT ALL + COUNT( DISTINCT 67 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-9841
SELECT ALL + COUNT ( DISTINCT 67 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9842
SELECT ( + + col0 ) DIV + col1 + - col1 AS col0 FROM tab2
----
-51
-66
-77

skipif mysql # not compatible
query I rowsort label-9842
SELECT ( + + col0 ) / + col1 + - col1 AS col0 FROM tab2
----
-51
-66
-77

query II rowsort
SELECT + ( 1 ) AS col2, col0 FROM tab2 AS cor0
----
1
46
1
64
1
75

query I rowsort
SELECT + 41 FROM tab0 cor0
----
41
41
41

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 IN ( - 32, + col1 * - + ( + col2 ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9847
SELECT SUM( + 45 ) * + CAST( - + COUNT( * ) AS SIGNED ) col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9847
SELECT SUM ( + 45 ) * + CAST ( - + COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9848
SELECT * FROM tab2 AS cor0 WHERE col2 * + + CAST( + col2 AS SIGNED ) * - 31 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9848
SELECT * FROM tab2 AS cor0 WHERE col2 * + + CAST ( + col2 AS INTEGER ) * - 31 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 13 - col1 * 23 FROM tab0
----
-1876
-36
-496

query I rowsort
SELECT - col2 + + col0 + + - col1 FROM tab0
----
-113
-3
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9851
SELECT ALL 66 - + - col1 + - col1 DIV + col0 AS col0 FROM tab1
----
113
71
80

skipif mysql # not compatible
query I rowsort label-9851
SELECT ALL 66 - + - col1 + - col1 / + col0 AS col0 FROM tab1
----
113
71
80

query I rowsort
SELECT - col1 + + col1 * - col1 * + col2 FROM tab0
----
-100
-308448
-4431

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT ALL - 13 + COUNT( * ) AS col1 FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL - 13 + COUNT ( * ) AS col1 FROM tab1
----
-10

query I rowsort
SELECT ALL + col0 * - 81 AS col2 FROM tab0
----
-1215
-7047
-7857

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT + COUNT( * ) + + 52 AS col2 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-9855
SELECT + COUNT ( * ) + + 52 AS col2 FROM tab1
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-9856
SELECT col0 + + 20 * col1, col1 * 41 DIV ( 97 ) AS col1 FROM tab2
----
1066
21
1415
28
1604
32

skipif mysql # not compatible
query II rowsort label-9856
SELECT col0 + + 20 * col1, col1 * 41 / ( 97 ) AS col1 FROM tab2
----
1066
21
1415
28
1604
32

query II rowsort
SELECT DISTINCT 57, - 49 AS col2 FROM tab2 WHERE + 87 IS NOT NULL AND col0 BETWEEN - + col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col0 <= NULL AND NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9859
SELECT DISTINCT - COUNT( * ) * + - ( - CAST( + COUNT( * ) AS SIGNED ) ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9859
SELECT DISTINCT - COUNT ( * ) * + - ( - CAST ( + COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab2
----
-9

query III rowsort
SELECT * FROM tab2 WHERE + ( + col2 ) * + 42 >= ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + + col2 col2 FROM tab2
----
17
23
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - ( + 84 ) AS col0, + 89 * + col0 col2 FROM tab0 AS cor0
----
84
1335
84
7743
84
8633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9863
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - col1 AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9863
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - col1 AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - col0 * + - col0 FROM tab0 AS cor0
----
225
7569
9409

query II rowsort
SELECT - col0 AS col0, col0 * + col1 * 31 AS col2 FROM tab2 AS cor0
----
-46
72726
-64
152768
-75
155775

onlyif mysql # DIV for integer division: 
query II rowsort label-9866
SELECT DISTINCT col0 AS col2, + col1 DIV + - col2 FROM tab2 AS cor0
----
46
-2
64
-1
75
-1

skipif mysql # not compatible
query II rowsort label-9866
SELECT DISTINCT col0 AS col2, + col1 / + - col2 FROM tab2 AS cor0
----
46
-2
64
-1
75
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 col2 FROM tab1 WHERE NOT + col0 <= + col1
----
51
85
91

query I rowsort
SELECT col2 FROM tab0 WHERE NOT + + col1 = + + col0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT COUNT( * ) + + - 96 FROM tab0, tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-9869
SELECT COUNT ( * ) + + - 96 FROM tab0, tab2 AS cor0
----
-87

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT 58 = col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( col1 ) AS col0 FROM tab0 WHERE NOT + - col0 + col0 + - 27 NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT - - ( + - SUM( - col0 ) ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9872
SELECT - - ( + - SUM ( - col0 ) ) FROM tab2 AS cor0
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col2 col0 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query II rowsort label-9874
SELECT - 64 * - + 61 AS col0, - COUNT( * ) FROM tab0 AS cor0
----
3904
-3

skipif mysql # not compatible
query II rowsort label-9874
SELECT - 64 * - + 61 AS col0, - COUNT ( * ) FROM tab0 AS cor0
----
3904
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9875
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9876
SELECT col2 FROM tab0 WHERE - - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND col1
----

skipif mysql # not compatible
query I rowsort label-9876
SELECT col2 FROM tab0 WHERE - - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT 9 + + col0 FROM tab2
----
55
73
84

query I rowsort
SELECT ALL 13 * col0 + - col2 + - - col1 * + 62 FROM tab1 cor0 WHERE NOT col0 IN ( col0, + col2 )
----

query I rowsort
SELECT DISTINCT + 18 * + 39 AS col0 FROM tab1 AS cor0
----
702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9880
SELECT + 24 + + col2 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9880
SELECT + 24 + + col2 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9881
SELECT col0 DIV + col0 + - 65 * - col0 + ( col2 ) DIV + col0 AS col0 FROM tab2 AS cor0
----
2991
4161
4876

skipif mysql # not compatible
query I rowsort label-9881
SELECT col0 / + col0 + - 65 * - col0 + ( col2 ) / + col0 AS col0 FROM tab2 AS cor0
----
2991
4161
4876

query III rowsort
SELECT * FROM tab2 WHERE + col2 / 78 > + col1 * - ( + 40 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 FROM tab1 WHERE col2 / + 22 - + 61 >= + + 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT ALL - 54 - + - SUM( DISTINCT + col2 ) AS col1 FROM tab1
----
169

skipif mysql # not compatible
query I rowsort label-9884
SELECT ALL - 54 - + - SUM ( DISTINCT + col2 ) AS col1 FROM tab1
----
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9885
SELECT ALL - + ( + 6 ) + 1 AS col1 FROM tab0 WHERE NOT - ( - CAST( NULL AS SIGNED ) ) + - - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL - + ( + 6 ) + 1 AS col1 FROM tab0 WHERE NOT - ( - CAST ( NULL AS INTEGER ) ) + - - col2 IS NULL
----

query II rowsort
SELECT ALL + col2 - + - 77, - 97 * + col1 AS col1 FROM tab1
----
136
-485
145
-4559
173
-1358

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT - MIN( - col2 ) - - 63 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-9887
SELECT - MIN ( - col2 ) - - 63 FROM tab2
----
121

query I rowsort
SELECT ALL col1 * - ( + 71 ) AS col1 FROM tab0
----
-1491
-5751
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 col1 FROM tab2 WHERE NOT col0 * col0 + - 42 + - 74 * + + col1 + - 11 * 32 BETWEEN NULL AND - col1
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 - - col1 + col0 col1 FROM tab2 AS cor0
----
158
202
203

query I rowsort
SELECT + col0 - + - col2 + + col1 AS col0 FROM tab0 AS cor0
----
118
143
197

query I rowsort
SELECT DISTINCT 54 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
54

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 / + - col1 + col0 + - col1 * + col1 + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9894
SELECT ALL + 42 / col0 * - col1 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9894
SELECT ALL + 42 / col0 * - col1 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 43 col1, col0 AS col0 FROM tab1 AS cor0
----
43
51
43
85
43
91

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT ALL - + SUM( col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL - + SUM ( col0 ) FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT ALL - SUM( - + 67 ) AS col1 FROM tab0 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL - SUM ( - + 67 ) AS col1 FROM tab0 AS cor0
----
201

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 > + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL 22 AS col1, - col1 FROM tab0
----
22
-1
22
-21
22
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT DISTINCT - MAX( DISTINCT + + col0 ) FROM tab1 WHERE NOT - col0 * + col0 * - col2 + col2 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9901
SELECT DISTINCT - MAX ( DISTINCT + + col0 ) FROM tab1 WHERE NOT - col0 * + col0 * - col2 + col2 = NULL
----
NULL

query I rowsort
SELECT DISTINCT ( + 91 ) FROM tab0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 82 col0 FROM tab0 WHERE NOT + - col1 IS NULL
----
82
82
82

onlyif mysql # DIV for integer division: 
query I rowsort label-9904
SELECT - col2 DIV + 25 AS col2 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-9904
SELECT - col2 / + 25 AS col2 FROM tab0
----
-1
-3
0

query I rowsort
SELECT DISTINCT col0 * - + 52 + col1 FROM tab2 WHERE NULL BETWEEN ( + + col1 * + - col2 ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9906
SELECT - 0 DIV - - 66 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9906
SELECT - 0 / - - 66 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9907
SELECT DISTINCT ( + + col1 ) DIV + + col0 - - - ( + + 1 ) + col1 * 20 AS col2 FROM tab0
----
1624
19
419

skipif mysql # not compatible
query I rowsort label-9907
SELECT DISTINCT ( + + col1 ) / + + col0 - - - ( + + 1 ) + col1 * 20 AS col2 FROM tab0
----
1624
19
419

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9908
SELECT DISTINCT - 63 + + col0 + + col0 * + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9908
SELECT DISTINCT - 63 + + col0 + + col0 * + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - 4 FROM tab1 WHERE NULL NOT BETWEEN + ( - - col0 ) AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9910
SELECT - col2 DIV 41 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9910
SELECT - col2 / 41 FROM tab0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT DISTINCT + COUNT( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9911
SELECT DISTINCT + COUNT ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 + 59 > NULL
----

query I rowsort
SELECT DISTINCT + + 77 * - col2 + + + col1 AS col2 FROM tab1 cor0
----
-4538
-5189
-7378

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL > col1 * + 85
----

query I rowsort
SELECT + + 68 + - + 30 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT ALL + 47 + col0 FROM tab2
----
111
122
93

query I rowsort
SELECT ALL - 58 - - + 18 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL col1 * - col2 FROM tab0 AS cor0 WHERE NULL IS NULL AND + col0 IS NOT NULL
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT - COUNT( col1 ) - + MIN( - - col2 ) FROM tab2 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-9920
SELECT - COUNT ( col1 ) - + MIN ( - - col2 ) FROM tab2 cor0
----
-26

query I rowsort
SELECT DISTINCT + 88 + - + ( + col1 ) FROM tab0 AS cor0
----
67
7
87

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * + + 60 <= NULL AND + 48 IS NULL
----

query I rowsort
SELECT col2 + 95 FROM tab0
----
105
142
194

query I rowsort
SELECT - col2 + - col1 * col0 AS col1 FROM tab2
----
-2369
-4968
-5083

query I rowsort
SELECT - 5 * - col0 AS col2 FROM tab0
----
435
485
75

query I rowsort
SELECT 7 AS col1 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT DISTINCT - COUNT( DISTINCT col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9927
SELECT DISTINCT - COUNT ( DISTINCT col1 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * - col0 + col0 + + ( - + col0 ) + - ( col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL + - 13 AS col1 FROM tab1 cor0
----
-13
-13
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9930
SELECT DISTINCT - + COUNT( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT - + COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + 80 FROM tab1 cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 20 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9932
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 20 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 57 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9934
SELECT ALL + 65 * 64 DIV - + SUM( DISTINCT col1 ) FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL + 65 * 64 / - + SUM ( DISTINCT col1 ) FROM tab1 AS cor0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9935
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) + - AVG ( + - 93 ) AS col2 FROM tab1 cor0 WHERE NOT ( + ( + - col2 ) IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9935
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) + - AVG ( + - 93 ) AS col2 FROM tab1 cor0 WHERE NOT ( + ( + - col2 ) IS NOT NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9936
SELECT - - col2 + + col1 DIV + 80 FROM tab0 AS cor0
----
10
48
99

skipif mysql # not compatible
query I rowsort label-9936
SELECT - - col2 + + col1 / + 80 FROM tab0 AS cor0
----
10
48
99

query I rowsort
SELECT DISTINCT + 86 AS col2 FROM tab0 WHERE NOT NULL BETWEEN - col2 * - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9938
SELECT DISTINCT 50 * ( + 32 ), + COUNT( * ) AS col0 FROM tab0
----
1600
3

skipif mysql # not compatible
query II rowsort label-9938
SELECT DISTINCT 50 * ( + 32 ), + COUNT ( * ) AS col0 FROM tab0
----
1600
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9939
SELECT ALL * FROM tab2 WHERE NOT - 33 * col0 + - ( + + ( - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) ) + + col1 / - col1 <> + ( + 25 )
----

skipif mysql # not compatible
query III rowsort label-9939
SELECT ALL * FROM tab2 WHERE NOT - 33 * col0 + - ( + + ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) + + col1 / - col1 <> + ( + 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT DISTINCT + MIN( + col1 ) col0 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9940
SELECT DISTINCT + MIN ( + col1 ) col0 FROM tab1
----
5

query I rowsort
SELECT - ( - 30 ) FROM tab2
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT ALL + MAX( - ( ( + col0 ) ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-9942
SELECT ALL + MAX ( - ( ( + col0 ) ) ) FROM tab0
----
-15

query I rowsort
SELECT ALL 97 + 80 * + 52 + + + col0 AS col0 FROM tab2
----
4303
4321
4332

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 + col1 col1 FROM tab2 AS cor0
----
24
34
8

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 - col0 + - 1 + - col2 < - col1 - - col1 * + - 14
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 19 + + 5 + - col1 * - col2 AS col1 FROM tab0 AS cor0
----
123
234
3831

query III rowsort
SELECT * FROM tab1 WHERE 81 IS NULL
----

query I rowsort
SELECT + 47 FROM tab2 AS cor0 WHERE - 95 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT - 64 * + MAX( + 58 ) FROM tab2 AS cor0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9949
SELECT - 64 * + MAX ( + 58 ) FROM tab2 AS cor0 WHERE NULL >= NULL
----
NULL

query I rowsort
SELECT + + col0 + + + col0 AS col0 FROM tab0 AS cor0
----
174
194
30

query II rowsort
SELECT - - ( - col1 ) * + 34 * 79 + + + ( - col0 ) + - + col2 AS col2, col0 - - col0 AS col1 FROM tab1 AS cor0
----
-126401
182
-13574
170
-37751
102

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT MIN( ALL - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9952
SELECT MIN ( ALL - col0 ) FROM tab0 AS cor0
----
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 - 0 IS NULL
----

query I rowsort
SELECT - - 45 * - col1 * + - 27 AS col0 FROM tab2 AS cor0
----
61965
81405
93555

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9955
SELECT - 31 DIV 53 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9955
SELECT - 31 / 53 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 * - col0 * 2 FROM tab0 AS cor0
----
-1410
-1740
-19206

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9957
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9957
SELECT DISTINCT + CAST ( NULL AS REAL ) col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT ALL - MAX( + col0 ) col0 FROM tab0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9958
SELECT ALL - MAX ( + col0 ) col0 FROM tab0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 col2 FROM tab0 AS cor0
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT + 6 * + COUNT( + + col2 ) FROM tab2 cor0
----
18

skipif mysql # not compatible
query I rowsort label-9960
SELECT + 6 * + COUNT ( + + col2 ) FROM tab2 cor0
----
18

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 51 NOT BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9962
SELECT DISTINCT - - CAST( - + col2 AS SIGNED ) * + ( - col0 ) + col2 FROM tab1 AS cor0
----
4992
5074
6256

skipif mysql # not compatible
query I rowsort label-9962
SELECT DISTINCT - - CAST ( - + col2 AS INTEGER ) * + ( - col0 ) + col2 FROM tab1 AS cor0
----
4992
5074
6256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 * + col1 col1 FROM tab0
----
-1848
-7128
-88

query III rowsort
SELECT * FROM tab1 WHERE NOT 61 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT + COUNT( ALL - ( - ( + 3 ) ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9965
SELECT + COUNT ( ALL - ( - ( + 3 ) ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL > + 92
----
0

skipif mysql # not compatible
query I rowsort label-9966
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL > + 92
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 89 - - + col1 BETWEEN NULL AND - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9968
SELECT DISTINCT + 78, + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
78
0

skipif mysql # not compatible
query II rowsort label-9968
SELECT DISTINCT + 78, + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
78
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT - - 7 * + SUM( ALL + 86 ) col2 FROM tab1 AS cor0
----
1806

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9969
SELECT - - 7 * + SUM ( ALL + 86 ) col2 FROM tab1 AS cor0
----
1806

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 73 * + 60 + - col0 BETWEEN - 94 * + + col2 - + + col0 AND - 21
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9971
SELECT DISTINCT col0 DIV 45 + - col2 + col2 AS col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9971
SELECT DISTINCT col0 / 45 + - col2 + col2 AS col2 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT ALL COUNT( ALL - 5 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL COUNT ( ALL - 5 ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT - + MIN( ALL + col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9973
SELECT - + MIN ( ALL + col0 ) FROM tab0 AS cor0
----
-15

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 BETWEEN NULL AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - 76 ) * - col0 col1 FROM tab0
----
-1140
-6612
-7372

query I rowsort
SELECT + 95 * + col0 FROM tab2
----
4370
6080
7125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * col1, - 25 * - + 18 + - col1 col1 FROM tab2
----
2601
399
4489
383
5929
373

query I rowsort
SELECT 84 + col2 AS col2 FROM tab2
----
107
124
142

query I rowsort
SELECT ALL - 42 * - + col0 AS col2 FROM tab1
----
2142
3570
3822

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9980
SELECT ALL - ( + CAST( NULL AS DECIMAL ) ) + + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9980
SELECT ALL - ( + CAST ( NULL AS REAL ) ) + + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL IN ( + col2, - col2, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9982
SELECT * FROM tab1 WHERE + 27 * col1 * col2 / + col2 + col1 + CAST( - 60 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9982
SELECT * FROM tab1 WHERE + 27 * col1 * col2 / + col2 + col1 + CAST ( - 60 AS INTEGER ) IS NULL
----

query II rowsort
SELECT ALL col0 AS col0, col2 AS col0 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9984
SELECT DISTINCT 32 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9984
SELECT DISTINCT 32 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT MIN( + 72 ) AS col0 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-9985
SELECT MIN ( + 72 ) AS col0 FROM tab1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9986
SELECT - ( col1 ) - - CAST( NULL AS SIGNED ), + col2 * - col2 * col0 AS col0 FROM tab1
----
NULL
-295885
NULL
-420784
NULL
-470016

skipif mysql # not compatible
query II rowsort label-9986
SELECT - ( col1 ) - - CAST ( NULL AS INTEGER ), + col2 * - col2 * col0 AS col0 FROM tab1
----
NULL
-295885
NULL
-420784
NULL
-470016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9987
SELECT DISTINCT CAST( - - 34 AS SIGNED ) + 37 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < col2
----

skipif mysql # not compatible
query I rowsort label-9987
SELECT DISTINCT CAST ( - - 34 AS INTEGER ) + 37 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT - COUNT( - col0 ) + + - 98 col0 FROM tab1 AS cor0
----
-101

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9988
SELECT - COUNT ( - col0 ) + + - 98 col0 FROM tab1 AS cor0
----
-101

query I rowsort
SELECT DISTINCT + col2 * - col1 + - 3 FROM tab2 AS cor0
----
-1176
-3083
-3889

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 96 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9991
SELECT * FROM tab1 AS cor0 WHERE NOT ( - CAST( 15 AS SIGNED ) + col2 + col1 <= - CAST( + - col1 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9991
SELECT * FROM tab1 AS cor0 WHERE NOT ( - CAST ( 15 AS INTEGER ) + col2 + col1 <= - CAST ( + - col1 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9992
SELECT DISTINCT - + ( - CAST( + col2 AS SIGNED ) ) DIV - - 62 + + 49, - col1 AS col0 FROM tab2 AS cor0
----
49
-51
49
-67
49
-77

skipif mysql # not compatible
query II rowsort label-9992
SELECT DISTINCT - + ( - CAST ( + col2 AS INTEGER ) ) / - - 62 + + 49, - col1 AS col0 FROM tab2 AS cor0
----
49
-51
49
-67
49
-77

query I rowsort
SELECT + col1 * - 42 * 48 AS col2 FROM tab2 AS cor0
----
-102816
-135072
-155232

query I rowsort
SELECT + + ( + - 82 ) FROM tab0 AS cor0
----
-82
-82
-82

query I rowsort
SELECT col0 * + 11 AS col0 FROM tab1
----
1001
561
935

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9996
SELECT - 19, - col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-19
NULL
-19
NULL
-19
NULL

skipif mysql # not compatible
query II rowsort label-9996
SELECT - 19, - col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-19
NULL
-19
NULL
-19
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col2, col2 AS col2 FROM tab1 WHERE + ( 17 ) NOT BETWEEN - - col2 AND - 88
----
-14
96
-47
68
-5
59

query I rowsort
SELECT ALL - 57 - col0 FROM tab0 WHERE NULL IS NULL
----
-144
-154
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT DISTINCT + MIN( col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9999
SELECT DISTINCT + MIN ( col2 ) FROM tab1
----
59

