sqllogictest
Artifact Content
Not logged in

Artifact 15c7e4b9db24d74accde7f2f8e3dbb908240481c:


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