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 + 32 - + - col0 AS col0, - col0 FROM tab0 AS cor0
----
119
-87
129
-97
47
-15

query I rowsort
SELECT ALL - col1 + - col0 - 13 FROM tab0 AS cor0
----
-109
-111
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2
SELECT ALL CAST( + col1 AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-2
SELECT ALL CAST ( + col1 AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT ALL + col2 * 79 * - - col1 - - 98 + 9 AS col0 FROM tab2 cor0
----
243427
307101
92774

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

query I rowsort
SELECT DISTINCT - 73 + + + 21 - 59 FROM tab2 AS cor0
----
-111

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-10
SELECT - 60 AS col0, COUNT( - - 95 ) AS col0 FROM tab0
----
-60
3

skipif mysql # not compatible
query II rowsort label-10
SELECT - 60 AS col0, COUNT ( - - 95 ) AS col0 FROM tab0
----
-60
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-12
SELECT + - 2 * - + SUM( ALL 56 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-12
SELECT + - 2 * - + SUM ( ALL 56 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-13
SELECT 94 DIV COUNT( * ) FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-13
SELECT 94 / COUNT ( * ) FROM tab2
----
31

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

skipif mysql # not compatible
query I rowsort label-14
SELECT - col1 / - + col0 AS col0 FROM tab1
----
0
0
0

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-17
SELECT ALL + ( + - 52 ) DIV MAX( DISTINCT + 23 ) FROM tab1, tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-17
SELECT ALL + ( + - 52 ) / MAX ( DISTINCT + 23 ) FROM tab1, tab0 AS cor0
----
-2

query I rowsort
SELECT col2 * - 15 AS col0 FROM tab0 AS cor0
----
-1485
-150
-705

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-20
SELECT ALL col2 * col0 DIV - + col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-20
SELECT ALL col2 * col0 / - + col2 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL col0 * + 35 FROM tab1 AS cor0
----
1785
2975
3185

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT col2 + - col2 + 78 BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT DISTINCT 45 * 27 AS col0 FROM tab2
----
1215

query I rowsort
SELECT - col2 * + + col1 + - col1 * col2 - 9 AS col0 FROM tab2
----
-2355
-6169
-7781

query I rowsort
SELECT - 59 + 48 AS col0 FROM tab0
----
-11
-11
-11

query I rowsort
SELECT DISTINCT - col2 + - + col1 AS col1 FROM tab0
----
-100
-128
-31

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

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

query I rowsort
SELECT DISTINCT ( + col2 ) + 87 AS col0 FROM tab1 AS cor0
----
146
155
183

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

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT + MIN( + 1 ) * + + ( COUNT( col1 ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-31
SELECT + MIN ( + 1 ) * + + ( COUNT ( col1 ) ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT ALL - MAX( ALL col1 ) col0 FROM tab2
----
-77

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-35
SELECT 56 * + + CAST( col0 AS SIGNED ) + + - col1 AS col1 FROM tab1 AS cor0
----
2842
4755
5049

skipif mysql # not compatible
query I rowsort label-35
SELECT 56 * + + CAST ( col0 AS INTEGER ) + + - col1 AS col1 FROM tab1 AS cor0
----
2842
4755
5049

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT ALL ( + MIN( - 63 ) ) FROM tab1 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-38
SELECT ALL ( + MIN ( - 63 ) ) FROM tab1 cor0
----
-63

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

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

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

skipif mysql # not compatible
query I rowsort label-41
SELECT 66 / + + COUNT ( * ) FROM tab1 AS cor0
----
22

query I rowsort
SELECT + 98 + ( + 91 ) AS col1 FROM tab2 AS cor0 WHERE NOT 73 IS NULL
----
189
189
189

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

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

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

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

skipif mysql # not compatible
query I rowsort label-45
SELECT - 22 + + COUNT ( * ) / 11 AS col1 FROM tab0
----
-22

query I rowsort
SELECT + - col1 + + - col0 FROM tab1 AS cor0
----
-138
-65
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab0 AS cor0 WHERE NOT - col1 < NULL
----

query II rowsort
SELECT DISTINCT + + col2 * + col2 * - col0 AS col2, col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( ( ( NULL ) IS NOT NULL ) )
----
-33135
81
-8700
21
-950697
1

query I rowsort
SELECT 54 + - col0 AS col1 FROM tab1 AS cor0
----
-31
-37
3

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-52
SELECT DISTINCT - COUNT( * ), + 95 + 96 AS col1 FROM tab2 AS cor0
----
-3
191

skipif mysql # not compatible
query II rowsort label-52
SELECT DISTINCT - COUNT ( * ), + 95 + 96 AS col1 FROM tab2 AS cor0
----
-3
191

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, col2 AS col1 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT DISTINCT COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( + col0 )
----
0

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > + col2
----

query I rowsort
SELECT + col2 - - + ( - - 74 ) + col2 * col1 FROM tab1
----
1514
3338
428

query I rowsort
SELECT 95 - + col0 AS col0 FROM tab2
----
20
31
49

query I rowsort
SELECT ALL col1 + + + col0 * 3 AS col0 FROM tab2 AS cor0
----
189
269
292

query I rowsort
SELECT + col0 + - col0 + col2 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT ALL 20 AS col2, col0 AS col1 FROM tab0
----
20
15
20
87
20
97

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

query I rowsort
SELECT DISTINCT - col0 + + 75 * - - 93 * - + 36 FROM tab1
----
-251151
-251185
-251191

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT DISTINCT COUNT( DISTINCT + - 22 ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-66
SELECT DISTINCT COUNT ( DISTINCT + - 22 ) AS col0 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT SUM( - col0 ) FROM tab2 AS cor0 WHERE NOT 38 IS NULL
----
-185

skipif mysql # not compatible
query I rowsort label-67
SELECT SUM ( - col0 ) FROM tab2 AS cor0 WHERE NOT 38 IS NULL
----
-185

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

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

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

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

query I rowsort
SELECT - ( - + 55 ) AS col1 FROM tab0
----
55
55
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 61 * - col1, col2 * col1 col1 FROM tab0
----
-1281
210
-4941
3807
-61
99

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

skipif mysql # not compatible
query I rowsort label-73
SELECT + COUNT ( - CAST ( NULL AS INTEGER ) ) * - + 55 AS col1 FROM tab2
----
0

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

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

query I rowsort
SELECT ALL + - col2 * + 71 FROM tab2 WHERE NULL IS NOT NULL
----

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

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

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

query I rowsort
SELECT DISTINCT col0 + - + col1 FROM tab1 AS cor0 WHERE - 45 + - + col0 IS NOT NULL
----
37
44
80

query I rowsort
SELECT DISTINCT + ( - 93 ) * + 16 * - 4 AS col2 FROM tab0
----
5952

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - 60 * + - col0 + col1 + - col0 * col1 * col2 AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-81
SELECT + 90 * + CAST( NULL AS SIGNED ) + - 11 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-81
SELECT + 90 * + CAST ( NULL AS INTEGER ) + - 11 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col2 + + - col2 * - col0 FROM tab1
----
4992
5074
6256

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-83
SELECT DISTINCT + 16 DIV - + COUNT( * ) + - + 74 FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-83
SELECT DISTINCT + 16 / - + COUNT ( * ) + - + 74 FROM tab1
----
-79

query I rowsort
SELECT DISTINCT - col1 + + col2 * + ( 67 ) FROM tab0 AS cor0
----
3068
649
6632

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

onlyif mysql # aggregate syntax: 
query I rowsort label-86
SELECT ( 67 ) + - COUNT( * ) - + MAX( 46 ) AS col0 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-86
SELECT ( 67 ) + - COUNT ( * ) - + MAX ( 46 ) AS col0 FROM tab0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 * - + col1 + - col2 * + col1 col2 FROM tab0
----
-11097
-189
-2100

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

query I rowsort
SELECT ( - col0 ) + + col2 * + col0 AS col0 FROM tab0
----
690
783
9506

query I rowsort
SELECT 67 + col1 FROM tab2
----
118
134
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 81 col0, col2 AS col0 FROM tab0 AS cor0
----
-81
10
-81
47
-81
99

query III rowsort
SELECT ALL * FROM tab0 WHERE 88 NOT IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 66 * - 53 AS col2 FROM tab2 WHERE NULL <> ( 88 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-94
SELECT ( col1 ) DIV 12 AS col1 FROM tab2
----
4
5
6

skipif mysql # not compatible
query I rowsort label-94
SELECT ( col1 ) / 12 AS col1 FROM tab2
----
4
5
6

query I rowsort
SELECT DISTINCT + col0 - 27 AS col1 FROM tab2
----
19
37
48

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

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

query I rowsort
SELECT DISTINCT - 46 * - col1 + - col1 AS col0 FROM tab0
----
3645
45
945

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-98
SELECT DISTINCT - col1 * 21 AS col1 FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) ) IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-98
SELECT DISTINCT - col1 * 21 AS col1 FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IN ( col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT DISTINCT + SUM( 34 ) AS col1 FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-100
SELECT DISTINCT + SUM ( 34 ) AS col1 FROM tab2
----
102

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT - ( col0 ) IS NULL
----
-51
-85
-91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT 48 + + COUNT( * ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-103
SELECT 48 + + COUNT ( * ) AS col0 FROM tab2
----
51

query I rowsort
SELECT DISTINCT col2 + 73 AS col0 FROM tab0
----
120
172
83

query III rowsort
SELECT ALL * FROM tab0 WHERE + 72 + col1 IN ( - 55 )
----

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE col2 <= ( 96 )
----
-59
-68
-96

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

query III rowsort
SELECT * FROM tab1 WHERE + 19 - col2 * + col1 BETWEEN NULL AND + col0 + 98
----

query I rowsort
SELECT ( col1 ) + + 81 * 36 FROM tab0
----
2917
2937
2997

query I rowsort
SELECT ALL - col2 + - col0 * col1 AS col1 FROM tab2
----
-2369
-4968
-5083

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-111
SELECT DISTINCT * FROM tab1 WHERE CAST( col1 AS SIGNED ) + 41 BETWEEN ( + col1 ) AND 86 / col0
----

skipif mysql # not compatible
query III rowsort label-111
SELECT DISTINCT * FROM tab1 WHERE CAST ( col1 AS INTEGER ) + 41 BETWEEN ( + col1 ) AND 86 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT 15 + - COUNT( * ) AS col1 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-112
SELECT 15 + - COUNT ( * ) AS col1 FROM tab2
----
12

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-114
SELECT COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT ( + col0 - - col2 ) IS NULL
----
3

query I rowsort
SELECT ALL AVG ( DISTINCT col2 ) FROM tab0 AS cor0 WHERE + 88 + - 40 IS NULL
----
NULL

query I rowsort
SELECT 4 * + 13 AS col1 FROM tab1 AS cor0
----
52
52
52

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

skipif mysql # not compatible
query I rowsort label-117
SELECT - COUNT ( * ) / SUM ( + col1 * col2 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 63 + col2 FROM tab2
----
103
121
86

query I rowsort
SELECT col2 + ( + 62 ) FROM tab1
----
121
130
158

query I rowsort
SELECT col0 * 85 + - col0 AS col0 FROM tab2
----
3864
5376
6300

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

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

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

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

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

query I rowsort
SELECT col2 * 98 AS col1 FROM tab1 AS cor0
----
5782
6664
9408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-125
SELECT ALL - MAX( DISTINCT + col1 ) - + 83 * CAST( + 22 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1873

skipif mysql # not compatible
query I rowsort label-125
SELECT ALL - MAX ( DISTINCT + col1 ) - + 83 * CAST ( + 22 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1873

query I rowsort
SELECT ALL - col0 * - ( col0 ) FROM tab1 AS cor0 WHERE NOT - 63 NOT IN ( + 62 * col1 + + col0 )
----

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT - col1 + col0 = col2 * + col1
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-128
SELECT 12 DIV - 47 AS col2 FROM tab1 WHERE - col0 + + 22 NOT IN ( col0 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-128
SELECT 12 / - 47 AS col2 FROM tab1 WHERE - col0 + + 22 NOT IN ( col0 )
----
0
0
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-130
SELECT - col1 - + + col2 DIV - col0 AS col2 FROM tab1
----
-13
-47
-5

skipif mysql # not compatible
query I rowsort label-130
SELECT - col1 - + + col2 / - col0 AS col2 FROM tab1
----
-13
-47
-5

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

query I rowsort
SELECT DISTINCT 49 + + + 38 AS col0 FROM tab0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT ALL + 34 + - - COUNT( * ) FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL + 34 + - - COUNT ( * ) FROM tab2
----
37

query III rowsort
SELECT * FROM tab2 WHERE ( - 82 * - col1 ) IN ( col2 )
----

query I rowsort
SELECT DISTINCT 76 + + col0 AS col1 FROM tab2
----
122
140
151

query I rowsort
SELECT col0 * + + 92 + 52 AS col2 FROM tab0
----
1432
8056
8976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 * col0 col1 FROM tab0
----
1305
1455
225

query I rowsort
SELECT ALL + 85 + - 92 AS col1 FROM tab1
----
-7
-7
-7

query I rowsort
SELECT - col1 + 22 FROM tab2
----
-29
-45
-55

query I rowsort
SELECT DISTINCT - col0 * - col1 - col0 AS col2 FROM tab1 AS cor0
----
340
4186
663

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

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

skipif mysql # not compatible
query I rowsort label-142
SELECT + 20 + col2 / col2 AS col1 FROM tab0 cor0
----
21
21
21

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col0 / col2 ) = ( - col0 )
----

query I rowsort
SELECT DISTINCT - ( - 60 ) - ( + 54 ) FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT ALL COUNT( * ) FROM tab2 cor0 WHERE NULL IN ( 11 / + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-145
SELECT ALL COUNT ( * ) FROM tab2 cor0 WHERE NULL IN ( 11 / + col0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-146
SELECT DISTINCT 14 DIV 47 AS col2 FROM tab2 AS cor0 WHERE + col2 = col2
----
0

skipif mysql # not compatible
query I rowsort label-146
SELECT DISTINCT 14 / 47 AS col2 FROM tab2 AS cor0 WHERE + col2 = col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-147
SELECT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) BETWEEN - col1 AND - col2 * 96 + 31 * 69
----

skipif mysql # not compatible
query III rowsort label-147
SELECT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) BETWEEN - col1 AND - col2 * 96 + 31 * 69
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT + 23 FROM tab1 AS cor0 WHERE + 21 + 20 IN ( + col0 )
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN col1 AND + col0 - + 93
----

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

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

query I rowsort
SELECT 30 * - col2 AS col2 FROM tab2
----
-1200
-1740
-690

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * + + col2 AS col0 FROM tab0 cor0
----
100
2209
9801

query I rowsort
SELECT ALL - col0 * + ( - + col2 ) FROM tab0 AS cor0
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 90 * - col0 col2 FROM tab0 AS cor0
----
1350
7830
8730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-162
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT + 35 IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-162
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT + 35 IN ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-163
SELECT ALL + CAST( col0 AS SIGNED ) AS col2 FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-163
SELECT ALL + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 cor0
----
15
87
97

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

query I rowsort
SELECT DISTINCT + col0 * 30 * col0 AS col0 FROM tab1
----
216750
248430
78030

query I rowsort
SELECT ALL col0 + - col0 FROM tab0 WHERE ( + col1 * col0 / + 24 ) IN ( - col0 )
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-168
SELECT - MIN( col1 ) AS col2, - COUNT( * ) AS col1 FROM tab2
----
-51
-3

skipif mysql # not compatible
query II rowsort label-168
SELECT - MIN ( col1 ) AS col2, - COUNT ( * ) AS col1 FROM tab2
----
-51
-3

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

query I rowsort
SELECT + 32 + col0 AS col1 FROM tab1
----
117
123
83

query I rowsort
SELECT col2 * + 98 + col2 AS col1 FROM tab2
----
2277
3960
5742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-172
SELECT - COUNT( * ) DIV + 93 + + CAST( + - 57 AS SIGNED ) FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-172
SELECT - COUNT ( * ) / + 93 + + CAST ( + - 57 AS INTEGER ) FROM tab0
----
-57

query I rowsort
SELECT ALL 30 * + col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
1770
2040
2880

query I rowsort
SELECT DISTINCT col2 + 20 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
43
60
78

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT + COUNT( col0 ) FROM tab2 AS cor0 WHERE NOT 36 >= + col1
----
3

skipif mysql # not compatible
query I rowsort label-175
SELECT + COUNT ( col0 ) FROM tab2 AS cor0 WHERE NOT 36 >= + col1
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-176
SELECT - col1 DIV + 56 AS col0, CAST( + - col0 AS SIGNED ) * + col0 AS col0 FROM tab1 AS cor0
----
0
-2601
0
-7225
0
-8281

skipif mysql # not compatible
query II rowsort label-176
SELECT - col1 / + 56 AS col0, CAST ( + - col0 AS INTEGER ) * + col0 AS col0 FROM tab1 AS cor0
----
0
-2601
0
-7225
0
-8281

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE ( 40 * 14 ) > - ( - 40 )
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-178
SELECT ALL + - col1 DIV - 79 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-178
SELECT ALL + - col1 / - 79 AS col0 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-179
SELECT + col2 DIV - 63 + + col1 FROM tab1 AS cor0
----
13
46
5

skipif mysql # not compatible
query I rowsort label-179
SELECT + col2 / - 63 + + col1 FROM tab1 AS cor0
----
13
46
5

onlyif mysql # DIV for integer division: 
query I rowsort label-180
SELECT + + 57 DIV + + col1 col1 FROM tab1 AS cor0
----
1
11
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-180
SELECT + + 57 / + + col1 col1 FROM tab1 AS cor0
----
1
11
4

query I rowsort
SELECT ALL + 95 * + 83 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d2032bbbb17c30623480c77dd5bad655

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-182
SELECT + 32 * 27 * + col1 * col2 * 92 + + CAST( NULL AS SIGNED ) + + 99 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-182
SELECT + 32 * 27 * + col1 * col2 * 92 + + CAST ( NULL AS INTEGER ) + + 99 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + 38 * + col1 + - + col0, - col1 AS col2 FROM tab1 cor0
----
105
-5
1695
-47
481
-14

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

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

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

query I rowsort
SELECT DISTINCT - 2 - + col1 FROM tab2 AS cor0
----
-53
-69
-79

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

skipif mysql # not compatible
query I rowsort label-187
SELECT ALL - + COUNT ( * ) / + + 78 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 38 + + ( col2 ) FROM tab0
----
137
48
85

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 80 - - 23 NOT BETWEEN NULL AND + 89
----

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT ( + - 41 ) IS NOT NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-192
SELECT - ( - COUNT ( * ) ) * - COUNT ( * ) AS col2 FROM tab1
----
-9

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

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

query I rowsort
SELECT - 72 * + - col0 FROM tab1
----
3672
6120
6552

query I rowsort
SELECT ALL + 2 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ALL col0 - - col1 AS col1 FROM tab1 cor0
----
138
65
90

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

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

query I rowsort
SELECT + + col0 * - 20 AS col1 FROM tab0 AS cor0
----
-1740
-1940
-300

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 52 < NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-204
SELECT CAST( + ( + 12 ) AS SIGNED ) DIV + col0 * + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-204
SELECT CAST ( + ( + 12 ) AS INTEGER ) / + col0 * + col0 FROM tab1 AS cor0
----
0
0
0

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

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

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

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

query II rowsort
SELECT col2 * + 58 AS col2, col0 * + col1 FROM tab0 AS cor0
----
2726
1215
5742
97
580
1827

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

onlyif mysql # aggregate syntax: 
query II rowsort label-209
SELECT - 7, + COUNT( * ) + + 44 AS col2 FROM tab0
----
-7
47

skipif mysql # not compatible
query II rowsort label-209
SELECT - 7, + COUNT ( * ) + + 44 AS col2 FROM tab0
----
-7
47

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT + ( - 83 ) IS NULL
----
-59
-68
-96

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-212
SELECT - CAST( - 30 AS SIGNED ) FROM tab0
----
30
30
30

skipif mysql # not compatible
query I rowsort label-212
SELECT - CAST ( - 30 AS INTEGER ) FROM tab0
----
30
30
30

query I rowsort
SELECT 19 * - col2 AS col1 FROM tab1 AS cor0
----
-1121
-1292
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT ALL 64 - MAX( DISTINCT 75 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-11

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL 64 - MAX ( DISTINCT 75 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-11

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 57 IN ( - 28 * - - col2 )
----

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

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

query I rowsort
SELECT ALL - col1 + 81 + col2 + 30 AS col1 FROM tab0 AS cor0 WHERE NULL IN ( - col2 )
----

query I rowsort
SELECT ( - 28 ) AS col1 FROM tab0 AS cor0
----
-28
-28
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-220
SELECT ALL + col2 * col0 DIV col2 AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-220
SELECT ALL + col2 * col0 / col2 AS col2 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 / - + col0 NOT IN ( - 73 * + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 + + col0 col2 FROM tab0
----
720
957
9700

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-225
SELECT + CAST( col2 AS SIGNED ) DIV + + ( - + col1 ) FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-225
SELECT + CAST ( col2 AS INTEGER ) / + + ( - + col1 ) FROM tab0
----
-99
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 * col0 col1 FROM tab1
----
3519
5865
6279

query I rowsort
SELECT - col1 * - 9 AS col0 FROM tab1
----
126
423
45

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT ALL - 84 * col2 + - + 96 AS col2 FROM tab1 AS cor0
----
-5052
-5808
-8160

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 60 < - 68
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query I rowsort label-232
SELECT - CAST ( - - 26 AS INTEGER ) FROM tab2 AS cor0
----
-26
-26
-26

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-235
SELECT ALL 89 AS col2, + COUNT( * ) col1, - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
89
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-235
SELECT ALL 89 AS col2, + COUNT ( * ) col1, - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
89
3
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT COUNT( * ) + - + 48 FROM tab2, tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-239
SELECT COUNT ( * ) + - + 48 FROM tab2, tab0 AS cor0
----
-39

query I rowsort
SELECT 58 + - + col2 + + col1 AS col0 FROM tab0
----
-40
69
92

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT - COUNT( * ) + - + 87 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-241
SELECT - COUNT ( * ) + - + 87 FROM tab0
----
-90

query I rowsort
SELECT DISTINCT col1 + 41 AS col1 FROM tab1
----
46
55
88

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT - COUNT( * ) FROM tab0 WHERE - 97 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-243
SELECT - COUNT ( * ) FROM tab0 WHERE - 97 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT + ( + col2 ) * + 62 - + col0 * - col1 FROM tab1
----
4083
6666
8493

query III rowsort
SELECT * FROM tab2 WHERE + col2 = - + 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT + + COUNT( * ) + + 29 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-246
SELECT + + COUNT ( * ) + + 29 FROM tab2 AS cor0
----
32

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

query I rowsort
SELECT DISTINCT - col0 - - 73 * - col0 + + + col0 AS col0 FROM tab1 AS cor0
----
-3723
-6205
-6643

query II rowsort
SELECT - + col2 AS col1, + col1 * - + col1 AS col0 FROM tab2 AS cor0
----
-23
-2601
-40
-5929
-58
-4489

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT ALL + + COUNT( ALL - - 58 ) - + 19 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-250
SELECT ALL + + COUNT ( ALL - - 58 ) - + 19 FROM tab1 AS cor0
----
-16

query I rowsort
SELECT ALL + col0 * - col1 + + - col1 AS col2 FROM tab0 AS cor0
----
-1296
-1848
-98

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

query I rowsort
SELECT DISTINCT col1 - - 1 + + 65 AS col1 FROM tab0
----
147
67
87

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 11 BETWEEN - + col0 + + 13 AND NULL
----

query I rowsort
SELECT ALL + col0 * + 17 AS col0 FROM tab1
----
1445
1547
867

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= + + col1 / + col1 - - + col1 / + col0 + - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-259
SELECT ALL col2 * + CAST( - col0 AS SIGNED ) AS col0 FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-259
SELECT ALL col2 * + CAST ( - col0 AS INTEGER ) AS col0 FROM tab1
----
-4896
-5015
-6188

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

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

skipif mysql # not compatible
query I rowsort label-261
SELECT ALL COUNT ( * ) / + 91 AS col0 FROM tab2
----
0

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

skipif mysql # not compatible
query I rowsort label-262
SELECT DISTINCT 44 / - col2 FROM tab2 AS cor0
----
-1
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-264
SELECT - CAST( + col1 AS SIGNED ) * col2 + - 89 FROM tab1 AS cor0
----
-1433
-3285
-384

skipif mysql # not compatible
query I rowsort label-264
SELECT - CAST ( + col1 AS INTEGER ) * col2 + - 89 FROM tab1 AS cor0
----
-1433
-3285
-384

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

query I rowsort
SELECT - - 56 AS col2 FROM tab1 AS cor0
----
56
56
56

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

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

query I rowsort
SELECT col2 + - + 79 * - - col0 AS col2 FROM tab0 AS cor0
----
-1138
-6863
-7564

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col0 + + - 3 * + col2 col0 FROM tab0 AS cor0
----
-173
-299
47

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

query I rowsort
SELECT 9 * 86 FROM tab2 AS cor0
----
774
774
774

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 < + 28
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-276
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT ALL 24 + - MIN( DISTINCT - 63 ) AS col0 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-277
SELECT ALL 24 + - MIN ( DISTINCT - 63 ) AS col0 FROM tab2
----
87

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

query II rowsort
SELECT + 37, - col1 AS col2 FROM tab1
----
37
-14
37
-47
37
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT - 43 * - COUNT( DISTINCT + - 48 ) col2 FROM tab2
----
43

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

query I rowsort
SELECT 66 + col2 + + - col2 AS col1 FROM tab2 cor0
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT ( + - MAX( - col2 ) ) + - 46 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-282
SELECT ( + - MAX ( - col2 ) ) + - 46 FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-283
SELECT 21 * - - col0 + col1 + - CAST( + col2 AS SIGNED ) * - 96 AS col1 FROM tab0
----
11542
2808
4908

skipif mysql # not compatible
query I rowsort label-283
SELECT 21 * - - col0 + col1 + - CAST ( + col2 AS INTEGER ) * - 96 AS col1 FROM tab0
----
11542
2808
4908

query I rowsort
SELECT ALL - col2 + + col2 - + - col1 FROM tab2
----
51
67
77

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

skipif mysql # not compatible
query I rowsort label-285
SELECT DISTINCT - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

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

skipif mysql # not compatible
query I rowsort label-286
SELECT + col2 / - - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 - - 47 AS col0 FROM tab1 AS cor0
----
-12
-21
-49

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + - col2 col0 FROM tab2 cor0
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT ALL - 89 * - COUNT( * ) AS col2 FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-290
SELECT ALL - 89 * - COUNT ( * ) AS col2 FROM tab0
----
267

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

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

query I rowsort
SELECT ALL ( 10 ) FROM tab1
----
10
10
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-293
SELECT CAST( - CAST( - + col1 AS SIGNED ) AS SIGNED ) * - 72 FROM tab1
----
-1008
-3384
-360

skipif mysql # not compatible
query I rowsort label-293
SELECT CAST ( - CAST ( - + col1 AS INTEGER ) AS INTEGER ) * - 72 FROM tab1
----
-1008
-3384
-360

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT + + 97 IS NOT NULL
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + 44 FROM tab1 WHERE ( + col2 ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * - + ( ( - 29 ) ) AS col1 FROM tab2
----
-1160
-1682
-667

onlyif mysql # aggregate syntax: 
query II rowsort label-300
SELECT SUM( ALL - col2 ) AS col0, MIN( DISTINCT - + col1 ) FROM tab0
----
-156
-81

skipif mysql # not compatible
query II rowsort label-300
SELECT SUM ( ALL - col2 ) AS col0, MIN ( DISTINCT - + col1 ) FROM tab0
----
-156
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT DISTINCT ( + - 69 ) + - COUNT( * ) AS col2 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT ( + - 69 ) + - COUNT ( * ) AS col2 FROM tab1
----
-72

query I rowsort
SELECT ( - 38 ) * + - col1 AS col0 FROM tab1 AS cor0
----
1786
190
532

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-304
SELECT DISTINCT col2 + + 89 DIV + + CAST( - 63 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-304
SELECT DISTINCT col2 + + 89 / + + CAST ( - 63 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
46
9
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 * - 69 * + + col0 col1 FROM tab0
----
-10967481
-1257525
-649221

query I rowsort
SELECT 16 + col0 FROM tab1
----
101
107
67

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT ( - 11 ) + + COUNT( * ) AS col2 FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-307
SELECT ( - 11 ) + + COUNT ( * ) AS col2 FROM tab2
----
-8

query I rowsort
SELECT 57 + + col1 + + 32 AS col0 FROM tab1
----
103
136
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - - col1 col0 FROM tab0
----
100
128
31

query I rowsort
SELECT ALL - + col0 AS col0 FROM tab0 WHERE - col0 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT ( - col2 ) + - + 73 FROM tab2
----
-113
-131
-96

query I rowsort
SELECT DISTINCT 48 + - 38 AS col1 FROM tab0
----
10

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

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

query I rowsort
SELECT + col0 - + ( 55 ) FROM tab2 AS cor0
----
-9
20
9

query I rowsort
SELECT + 61 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT ALL + 26 * + 66 * + COUNT( * ) + - COUNT( * ) AS col2 FROM tab2
----
5145

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL + 26 * + 66 * + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2
----
5145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
66

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-319
SELECT col2, + 4 DIV - CAST( ( 78 ) AS SIGNED ) * + 8 * + - 2 * 45 + + 16 + - col2 - - 78 col1 FROM tab2 cor0
----
23
71
40
54
58
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-319
SELECT col2, + 4 / - CAST ( ( 78 ) AS INTEGER ) * + 8 * + - 2 * 45 + + 16 + - col2 - - 78 col1 FROM tab2 cor0
----
23
71
40
54
58
36

query II rowsort
SELECT ALL col2, col1 AS col2 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT COUNT( DISTINCT - 49 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-321
SELECT COUNT ( DISTINCT - 49 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - - ( - col1 ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

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

skipif mysql # not compatible
query I rowsort label-323
SELECT - MAX ( - + 8 ) FROM tab1 AS cor0
----
8

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 <> - 84
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

skipif mysql # not compatible
query I rowsort label-326
SELECT DISTINCT + 2 * - + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - col0 * - + 20 FROM tab2
----
1280
1500
920

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-332
SELECT DISTINCT - COUNT( * ), + SUM( DISTINCT + 31 ) col1 FROM tab2
----
-3
31

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

query I rowsort
SELECT col2 * col0 * - col0 AS col0 FROM tab0 AS cor0
----
-10575
-75690
-931491

onlyif mysql # aggregate syntax: 
query II rowsort label-334
SELECT ALL - MIN( ALL 67 ) * - 25 AS col0, 29 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
1675
32

skipif mysql # not compatible
query II rowsort label-334
SELECT ALL - MIN ( ALL 67 ) * - 25 AS col0, 29 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
1675
32

query I rowsort
SELECT DISTINCT - 89 * + - col1 - + - ( - col0 ) AS col2 FROM tab1 AS cor0
----
1195
360
4092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-336
SELECT DISTINCT col1 * - 91 + - CAST( col0 AS SIGNED ) * - col1 + - 10 FROM tab1 AS cor0
----
-10
-40
-570

skipif mysql # not compatible
query I rowsort label-336
SELECT DISTINCT col1 * - 91 + - CAST ( col0 AS INTEGER ) * - col1 + - 10 FROM tab1 AS cor0
----
-10
-40
-570

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-338
SELECT ALL 16 * ( - CAST( NULL AS SIGNED ) ) AS col2, + COUNT( * ) col0 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-338
SELECT ALL 16 * ( - CAST ( NULL AS INTEGER ) ) AS col2, + COUNT ( * ) col0 FROM tab0 AS cor0
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-339
SELECT + CAST( - - col2 AS SIGNED ) * col1 + + 89 AS col0 FROM tab0 AS cor0
----
188
299
3896

skipif mysql # not compatible
query I rowsort label-339
SELECT + CAST ( - - col2 AS INTEGER ) * col1 + + 89 AS col0 FROM tab0 AS cor0
----
188
299
3896

query I rowsort
SELECT - col2 / - 43 * - - 39 * 41 AS col1 FROM tab0 cor0 WHERE col0 * 69 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 14 * - + col0 col1 FROM tab2 AS cor0
----
-1050
-644
-896

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

onlyif mysql # DIV for integer division: 
query I rowsort label-343
SELECT DISTINCT + col1 DIV col1 col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-343
SELECT DISTINCT + col1 / col1 col0 FROM tab1 AS cor0
----
1

query II rowsort
SELECT ALL + + col0 + + - 96 - + col2 AS col1, 40 AS col1 FROM tab1 WHERE NOT NULL = - 40 * + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT ALL COUNT( DISTINCT - 78 ) FROM tab0, tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL COUNT ( DISTINCT - 78 ) FROM tab0, tab2 AS cor0
----
1

query I rowsort
SELECT + col0 * + - col2 - - col0 * + 64 FROM tab2
----
1536
1886
450

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT 26 - - - COUNT( * ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-347
SELECT 26 - - - COUNT ( * ) FROM tab2
----
23

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-350
SELECT - CAST ( NULL AS INTEGER ) + + col1 col2, col0 AS col1 FROM tab2
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT 88 + + + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1688
3452
617

query II rowsort
SELECT + col0 + + 98, - 31 AS col1 FROM tab0 cor0
----
113
-31
185
-31
195
-31

query I rowsort
SELECT + + 90 + + col1 FROM tab2 AS cor0
----
141
157
167

query I rowsort
SELECT + col2 * + + 13 FROM tab2
----
299
520
754

onlyif mysql # aggregate syntax: 
query I rowsort label-355
SELECT - + COUNT( * ) + + 59 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
50

skipif mysql # not compatible
query I rowsort label-355
SELECT - + COUNT ( * ) + + 59 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
50

query I rowsort
SELECT + 69 * 80 * col0 AS col1 FROM tab1
----
281520
469200
502320

query I rowsort
SELECT 91 * + col0 FROM tab2 AS cor0
----
4186
5824
6825

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 >= + 37 * - 24
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-360
SELECT + 2 * + col2 * + CAST( col0 AS SIGNED ) * - 43 FROM tab0
----
-60630
-74820
-825858

skipif mysql # not compatible
query I rowsort label-360
SELECT + 2 * + col2 * + CAST ( col0 AS INTEGER ) * - 43 FROM tab0
----
-60630
-74820
-825858

query II rowsort
SELECT DISTINCT + 92, col0 + - + col1 * - 70 + - - 27 AS col0 FROM tab2
----
92
3643
92
4792
92
5481

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 41 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-366
SELECT ALL + col1 * - + CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-366
SELECT ALL + col1 * - + CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

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

query II rowsort
SELECT col1, col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN - col1 AND col0
----

query II rowsort
SELECT ALL - + col2 * - ( - 37 ) + - col2 * + - col0 + col2, col1 AS col1 FROM tab0 AS cor0
----
-987
81
510
21
6039
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-370
SELECT DISTINCT + 21 DIV + + COUNT( * ), COUNT( * ) + 57 AS col0 FROM tab0 AS cor0
----
7
60

skipif mysql # not compatible
query II rowsort label-370
SELECT DISTINCT + 21 / + + COUNT ( * ), COUNT ( * ) + 57 AS col0 FROM tab0 AS cor0
----
7
60

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-373
SELECT DISTINCT + 27 * - CAST( - col0 AS SIGNED ) + 64 AS col0 FROM tab2 AS cor0
----
1306
1792
2089

skipif mysql # not compatible
query I rowsort label-373
SELECT DISTINCT + 27 * - CAST ( - col0 AS INTEGER ) + 64 AS col0 FROM tab2 AS cor0
----
1306
1792
2089

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-374
SELECT ALL + + COUNT( ALL + col1 ) * + ( - ( + 63 ) ) + - COUNT( * ) + - COUNT( * ) DIV - - COUNT( * ) FROM tab2 AS cor0
----
-193

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( 6 ) * + 74 AS col0, - col0 * - col0 + col2 - 68 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-376
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 29 * 12 * col0 + + - CAST( NULL AS SIGNED ) NOT BETWEEN - - 26 * + ( + + 59 ) * col1 - - - col1 + - col1 + + - col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-376
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 29 * 12 * col0 + + - CAST ( NULL AS INTEGER ) NOT BETWEEN - - 26 * + ( + + 59 ) * col1 - - - col1 + - col1 + + - col2 AND NULL
----

query II rowsort
SELECT ALL - 24 AS col0, - col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-24
-59
-24
-68
-24
-96

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

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

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

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

query I rowsort
SELECT DISTINCT col2 - - col1 * + + 31 AS col1 FROM tab0
----
130
2558
661

onlyif mysql # DIV for integer division: 
query I rowsort label-381
SELECT 14 DIV 25 DIV - col0 + - col1 + - 26 col0 FROM tab1
----
-31
-40
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-381
SELECT 14 / 25 / - col0 + - col1 + - 26 col0 FROM tab1
----
-31
-40
-73

query I rowsort
SELECT col2 * - col0 * col0 AS col1 FROM tab2
----
-163840
-326250
-48668

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab0 WHERE NOT NULL > ( - col2 ) + - 48
----

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

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

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

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

query I rowsort
SELECT 85 * + col0 FROM tab2
----
3910
5440
6375

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-389
SELECT DISTINCT - - 81 DIV col0 * - col0 col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-389
SELECT DISTINCT - - 81 / col0 * - col0 col1 FROM tab2 AS cor0
----
-46
-64
-75

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

onlyif mysql # DIV for integer division: 
query I rowsort label-391
SELECT DISTINCT - col1 DIV + + 11 AS col0 FROM tab1 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-391
SELECT DISTINCT - col1 / + + 11 AS col0 FROM tab1 AS cor0
----
-1
-4
0

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < col1
----

query I rowsort
SELECT - 68 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query II rowsort
SELECT ALL + + col2 AS col2, 71 AS col2 FROM tab1 WHERE NOT ( NOT ( 74 ) <> + col2 )
----
59
71
68
71
96
71

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

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT 73 * COUNT( * ) FROM tab1 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-399
SELECT 73 * COUNT ( * ) FROM tab1 AS cor0
----
219

onlyif mysql # DIV for integer division: 
query I rowsort label-400
SELECT + col1 DIV + + col2 + - col2 AS col2 FROM tab2 cor0
----
-21
-39
-57

skipif mysql # not compatible
query I rowsort label-400
SELECT + col1 / + + col2 + - col2 AS col2 FROM tab2 cor0
----
-21
-39
-57

query I rowsort
SELECT + 15 + 17 FROM tab1 AS cor0
----
32
32
32

query I rowsort
SELECT col1 + + - col0 + - col2 * + - col0 AS col2 FROM tab0
----
771
804
9507

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

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT SUM( + 8 ) col0 FROM tab0
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-404
SELECT SUM ( + 8 ) col0 FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT MAX( ALL 95 ) FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-405
SELECT MAX ( ALL 95 ) FROM tab2
----
95

query I rowsort
SELECT ALL - 34 + - col0 * - + 10 AS col2 FROM tab2
----
426
606
716

query I rowsort
SELECT DISTINCT 96 + - col1 + - 90 FROM tab2 AS cor0
----
-45
-61
-71

query II rowsort
SELECT DISTINCT + col1, col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-409
SELECT ( - col1 ) * col0 * + - 28 + + 49 + - + col1 col2 FROM tab1 AS cor0 WHERE CAST( + col2 AS DECIMAL ) IS NOT NULL
----
11944
119758
20027

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-409
SELECT ( - col1 ) * col0 * + - 28 + + 49 + - + col1 col2 FROM tab1 AS cor0 WHERE CAST ( + col2 AS REAL ) IS NOT NULL
----
11944
119758
20027

query I rowsort
SELECT ALL + ( + col2 ) * + col2 FROM tab0
----
100
2209
9801

query I rowsort
SELECT + 90 - + col1 FROM tab1
----
43
76
85

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NOT + col0 NOT BETWEEN + col0 AND + 4 * + 91
----
14
47
5

query I rowsort
SELECT ALL + col0 + - - col1 AS col0 FROM tab1
----
138
65
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 + + + col1 - + + col1 * 82 * + col0 col2 FROM tab0
----
-149859
-8049
-99483

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 * - - col1 * + - 17 + - + 91 col2 FROM tab0
----
-11158
-42778
-618

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-418
SELECT COUNT( * ) DIV - - 44 + + + ( COUNT( + col2 ) ) AS col1, 46 + + 43 * - COUNT( * ) FROM tab1 AS cor0
----
3
-83

skipif mysql # not compatible
query II rowsort label-418
SELECT COUNT ( * ) / - - 44 + + + ( COUNT ( + col2 ) ) AS col1, 46 + + 43 * - COUNT ( * ) FROM tab1 AS cor0
----
3
-83

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-419
SELECT CAST( NULL AS DECIMAL ) col0, - 5 + + col1 AS col2 FROM tab2
----
NULL
46
NULL
62
NULL
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-419
SELECT CAST ( NULL AS REAL ) col0, - 5 + + col1 AS col2 FROM tab2
----
NULL
46
NULL
62
NULL
72

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT - 50 - - 18 + COUNT( ALL - 86 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-23

skipif mysql # not compatible
query I rowsort label-420
SELECT - 50 - - 18 + COUNT ( ALL - 86 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT DISTINCT + COUNT( * ) * + 42 FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-421
SELECT DISTINCT + COUNT ( * ) * + 42 FROM tab2
----
126

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

skipif mysql # not compatible
query I rowsort label-422
SELECT DISTINCT + ( - SUM ( - - col1 ) ) AS col2 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) * COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
81

query II rowsort
SELECT col1 AS col2, col0 * - + col1 AS col1 FROM tab0 AS cor0
----
1
-97
21
-1827
81
-1215

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

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

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

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

query I rowsort
SELECT ( - + 46 ) + col2 AS col1 FROM tab0
----
-36
1
53

query I rowsort
SELECT DISTINCT + 98 * + - col1 + - + col1 FROM tab1
----
-1386
-4653
-495

query I rowsort
SELECT col2 + 69 FROM tab1
----
128
137
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 86 + - - 16 col0 FROM tab1 cor0
----
-70

query I rowsort
SELECT ALL 68 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # DIV for integer division: 
query I rowsort label-432
SELECT ALL col2 DIV + - 62 + - col0 - + col2 AS col0 FROM tab0 AS cor0
----
-197
-62
-97

skipif mysql # not compatible
query I rowsort label-432
SELECT ALL col2 / + - 62 + - col0 - + col2 AS col0 FROM tab0 AS cor0
----
-197
-62
-97

query I rowsort
SELECT + col2 * + ( 1 ) + - col0 FROM tab2 AS cor0
----
-17
-23
-24

query II rowsort
SELECT DISTINCT - - col1 - col2 + - col1, - ( - 36 ) * + col0 AS col2 FROM tab2 AS cor0
----
-23
1656
-40
2304
-58
2700

query I rowsort
SELECT DISTINCT - - 34 AS col0 FROM tab2 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT COUNT( - 10 ) * + + 80 AS col1 FROM tab2
----
240

skipif mysql # not compatible
query I rowsort label-436
SELECT COUNT ( - 10 ) * + + 80 AS col1 FROM tab2
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT + 68 * ( - COUNT( * ) ) AS col1 FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-437
SELECT + 68 * ( - COUNT ( * ) ) AS col1 FROM tab1
----
-204

query I rowsort
SELECT ALL + ( - col0 ) * - - 43 * + col0 AS col1 FROM tab0
----
-325467
-404587
-9675

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-439
SELECT DISTINCT - col1 AS col2, + col2 + - ( CAST( - + ( col0 ) AS SIGNED ) ) FROM tab2
----
-51
69
-67
133
-77
104

skipif mysql # not compatible
query II rowsort label-439
SELECT DISTINCT - col1 AS col2, + col2 + - ( CAST ( - + ( col0 ) AS INTEGER ) ) FROM tab2
----
-51
69
-67
133
-77
104

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-441
SELECT 90 * + CAST( NULL AS SIGNED ) * - + SUM( + + col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-441
SELECT 90 * + CAST ( NULL AS INTEGER ) * - + SUM ( + + col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

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

query II rowsort
SELECT - 15, 76 AS col2 FROM tab2 AS cor0
----
-15
76
-15
76
-15
76

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 29 > + 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT - 69 * + - MIN( DISTINCT - col2 ) FROM tab0 AS cor0
----
-6831

skipif mysql # not compatible
query I rowsort label-446
SELECT - 69 * + - MIN ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-6831

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT ALL + MIN( DISTINCT - col1 ) - + 61 - 78 FROM tab0 AS cor0 WHERE NOT 59 IS NULL
----
-220

skipif mysql # not compatible
query I rowsort label-447
SELECT ALL + MIN ( DISTINCT - col1 ) - + 61 - 78 FROM tab0 AS cor0 WHERE NOT 59 IS NULL
----
-220

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( 58 ) + - 83 + - - col1 * + - 25 < - col2
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-450
SELECT - CAST( + - col2 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-450
SELECT - CAST ( + - col2 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL 34 * 77 FROM tab1 AS cor0
----
2618
2618
2618

query I rowsort
SELECT DISTINCT - ( - col2 ) * - col2 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT DISTINCT col1 + - 34 * + + 87 * + + col0 AS col1 FROM tab0
----
-257325
-286925
-44289

query I rowsort
SELECT ALL + col2 + col0 FROM tab2 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL 36 + col2 FROM tab2 WHERE NOT - col0 IS NOT NULL OR NOT NULL IS NOT NULL
----
59
76
94

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

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NULL <> NULL
----

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

query II rowsort
SELECT ALL - 61 AS col1, + col1 + col1 * - 44 FROM tab1
----
-61
-2021
-61
-215
-61
-602

onlyif mysql # aggregate syntax: 
query II rowsort label-460
SELECT DISTINCT 71 + MIN( DISTINCT - col2 ) AS col0, 82 AS col1 FROM tab0
----
-28
82

skipif mysql # not compatible
query II rowsort label-460
SELECT DISTINCT 71 + MIN ( DISTINCT - col2 ) AS col0, 82 AS col1 FROM tab0
----
-28
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 15 + + 87 * col1 col2 FROM tab2 AS cor0
----
4422
5814
6684

query I rowsort
SELECT + col2 + - + col1 * ( + col1 ) FROM tab2 cor0
----
-2578
-4431
-5889

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-464
SELECT + + 10 DIV - COUNT( DISTINCT - 37 ) + - COUNT( * ) + + 10 AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-464
SELECT + + 10 / - COUNT ( DISTINCT - 37 ) + - COUNT ( * ) + + 10 AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-465
SELECT DISTINCT - col1 - + 19 + CAST( + col1 AS DECIMAL ) * - - CAST( NULL AS DECIMAL ) / - col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-465
SELECT DISTINCT - col1 - + 19 + CAST ( + col1 AS REAL ) * - - CAST ( NULL AS REAL ) / - col2 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 5 + - col0 + + 28 AS col2 FROM tab0 AS cor0
----
-54
-64
18

query I rowsort
SELECT ALL col0 - - ( - - 26 ) FROM tab2 AS cor0
----
101
72
90

query II rowsort
SELECT col2 - + - 32 AS col1, + col1 * col0 * - col2 + - col1 AS col1 FROM tab0 AS cor0
----
131
-9604
42
-18291
79
-57186

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT ALL - + COUNT( * ) * - 76 - + 11 - + COUNT( * ) * MIN( DISTINCT - - col1 ) AS col2 FROM tab1 AS cor0
----
202

skipif mysql # not compatible
query I rowsort label-470
SELECT ALL - + COUNT ( * ) * - 76 - + 11 - + COUNT ( * ) * MIN ( DISTINCT - - col1 ) AS col2 FROM tab1 AS cor0
----
202

query I rowsort
SELECT + col0 * col1 * col1 FROM tab1 WHERE NOT + 36 NOT IN ( - + col2, + col2, 61, + col1, col0 )
----

query I rowsort
SELECT col0 * + 80 AS col1 FROM tab1
----
4080
6800
7280

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 BETWEEN - - ( + col1 ) AND - 57 + + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-476
SELECT - - col1 DIV - col0 * + - col2 * + 94 + col1 DIV + + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-476
SELECT - - col1 / - col0 * + - col2 * + 94 + col1 / + + col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 22 * - ( - - 22 ) AS col2 FROM tab2 AS cor0
----
-484

query I rowsort
SELECT - 49 * + + col0 FROM tab1 AS cor0
----
-2499
-4165
-4459

query II rowsort
SELECT - col0, + 97 + + col1 * + + col2 AS col1 FROM tab1
----
-51
1441
-85
392
-91
3293

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * col1 + col0 + - col1 + col2 + - 46 col0 FROM tab0 cor0
----
240
248
3742

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

query I rowsort
SELECT col1 + - 39 + + col2 * - 16 FROM tab1
----
-1080
-1561
-978

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 3 <= + - col2
----

query I rowsort
SELECT ( col0 ) + - ( + col2 ) AS col1 FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-485
SELECT - 49 + + - SUM( DISTINCT col0 ) - + MAX( + 26 ) AS col0 FROM tab0
----
-274

skipif mysql # not compatible
query I rowsort label-485
SELECT - 49 + + - SUM ( DISTINCT col0 ) - + MAX ( + 26 ) AS col0 FROM tab0
----
-274

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 * - col1 + 83 col1 FROM tab2
----
-580
-788
-918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-487
SELECT col2 * 43 / - + 57 * col2 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-487
SELECT col2 * 43 / - + 57 * col2 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + + 26 + + 6 AS col0 FROM tab2 AS cor0
----
109
83
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-489
SELECT DISTINCT + 83 DIV COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
27

skipif mysql # not compatible
query I rowsort label-489
SELECT DISTINCT + 83 / COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
27

query I rowsort
SELECT - + 21 AS col2 FROM tab0 AS cor0
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT DISTINCT + MAX( ALL + 32 ) FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-491
SELECT DISTINCT + MAX ( ALL + 32 ) FROM tab2
----
32

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

skipif mysql # not compatible
query I rowsort label-492
SELECT 26 + COUNT ( * ) FROM tab2 cor0
----
29

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT - ( + MAX( - - col0 ) ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-495
SELECT - ( + MAX ( - - col0 ) ) AS col1 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT ALL + - col0 + + col2 FROM tab2 AS cor0 WHERE col1 * col2 IS NULL
----

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

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

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

query I rowsort
SELECT DISTINCT col2 * + - col2 AS col2 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT - 75 FROM tab2 WHERE NOT + 87 = col2 + + - 19 + col1 / - col0 * col2
----
-75
-75
-75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col2 ) < + 11 + col1 / 39 + + + col2
----

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

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

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

query II rowsort
SELECT 46 * + - 84, col0 AS col1 FROM tab0 AS cor0
----
-3864
15
-3864
87
-3864
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-505
SELECT + CAST( NULL AS SIGNED ), + 68 AS col1 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN + + col1 + + + 58 AND - + col0
----
NULL
68
NULL
68
NULL
68

skipif mysql # not compatible
query II rowsort label-505
SELECT + CAST ( NULL AS INTEGER ), + 68 AS col1 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN + + col1 + + + 58 AND - + col0
----
NULL
68
NULL
68
NULL
68

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT + MAX( + + col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-506
SELECT + MAX ( + + col0 ) AS col1 FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL + 1 * + col0 AS col1 FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT col0, + 3 * col0 FROM tab2 AS cor0 WHERE + 9 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * + col1 > - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-510
SELECT ALL - ( + CAST( + col0 AS SIGNED ) ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL - ( + CAST ( + col0 AS INTEGER ) ) FROM tab1
----
-51
-85
-91

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

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

query I rowsort
SELECT DISTINCT 46 + col1 + col1 AS col0 FROM tab0
----
208
48
88

query I rowsort
SELECT - col0 - - - ( col0 ) FROM tab0
----
-174
-194
-30

query I rowsort
SELECT DISTINCT - col2 + - col2 * col0 FROM tab0
----
-752
-880
-9702

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

skipif mysql # not compatible
query I rowsort label-515
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) + + 30 FROM tab2
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-516
SELECT 55 + COUNT( * ), MAX( ALL 78 ) * - MAX( col1 ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
58
-3663

skipif mysql # not compatible
query II rowsort label-516
SELECT 55 + COUNT ( * ), MAX ( ALL 78 ) * - MAX ( col1 ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
58
-3663

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT ALL COUNT( * ) * COUNT( * ) * + 91 - - - 30 * + 28 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-517
SELECT ALL COUNT ( * ) * COUNT ( * ) * + 91 - - - 30 * + 28 FROM tab1 AS cor0
----
-21

query II rowsort
SELECT DISTINCT - col1 AS col0, col2 + - + col2 AS col1 FROM tab1 cor0
----
-14
0
-47
0
-5
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-519
SELECT + - CAST( NULL AS DECIMAL ) * - ( + col1 ), - col0 AS col2 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-519
SELECT + - CAST ( NULL AS REAL ) * - ( + col1 ), - col0 AS col2 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 41 NOT BETWEEN + + 25 AND + col0 AND NOT 44 IS NULL
----

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

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

query I rowsort
SELECT ALL ( 59 ) FROM tab0 AS cor0
----
59
59
59

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

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

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

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

skipif mysql # not compatible
query I rowsort label-525
SELECT DISTINCT COUNT ( * ) * + 99 FROM tab1
----
297

query I rowsort
SELECT + 4 * + col0 AS col0 FROM tab0
----
348
388
60

query I rowsort
SELECT - 83 FROM tab2, tab1 cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # DIV for integer division: 
query I rowsort label-528
SELECT DISTINCT col2 * + col0 DIV + col0 AS col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-528
SELECT DISTINCT col2 * + col0 / + col0 AS col0 FROM tab0
----
10
47
99

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 AS col0, col2 col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

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

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

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

query I rowsort
SELECT - ( + col1 ) * - + 51 * + 95 AS col0 FROM tab1 AS cor0
----
227715
24225
67830

query I rowsort
SELECT ALL 23 * 69 + + col1 * + 49 AS col0 FROM tab2
----
4086
4870
5360

onlyif mysql # DIV for integer division: 
query I rowsort label-536
SELECT - 50 DIV + 96 + col2 AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-536
SELECT - 50 / + 96 + col2 AS col0 FROM tab2
----
23
40
58

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

query I rowsort
SELECT DISTINCT 72 * - col2 AS col2 FROM tab1
----
-4248
-4896
-6912

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT ALL 78 * SUM( - col2 * col1 ) col0 FROM tab0
----
-321048

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-541
SELECT ALL 78 * SUM ( - col2 * col1 ) col0 FROM tab0
----
-321048

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

query I rowsort
SELECT DISTINCT - 43 + - col2 FROM tab0
----
-142
-53
-90

query I rowsort
SELECT col1 + + ( + col1 ) AS col0 FROM tab2 WHERE NOT ( - ( + col1 ) * - col1 + 26 ) IS NULL
----
102
134
154

query I rowsort
SELECT 80 * col2 AS col1 FROM tab0 WHERE NOT ( col0 + col1 ) NOT IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-546
SELECT - col2 DIV + CAST( col1 AS SIGNED ) + 40 FROM tab1
----
29
34
39

skipif mysql # not compatible
query I rowsort label-546
SELECT - col2 / + CAST ( col1 AS INTEGER ) + 40 FROM tab1
----
29
34
39

query I rowsort
SELECT col1 + + col0 * col1 AS col1 FROM tab1 WHERE ( - col0 - col2 ) IS NOT NULL
----
430
4324
728

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

query I rowsort
SELECT col1 * + ( col1 * col2 ) + 48 FROM tab0
----
147
308415
4458

query I rowsort
SELECT + 65 + 11 FROM tab0
----
76
76
76

query I rowsort
SELECT col0 * - col0 + + 60 FROM tab2
----
-2056
-4036
-5565

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

query I rowsort
SELECT ALL col0 * - 69 + - 87 FROM tab0
----
-1122
-6090
-6780

query I rowsort
SELECT + 55 * - col1 FROM tab0
----
-1155
-4455
-55

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-556
SELECT - COUNT( ALL - col2 ) FROM tab0 WHERE NOT NULL > + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-556
SELECT - COUNT ( ALL - col2 ) FROM tab0 WHERE NOT NULL > + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT ALL COUNT( ALL col0 ) AS col1 FROM tab2 WHERE NULL NOT IN ( col0 + + ( + 9 + 14 * 67 ) )
----
0

skipif mysql # not compatible
query I rowsort label-557
SELECT ALL COUNT ( ALL col0 ) AS col1 FROM tab2 WHERE NULL NOT IN ( col0 + + ( + 9 + 14 * 67 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT 95 * SUM( DISTINCT col0 ) FROM tab1
----
21565

skipif mysql # not compatible
query I rowsort label-558
SELECT 95 * SUM ( DISTINCT col0 ) FROM tab1
----
21565

query I rowsort
SELECT 56 FROM tab0 WHERE NOT NULL = + col1
----

query I rowsort
SELECT col0 + + 12 FROM tab1
----
103
63
97

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-562
SELECT DISTINCT col1 * - CAST( 26 AS SIGNED ) FROM tab0
----
-2106
-26
-546

skipif mysql # not compatible
query I rowsort label-562
SELECT DISTINCT col1 * - CAST ( 26 AS INTEGER ) FROM tab0
----
-2106
-26
-546

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

skipif mysql # not compatible
query I rowsort label-563
SELECT ALL SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) + ( - COUNT ( * ) + + COUNT ( * ) ) FROM tab1 cor0
----
NULL

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 24 * - col0 IS NULL
----

query I rowsort
SELECT DISTINCT col0 - 46 * - col0 AS col1 FROM tab1 AS cor0
----
2397
3995
4277

query I rowsort
SELECT 89 - 9 AS col2 FROM tab2 AS cor0
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT DISTINCT - COUNT( * ) * + 49 - 57 FROM tab0 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-568
SELECT DISTINCT - COUNT ( * ) * + 49 - 57 FROM tab0 AS cor0
----
-204

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

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

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

query I rowsort
SELECT + col0 * - 73 FROM tab1 AS cor0
----
-3723
-6205
-6643

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

query I rowsort
SELECT DISTINCT ( col2 ) * + col1 AS col1 FROM tab1 AS cor0
----
1344
295
3196

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-574
SELECT + ( CAST ( col1 AS INTEGER ) ) col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + 70 * col0 AS col2 FROM tab2 cor0
----
3220
4480
5250

onlyif mysql # DIV for integer division: 
query I rowsort label-576
SELECT 55 DIV - 68 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-576
SELECT 55 / - 68 AS col0 FROM tab1 AS cor0
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT + + 5 * + MIN( ALL - col0 ) FROM tab0 AS cor0
----
-485

skipif mysql # not compatible
query I rowsort label-579
SELECT + + 5 * + MIN ( ALL - col0 ) FROM tab0 AS cor0
----
-485

query I rowsort
SELECT ALL - 89 AS col2 FROM tab1 cor0 WHERE + col2 = col0 - - 25
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT + SUM( ALL 33 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-582
SELECT + SUM ( ALL 33 ) FROM tab0 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col2 col0 FROM tab0 AS cor0 WHERE - 25 > NULL
----

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

query I rowsort
SELECT ALL + col0 * + - 10 * - 66 AS col0 FROM tab0
----
57420
64020
9900

query I rowsort
SELECT DISTINCT col0 * - 91 AS col1 FROM tab2
----
-4186
-5824
-6825

onlyif mysql # DIV for integer division: 
query I rowsort label-587
SELECT DISTINCT 1 DIV - - col1 * - col0 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-587
SELECT DISTINCT 1 / - - col1 * - col0 AS col1 FROM tab1
----
0

query I rowsort
SELECT + 76 AS col0 FROM tab1 WHERE NOT - 19 * - 94 >= ( + 78 )
----

query I rowsort
SELECT col0 FROM tab1 WHERE NOT NULL NOT IN ( - ( - col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-590
SELECT DISTINCT + 25 DIV col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-590
SELECT DISTINCT + 25 / col0 FROM tab1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT - ( - COUNT( * ) ) * + COUNT( * ) AS col0 FROM tab1 WHERE NOT + col1 NOT IN ( - col0 / col2 )
----
0

skipif mysql # not compatible
query I rowsort label-592
SELECT - ( - COUNT ( * ) ) * + COUNT ( * ) AS col0 FROM tab1 WHERE NOT + col1 NOT IN ( - col0 / col2 )
----
0

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

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

query I rowsort
SELECT DISTINCT col2 * 20 FROM tab2 WHERE - col0 IS NOT NULL
----
1160
460
800

onlyif mysql # DIV for integer division: 
query I rowsort label-596
SELECT - 19 DIV 75 col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-596
SELECT - 19 / 75 col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( + 29 ) * + col0 FROM tab2 AS cor0
----
-1334
-1856
-2175

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-598
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( col0 AS SIGNED ) + ( col2 ) NOT IN ( 86 )
----

skipif mysql # not compatible
query III rowsort label-598
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( col0 AS INTEGER ) + ( col2 ) NOT IN ( 86 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT DISTINCT COUNT( * ) * + + MIN( col1 ) col1 FROM tab2
----
153

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

query I rowsort
SELECT - 25 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 39 IS NULL OR NOT NULL NOT BETWEEN NULL AND ( + 2 * 54 )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-605
SELECT ALL - col2 + + - col0 DIV + - col1 AS col1 FROM tab2 AS cor0
----
-23
-40
-57

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL - col2 + + - col0 / + - col1 AS col1 FROM tab2 AS cor0
----
-23
-40
-57

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-609
SELECT ALL + 95, + COUNT( * ) DIV 4 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
95
0

skipif mysql # not compatible
query II rowsort label-609
SELECT ALL + 95, + COUNT ( * ) / 4 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
95
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-610
SELECT - col0 + + - ( + CAST( + col0 AS SIGNED ) ) + 63 AS col2 FROM tab0 WHERE NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-610
SELECT - col0 + + - ( + CAST ( + col0 AS INTEGER ) ) + 63 AS col2 FROM tab0 WHERE NULL <= NULL
----

query I rowsort
SELECT - 27 / col1 FROM tab2 WHERE ( NULL ) < + col0 * col0
----

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

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

query I rowsort
SELECT ALL - 15 + - - 3 + - col1 + - + 44 + ( - 63 + 62 ) * + col0 FROM tab2
----
-153
-197
-198

query II rowsort
SELECT + 74 + + - col1 AS col0, - 90 * + - col0 * 16 FROM tab0
----
-7
21600
53
125280
73
139680

query I rowsort
SELECT col2 * - col0 + + 94 AS col2 FROM tab2
----
-2466
-4256
-964

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

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

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

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

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

query I rowsort
SELECT ALL + 82 * 58 FROM tab1 AS cor0
----
4756
4756
4756

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= - 74 AND NOT ( NULL ) IS NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-623
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col2 ) < NULL
----

query I rowsort
SELECT ALL col1 + - 62 * 22 AS col2 FROM tab2
----
-1287
-1297
-1313

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-626
SELECT ALL - 65 * - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-628
SELECT ALL + ( + 63 ) + + AVG ( 28 ) + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-628
SELECT ALL + ( + 63 ) + + AVG ( 28 ) + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-629
SELECT + - SUM( ALL col2 ) + 90 FROM tab2 AS cor0 WHERE NOT + 78 / - + 97 >= + CAST( NULL AS SIGNED ) + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-629
SELECT + - SUM ( ALL col2 ) + 90 FROM tab2 AS cor0 WHERE NOT + 78 / - + 97 >= + CAST ( NULL AS INTEGER ) + 38
----
NULL

query I rowsort
SELECT DISTINCT + + 20 * + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= 38
----

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 29 + col1 AS col0 FROM tab1 AS cor0
----
34
43
76

query I rowsort
SELECT DISTINCT - 98 + col2 + + col0 FROM tab0 AS cor0
----
-1
-36
98

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

query II rowsort
SELECT - col0, col0 AS col1 FROM tab1 AS cor0 WHERE ( col1 ) <> NULL
----

query I rowsort
SELECT DISTINCT + 14 + col2 FROM tab0 AS cor0
----
113
24
61

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

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

query I rowsort
SELECT - col0 + - - col1 + col1 + col2 FROM tab0 AS cor0
----
-35
194
4

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT DISTINCT + + COUNT( * ) * - + ( - COUNT( * ) ) - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-642
SELECT DISTINCT + + COUNT ( * ) * - + ( - COUNT ( * ) ) - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
12

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

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

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

query I rowsort
SELECT col2 + - - col1 * + col0 FROM tab1 AS cor0
----
4345
484
810

query I rowsort
SELECT DISTINCT + ( - + 94 ) FROM tab0
----
-94

query I rowsort
SELECT col2 * + - 85 * + col1 FROM tab1
----
-114240
-25075
-271660

onlyif mysql # DIV for integer division: 
query I rowsort label-648
SELECT ALL col1 DIV + + col2 * col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL col1 / + + col2 * col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + ( 26 ) FROM tab1
----
26

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

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

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

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE NOT NULL >= ( NULL )
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - col0 >= - col1 )
----
15
81
47

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT - 19 * - - COUNT( * ) FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-657
SELECT - 19 * - - COUNT ( * ) FROM tab1 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT ALL + COUNT( * ) * - 85 AS col0 FROM tab0 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-658
SELECT ALL + COUNT ( * ) * - 85 AS col0 FROM tab0 AS cor0
----
-255

query I rowsort
SELECT col2 * + col2 * col2 FROM tab0 AS cor0
----
1000
103823
970299

query I rowsort
SELECT ALL col2 * - + 69 * - col0 * + - col2 AS col1 FROM tab0 AS cor0
----
-2286315
-600300
-65598093

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

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( - 35 ) + + col0 NOT IN ( - 17 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT DISTINCT - 48 * COUNT( * ) FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT - 48 * COUNT ( * ) FROM tab2
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT - MAX( - - 37 ) AS col2 FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-664
SELECT - MAX ( - - 37 ) AS col2 FROM tab2
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-665
SELECT ALL - 55 DIV + COUNT( * ) AS col1 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-665
SELECT ALL - 55 / + COUNT ( * ) AS col1 FROM tab1
----
-18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT - - MAX( + - col1 ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-667
SELECT - - MAX ( + - col1 ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT + + col1 + + + col0 + + col1 * 85 FROM tab2 AS cor0
----
4432
5837
6686

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

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 WHERE 64 <= - + col1
----

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

skipif mysql # not compatible
query I rowsort label-671
SELECT ALL 1 / - col2 + + - 82 AS col2 FROM tab1
----
-82
-82
-82

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

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

query II rowsort
SELECT DISTINCT + col1, 15 AS col2 FROM tab1
----
14
15
47
15
5
15

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 11 + 15 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

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

onlyif mysql # aggregate syntax: 
query II rowsort label-676
SELECT + 50 col0, 50 * + + COUNT( DISTINCT ( - 28 ) ) - - MIN( ALL - + col0 ) FROM tab2 AS cor0
----
50
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-676
SELECT + 50 col0, 50 * + + COUNT ( DISTINCT ( - 28 ) ) - - MIN ( ALL - + col0 ) FROM tab2 AS cor0
----
50
-25

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-679
SELECT DISTINCT + + 94 - col0 + + 70 DIV - + col2 FROM tab0 AS cor0
----
-3
0
78

skipif mysql # not compatible
query I rowsort label-679
SELECT DISTINCT + + 94 - col0 + + 70 / - + col2 FROM tab0 AS cor0
----
-3
0
78

onlyif mysql # DIV for integer division: 
query I rowsort label-680
SELECT col2 - - - 5 DIV - col1 FROM tab1 AS cor0
----
60
68
96

skipif mysql # not compatible
query I rowsort label-680
SELECT col2 - - - 5 / - col1 FROM tab1 AS cor0
----
60
68
96

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

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

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

skipif mysql # not compatible
query I rowsort label-682
SELECT - 94 + + CAST ( NULL AS INTEGER ) - + ( - 10 ) FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col2 FROM tab2 AS cor0 WHERE NOT ( + 15 ) NOT IN ( - col1 + 27 + - 64, 62, - 36 )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-687
SELECT ALL - - MAX( + col0 ) DIV - 82 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL - - MAX ( + col0 ) / - 82 FROM tab0 AS cor0
----
-1

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

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

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

skipif mysql # not compatible
query I rowsort label-689
SELECT ALL COUNT ( + + 82 ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 7 col0 FROM tab0
----
105
609
679

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL NOT IN ( - 12 + - + ( col2 ), + col0 * + 86, 97 / + col2 )
----

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

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

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

query I rowsort
SELECT ALL + 14 * + col0 FROM tab2 cor0
----
1050
644
896

query I rowsort
SELECT + - col1 + - + 69 FROM tab2 AS cor0
----
-120
-136
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT ALL + - MIN( col0 ) col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-697
SELECT CAST( + COUNT( * ) AS SIGNED ) + - + 40 FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-697
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + - + 40 FROM tab1
----
-37

query I rowsort
SELECT col2 * - - col2 + + col1 AS col1 FROM tab2
----
1677
3431
580

query I rowsort
SELECT + 17 + col1 + - col1 FROM tab1
----
17
17
17

query I rowsort
SELECT - col1 + - + col1 * - col0 FROM tab2
----
2295
4851
4958

query I rowsort
SELECT DISTINCT col2 + + 85 + - - col1 + ( col1 ) AS col2 FROM tab2 AS cor0
----
210
277
279

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + ( - - 2 ) col2 FROM tab2
----
48
66
77

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-708
SELECT - COUNT( * ) DIV + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
1

skipif mysql # not compatible
query I rowsort label-708
SELECT - COUNT ( * ) / + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
1

query I rowsort
SELECT ALL + + 1 + col0 FROM tab1 cor0
----
52
86
92

query I rowsort
SELECT ALL + 44 FROM tab0 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT ALL + - 19 - - 61 AS col2 FROM tab0 AS cor0
----
42
42
42

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-713
SELECT + CAST ( - col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-714
SELECT - 88 AS col1, + CAST( NULL AS SIGNED ) / - col1 FROM tab1
----
-88
NULL
-88
NULL
-88
NULL

skipif mysql # not compatible
query II rowsort label-714
SELECT - 88 AS col1, + CAST ( NULL AS INTEGER ) / - col1 FROM tab1
----
-88
NULL
-88
NULL
-88
NULL

query II rowsort
SELECT + 3 * + col2 AS col1, col0 AS col0 FROM tab2
----
120
64
174
75
69
46

query I rowsort
SELECT DISTINCT + 87 * + - 38 AS col2 FROM tab0
----
-3306

query II rowsort
SELECT DISTINCT 86, col2 FROM tab1
----
86
59
86
68
86
96

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT 50 * 80 IS NULL
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-719
SELECT DISTINCT - col2 DIV - - 96 + + - col0 FROM tab0 AS cor0
----
-15
-87
-98

skipif mysql # not compatible
query I rowsort label-719
SELECT DISTINCT - col2 / - - 96 + + - col0 FROM tab0 AS cor0
----
-15
-87
-98

query I rowsort
SELECT + - col2 * col2 * + col0 * + - 20 FROM tab0 AS cor0
----
174000
19013940
662700

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT - COUNT( * ) - 75 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-84

skipif mysql # not compatible
query I rowsort label-722
SELECT - COUNT ( * ) - 75 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-84

query I rowsort
SELECT ALL + - 36 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # DIV for integer division: 
query II rowsort label-724
SELECT DISTINCT + 75 DIV - col2 AS col0, - col0 AS col1 FROM tab0
----
-1
-15
-7
-87
0
-97

skipif mysql # not compatible
query II rowsort label-724
SELECT DISTINCT + 75 / - col2 AS col0, - col0 AS col1 FROM tab0
----
-1
-15
-7
-87
0
-97

query II rowsort
SELECT 37, col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
37
14
37
47
37
5

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

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

query I rowsort
SELECT - + 97 * + + 37 FROM tab0 AS cor0
----
-3589
-3589
-3589

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 + col0 + + 10 <> + - col2 * - 57
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT ALL - SUM( - + 76 ) + + MIN( - col2 ) + COUNT( * ) FROM tab2
----
173

skipif mysql # not compatible
query I rowsort label-732
SELECT ALL - SUM ( - + 76 ) + + MIN ( - col2 ) + COUNT ( * ) FROM tab2
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT SUM( DISTINCT + 52 ) + - 77 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-733
SELECT SUM ( DISTINCT + 52 ) + - 77 FROM tab0 AS cor0
----
-25

query I rowsort
SELECT ( - + 30 ) + + col2 FROM tab1 AS cor0
----
29
38
66

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

query I rowsort
SELECT + col0 - + col1 + - 69 AS col1 FROM tab0 cor0
----
-135
-3
27

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

query II rowsort
SELECT DISTINCT - col2 - - col0, col2 FROM tab1 AS cor0
----
-45
96
23
68
26
59

query I rowsort
SELECT + + ( - col2 ) - + + 98 FROM tab0 cor0
----
-108
-145
-197

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL > + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-742
SELECT DISTINCT - - COUNT( - col0 ) AS col1, - 23 AS col2 FROM tab1 cor0
----
3
-23

skipif mysql # not compatible
query II rowsort label-742
SELECT DISTINCT - - COUNT ( - col0 ) AS col1, - 23 AS col2 FROM tab1 cor0
----
3
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT DISTINCT ( COUNT( * ) ) * + 56 FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-743
SELECT DISTINCT ( COUNT ( * ) ) * + 56 FROM tab2
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-744
SELECT DISTINCT ( + COUNT( ALL + ( - 99 ) ) ) * CAST( - COUNT( DISTINCT + col0 ) AS SIGNED ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-744
SELECT DISTINCT ( + COUNT ( ALL + ( - 99 ) ) ) * CAST ( - COUNT ( DISTINCT + col0 ) AS INTEGER ) AS col2 FROM tab2
----
-9

query I rowsort
SELECT ALL 40 * - ( ( - + 34 ) ) AS col2 FROM tab1
----
1360
1360
1360

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

query I rowsort
SELECT col0 * 39 AS col0 FROM tab0
----
3393
3783
585

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-749
SELECT - col0 DIV - 28 FROM tab1
----
1
3
3

skipif mysql # not compatible
query I rowsort label-749
SELECT - col0 / - 28 FROM tab1
----
1
3
3

query I rowsort
SELECT + 20 * + col0 AS col2 FROM tab0
----
1740
1940
300

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 5 + 28 col2 FROM tab1 AS cor0
----
-207
-42
3

query I rowsort
SELECT + - 97 * - + 58 FROM tab0 AS cor0
----
5626
5626
5626

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 44 <> - col1 + - 34
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 80 * + 31 + + 56 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4d5b619ee4559318ace72b193e303bae

query I rowsort
SELECT DISTINCT col0 / + 31 FROM tab0 WHERE ( NOT ( NOT ( NOT NULL <= NULL ) ) )
----

query I rowsort
SELECT DISTINCT + col2 + + col2 - - + col0 AS col2 FROM tab0 cor0
----
107
109
295

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

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( - 59 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-760
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( - 59 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-761
SELECT DISTINCT - COUNT( * ) + 79 + - MAX( + - col2 ) AS col2, 43 * 37 * 19 * + CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab2 AS cor0
----
99
NULL

skipif mysql # not compatible
query II rowsort label-761
SELECT DISTINCT - COUNT ( * ) + 79 + - MAX ( + - col2 ) AS col2, 43 * 37 * 19 * + CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab2 AS cor0
----
99
NULL

query I rowsort
SELECT DISTINCT + + col1 * col2 * - col1 + col2 * 83 * + - col0 + - + col0 AS col2 FROM tab1 cor0
----
-417805
-425235
-663907

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) < ( + col1 * - + 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT DISTINCT - 75 * + MAX( - - col1 ) FROM tab1 AS cor0
----
-3525

skipif mysql # not compatible
query I rowsort label-765
SELECT DISTINCT - 75 * + MAX ( - - col1 ) FROM tab1 AS cor0
----
-3525

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT - COUNT( * ) + + MIN( col0 ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-766
SELECT - COUNT ( * ) + + MIN ( col0 ) FROM tab0 AS cor0
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT DISTINCT + SUM( + 87 ) AS col0 FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-768
SELECT DISTINCT + SUM ( + 87 ) AS col0 FROM tab0
----
261

query I rowsort
SELECT ALL col1 + - col1 - + col1 AS col0 FROM tab1
----
-14
-47
-5

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

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

query I rowsort
SELECT + col0 * 49 * + col0 AS col2 FROM tab2
----
103684
200704
275625

query III rowsort
SELECT ALL * FROM tab2 WHERE + 25 IS NULL
----

query I rowsort
SELECT - - ( - 71 ) - - 3 FROM tab1 AS cor0
----
-68
-68
-68

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

skipif mysql # not compatible
query II rowsort label-774
SELECT + col2 AS col2, CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 WHERE NULL IS NULL
----
23
-46
40
-64
58
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 + col2 col0 FROM tab2
----
-18
-36
-53

query I rowsort
SELECT DISTINCT col1 + + - 20 FROM tab1
----
-15
-6
27

query II rowsort
SELECT DISTINCT col1, col0 * + col1 FROM tab2 AS cor0
----
51
2346
67
5025
77
4928

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

query II rowsort
SELECT col0 AS col2, - col0 * - col2 + - - col0 AS col0 FROM tab0 AS cor0
----
15
720
87
957
97
9700

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

skipif mysql # not compatible
query I rowsort label-780
SELECT - MIN ( ALL - + col0 ) FROM tab1 cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT SUM( + + 91 ) FROM tab0 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-781
SELECT SUM ( + + 91 ) FROM tab0 AS cor0
----
273

query II rowsort
SELECT col1, 0 * + - col0 + - - 88 AS col2 FROM tab0 AS cor0
----
1
88
21
88
81
88

onlyif mysql # aggregate syntax: 
query II rowsort label-783
SELECT ALL - 71 AS col0, 49 * - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-71
147

skipif mysql # not compatible
query II rowsort label-783
SELECT ALL - 71 AS col0, 49 * - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-71
147

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 63 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( + 77 ) FROM tab0
----
77
77
77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-786
SELECT + + 94 FROM tab0 WHERE NOT - CAST( NULL AS DECIMAL ) / - - col2 + - CAST( NULL AS SIGNED ) IS NOT NULL
----
94
94
94

skipif mysql # not compatible
query I rowsort label-786
SELECT + + 94 FROM tab0 WHERE NOT - CAST ( NULL AS REAL ) / - - col2 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
94
94
94

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

query I rowsort
SELECT col2 * - 30 - - + col0 AS col2 FROM tab0 WHERE NOT ( - 76 * - + 29 + col1 IN ( col2 ) )
----
-1395
-213
-2873

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 * - col0 >= NULL
----

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

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

query I rowsort
SELECT col2 * + 39 FROM tab1 AS cor0
----
2301
2652
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT DISTINCT + + 26 * + COUNT( * ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-792
SELECT DISTINCT + + 26 * + COUNT ( * ) FROM tab1 AS cor0
----
78

query I rowsort
SELECT ALL col0 + - col1 AS col1 FROM tab0 AS cor0 WHERE 43 >= + col0 * - col1
----
-66
66
96

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

skipif mysql # not compatible
query I rowsort label-794
SELECT DISTINCT - COUNT ( * ) * SUM ( + - col0 ) AS col1 FROM tab1 AS cor0
----
681

onlyif mysql # DIV for integer division: 
query I rowsort label-795
SELECT ALL 68 DIV + col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-795
SELECT ALL 68 / + col0 FROM tab1
----
0
0
1

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

query I rowsort
SELECT DISTINCT + col0 + col2 * - col1 FROM tab2
----
-1127
-3016
-3811

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT DISTINCT - + COUNT( * ) + - SUM( ALL + 17 ) FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-798
SELECT DISTINCT - + COUNT ( * ) + - SUM ( ALL + 17 ) FROM tab2 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT DISTINCT + + MIN( ALL col2 ) + - + MAX( 38 ) FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-799
SELECT DISTINCT + + MIN ( ALL col2 ) + - + MAX ( 38 ) FROM tab1 AS cor0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-800
SELECT CAST( + 81 AS SIGNED ) AS col2 FROM tab1 cor0 WHERE col2 <= NULL
----

skipif mysql # not compatible
query I rowsort label-800
SELECT CAST ( + 81 AS INTEGER ) AS col2 FROM tab1 cor0 WHERE col2 <= NULL
----

query I rowsort
SELECT ALL - col0 + - 7 + - col0 FROM tab1 AS cor0
----
-109
-177
-189

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

query I rowsort
SELECT - - 7 * + + col0 * + col1 AS col2 FROM tab2 AS cor0
----
16422
34496
35175

query I rowsort
SELECT DISTINCT + - col2 + + 99 + - col1 * - - ( + 74 ) FROM tab0 AS cor0
----
-1465
-5942
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT - COUNT( DISTINCT - - 14 ) * + + COUNT( * ) + - + 6 AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-805
SELECT - COUNT ( DISTINCT - - 14 ) * + + COUNT ( * ) + - + 6 AS col1 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT - SUM( - + 19 ) * - 18 FROM tab0 AS cor0
----
-1026

skipif mysql # not compatible
query I rowsort label-806
SELECT - SUM ( - + 19 ) * - 18 FROM tab0 AS cor0
----
-1026

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

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

query I rowsort
SELECT - - ( + + col0 ) * + col2 AS col1 FROM tab0 cor0
----
705
870
9603

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-810
SELECT DISTINCT - COUNT ( * ) + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 98 * 31 AS col2 FROM tab1 AS cor0
----
-3038
-3038
-3038

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 98 col0, - 36 AS col0 FROM tab2 AS cor0 WHERE ( + col0 * - + 77 ) NOT BETWEEN 19 AND NULL
----
-98
-36

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = 89
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-817
SELECT ALL 97 * - CAST( - - col2 AS SIGNED ) AS col1, 13 FROM tab0 AS cor0
----
-4559
13
-9603
13
-970
13

skipif mysql # not compatible
query II rowsort label-817
SELECT ALL 97 * - CAST ( - - col2 AS INTEGER ) AS col1, 13 FROM tab0 AS cor0
----
-4559
13
-9603
13
-970
13

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT ALL - SUM( ALL - + 78 ) col2 FROM tab2
----
234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-818
SELECT ALL - SUM ( ALL - + 78 ) col2 FROM tab2
----
234

query II rowsort
SELECT DISTINCT col0 AS col2, col2 * - 73 FROM tab1
----
51
-7008
85
-4307
91
-4964

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-820
SELECT ( + + col2 ) * + 18 * - - 22 + + 92 - + CAST( + CAST( + 84 AS SIGNED ) AS SIGNED ) * + col0 FROM tab2
----
10556
16760
5336

skipif mysql # not compatible
query I rowsort label-820
SELECT ( + + col2 ) * + 18 * - - 22 + + 92 - + CAST ( + CAST ( + 84 AS INTEGER ) AS INTEGER ) * + col0 FROM tab2
----
10556
16760
5336

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

skipif mysql # not compatible
query I rowsort label-821
SELECT 95 / - + 67 / - CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 59 + + ( - col1 ) AS col1 FROM tab0
----
-22
38
58

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT 14 * - COUNT( * ) col2 FROM tab0
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-823
SELECT 14 * - COUNT ( * ) col2 FROM tab0
----
-42

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

query II rowsort
SELECT - + col1 AS col1, + col2 + + ( + col0 ) AS col2 FROM tab0 WHERE 78 IS NOT NULL
----
-1
196
-21
97
-81
62

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

query II rowsort
SELECT + 80 + - col2 AS col0, - col2 FROM tab0 cor0
----
-19
-99
33
-47
70
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-828
SELECT DISTINCT - - col0 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-828
SELECT DISTINCT - - col0 / + col1 AS col1 FROM tab0 AS cor0
----
0
4
97

query I rowsort
SELECT 35 + col0 FROM tab0 AS cor0
----
122
132
50

onlyif mysql # aggregate syntax: 
query II rowsort label-830
SELECT + COUNT( * ) + + 18 AS col2, 61 - + - 26 AS col2 FROM tab0 cor0
----
21
87

skipif mysql # not compatible
query II rowsort label-830
SELECT + COUNT ( * ) + + 18 AS col2, 61 - + - 26 AS col2 FROM tab0 cor0
----
21
87

query I rowsort
SELECT - - col0 + + 30 FROM tab2 AS cor0
----
105
76
94

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

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

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

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

query I rowsort
SELECT col2 * - ( col2 ) AS col2 FROM tab1
----
-3481
-4624
-9216

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

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

query I rowsort
SELECT ALL ( + + col0 ) - - 31 + + + 78 * ( - 22 ) + - + 88 FROM tab0 AS cor0
----
-1676
-1686
-1758

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-838
SELECT ALL col1 * + col0 DIV - col0 AS col2 FROM tab2 WHERE NOT + + col0 = ( - 33 )
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL col1 * + col0 / - col0 AS col2 FROM tab2 WHERE NOT + + col0 = ( - 33 )
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 5 IS NULL
----

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

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

query I rowsort
SELECT - ( - - 51 ) FROM tab0 cor0
----
-51
-51
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-842
SELECT - SUM( - CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-842
SELECT - SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

query II rowsort
SELECT DISTINCT - 25, 41 AS col1 FROM tab0 AS cor0
----
-25
41

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

onlyif mysql # aggregate syntax: 
query II rowsort label-845
SELECT + - 50 AS col2, 67 - + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-50
64

skipif mysql # not compatible
query II rowsort label-845
SELECT + - 50 AS col2, 67 - + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-50
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT DISTINCT MAX( - - col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT MAX ( - - col2 ) FROM tab1
----
96

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-853
SELECT ALL + col0 DIV + 83 + + 36 AS col2 FROM tab1
----
36
37
37

skipif mysql # not compatible
query I rowsort label-853
SELECT ALL + col0 / + 83 + + 36 AS col2 FROM tab1
----
36
37
37

query I rowsort
SELECT ALL col2 + 13 + + 81 FROM tab0 AS cor0
----
104
141
193

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

query I rowsort
SELECT DISTINCT - + 71 AS col1 FROM tab1 AS cor0 WHERE NOT + 7 IS NULL AND col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-857
SELECT + COUNT( * ) DIV + CAST( 99 AS SIGNED ), COUNT( * ) AS col2 FROM tab0, tab0 cor0
----
0
9

skipif mysql # not compatible
query II rowsort label-857
SELECT + COUNT ( * ) / + CAST ( 99 AS INTEGER ), COUNT ( * ) AS col2 FROM tab0, tab0 cor0
----
0
9

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( 88 BETWEEN NULL AND NULL )
----

query I rowsort
SELECT - col0 * - - 18 - - col2 FROM tab1 AS cor0 WHERE - col1 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT ALL COUNT( * ) - - 67 FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-860
SELECT ALL COUNT ( * ) - - 67 FROM tab2 AS cor0
----
70

query II rowsort
SELECT DISTINCT col1 * - 43, col0 + - - 63 AS col2 FROM tab1
----
-2021
154
-215
148
-602
114

onlyif mysql # aggregate syntax: 
query II rowsort label-862
SELECT ALL COUNT( * ) + + 55, + 94 col0 FROM tab0
----
58
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-862
SELECT ALL COUNT ( * ) + + 55, + 94 col0 FROM tab0
----
58
94

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

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

query I rowsort
SELECT 59 + col0 * - + col2 FROM tab0
----
-646
-811
-9544

query I rowsort
SELECT - col0 + + col1 * - 26 AS col1 FROM tab1
----
-1313
-215
-415

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

query I rowsort
SELECT - col2 + - 30 AS col1 FROM tab2
----
-53
-70
-88

query I rowsort
SELECT + ( + 98 ) FROM tab0 cor0
----
98
98
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-869
SELECT ALL COUNT( ALL col2 ) * ( - COUNT( * ) ) DIV + 97 * + MAX( - - col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-869
SELECT ALL COUNT ( ALL col2 ) * ( - COUNT ( * ) ) / + 97 * + MAX ( - - col0 ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE col0 * + col1 + col1 >= - col2 * col0 + - - col0
----
-3

skipif mysql # not compatible
query I rowsort label-870
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE col0 * + col1 + col1 >= - col2 * col0 + - - col0
----
-3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-872
SELECT DISTINCT - ( - COUNT( ALL - + 74 ) ) FROM tab2 WHERE NOT - col2 * col0 + 89 BETWEEN col0 * + + 7 / + col1 - - CAST( NULL AS SIGNED ) AND col2 * - - col0
----
0

skipif mysql # not compatible
query I rowsort label-872
SELECT DISTINCT - ( - COUNT ( ALL - + 74 ) ) FROM tab2 WHERE NOT - col2 * col0 + 89 BETWEEN col0 * + + 7 / + col1 - - CAST ( NULL AS INTEGER ) AND col2 * - - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT + 0 * - MIN( DISTINCT - col1 ) * MIN( DISTINCT - - 90 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-873
SELECT + 0 * - MIN ( DISTINCT - col1 ) * MIN ( DISTINCT - - 90 ) AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-874
SELECT ALL - 44 + COUNT( * ) col0, 82 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col1 * - 3 * col0 - col1
----
-44
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-874
SELECT ALL - 44 + COUNT ( * ) col0, 82 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col1 * - 3 * col0 - col1
----
-44
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, 83 * + ( col2 ) - col1 AS col1 FROM tab0 AS cor0
----
-15
3820
-87
809
-97
8216

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

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

query I rowsort
SELECT ALL + 33 AS col1 FROM tab1 cor0
----
33
33
33

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 AS cor0 WHERE + col2 + col0 IS NULL
----

query I rowsort
SELECT ALL + col2 * + 3 AS col2 FROM tab2 cor0
----
120
174
69

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-881
SELECT COUNT( * ) DIV - 78 + MAX( ALL col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-881
SELECT COUNT ( * ) / - 78 + MAX ( ALL col0 ) FROM tab2 AS cor0
----
75

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

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

query I rowsort
SELECT - 66 + - col2 FROM tab2
----
-106
-124
-89

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, - col2 * + col2 FROM tab1 WHERE NOT - - col2 + + col1 NOT BETWEEN + ( + col1 ) * - col0 + - - col2 * - col2 * + 63 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 + - 86 - 57 col1 FROM tab2
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT - MAX( 55 ) + COUNT( * ) FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-887
SELECT - MAX ( 55 ) + COUNT ( * ) FROM tab2
----
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 + + col2 col0 FROM tab1
----
124
162
69

query I rowsort
SELECT - ( + col0 ) * 39 * - - col1 AS col0 FROM tab0
----
-3783
-47385
-71253

onlyif mysql # aggregate syntax: 
query I rowsort label-890
SELECT DISTINCT 52 + COUNT( * ) FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-890
SELECT DISTINCT 52 + COUNT ( * ) FROM tab2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-891
SELECT + 79 * - CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-1817
-3160
-4582

skipif mysql # not compatible
query I rowsort label-891
SELECT + 79 * - CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-1817
-3160
-4582

query I rowsort
SELECT DISTINCT - col1 / + + col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + col2
----

query I rowsort
SELECT 62 - + 23 FROM tab1
----
39
39
39

query I rowsort
SELECT + 18 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-895
SELECT ALL + col0 * + col2 + + - CAST( + col1 AS SIGNED ) AS col0 FROM tab0
----
624
849
9602

skipif mysql # not compatible
query I rowsort label-895
SELECT ALL + col0 * + col2 + + - CAST ( + col1 AS INTEGER ) AS col0 FROM tab0
----
624
849
9602

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT ALL - 35 + 54 + - MAX( DISTINCT col0 ) * + - 18 FROM tab1 cor0
----
1657

skipif mysql # not compatible
query I rowsort label-896
SELECT ALL - 35 + 54 + - MAX ( DISTINCT col0 ) * + - 18 FROM tab1 cor0
----
1657

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-898
SELECT ALL - 95 - - + CAST( + col2 AS SIGNED ) - - 98 AS col0 FROM tab0 AS cor0
----
102
13
50

skipif mysql # not compatible
query I rowsort label-898
SELECT ALL - 95 - - + CAST ( + col2 AS INTEGER ) - - 98 AS col0 FROM tab0 AS cor0
----
102
13
50

query I rowsort
SELECT - col0 * + 44 + + - ( + 17 ) FROM tab1 AS cor0
----
-2261
-3757
-4021

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT ALL + 11 - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-900
SELECT ALL + 11 - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
8

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

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

query I rowsort
SELECT ALL 12 * col2 - - + col2 AS col2 FROM tab2 AS cor0
----
299
520
754

query I rowsort
SELECT DISTINCT + col1 * 29 FROM tab0
----
2349
29
609

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

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

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

query I rowsort
SELECT col1 * + - ( - - 18 ) AS col0 FROM tab1
----
-252
-846
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-907
SELECT DISTINCT ( 37 ) * + COUNT( * ) AS col1, 93 AS col1 FROM tab0
----
111
93

skipif mysql # not compatible
query II rowsort label-907
SELECT DISTINCT ( 37 ) * + COUNT ( * ) AS col1, 93 AS col1 FROM tab0
----
111
93

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

query I rowsort
SELECT + 6 * - col0 AS col1 FROM tab2
----
-276
-384
-450

query I rowsort
SELECT DISTINCT ( + - col2 ) * - 76 + 66 AS col1 FROM tab2
----
1814
3106
4474

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-912
SELECT ALL 72 DIV 76 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-912
SELECT ALL 72 / 76 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - + 76 col2 FROM tab2
----
1748
3040
4408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-914
SELECT DISTINCT COUNT( * ), COUNT( * ) + CAST( - 73 AS SIGNED ) DIV + - 51 + + COUNT( * ) AS col2 FROM tab1
----
3
7

skipif mysql # not compatible
query II rowsort label-914
SELECT DISTINCT COUNT ( * ), COUNT ( * ) + CAST ( - 73 AS INTEGER ) / + - 51 + + COUNT ( * ) AS col2 FROM tab1
----
3
7

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 * 90 * + + col0 col2 FROM tab1
----
266220
443700
475020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-920
SELECT ALL - - AVG ( col0 ) * CAST( + - COUNT( DISTINCT - 4 ) AS SIGNED ) FROM tab1 WHERE ( NULL ) >= - ( + CAST( + + 21 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-920
SELECT ALL - - AVG ( col0 ) * CAST ( + - COUNT ( DISTINCT - 4 ) AS INTEGER ) FROM tab1 WHERE ( NULL ) >= - ( + CAST ( + + 21 AS INTEGER ) )
----
NULL

query II rowsort
SELECT DISTINCT + col1 * + col0 AS col1, - 87 AS col0 FROM tab1
----
425
-87
4277
-87
714
-87

query I rowsort
SELECT ALL + col1 * - - 80 * + col0 FROM tab0
----
146160
7760
97200

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-924
SELECT ALL MAX( col1 ), 71 * - - 87 AS col0 FROM tab1 AS cor0
----
47
6177

skipif mysql # not compatible
query II rowsort label-924
SELECT ALL MAX ( col1 ), 71 * - - 87 AS col0 FROM tab1 AS cor0
----
47
6177

query II rowsort
SELECT + + ( + col2 ) AS col0, col1 * - col1 * - 9 FROM tab0 AS cor0
----
10
3969
47
59049
99
9

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-927
SELECT + 30 DIV + col0 + - - col1 col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-927
SELECT + 30 / + col0 + - - col1 col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL - col2 * + + 7 AS col1 FROM tab0 AS cor0
----
-329
-693
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-929
SELECT - COUNT( col2 ) DIV 4 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-929
SELECT - COUNT ( col2 ) / 4 AS col0 FROM tab2
----
0

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

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

query I rowsort
SELECT ALL - 91 + col2 + col0 + + col0 * + - col2 FROM tab0 WHERE col2 = ( - 47 ) / col2 + - ( + col0 ) * + 42
----

query I rowsort
SELECT + 82 * + col0 AS col0 FROM tab0
----
1230
7134
7954

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col0 ) BETWEEN NULL AND - col2
----

query I rowsort
SELECT ALL col2 * - 57 + + + col2 AS col0 FROM tab0
----
-2632
-5544
-560

query I rowsort
SELECT DISTINCT - + col1 + + 94 FROM tab2 cor0
----
17
27
43

query I rowsort
SELECT + + 77 + col1 AS col0 FROM tab0 AS cor0
----
158
78
98

query I rowsort
SELECT DISTINCT - + col2 AS col0 FROM tab1 AS cor0 WHERE + ( - 37 ) + col1 IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL = + 64
----

query I rowsort
SELECT ( + 27 ) + - col2 FROM tab1 AS cor0
----
-32
-41
-69

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 col0 FROM tab0 WHERE NOT - + 1 + + + col1 + + - 6 + col1 BETWEEN NULL AND + 10 * + + 54
----

query I rowsort
SELECT ALL 54 FROM tab1 WHERE NULL <> col0 + - col2 + - - col2
----

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 8 - - col2 AS col2 FROM tab2 AS cor0
----
31
48
66

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE 96 + - - col2 + 89 * + - col0 * 57 * - col1 <> NULL
----

query I rowsort
SELECT ALL - col2 - - 89 + + col0 AS col2 FROM tab1 cor0
----
112
115
44

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT DISTINCT MAX( - col0 ) * - - COUNT( * ) FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-951
SELECT DISTINCT MAX ( - col0 ) * - - COUNT ( * ) FROM tab2 AS cor0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT ALL SUM( - col2 ) * + COUNT( DISTINCT - 97 ) AS col0 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-952
SELECT ALL SUM ( - col2 ) * + COUNT ( DISTINCT - 97 ) AS col0 FROM tab1
----
-223

onlyif mysql # DIV for integer division: 
query II rowsort label-953
SELECT 7 DIV + 62 * - ( 21 ) * + col2, 47 * + col2 * + - col0 * + col2 AS col1 FROM tab2
----
0
-1143698
0
-11858100
0
-4812800

skipif mysql # not compatible
query II rowsort label-953
SELECT 7 / + 62 * - ( 21 ) * + col2, 47 * + col2 * + - col0 * + col2 AS col1 FROM tab2
----
0
-1143698
0
-11858100
0
-4812800

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( NOT 2 IS NULL )
----

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * 2 - + col0 FROM tab1 cor0
----
141
33
45

onlyif mysql # DIV for integer division: 
query I rowsort label-960
SELECT ALL - ( + + col0 ) DIV col1 AS col2 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-960
SELECT ALL - ( + + col0 ) / col1 AS col2 FROM tab2 cor0
----
-1
0
0

query I rowsort
SELECT + 61 + - 30 AS col2 FROM tab2
----
31
31
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-962
SELECT col2 * 2 + - CAST( NULL AS SIGNED ) + - 54 / - - 11 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-962
SELECT col2 * 2 + - CAST ( NULL AS INTEGER ) + - 54 / - - 11 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT - + 77 FROM tab1 cor0
----
-77
-77
-77

query I rowsort
SELECT 85 AS col1 FROM tab2 cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT ALL + ( COUNT( DISTINCT + + 82 ) ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-966
SELECT ALL + ( COUNT ( DISTINCT + + 82 ) ) AS col0 FROM tab2 AS cor0
----
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT ALL - MIN( + + 7 ) AS col1 FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-970
SELECT ALL - MIN ( + + 7 ) AS col1 FROM tab2 AS cor0
----
-7

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-974
SELECT ( + col0 ) * ( col2 ) * + + col1 DIV col1 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-974
SELECT ( + col0 ) * ( col2 ) * + + col1 / col1 FROM tab0
----
705
870
9603

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

query I rowsort
SELECT - 51 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-51
-51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 = NULL
----

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT BETWEEN - 72 AND + + col2 * col2 - - 70 + - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-981
SELECT DISTINCT + - CAST( ( - ( ( + 11 ) ) ) AS SIGNED ) col2 FROM tab0 AS cor0
----
11

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-982
SELECT ALL + + col1 + - CAST( + - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-982
SELECT ALL + + col1 + - CAST ( + - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
138
65
90

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

skipif mysql # not compatible
query I rowsort label-983
SELECT COUNT ( - - ( - col0 ) ) * - COUNT ( * ) FROM tab1 AS cor0
----
-9

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

skipif mysql # not compatible
query I rowsort label-984
SELECT ALL CAST ( NULL AS INTEGER ) * + - 42 + - + 83 - + ( - col2 ) * col1 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT - 15 * - - ( - + COUNT( ALL + 3 ) ) AS col2 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-985
SELECT - 15 * - - ( - + COUNT ( ALL + 3 ) ) AS col2 FROM tab0
----
45

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

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

query I rowsort
SELECT DISTINCT col0 * + 10 AS col2 FROM tab0
----
150
870
970

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

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

query I rowsort
SELECT + + ( - col1 ) * - + col0 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT ALL col2 + - col1 FROM tab2 WHERE NOT col1 <> - 83
----

query I rowsort
SELECT DISTINCT 31 AS col0 FROM tab2
----
31

query I rowsort
SELECT DISTINCT + 53 + - 55 * - - col0 * + 78 AS col1 FROM tab0
----
-373177
-416077
-64297

query I rowsort
SELECT 9 - + col1 FROM tab0
----
-12
-72
8

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

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

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

skipif mysql # not compatible
query II rowsort label-996
SELECT DISTINCT + - COUNT ( * ) AS col1, - 51 AS col2 FROM tab0 AS cor0
----
-3
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-997
SELECT - CAST( NULL AS SIGNED ), - col1 AS col1 FROM tab0 AS cor0 WHERE NOT 57 = ( + - col1 - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query II rowsort label-997
SELECT - CAST ( NULL AS INTEGER ), - col1 AS col1 FROM tab0 AS cor0 WHERE NOT 57 = ( + - col1 - CAST ( NULL AS INTEGER ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-999
SELECT + 53 * 65 + - MIN( col1 ) col1 FROM tab2 AS cor0
----
3394

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-999
SELECT + 53 * 65 + - MIN ( col1 ) col1 FROM tab2 AS cor0
----
3394

query II rowsort
SELECT DISTINCT col0, + col1 + - col2 AS col0 FROM tab0
----
15
34
87
11
97
-98

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1002
SELECT ( - + col1 ) DIV + + col2 col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1002
SELECT ( - + col1 ) / + + col2 col0 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT ALL + 47 * + 18 AS col1 FROM tab0
----
846
846
846

onlyif mysql # DIV for integer division: 
query I rowsort label-1004
SELECT DISTINCT + col0 DIV - col2 AS col0 FROM tab0
----
-8
0

skipif mysql # not compatible
query I rowsort label-1004
SELECT DISTINCT + col0 / - col2 AS col0 FROM tab0
----
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT DISTINCT COUNT( col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1005
SELECT DISTINCT COUNT ( col2 ) FROM tab2
----
3

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

query I rowsort
SELECT - col2 + col0 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-2
-32
77

query II rowsort
SELECT + + col2, 73 AS col1 FROM tab0 cor0
----
10
73
47
73
99
73

onlyif mysql # DIV for integer division: 
query II rowsort label-1009
SELECT ALL + 5 * + col1 * - col1 + - col2, - col0 DIV + 31 AS col0 FROM tab0 AS cor0
----
-104
-3
-2215
-2
-32852
0

skipif mysql # not compatible
query II rowsort label-1009
SELECT ALL + 5 * + col1 * - col1 + - col2, - col0 / + 31 AS col0 FROM tab0 AS cor0
----
-104
-3
-2215
-2
-32852
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1011
SELECT + 36 DIV - + 91 - - 56 + col0 FROM tab0 AS cor0
----
143
153
71

skipif mysql # not compatible
query I rowsort label-1011
SELECT + 36 / - + 91 - - 56 + col0 FROM tab0 AS cor0
----
143
153
71

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col2 ) + + col2 <= + + col2 * - 4 - - - col2
----

query I rowsort
SELECT DISTINCT col2 + + 78 FROM tab1 AS cor0
----
137
146
174

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT DISTINCT - 33 + - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-1015
SELECT DISTINCT - 33 + - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-36

query III rowsort
SELECT * FROM tab1 WHERE - 32 * + - col2 NOT BETWEEN NULL AND + col0 / - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT AVG ( + 45 ) * + MIN( DISTINCT + ( + col0 ) ) - + MIN( DISTINCT 37 ) * + 57 AS col0 FROM tab0 WHERE - - 77 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1018
SELECT AVG ( + 45 ) * + MIN ( DISTINCT + ( + col0 ) ) - + MIN ( DISTINCT 37 ) * + 57 AS col0 FROM tab0 WHERE - - 77 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - 5 FROM tab1 WHERE NOT NULL <= NULL
----

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

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

query I rowsort
SELECT 57 * col2 * + 12 + + col1 * + + col1 * ( + 69 ) FROM tab2
----
195201
349413
436461

query I rowsort
SELECT ALL col0 * col2 * - - col2 AS col0 FROM tab2 AS cor0
----
102400
24334
252300

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1023
SELECT DISTINCT + col0 AS col2, col1 * + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
15
6561
87
441
97
1

skipif mysql # not compatible
query II rowsort label-1023
SELECT DISTINCT + col0 AS col2, col1 * + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
15
6561
87
441
97
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1024
SELECT ALL col2 DIV + col1 + + 57 AS col1 FROM tab1
----
58
63
68

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL col2 / + col1 + + 57 AS col1 FROM tab1
----
58
63
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 WHERE ( ( - 41 ) ) >= col1
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= - col2 - + 20 * + col2
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1028
SELECT ALL - 54 * CAST( NULL AS DECIMAL ) FROM tab1 WHERE col2 * - ( - CAST( NULL AS SIGNED ) ) + + 39 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL - 54 * CAST ( NULL AS REAL ) FROM tab1 WHERE col2 * - ( - CAST ( NULL AS INTEGER ) ) + + 39 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 41 + col2 FROM tab1
----
100
109
137

query I rowsort
SELECT col2 FROM tab0 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT MIN( col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1031
SELECT MIN ( col1 ) AS col0 FROM tab0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT MAX( ALL - 41 ) AS col0 FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-1033
SELECT MAX ( ALL - 41 ) AS col0 FROM tab1
----
-41

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

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

query I rowsort
SELECT 89 FROM tab2 WHERE col1 IN ( + 63 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT 89 + COUNT( * ) AS col1 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-1036
SELECT 89 + COUNT ( * ) AS col1 FROM tab1
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1037
SELECT CAST( NULL AS SIGNED ) - col0 AS col0 FROM tab1 WHERE NULL IN ( col2 * + 78 + + col1 )
----

skipif mysql # not compatible
query I rowsort label-1037
SELECT CAST ( NULL AS INTEGER ) - col0 AS col0 FROM tab1 WHERE NULL IN ( col2 * + 78 + + col1 )
----

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

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

query I rowsort
SELECT 66 FROM tab0 WHERE - col0 * + col0 + col1 IS NOT NULL
----
66
66
66

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1042
SELECT ALL - 44 + col1 AS col0 FROM tab1 WHERE - col1 BETWEEN 57 AND ( 34 * CAST( NULL AS DECIMAL ) - + col1 )
----

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL - 44 + col1 AS col0 FROM tab1 WHERE - col1 BETWEEN 57 AND ( 34 * CAST ( NULL AS REAL ) - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT - MAX( ALL + 72 ) FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-1043
SELECT - MAX ( ALL + 72 ) FROM tab2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT ALL 7 - - COUNT( * ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-1044
SELECT ALL 7 - - COUNT ( * ) FROM tab0
----
10

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

query I rowsort
SELECT + col1 + - col1 AS col0 FROM tab2 WHERE ( NULL ) <> - col1
----

query I rowsort
SELECT DISTINCT + 44 + col0 FROM tab2
----
108
119
90

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

skipif mysql # not compatible
query I rowsort label-1048
SELECT DISTINCT + MIN ( DISTINCT + col2 ) FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT MAX( DISTINCT - col0 ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1049
SELECT MAX ( DISTINCT - col0 ) FROM tab1 cor0
----
-51

query I rowsort
SELECT col0 * 57 + + col2 FROM tab2
----
2645
3688
4333

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1053
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) < col0 / + col0 + 95
----

skipif mysql # not compatible
query III rowsort label-1053
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) < col0 / + col0 + 95
----

query I rowsort
SELECT 94 / - col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 / + col0 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT + COUNT( DISTINCT + 7 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1058
SELECT + COUNT ( DISTINCT + 7 ) AS col1 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT + 83 - 73 + - COUNT( * ) AS col0 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-1059
SELECT + 83 - 73 + - COUNT ( * ) AS col0 FROM tab0
----
7

query I rowsort
SELECT ALL 22 - + 13 AS col2 FROM tab2
----
9
9
9

query I rowsort
SELECT ALL + 34 * - col2 + + 44 FROM tab0 WHERE - col2 - + col2 NOT IN ( col2 * col1 )
----
-1554
-296
-3322

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

skipif mysql # not compatible
query I rowsort label-1062
SELECT DISTINCT - MIN ( ALL - - col2 ) FROM tab1
----
-59

query I rowsort
SELECT ALL + + col1 - - 34 AS col2 FROM tab1 cor0
----
39
48
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1064
SELECT - ( MIN( 46 ) ) DIV ( - COUNT( * ) + + 51 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1064
SELECT - ( MIN ( 46 ) ) / ( - COUNT ( * ) + + 51 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - 31 * - + 29 AS col1 FROM tab1 AS cor0
----
899

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1066
SELECT + col1 * - + CAST( + 87 AS SIGNED ) FROM tab2
----
-4437
-5829
-6699

skipif mysql # not compatible
query I rowsort label-1066
SELECT + col1 * - + CAST ( + 87 AS INTEGER ) FROM tab2
----
-4437
-5829
-6699

query I rowsort
SELECT ALL + - 11 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1069
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col2, + 74 + + - 19 AS col2 FROM tab2 AS cor0
----
NULL
55

skipif mysql # not compatible
query II rowsort label-1069
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col2, + 74 + + - 19 AS col2 FROM tab2 AS cor0
----
NULL
55

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1071
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 IN ( - CAST( - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1071
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 IN ( - CAST ( - col0 AS INTEGER ) )
----

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

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

query I rowsort
SELECT DISTINCT + col1 * - col2 + - ( - col2 ) FROM tab1 AS cor0
----
-1248
-236
-3128

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

query I rowsort
SELECT + 93 * - - col1 FROM tab0 cor0
----
1953
7533
93

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

query I rowsort
SELECT DISTINCT 36 + col1 FROM tab0 WHERE NOT 59 + 18 * col2 = col0 * + ( - 25 * - col1 ) + - col1
----
117
37
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT DISTINCT SUM( DISTINCT - 28 ) FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-1078
SELECT DISTINCT SUM ( DISTINCT - 28 ) FROM tab0
----
-28

query I rowsort
SELECT ALL 8 + + 16 AS col2 FROM tab0
----
24
24
24

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 4 + ( 16 ) > ( NULL )
----

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT - + col1 * + col1 * - 69 + + col0 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT ALL + 70 * - COUNT( * ) AS col2 FROM tab2
----
-210

skipif mysql # not compatible
query I rowsort label-1082
SELECT ALL + 70 * - COUNT ( * ) AS col2 FROM tab2
----
-210

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 BETWEEN + 78 AND + ( col1 ) * + col2 + + 96
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1085
SELECT DISTINCT - 57 DIV col1 AS col1 FROM tab1 AS cor0
----
-1
-11
-4

skipif mysql # not compatible
query I rowsort label-1085
SELECT DISTINCT - 57 / col1 AS col1 FROM tab1 AS cor0
----
-1
-11
-4

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1087
SELECT + MAX ( + - 60 ) col2 FROM tab1 AS cor0
----
-60

query I rowsort
SELECT - 91 - + col2 FROM tab2 AS cor0
----
-114
-131
-149

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col2 / + col1 BETWEEN col1 AND + col2 AND NOT 3 * - col0 IS NULL
----
97
1
99

query I rowsort
SELECT col0 * 62 + - + 39 - + + col2 * - col0 AS col2 FROM tab1 AS cor0
----
10246
11791
8019

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

query I rowsort
SELECT DISTINCT col0 + - col0 * 35 AS col2 FROM tab0 AS cor0
----
-2958
-3298
-510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1094
SELECT + + CAST( - col1 AS SIGNED ) + + - ( col2 ) FROM tab2 cor0
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-1094
SELECT + + CAST ( - col1 AS INTEGER ) + + - ( col2 ) FROM tab2 cor0
----
-117
-125
-74

query I rowsort
SELECT DISTINCT 99 + - - col1 AS col1 FROM tab0
----
100
120
180

query I rowsort
SELECT ALL - ( + col1 ) * col2 AS col1 FROM tab1 WHERE + col1 >= ( + col0 )
----

query I rowsort
SELECT DISTINCT + col1 + + 8 + + col1 FROM tab1
----
102
18
36

onlyif mysql # DIV for integer division: 
query II rowsort label-1098
SELECT - col0 + 3, + col1 DIV - 55 AS col2 FROM tab2
----
-43
0
-61
-1
-72
-1

skipif mysql # not compatible
query II rowsort label-1098
SELECT - col0 + 3, + col1 / - 55 AS col2 FROM tab2
----
-43
0
-61
-1
-72
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1099
SELECT DISTINCT - ( + - CAST( + 35 AS DECIMAL ) ) - - CAST( NULL AS SIGNED ) FROM tab0 WHERE ( NULL < NULL )
----

skipif mysql # not compatible
query I rowsort label-1099
SELECT DISTINCT - ( + - CAST ( + 35 AS REAL ) ) - - CAST ( NULL AS INTEGER ) FROM tab0 WHERE ( NULL < NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1100
SELECT - SUM( - col0 ) AS col0, + AVG ( ALL CAST( NULL AS DECIMAL ) ) + 11 + - CAST( NULL AS SIGNED ) / - 56 FROM tab2
----
185
NULL

skipif mysql # not compatible
query II rowsort label-1100
SELECT - SUM ( - col0 ) AS col0, + AVG ( ALL CAST ( NULL AS REAL ) ) + 11 + - CAST ( NULL AS INTEGER ) / - 56 FROM tab2
----
185
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1102
SELECT - col2 AS col2 FROM tab2 WHERE NOT + - col0 > CAST( + 72 AS SIGNED )
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1102
SELECT - col2 AS col2 FROM tab2 WHERE NOT + - col0 > CAST ( + 72 AS INTEGER )
----
-23
-40
-58

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

query II rowsort
SELECT DISTINCT + col1, ( + col1 ) * ( col2 ) FROM tab0 AS cor0
----
1
99
21
210
81
3807

query II rowsort
SELECT + col2 AS col1, + col2 * - 41 AS col2 FROM tab2 cor0
----
23
-943
40
-1640
58
-2378

onlyif mysql # DIV for integer division: 
query I rowsort label-1106
SELECT col0 DIV 41 AS col1 FROM tab0 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-1106
SELECT col0 / 41 AS col1 FROM tab0 AS cor0
----
0
2
2

onlyif mysql # aggregate syntax: 
query II rowsort label-1107
SELECT + ( + 73 ) AS col0, COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
73
6

skipif mysql # not compatible
query II rowsort label-1107
SELECT + ( + 73 ) AS col0, COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
73
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1108
SELECT - ( - 29 ) DIV 41 - col0 - - + 64 * - - col2 FROM tab0
----
2993
553
6239

skipif mysql # not compatible
query I rowsort label-1108
SELECT - ( - 29 ) / 41 - col0 - - + 64 * - - col2 FROM tab0
----
2993
553
6239

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT ALL + COUNT( * ) * + + COUNT( * ) + - + 22 AS col2 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL + COUNT ( * ) * + + COUNT ( * ) + - + 22 AS col2 FROM tab0 AS cor0
----
-13

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

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

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

skipif mysql # not compatible
query I rowsort label-1112
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( + col0 * - col2 * col0 / - col0 )
----
0

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NOT + 34 = ( - + col2 )
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 68 ) <= ( col2 + + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT ALL - COUNT( * ) col2 FROM tab1 WHERE + 52 BETWEEN + - ( + col1 ) AND - col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1115
SELECT ALL - COUNT ( * ) col2 FROM tab1 WHERE + 52 BETWEEN + - ( + col1 ) AND - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1116
SELECT DISTINCT - col1 DIV col0 * - + 61 AS col2, 18 - + + ( - 68 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
0
NULL
61
NULL

skipif mysql # not compatible
query II rowsort label-1116
SELECT DISTINCT - col1 / col0 * - + 61 AS col2, 18 - + + ( - 68 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
0
NULL
61
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT - COUNT( * ) * - + 34 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-1117
SELECT - COUNT ( * ) * - + 34 FROM tab0
----
102

query I rowsort
SELECT col2 / col0 - col1 + - - col1 FROM tab1 WHERE NULL <= + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 9 * + ( + 66 ) col1 FROM tab2
----
27324
38016
44550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1120
SELECT ( - CAST( + COUNT( * ) AS SIGNED ) ) * - + 38 FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-1120
SELECT ( - CAST ( + COUNT ( * ) AS INTEGER ) ) * - + 38 FROM tab1
----
114

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

query I rowsort
SELECT + 72 * - 29 AS col0 FROM tab1
----
-2088
-2088
-2088

onlyif mysql # DIV for integer division: 
query I rowsort label-1123
SELECT 54 * col0 DIV + 65 AS col1 FROM tab2
----
38
53
62

skipif mysql # not compatible
query I rowsort label-1123
SELECT 54 * col0 / + 65 AS col1 FROM tab2
----
38
53
62

query I rowsort
SELECT - col0 FROM tab2 WHERE col1 BETWEEN - - 8 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1125
SELECT ALL - COUNT( * ) + + CAST( - 89 AS SIGNED ) * + COUNT( * ) FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL - COUNT ( * ) + + CAST ( - 89 AS INTEGER ) * + COUNT ( * ) FROM tab2
----
-270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1126
SELECT DISTINCT col1 FROM tab0 WHERE NOT ( NOT col2 + - col0 + 33 * + col1 * col0 + - - col0 / col2 * 22 NOT BETWEEN - 17 / ( + CAST( - col2 AS SIGNED ) ) + col2 AND col1 )
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1126
SELECT DISTINCT col1 FROM tab0 WHERE NOT ( NOT col2 + - col0 + 33 * + col1 * col0 + - - col0 / col2 * 22 NOT BETWEEN - 17 / ( + CAST ( - col2 AS INTEGER ) ) + col2 AND col1 )
----
1
21
81

query I rowsort
SELECT DISTINCT + 4 + + - col1 FROM tab1
----
-1
-10
-43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT DISTINCT - COUNT( * ) * + 43 FROM tab1, tab1 AS cor0
----
-387

skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT - COUNT ( * ) * + 43 FROM tab1, tab1 AS cor0
----
-387

query II rowsort
SELECT 97 AS col2, + col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
97
51
97
67
97
77

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1133
SELECT - 54 * - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1133
SELECT - 54 * - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT ALL + ( - ( - col0 ) ) FROM tab1
----
51
85
91

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1138
SELECT col2 DIV + ( - - col2 ) col0, 21 AS col0 FROM tab2
----
1
21
1
21
1
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1138
SELECT col2 / + ( - - col2 ) col0, 21 AS col0 FROM tab2
----
1
21
1
21
1
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1139
SELECT DISTINCT 15 DIV + COUNT( * ) col0 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1139
SELECT DISTINCT 15 / + COUNT ( * ) col0 FROM tab1
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT col0 AS col2, + 8 + col0 col2, - col2 AS col1 FROM tab1
----
9 values hashing to 543eee3438d1c875db7efdf026a1f0b8

query I rowsort
SELECT + col0 * + 82 FROM tab1 WHERE NOT - 59 IN ( - col2 * - - ( col1 ) + + col2, - ( col2 ) * - - col2 + col0 )
----
4182
6970
7462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1142
SELECT ALL - col2 FROM tab1 WHERE + + col2 / - 97 * - + col1 + CAST( ( + + 0 ) AS SIGNED ) * - 69 * - 67 = col2 * - col1
----

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL - col2 FROM tab1 WHERE + + col2 / - 97 * - + col1 + CAST ( ( + + 0 ) AS INTEGER ) * - 69 * - 67 = col2 * - col1
----

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT + 99 * - + ( + - 90 ) * + MAX( + - col1 ) + - + 35 + - 29 AS col1 FROM tab2 AS cor0
----
-454474

skipif mysql # not compatible
query I rowsort label-1147
SELECT + 99 * - + ( + - 90 ) * + MAX ( + - col1 ) + - + 35 + - 29 AS col1 FROM tab2 AS cor0
----
-454474

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT + - COUNT( ALL - - 51 ) + + COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1149
SELECT + - COUNT ( ALL - - 51 ) + + COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

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

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

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

query I rowsort
SELECT DISTINCT + - 16 * + - col1 + - col2 AS col2 FROM tab2 AS cor0
----
1014
1192
793

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

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

query II rowsort
SELECT - 20 AS col1, ( - col1 ) FROM tab0 AS cor0
----
-20
-1
-20
-21
-20
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT + + SUM( ALL 85 ) FROM tab1 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-1155
SELECT + + SUM ( ALL 85 ) FROM tab1 AS cor0
----
255

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT MAX( + + col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1157
SELECT MAX ( + + col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col1, + col1 + + 86 col0 FROM tab0 AS cor0
----
-1
87
-21
107
-81
167

query I rowsort
SELECT DISTINCT 47 + + col1 AS col0 FROM tab2
----
114
124
98

query I rowsort
SELECT - 78 + + col0 * col1 AS col1 FROM tab2 WHERE col1 * - col0 - + col0 * - col0 / - - 82 + + col0 * col1 + - + 75 + - col2 IS NOT NULL
----
2268
4850
4947

query II rowsort
SELECT DISTINCT - 92 * 81, - col2 * + col1 AS col2 FROM tab1
----
-7452
-1344
-7452
-295
-7452
-3196

query III rowsort
SELECT * FROM tab2 WHERE ( NOT NULL > 74 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT ALL - COUNT( * ) * + - 22 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-1163
SELECT ALL - COUNT ( * ) * + - 22 FROM tab1
----
66

query I rowsort
SELECT 82 + 19 FROM tab2
----
101
101
101

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1166
SELECT COUNT( * ) * + 35 * + 54 * - 72 - + COUNT( * ) * - - ( + 32 ) DIV + ( 18 ) FROM tab2 WHERE ( - 24 + + col2 DIV - col1 ) IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1166
SELECT COUNT ( * ) * + 35 * + 54 * - 72 - + COUNT ( * ) * - - ( + 32 ) / + ( 18 ) FROM tab2 WHERE ( - 24 + + col2 / - col1 ) IN ( - col2 )
----
0

query I rowsort
SELECT col1 + col2 * 26 FROM tab0
----
1303
2575
281

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

query I rowsort
SELECT 39 + + col0 FROM tab2 AS cor0
----
103
114
85

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

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE col2 * + 40 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - col0 - - + 76 AS col2 FROM tab0 AS cor0
----
-11
-21
61

query II rowsort
SELECT ALL - - col0 * + 3 AS col0, 1 FROM tab0 WHERE NULL IS NULL
----
261
1
291
1
45
1

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

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

query II rowsort
SELECT ALL 48, 80 AS col2 FROM tab2 AS cor0
----
48
80
48
80
48
80

query I rowsort
SELECT + - col0 * - 40 - - + col1 - - col1 AS col2 FROM tab0 AS cor0
----
3522
3882
762

query I rowsort
SELECT DISTINCT - ( 38 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

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

query III rowsort
SELECT - ( + - col0 ) * + col2 AS col1, - col2 AS col0, - 32 AS col2 FROM tab0 AS cor0
----
9 values hashing to 71bd6aa40ea346001fb57ef943cf8705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1181
SELECT DISTINCT + col2 * CAST( 86 AS SIGNED ) col0 FROM tab1 AS cor0
----
5074
5848
8256

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1181
SELECT DISTINCT + col2 * CAST ( 86 AS INTEGER ) col0 FROM tab1 AS cor0
----
5074
5848
8256

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - col2 NOT BETWEEN + - ( + - 1 ) AND - 17 + + 82 * - 87 + - col0
----

query II rowsort
SELECT DISTINCT 91 * + col2 AS col1, - ( + col1 ) + - col1 AS col2 FROM tab2
----
2093
-102
3640
-154
5278
-134

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 * - col0 * - + col0 col0 FROM tab1
----
12734496
36233375
51242828

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT - SUM( DISTINCT - 84 ) FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-1192
SELECT - SUM ( DISTINCT - 84 ) FROM tab1
----
84

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

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

query I rowsort
SELECT - + 36 AS col0 FROM tab2 AS cor0
----
-36
-36
-36

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 76 * 90 < NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= 22
----

query I rowsort
SELECT 23 + - col2 FROM tab0 AS cor0
----
-24
-76
13

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + col1 * + + 34 ) NOT IN ( - col1, + col2, - 84 + - col0, - - 0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1201
SELECT col0 + + - col2 - ( + col1 ) * + CAST( + 41 AS SIGNED ) col0 FROM tab2 AS cor0
----
-2068
-2730
-3133

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1201
SELECT col0 + + - col2 - ( + col1 ) * + CAST ( + 41 AS INTEGER ) col0 FROM tab2 AS cor0
----
-2068
-2730
-3133

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1205
SELECT ALL MAX( + + 5 ) AS col2, 95 + 76 AS col0 FROM tab2
----
5
171

skipif mysql # not compatible
query II rowsort label-1205
SELECT ALL MAX ( + + 5 ) AS col2, 95 + 76 AS col0 FROM tab2
----
5
171

query II rowsort
SELECT + 69 AS col2, 67 FROM tab2
----
69
67
69
67
69
67

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

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

query I rowsort
SELECT + col1 * - + col2 * col2 FROM tab2
----
-123200
-225388
-26979

query II rowsort
SELECT DISTINCT col1 AS col0, - 70 + - ( 51 ) FROM tab1
----
14
-121
47
-121
5
-121

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + col1 < 89
----
85
5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-1213
SELECT ALL + - col2 DIV col2 * - - 89 + - col0 * - col2 - + col1 FROM tab1 AS cor0
----
4793
4921
6052

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL + - col2 / col2 * - - 89 + - col0 * - col2 - + col1 FROM tab1 AS cor0
----
4793
4921
6052

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1215
SELECT ALL - CAST( 70 AS SIGNED ) FROM tab1 AS cor0
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL - CAST ( 70 AS INTEGER ) FROM tab1 AS cor0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT MAX( DISTINCT 43 ) * - 4 - + SUM( + col0 ) AS col0 FROM tab2 AS cor0
----
-357

skipif mysql # not compatible
query I rowsort label-1216
SELECT MAX ( DISTINCT 43 ) * - 4 - + SUM ( + col0 ) AS col0 FROM tab2 AS cor0
----
-357

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

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

query I rowsort
SELECT ALL + 1 * col2 + col1 - - - 59 AS col0 FROM tab2 AS cor0
----
15
58
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1220
SELECT CAST( NULL AS SIGNED ) + - 91, - 78 AS col0 FROM tab2
----
NULL
-78
NULL
-78
NULL
-78

skipif mysql # not compatible
query II rowsort label-1220
SELECT CAST ( NULL AS INTEGER ) + - 91, - 78 AS col0 FROM tab2
----
NULL
-78
NULL
-78
NULL
-78

query I rowsort
SELECT - col0 + 70 FROM tab1
----
-15
-21
19

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

query I rowsort
SELECT DISTINCT col2 * - + 91 + + col1 * 5 + + + col0 * + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > + 75
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT DISTINCT - 91 * + MIN( ALL col0 ) AS col0 FROM tab2 cor0
----
-4186

skipif mysql # not compatible
query I rowsort label-1225
SELECT DISTINCT - 91 * + MIN ( ALL col0 ) AS col0 FROM tab2 cor0
----
-4186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1226
SELECT COUNT( * ) * 99 DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-1226
SELECT COUNT ( * ) * 99 / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
99

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col1 = + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col1 * 83 AS col2, col2 FROM tab0 AS cor0
----
1743
10
6723
47
83
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT MIN( col2 ) * + - 68 FROM tab2 AS cor0
----
-1564

skipif mysql # not compatible
query I rowsort label-1229
SELECT MIN ( col2 ) * + - 68 FROM tab2 AS cor0
----
-1564

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT + COUNT( DISTINCT col2 ) * 4 AS col1 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-1230
SELECT + COUNT ( DISTINCT col2 ) * 4 AS col1 FROM tab2 AS cor0
----
12

query I rowsort
SELECT ALL + col0 * + 69 AS col0 FROM tab0 AS cor0
----
1035
6003
6693

query I rowsort
SELECT 57 AS col1 FROM tab0 cor0
----
57
57
57

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 < - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 + - + 48 AS col1 FROM tab2 AS cor0
----
-106
-71
-88

query I rowsort
SELECT - - col0 * - - col2 * - 61 + col1 * col0 + col0 + col1 + col1 FROM tab0 AS cor0
----
-41613
-51114
-585587

query I rowsort
SELECT DISTINCT - col2 + + 88 AS col1 FROM tab1 AS cor0
----
-8
20
29

query I rowsort
SELECT ( - 59 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1243
SELECT col1 * - - col1 - + + col0 - - col2 * col2 - 16 + col0 * 58 * col0 + CAST( + + col1 AS SIGNED ) + + + 30 AS col0 FROM tab2 AS cor0 WHERE + col1 > 87
----

skipif mysql # not compatible
query I rowsort label-1243
SELECT col1 * - - col1 - + + col0 - - col2 * col2 - 16 + col0 * 58 * col0 + CAST ( + + col1 AS INTEGER ) + + + 30 AS col0 FROM tab2 AS cor0 WHERE + col1 > 87
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1244
SELECT - 0 DIV col2 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1244
SELECT - 0 / col2 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1245
SELECT + col0 DIV - col0 + col1 + + col0 + + col0 col2 FROM tab2 AS cor0
----
142
204
216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1245
SELECT + col0 / - col0 + col1 + + col0 + + col0 col2 FROM tab2 AS cor0
----
142
204
216

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT DISTINCT + 23 * - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-1246
SELECT DISTINCT + 23 * - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-69

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1248
SELECT * FROM tab0 AS cor0 WHERE + CAST( - + col0 AS DECIMAL ) + - ( col1 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1248
SELECT * FROM tab0 AS cor0 WHERE + CAST ( - + col0 AS REAL ) + - ( col1 ) IS NULL
----

query I rowsort
SELECT - col1 + - - col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 + + - col2 AS col2 FROM tab2 AS cor0
----
-104
-133
-69

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE + + ( + 66 ) * - ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT ALL - COUNT( * ) - + + 82 FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL - COUNT ( * ) - + + 82 FROM tab2
----
-85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1256
SELECT DISTINCT AVG ( - CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1256
SELECT DISTINCT AVG ( - CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query I rowsort
SELECT - 27 + - + col1 AS col0 FROM tab2
----
-104
-78
-94

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

query I rowsort
SELECT ALL + + col2 * - + 95 + - 64 FROM tab1 AS cor0
----
-5669
-6524
-9184

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 35 col2 FROM tab0 AS cor0
----
3045
3395
525

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1265
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 = + - CAST( 34 AS DECIMAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1265
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 = + - CAST ( 34 AS REAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1266
SELECT ALL - COUNT( * ) DIV - 63 AS col2, 31 AS col2 FROM tab1 AS cor0 WHERE NOT + 49 NOT BETWEEN ( NULL ) AND col2 * - col0
----
0
31

skipif mysql # not compatible
query II rowsort label-1266
SELECT ALL - COUNT ( * ) / - 63 AS col2, 31 AS col2 FROM tab1 AS cor0 WHERE NOT + 49 NOT BETWEEN ( NULL ) AND col2 * - col0
----
0
31

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

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

query I rowsort
SELECT ALL - + col1 * 18 AS col1 FROM tab1 AS cor0
----
-252
-846
-90

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT ALL + 47 + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - 64 = NULL
----
47

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL + 47 + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - 64 = NULL
----
47

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col2 < - 28 + + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < 65
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1277
SELECT - COUNT( * ) DIV MIN( ALL - col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1277
SELECT - COUNT ( * ) / MIN ( ALL - col2 ) FROM tab0
----
0

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

query III rowsort
SELECT ALL * FROM tab0 WHERE 76 / - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 22 * - 72 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1584

query I rowsort
SELECT + 64 + ( - 50 ) AS col0 FROM tab0
----
14
14
14

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col1 - - col2 NOT BETWEEN - col1 + - + 83 AND + 68
----
51
14
96

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1288
SELECT DISTINCT + - col0 + - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-1288
SELECT DISTINCT + - col0 + - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1289
SELECT ALL COUNT( * ) DIV + - 78 AS col2 FROM tab2 AS cor0
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 79 col0 FROM tab1 AS cor0
----
130
164
170

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1292
SELECT DISTINCT + + 81 + + - 10 DIV - col0 AS col0 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1292
SELECT DISTINCT + + 81 + + - 10 / - col0 AS col0 FROM tab1 AS cor0
----
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < col1 / - 55
----

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE + - col2 * + col2 * - col2 NOT BETWEEN 4 AND - ( col0 )
----
-46
-64
-75

query I rowsort
SELECT DISTINCT ( - col2 ) * - + col0 + + col2 - col1 FROM tab1
----
4978
5069
6209

query I rowsort
SELECT DISTINCT col0 + - 76 FROM tab2
----
-1
-12
-30

query III rowsort
SELECT * FROM tab0 WHERE - + 41 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT + 43 + - 37 IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1301
SELECT CAST( - + 86 AS SIGNED ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-1301
SELECT CAST ( - + 86 AS INTEGER ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-83

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1303
SELECT - SUM( col0 ) DIV 20 + + 95 AS col0 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-1303
SELECT - SUM ( col0 ) / 20 + + 95 AS col0 FROM tab0 AS cor0
----
86

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

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

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

query I rowsort
SELECT ALL + + 70 AS col1 FROM tab1 AS cor0
----
70
70
70

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1309
SELECT 59, col1 + - 85 AS col0, - CAST( - 71 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
9 values hashing to 3400d03f54de437d969b196a153efad0

skipif mysql # not compatible
query III rowsort label-1309
SELECT 59, col1 + - 85 AS col0, - CAST ( - 71 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
9 values hashing to 3400d03f54de437d969b196a153efad0

onlyif mysql # aggregate syntax: 
query I rowsort label-1310
SELECT + COUNT( * ) * + 13 * - 23 + COUNT( * ) AS col1 FROM tab0 cor0
----
-894

skipif mysql # not compatible
query I rowsort label-1310
SELECT + COUNT ( * ) * + 13 * - 23 + COUNT ( * ) AS col1 FROM tab0 cor0
----
-894

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 86 col0, - col1 * - col1 * - 73 * + col1 FROM tab2 AS cor0 WHERE NOT 93 + col0 NOT BETWEEN NULL AND ( - col1 ) * + + col2 * - 85
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1312
SELECT - col2 * + col2 / col1 * + CAST( NULL AS SIGNED ), col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-1312
SELECT - col2 * + col2 / col1 * + CAST ( NULL AS INTEGER ), col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT ALL - col0 + + 99 AS col0 FROM tab2
----
24
35
53

query III rowsort
SELECT * FROM tab1 WHERE NOT 88 >= + 38
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1315
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2, 21 AS col2 FROM tab1
----
NULL
21

skipif mysql # not compatible
query II rowsort label-1315
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2, 21 AS col2 FROM tab1
----
NULL
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT MIN( DISTINCT - col1 ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-1316
SELECT MIN ( DISTINCT - col1 ) AS col2 FROM tab1
----
-47

query I rowsort
SELECT DISTINCT - ( + - 26 ) FROM tab0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT ALL 56 * - COUNT( * ) FROM tab2
----
-168

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL 56 * - COUNT ( * ) FROM tab2
----
-168

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

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

query I rowsort
SELECT ALL + 72 + col2 AS col2 FROM tab0 AS cor0
----
119
171
82

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

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

query I rowsort
SELECT - - 33 + + col2 FROM tab2 AS cor0
----
56
73
91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1324
SELECT ALL 96 + - - col0 DIV + col0 + + - 27 FROM tab2
----
70
70
70

skipif mysql # not compatible
query I rowsort label-1324
SELECT ALL 96 + - - col0 / + col0 + + - 27 FROM tab2
----
70
70
70

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 53 < NULL
----

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

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

query I rowsort
SELECT ALL + 69 + - + col0 AS col0 FROM tab0 AS cor0
----
-18
-28
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT - - MIN( DISTINCT col2 ) + 32 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1328
SELECT - - MIN ( DISTINCT col2 ) + 32 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1332
SELECT DISTINCT + ( - + col1 ) DIV CAST( col0 AS SIGNED ) + - col0 AS col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1332
SELECT DISTINCT + ( - + col1 ) / CAST ( col0 AS INTEGER ) + - col0 AS col2 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT ALL COUNT( * ) + + + 88 + - + 15 FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-1333
SELECT ALL COUNT ( * ) + + + 88 + - + 15 FROM tab1
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1334
SELECT ALL CAST( NULL AS SIGNED ) - 35 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1334
SELECT ALL CAST ( NULL AS INTEGER ) - 35 FROM tab0
----
NULL
NULL
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1337
SELECT * FROM tab2 WHERE + + col0 <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1337
SELECT * FROM tab2 WHERE + + col0 <= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 35 * + col1 AS col0 FROM tab1
----
1645
175
490

query I rowsort
SELECT DISTINCT 14 - ( + col0 ) + - col1 AS col1 FROM tab1
----
-124
-51
-76

query I rowsort
SELECT DISTINCT 1 * - col2 + - col0 / + 77 AS col2 FROM tab0 WHERE NOT - 28 NOT BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT - 73 + + 44 * - + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-205

skipif mysql # not compatible
query I rowsort label-1341
SELECT - 73 + + 44 * - + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-205

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT DISTINCT - COUNT( * ) * - 2 AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1343
SELECT DISTINCT - COUNT ( * ) * - 2 AS col0 FROM tab0 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + col1 ) col0, - col2 * - 64 AS col2 FROM tab2 AS cor0
----
-51
1472
-67
3712
-77
2560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( + - 46 ) AS col1, col1 col0 FROM tab1 AS cor0
----
-46
14
-46
47
-46
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 99, col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT - SUM( 28 ) AS col2 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-1348
SELECT - SUM ( 28 ) AS col2 FROM tab2 AS cor0
----
-84

query I rowsort
SELECT - col0 * 57 * 91 AS col1 FROM tab0 AS cor0
----
-451269
-503139
-77805

query I rowsort
SELECT ( + 62 ) FROM tab1
----
62
62
62

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 * - col2 AND + col1 / - 73 + - col1
----

query II rowsort
SELECT ALL - ( - - 97 ) * + col0, col1 AS col2 FROM tab1
----
-4947
14
-8245
5
-8827
47

onlyif mysql # DIV for integer division: 
query I rowsort label-1354
SELECT ( col1 ) DIV + + 1 + - 83 AS col1 FROM tab0
----
-2
-62
-82

skipif mysql # not compatible
query I rowsort label-1354
SELECT ( col1 ) / + + 1 + - 83 AS col1 FROM tab0
----
-2
-62
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1355
SELECT ALL 53 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1355
SELECT ALL 53 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT 88 * + col1 AS col2 FROM tab1 AS cor0
----
1232
4136
440

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

query I rowsort
SELECT DISTINCT col1 + col1 AS col1 FROM tab2 AS cor0 WHERE + 35 - col2 IS NOT NULL
----
102
134
154

query I rowsort
SELECT + 7 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT DISTINCT col0 + + + col1 FROM tab1
----
138
65
90

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 57 <> NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + col1 ) <> - - ( col1 )
----

query I rowsort
SELECT DISTINCT - 82 + + + col2 AS col2 FROM tab0 cor0
----
-35
-72
17

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1366
SELECT - 25 DIV - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1366
SELECT - 25 / - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 * 44 + - col1 FROM tab0 AS cor0
----
3483
43
903

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT SUM( DISTINCT - 78 ) - + 90 AS col0 FROM tab2
----
-168

skipif mysql # not compatible
query I rowsort label-1368
SELECT SUM ( DISTINCT - 78 ) - + 90 AS col0 FROM tab2
----
-168

query I rowsort
SELECT + 45 - col0 + + col0 * + col2 * + col1 * col0 FROM tab1
----
2131335
26466030
3495738

query II rowsort
SELECT ALL col0 + 80 AS col2, 78 + - - col0 AS col2 FROM tab2
----
126
124
144
142
155
153

query I rowsort
SELECT + 63 - col1 FROM tab0
----
-18
42
62

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 42 * col1 + + col2 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1374
SELECT + MAX ( + 21 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT DISTINCT + MIN( 53 ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-1375
SELECT DISTINCT + MIN ( 53 ) FROM tab2
----
53

query I rowsort
SELECT DISTINCT + 7 * + - 23 - + + AVG ( ALL + - 91 ) AS col1 FROM tab2 WHERE + 38 + + 26 - + ( - col0 ) < - - 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT DISTINCT + COUNT( 56 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1377
SELECT DISTINCT + COUNT ( 56 ) AS col0 FROM tab1
----
3

query II rowsort
SELECT ALL + ( - + col0 ) AS col2, + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-46
-2346
-64
-4928
-75
-5025

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1382
SELECT - COUNT( * ) DIV 62 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1382
SELECT - COUNT ( * ) / 62 FROM tab2
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1385
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT ALL - 40 * + COUNT( * ) * - ( + - COUNT( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-3240

skipif mysql # not compatible
query I rowsort label-1386
SELECT ALL - 40 * + COUNT ( * ) * - ( + - COUNT ( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-3240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1387
SELECT DISTINCT 64 DIV COUNT( * ) DIV - COUNT( ALL - + 57 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-1387
SELECT DISTINCT 64 / COUNT ( * ) / - COUNT ( ALL - + 57 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) NOT IN ( col1, 96 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1390
SELECT + col0, - 65 DIV - col0 FROM tab1 AS cor0
----
51
1
85
0
91
0

skipif mysql # not compatible
query II rowsort label-1390
SELECT + col0, - 65 / - col0 FROM tab1 AS cor0
----
51
1
85
0
91
0

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

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

query II rowsort
SELECT DISTINCT - 84 + + - 27 * + + col1, - 24 AS col0 FROM tab2 AS cor0
----
-1461
-24
-1893
-24
-2163
-24

query I rowsort
SELECT ALL + col2 + + col0 + col2 + + - 44 FROM tab2 AS cor0
----
100
147
48

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1397
SELECT DISTINCT SUM ( ALL - + col0 ) FROM tab0
----
-199

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1399
SELECT - 51 DIV + col0 + - ( col2 ) - + 49 + - 28 FROM tab1
----
-136
-145
-174

skipif mysql # not compatible
query I rowsort label-1399
SELECT - 51 / + col0 + - ( col2 ) - + 49 + - 28 FROM tab1
----
-136
-145
-174

query I rowsort
SELECT 96 + 27 FROM tab0
----
123
123
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1401
SELECT + 56 + COUNT( * ) DIV + 61 FROM tab2 AS cor0
----
56

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 64 + - col2 col1 FROM tab1 AS cor0
----
-32
-4
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1403
SELECT ALL + 70 DIV + + col0 + + col1 AS col1 FROM tab0 cor0
----
1
21
85

skipif mysql # not compatible
query I rowsort label-1403
SELECT ALL + 70 / + + col0 + + col1 AS col1 FROM tab0 cor0
----
1
21
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT ALL COUNT( * ) * 5 * - ( MAX( ALL col0 ) ) - - MIN( ALL - - 20 ) + 17 * + + 65 AS col1 FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL COUNT ( * ) * 5 * - ( MAX ( ALL col0 ) ) - - MIN ( ALL - - 20 ) + 17 * + + 65 AS col1 FROM tab1
----
-240

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

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT + COUNT( DISTINCT + 64 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1407
SELECT + COUNT ( DISTINCT + 64 ) FROM tab2
----
1

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

query I rowsort
SELECT - 96 - - 31 FROM tab2 AS cor0
----
-65
-65
-65

query I rowsort
SELECT DISTINCT - - col1 - - 3 FROM tab1 AS cor0
----
17
50
8

query I rowsort
SELECT ALL - ( - col1 ) * col2 * - col2 FROM tab0 AS cor0
----
-178929
-2100
-9801

query I rowsort
SELECT ALL 6 * - + col0 FROM tab0 AS cor0
----
-522
-582
-90

query I rowsort
SELECT col0 + - - 51 FROM tab2 AS cor0
----
115
126
97

query I rowsort
SELECT col2 + - col2 * - col2 AS col2 FROM tab0 AS cor0
----
110
2256
9900

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT DISTINCT + 66 * MAX( + col2 ) FROM tab0
----
6534

skipif mysql # not compatible
query I rowsort label-1415
SELECT DISTINCT + 66 * MAX ( + col2 ) FROM tab0
----
6534

query I rowsort
SELECT col0 * + + col0 * + + col0 FROM tab2
----
262144
421875
97336

query III rowsort
SELECT * FROM tab2 WHERE NOT - 4 * - - 84 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 86 AS col1 FROM tab1, tab2 AS cor0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-1419
SELECT ALL - 55 DIV - + 49 FROM tab0 WHERE ( ( col2 ) ) + + + col1 + 55 * col1 * col1 IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL - 55 / - + 49 FROM tab0 WHERE ( ( col2 ) ) + + + col1 + 55 * col1 * col1 IS NOT NULL
----
1
1
1

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

query I rowsort
SELECT ALL - - 95 * + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-201020
-389120
-534375

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

query I rowsort
SELECT DISTINCT + 19 * + 84 * 75 AS col1 FROM tab1 cor0
----
119700

query I rowsort
SELECT + 76 FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1425
SELECT DISTINCT + COUNT( * ) DIV + 78 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1425
SELECT DISTINCT + COUNT ( * ) / + 78 AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > + + 40
----

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

query I rowsort
SELECT col2 * - - col1 * col1 * + 62 FROM tab2
----
14703920
16142444
3709026

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT + 2 + - + COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1429
SELECT + 2 + - + COUNT ( * ) FROM tab2 AS cor0
----
-1

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

query II rowsort
SELECT DISTINCT - col1 * + 66 * col2, col0 AS col2 FROM tab1 cor0
----
-19470
85
-210936
91
-88704
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1432
SELECT + ( - 64 ) FROM tab0 AS cor0 WHERE + col1 + + CAST( col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1432
SELECT + ( - 64 ) FROM tab0 AS cor0 WHERE + col1 + + CAST ( col2 AS INTEGER ) IS NULL
----

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

query I rowsort
SELECT DISTINCT col0 + + 60 + - + 95 FROM tab2
----
11
29
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT + MAX( ALL - col2 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-1435
SELECT + MAX ( ALL - col2 ) AS col1 FROM tab2
----
-23

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

query I rowsort
SELECT DISTINCT - ( - - col0 ) * + col0 * - + col1 FROM tab0
----
158949
18225
9409

query I rowsort
SELECT DISTINCT + 79 FROM tab1 cor0
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1439
SELECT - - COUNT( * ) AS col2 FROM tab2 cor0 WHERE CAST( + 59 AS SIGNED ) BETWEEN - - 86 / 4 AND 41 + + - 61 - CAST( - col1 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1439
SELECT - - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE CAST ( + 59 AS INTEGER ) BETWEEN - - 86 / 4 AND 41 + + - 61 - CAST ( - col1 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT + - 87 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-1440
SELECT + - 87 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-84

query I rowsort
SELECT + 90 * - col0 * + 10 + - 73 FROM tab1
----
-45973
-76573
-81973

query I rowsort
SELECT ALL + 9 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - - col0 FROM tab0 AS cor0 WHERE NOT 98 * col0 > + 0 / col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1444
SELECT DISTINCT - CAST( 53 AS SIGNED ) * + 44 FROM tab2
----
-2332

skipif mysql # not compatible
query I rowsort label-1444
SELECT DISTINCT - CAST ( 53 AS INTEGER ) * + 44 FROM tab2
----
-2332

query II rowsort
SELECT ALL - col1 AS col2, 45 FROM tab1
----
-14
45
-47
45
-5
45

query I rowsort
SELECT DISTINCT ( + 93 ) AS col1 FROM tab0
----
93

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT - COUNT( DISTINCT + + col1 ) AS col1 FROM tab2 WHERE NOT + col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1449
SELECT - COUNT ( DISTINCT + + col1 ) AS col1 FROM tab2 WHERE NOT + col1 >= NULL
----
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> 4
----

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

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

skipif mysql # not compatible
query I rowsort label-1453
SELECT ALL - + MAX ( DISTINCT + - 98 ) FROM tab0 AS cor0
----
98

query I rowsort
SELECT DISTINCT + col2 * - - 81 AS col1 FROM tab0 AS cor0
----
3807
8019
810

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT ALL + MIN( DISTINCT + col2 ) * - MAX( DISTINCT - col0 ) AS col0 FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL + MIN ( DISTINCT + col2 ) * - MAX ( DISTINCT - col0 ) AS col0 FROM tab0
----
150

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 - + col2 - 4 col0 FROM tab2 AS cor0
----
-2373
-4972
-5087

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 * + + col0 + col0 + col0 * - col2 col0 FROM tab2 AS cor0
----
-3864
-6464
-8925

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT 47 * + - MAX( DISTINCT col1 ) FROM tab1 cor0
----
-2209

skipif mysql # not compatible
query I rowsort label-1463
SELECT 47 * + - MAX ( DISTINCT col1 ) FROM tab1 cor0
----
-2209

query III rowsort
SELECT - + 93, col2 AS col0, col0 FROM tab2 AS cor0
----
9 values hashing to 3866c881d8341e0f111e6f620b54197e

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT ALL 59 + ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL 59 + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
62

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

query I rowsort
SELECT ALL 24 + col0 AS col0 FROM tab2 WHERE NOT ( NOT NULL <= NULL )
----

query II rowsort
SELECT DISTINCT + ( + 15 ), col0 FROM tab2 cor0
----
15
46
15
64
15
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + col1 NOT BETWEEN + 74 / + + 50 AND NULL
----

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

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

query II rowsort
SELECT - - 11, 5 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to d3ad7a31e23f8ed3342ec23bccd86953

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT + + MAX( - col1 ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1475
SELECT + + MAX ( - col1 ) AS col2 FROM tab1 AS cor0
----
-5

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

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

query II rowsort
SELECT DISTINCT + - col1, + 80 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 84 * - - ( - - col1 ) - + + col2
----

query I rowsort
SELECT ALL - + 48 AS col2 FROM tab2 cor0
----
-48
-48
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1479
SELECT DISTINCT + + CAST( - 22 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-1479
SELECT DISTINCT + + CAST ( - 22 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-22

query II rowsort
SELECT ( - col1 ), 42 - + col0 AS col2 FROM tab0
----
-1
-55
-21
-45
-81
27

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

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

query I rowsort
SELECT DISTINCT + - 8 - - 35 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
27

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

skipif mysql # not compatible
query I rowsort label-1483
SELECT + COUNT ( * ) / 1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1485
SELECT DISTINCT MAX ( DISTINCT + col1 ) col0 FROM tab1
----
47

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 41 + + col0 col2 FROM tab1 AS cor0
----
10
44
50

query I rowsort
SELECT DISTINCT col0 * - 81 FROM tab2 AS cor0
----
-3726
-5184
-6075

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - - 20 + col0 + - + col1 * - 28 + - - col1 + - - 60 * + col2 col0 FROM tab1 AS cor0
----
5470
7237
7354

query II rowsort
SELECT col1, + 66 FROM tab0
----
1
66
21
66
81
66

query II rowsort
SELECT 28 AS col2, col2 AS col0 FROM tab0
----
28
10
28
47
28
99

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

skipif mysql # not compatible
query I rowsort label-1493
SELECT DISTINCT CAST ( - SUM ( ALL + + 86 ) AS INTEGER ) - + - ( + 43 ) AS col0 FROM tab0
----
-215

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT MIN( DISTINCT + 33 ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-1494
SELECT MIN ( DISTINCT + 33 ) FROM tab1
----
33

query I rowsort
SELECT + col2 - - - 94 FROM tab2
----
-36
-54
-71

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

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

query I rowsort
SELECT col1 + + - col0 AS col1 FROM tab0 AS cor0
----
-66
-96
66

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 23 * + col2 * + 31 / + 47 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1500
SELECT SUM( + col0 ) AS col1, ( 73 ) AS col0 FROM tab1 AS cor0
----
227
73

skipif mysql # not compatible
query II rowsort label-1500
SELECT SUM ( + col0 ) AS col1, ( 73 ) AS col0 FROM tab1 AS cor0
----
227
73

query I rowsort
SELECT - 91 AS col2 FROM tab2 AS cor0
----
-91
-91
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1502
SELECT DISTINCT - - MIN( - col1 ) AS col0 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN + ( 37 ) AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1502
SELECT DISTINCT - - MIN ( - col1 ) AS col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN + ( 37 ) AND + col0
----
NULL

query I rowsort
SELECT - ( + col1 ) * 15 * - 37 AS col1 FROM tab1 AS cor0
----
26085
2775
7770

query II rowsort
SELECT 62 * + 44 AS col1, - col0 AS col0 FROM tab1 AS cor0
----
2728
-51
2728
-85
2728
-91

query II rowsort
SELECT 14 AS col1, 81 FROM tab0
----
14
81
14
81
14
81

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

query I rowsort
SELECT - 21 * + 60 AS col1 FROM tab1 WHERE NOT ( ( NOT NULL IS NOT NULL ) )
----

query I rowsort
SELECT ALL col1 * 85 FROM tab0
----
1785
6885
85

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

query I rowsort
SELECT ALL 61 + - + 77 + + col1 FROM tab0 AS cor0
----
-15
5
65

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 1 ) >= - 20
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( ( - col0 ) ) + col1 FROM tab0
----
-66
-96
66

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

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

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

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

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

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

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

query I rowsort
SELECT ALL col2 * 44 FROM tab1 WHERE NOT + 19 IN ( - ( + 91 ) )
----
2596
2992
4224

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

skipif mysql # not compatible
query I rowsort label-1520
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0
----
-9

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT + COUNT( * ) * 32 AS col2 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-1524
SELECT + COUNT ( * ) * 32 AS col2 FROM tab2
----
96

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + 92 NOT BETWEEN 47 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 80 * + 75 AS col1 FROM tab1
----
6000
6000
6000

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

skipif mysql # not compatible
query I rowsort label-1528
SELECT 12 * + COUNT ( * ) FROM tab0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1529
SELECT ALL 29 * - 96 + - 50 DIV + SUM( ALL 47 ) FROM tab0
----
-2784

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL 29 * - 96 + - 50 / + SUM ( ALL 47 ) FROM tab0
----
-2784

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT ( + MIN( + col2 ) ) * - COUNT( * ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-1531
SELECT ( + MIN ( + col2 ) ) * - COUNT ( * ) FROM tab1
----
-177

query I rowsort
SELECT ALL 60 + 3 FROM tab2
----
63
63
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1533
SELECT 80 + CAST( NULL AS SIGNED ) / ( - 76 ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1533
SELECT 80 + CAST ( NULL AS INTEGER ) / ( - 76 ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT COUNT( * ) * 98 FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-1534
SELECT COUNT ( * ) * 98 FROM tab0
----
294

query I rowsort
SELECT 58 * 0 AS col1 FROM tab0 WHERE 34 * 17 + 16 / - 53 IS NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 WHERE + 24 * 10 IS NOT NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 WHERE + 7 * - col1 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT ALL 94 + COUNT( * ) * - COUNT( * ) AS col1 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-1540
SELECT ALL 94 + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1541
SELECT + CAST( col0 AS SIGNED ) * + 48 + col2 FROM tab1
----
2544
4139
4436

skipif mysql # not compatible
query I rowsort label-1541
SELECT + CAST ( col0 AS INTEGER ) * + 48 + col2 FROM tab1
----
2544
4139
4436

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

skipif mysql # not compatible
query I rowsort label-1542
SELECT DISTINCT 0 / col0 AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL + 67 * col1 FROM tab0 AS cor0
----
1407
5427
67

query I rowsort
SELECT DISTINCT col2 * 42 AS col0 FROM tab2 cor0
----
1680
2436
966

onlyif mysql # DIV for integer division: 
query I rowsort label-1545
SELECT DISTINCT col0 DIV - ( col0 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1545
SELECT DISTINCT col0 / - ( col0 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - 92 FROM tab0 AS cor0 CROSS JOIN tab0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT + COUNT( ALL - col2 ) col1 FROM tab2 WHERE NOT 65 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1547
SELECT + COUNT ( ALL - col2 ) col1 FROM tab2 WHERE NOT 65 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT DISTINCT SUM( 63 ) AS col1 FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-1548
SELECT DISTINCT SUM ( 63 ) AS col1 FROM tab2
----
189

query I rowsort
SELECT ALL + 84 * col1 AS col0 FROM tab0
----
1764
6804
84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 65 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1551
SELECT col2 * col0 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) < col2 / col2
----

skipif mysql # not compatible
query I rowsort label-1551
SELECT col2 * col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) < col2 / col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1552
SELECT ALL col1 * col1 + 67 * + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-1552
SELECT ALL col1 * col1 + 67 * + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IN ( col1 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1554
SELECT ALL * FROM tab1 AS cor0 WHERE 50 * - col2 BETWEEN ( NULL ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1554
SELECT ALL * FROM tab1 AS cor0 WHERE 50 * - col2 BETWEEN ( NULL ) AND CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 94 * 73 + + col2 NOT BETWEEN NULL AND - 2 * 59 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT DISTINCT - + SUM( DISTINCT + col0 ) * - 51 FROM tab0 AS cor0
----
10149

skipif mysql # not compatible
query I rowsort label-1556
SELECT DISTINCT - + SUM ( DISTINCT + col0 ) * - 51 FROM tab0 AS cor0
----
10149

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL > ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1557
SELECT COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL > ( + col1 )
----
0

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 63 * - col1 IN ( + 43 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1560
SELECT ALL - CAST( + 12 AS SIGNED ) DIV - col1 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1560
SELECT ALL - CAST ( + 12 AS INTEGER ) / - col1 AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1561
SELECT - 8 DIV + - col1 col0 FROM tab1
----
0
0
1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 58 col0 FROM tab2 WHERE NOT col1 > ( NULL )
----

query I rowsort
SELECT 9 * + - col0 AS col2 FROM tab0
----
-135
-783
-873

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT DISTINCT 54 * - MIN( col0 ) AS col1 FROM tab1 WHERE - 15 NOT IN ( 94 )
----
-2754

skipif mysql # not compatible
query I rowsort label-1567
SELECT DISTINCT 54 * - MIN ( col0 ) AS col1 FROM tab1 WHERE - 15 NOT IN ( 94 )
----
-2754

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

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

query I rowsort
SELECT + 78 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT - 8 + - col1 FROM tab1
----
-13
-22
-55

query I rowsort
SELECT ALL col2 + - 18 AS col2 FROM tab1
----
41
50
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1573
SELECT - COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE - col1 NOT IN ( 66 * + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1573
SELECT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE - col1 NOT IN ( 66 * + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT DISTINCT MAX( DISTINCT - 51 ) + ( 35 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( col2 ) NOT IN ( + 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1574
SELECT DISTINCT MAX ( DISTINCT - 51 ) + ( 35 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( col2 ) NOT IN ( + 84 )
----
NULL

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

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

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 AS cor0 WHERE NULL >= col0
----

query II rowsort
SELECT ALL 8, col0 AS col0 FROM tab0 cor0
----
8
15
8
87
8
97

query I rowsort
SELECT ALL + col0 + + 92 AS col2 FROM tab1 AS cor0
----
143
177
183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1579
SELECT ( COUNT( * ) ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + - col0 * CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-1579
SELECT ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + - col0 * CAST ( NULL AS INTEGER ) )
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1581
SELECT + + 84 * MAX( + 92 ) / + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1581
SELECT + + 84 * MAX ( + 92 ) / + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 + + col1 col2 FROM tab1
----
-14
-23
19

query I rowsort
SELECT ALL 26 + + + 32 FROM tab1
----
58
58
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT MIN( - 47 ) * + + 0 + + - COUNT( * ) - - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1585
SELECT MIN ( - 47 ) * + + 0 + + - COUNT ( * ) - - COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT col1 * + col1 - 88 * + 61 AS col2 FROM tab2
----
-2767
-879
561

query I rowsort
SELECT col2 * col0 * + 1 - col2 * + col1 AS col0 FROM tab1
----
2992
3552
4720

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1593
SELECT DISTINCT col0 * + 96 * + col0 AS col1, CAST( NULL AS SIGNED ) / + + col1 AS col1 FROM tab2
----
203136
NULL
393216
NULL
540000
NULL

skipif mysql # not compatible
query II rowsort label-1593
SELECT DISTINCT col0 * + 96 * + col0 AS col1, CAST ( NULL AS INTEGER ) / + + col1 AS col1 FROM tab2
----
203136
NULL
393216
NULL
540000
NULL

query I rowsort
SELECT ALL ( 60 ) FROM tab2
----
60
60
60

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1597
SELECT DISTINCT 66 * - CAST( + col2 AS SIGNED ) + + + 86 AS col0 FROM tab0 cor0
----
-3016
-574
-6448

skipif mysql # not compatible
query I rowsort label-1597
SELECT DISTINCT 66 * - CAST ( + col2 AS INTEGER ) + + + 86 AS col0 FROM tab0 cor0
----
-3016
-574
-6448

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1599
SELECT DISTINCT - - col2 * - CAST( NULL AS SIGNED ) + col1 col2, + col1 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1599
SELECT DISTINCT - - col2 * - CAST ( NULL AS INTEGER ) + col1 col2, + col1 FROM tab2 cor0
----
NULL
51
NULL
67
NULL
77

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

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

query I rowsort
SELECT - ( 71 ) * col0 FROM tab2 AS cor0 WHERE NOT ( + 25 / - + col2 - - - 51 + - 17 / + 16 ) BETWEEN ( NULL ) AND - col1 * 18
----
-3266
-4544
-5325

query I rowsort
SELECT ALL ( - + 81 ) + 26 FROM tab1 AS cor0
----
-55
-55
-55

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

query I rowsort
SELECT col0 * + + 11 * + - col1 AS col1 FROM tab0 AS cor0
----
-1067
-13365
-20097

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1607
SELECT DISTINCT COUNT ( ALL + + 15 ) FROM tab2
----
3

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

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

skipif mysql # not compatible
query I rowsort label-1609
SELECT ALL COUNT ( * ) + + COUNT ( * ) / + - 54 FROM tab2
----
3

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

query I rowsort
SELECT ALL 12 + - 10 FROM tab1, tab1 cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT DISTINCT - 49 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-49

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

query III rowsort
SELECT * FROM tab1 WHERE ( 64 + - col0 < - 7 )
----
85
5
59
91
47
68

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1617
SELECT col2 * + col1 AS col0 FROM tab2 AS cor0 WHERE + CAST( - col2 AS SIGNED ) * - col2 / - - ( + 79 ) < col1
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-1617
SELECT col2 * + col1 AS col0 FROM tab2 AS cor0 WHERE + CAST ( - col2 AS INTEGER ) * - col2 / - - ( + 79 ) < col1
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1618
SELECT * FROM tab1 AS cor0 WHERE - col1 IN ( - ( + - CAST( - 1 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-1618
SELECT * FROM tab1 AS cor0 WHERE - col1 IN ( - ( + - CAST ( - 1 AS INTEGER ) ) )
----

query III rowsort
SELECT * FROM tab1 WHERE ( 54 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT DISTINCT MAX( DISTINCT - + col0 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-1620
SELECT DISTINCT MAX ( DISTINCT - + col0 ) AS col1 FROM tab0
----
-15

query II rowsort
SELECT - col2 - 57 AS col2, col1 FROM tab0 AS cor0
----
-104
81
-156
1
-67
21

query I rowsort
SELECT ALL - + 72 FROM tab2 AS cor0
----
-72
-72
-72

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

query I rowsort
SELECT - ( - col0 ) + - col2 FROM tab0 cor0
----
-2
-32
77

query I rowsort
SELECT - col0 FROM tab2 cor0 WHERE - col1 IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT ALL + SUM( - + 1 ) + - + 69 col0 FROM tab1 AS cor0 WHERE NOT col0 * + 76 IS NULL
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1626
SELECT ALL + SUM ( - + 1 ) + - + 69 col0 FROM tab1 AS cor0 WHERE NOT col0 * + 76 IS NULL
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT ALL + MAX( col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1627
SELECT ALL + MAX ( col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 54 * col2 * col1 col2 FROM tab1 AS cor0
----
16015
172675
72627

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

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

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

skipif mysql # not compatible
query I rowsort label-1631
SELECT DISTINCT COUNT ( * ) + - 14 FROM tab1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1632
SELECT ALL - col2 col1 FROM tab0 WHERE CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1632
SELECT ALL - col2 col1 FROM tab0 WHERE CAST ( col1 AS INTEGER ) IS NULL
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 ) <> col0
----

query I rowsort
SELECT DISTINCT + ( 73 ) FROM tab1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT DISTINCT - 89 * + COUNT( - + col2 ) col0 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
-267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1637
SELECT DISTINCT - 89 * + COUNT ( - + col2 ) col0 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
-267

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 < 24
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT ALL - 56 * - - COUNT( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-504

skipif mysql # not compatible
query I rowsort label-1639
SELECT ALL - 56 * - - COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-504

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1641
SELECT - col2 DIV - 64 + - col2 + + - 37 AS col0 FROM tab0 AS cor0
----
-135
-47
-84

skipif mysql # not compatible
query I rowsort label-1641
SELECT - col2 / - 64 + - col2 + + - 37 AS col0 FROM tab0 AS cor0
----
-135
-47
-84

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

query I rowsort
SELECT DISTINCT col2 * col0 + - + col2 FROM tab1 AS cor0
----
4800
4956
6120

query I rowsort
SELECT DISTINCT ( - - col0 ) FROM tab2 cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + - col1 + + 52 col2 FROM tab0 cor0
----
-389
-6509
51

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1647
SELECT - 12 FROM tab0 cor0 WHERE NOT col2 * + 66 >= + col2 + - CAST( NULL AS SIGNED ) + col2 * - + col0
----

skipif mysql # not compatible
query I rowsort label-1647
SELECT - 12 FROM tab0 cor0 WHERE NOT col2 * + 66 >= + col2 + - CAST ( NULL AS INTEGER ) + col2 * - + col0
----

query I rowsort
SELECT - 96 * - 62 FROM tab2
----
5952
5952
5952

query III rowsort
SELECT * FROM tab2 WHERE 73 > col0 * - col2 + - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT DISTINCT 43 * + - COUNT( * ) AS col2 FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-1650
SELECT DISTINCT 43 * + - COUNT ( * ) AS col2 FROM tab1
----
-129

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1652
SELECT DISTINCT COUNT( * ) * CAST( + 82 AS SIGNED ) DIV - 36 AS col2 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-1652
SELECT DISTINCT COUNT ( * ) * CAST ( + 82 AS INTEGER ) / - 36 AS col2 FROM tab1
----
-6

query I rowsort
SELECT + 62 * - col2 AS col1 FROM tab1
----
-3658
-4216
-5952

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

query I rowsort
SELECT col0 * - 29 + - ( + col1 ) + col0 * + col2 FROM tab2 AS cor0
----
-327
2108
627

query I rowsort
SELECT + - col1 + - + ( - - 16 ) FROM tab2 AS cor0
----
-67
-83
-93

query I rowsort
SELECT DISTINCT 80 + + col2 FROM tab2 AS cor0
----
103
120
138

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

query I rowsort
SELECT + ( + 35 ) FROM tab0 WHERE NULL <= col0 * + 72 * + 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT DISTINCT MAX( DISTINCT 21 ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-1660
SELECT DISTINCT MAX ( DISTINCT 21 ) FROM tab1
----
21

query I rowsort
SELECT ALL 31 FROM tab1 AS cor0 WHERE NULL NOT IN ( ( + - col2 ) )
----

query I rowsort
SELECT DISTINCT - col1 * - col1 - + - col1 AS col0 FROM tab1 cor0
----
210
2256
30

query II rowsort
SELECT DISTINCT - col1 AS col0, col1 AS col0 FROM tab0 cor0
----
-1
1
-21
21
-81
81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT DISTINCT MAX( - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-1665
SELECT DISTINCT MAX ( - col0 ) FROM tab0 AS cor0
----
-15

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1668
SELECT - + 53, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-53
-3

skipif mysql # not compatible
query II rowsort label-1668
SELECT - + 53, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-53
-3

query I rowsort
SELECT + - 88 FROM tab1 cor0
----
-88
-88
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT DISTINCT + COUNT( - 71 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1670
SELECT DISTINCT + COUNT ( - 71 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT + col1 * + ( + col1 ) AS col2, col0 AS col2 FROM tab2
----
2601
46
4489
75
5929
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1672
SELECT ALL - 33 * col1 AS col1, + CAST( 78 AS SIGNED ) * - CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
-2673
-6318
-33
-78
-693
-1638

skipif mysql # not compatible
query II rowsort label-1672
SELECT ALL - 33 * col1 AS col1, + CAST ( 78 AS INTEGER ) * - CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
-2673
-6318
-33
-78
-693
-1638

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT MIN( 99 ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-1673
SELECT MIN ( 99 ) FROM tab1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT COUNT( * ) * + ( - COUNT( * ) ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-1674
SELECT COUNT ( * ) * + ( - COUNT ( * ) ) AS col0 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT ALL MAX( ALL 90 ) AS col0 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-1675
SELECT ALL MAX ( ALL 90 ) AS col0 FROM tab1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT + - MIN( - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-1676
SELECT + - MIN ( - col1 ) FROM tab2 AS cor0
----
77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 AND - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1678
SELECT CAST( NULL AS DECIMAL ) col1, - 16 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 634f91870609686d595af06b05872038

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1678
SELECT CAST ( NULL AS REAL ) col1, - 16 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 634f91870609686d595af06b05872038

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + - 38 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 93 * + col2 * - col0 >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT - - MAX( ALL + - col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1681
SELECT - - MAX ( ALL + - col2 ) AS col1 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT 55 + - - MIN( ALL - 21 ) - - 88 * - ( + + 36 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1682
SELECT 55 + - - MIN ( ALL - 21 ) - - 88 * - ( + + 36 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT + + col1, - 89 * + 34 * - + col0 AS col0 FROM tab2 AS cor0
----
51
139196
67
226950
77
193664

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT ALL COUNT( - col1 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL COUNT ( - col1 ) AS col0 FROM tab1 AS cor0
----
3

query II rowsort
SELECT - 71 AS col0, col0 FROM tab0 AS cor0
----
-71
15
-71
87
-71
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1686
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 7 AS col0, + col0 FROM tab0 cor0 WHERE NOT 78 BETWEEN NULL AND - 35 / + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-1686
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 7 AS col0, + col0 FROM tab0 cor0 WHERE NOT 78 BETWEEN NULL AND - 35 / + + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * - col2 IS NULL
----

query I rowsort
SELECT + 72 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col0 - + col2 col0 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT - col1 + + col0 + - col1 + 43 AS col0 FROM tab1
----
118
40
66

query I rowsort
SELECT + 72 + 71 * + + col0 AS col0 FROM tab0
----
1137
6249
6959

onlyif mysql # DIV for integer division: 
query I rowsort label-1692
SELECT + 99 DIV - 97 + - col2 * + - ( + + col0 ) FROM tab2 WHERE col1 IS NOT NULL
----
1057
2559
4349

skipif mysql # not compatible
query I rowsort label-1692
SELECT + 99 / - 97 + - col2 * + - ( + + col0 ) FROM tab2 WHERE col1 IS NOT NULL
----
1057
2559
4349

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) + 3 AS col1 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-1693
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) + 3 AS col1 FROM tab0
----
12

query I rowsort
SELECT ALL - - ( - col2 ) FROM tab2 WHERE NOT NULL < + 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT + COUNT( * ) + + - SUM( - + col0 ) + - SUM( DISTINCT + - col1 ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
428

skipif mysql # not compatible
query I rowsort label-1695
SELECT + COUNT ( * ) + + - SUM ( - + col0 ) + - SUM ( DISTINCT + - col1 ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
428

query I rowsort
SELECT DISTINCT - ( + + col2 ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT - COUNT( * ) AS col1 FROM tab0, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1697
SELECT - COUNT ( * ) AS col1 FROM tab0, tab0 AS cor0
----
-9

query I rowsort
SELECT + + ( - col0 ) * col0 + - col1 FROM tab0 AS cor0
----
-306
-7590
-9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1700
SELECT col2 * CAST( - 2 AS SIGNED ) FROM tab1 AS cor0
----
-118
-136
-192

skipif mysql # not compatible
query I rowsort label-1700
SELECT col2 * CAST ( - 2 AS INTEGER ) FROM tab1 AS cor0
----
-118
-136
-192

query I rowsort
SELECT - + col2 * - col2 AS col2 FROM tab2 cor0
----
1600
3364
529

query I rowsort
SELECT - + 58 AS col2 FROM tab0 cor0
----
-58
-58
-58

query I rowsort
SELECT - col1 * - + col1 AS col1 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1704
SELECT + - CAST( NULL AS SIGNED ) * - 0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1704
SELECT + - CAST ( NULL AS INTEGER ) * - 0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 28 / - col1, col0 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT ALL - 47 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-1706
SELECT ALL - 47 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT ALL COUNT( * ) * 18 * - 23 * COUNT( * ) col2 FROM tab1
----
-3726

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1707
SELECT ALL COUNT ( * ) * 18 * - 23 * COUNT ( * ) col2 FROM tab1
----
-3726

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1709
SELECT CAST( NULL AS SIGNED ), + 29 * - - 79 AS col0 FROM tab1
----
NULL
2291
NULL
2291
NULL
2291

skipif mysql # not compatible
query II rowsort label-1709
SELECT CAST ( NULL AS INTEGER ), + 29 * - - 79 AS col0 FROM tab1
----
NULL
2291
NULL
2291
NULL
2291

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > - + 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT SUM( DISTINCT col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-1711
SELECT SUM ( DISTINCT col1 ) FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-1712
SELECT DISTINCT + - COUNT( * ) AS col0, + 10 col2 FROM tab2 AS cor0
----
-3
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1712
SELECT DISTINCT + - COUNT ( * ) AS col0, + 10 col2 FROM tab2 AS cor0
----
-3
10

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + 10 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT - - SUM( ALL col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1714
SELECT - - SUM ( ALL col1 ) FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-1715
SELECT DISTINCT - - COUNT( * ), COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-1715
SELECT DISTINCT - - COUNT ( * ), COUNT ( * ) FROM tab0 AS cor0
----
3
3

query I rowsort
SELECT - - 61 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query II rowsort
SELECT col0 * 19, - 83 AS col2 FROM tab0
----
1653
-83
1843
-83
285
-83

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col0 NOT IN ( - + col2, + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 34 BETWEEN - ( + 91 ) * col1 AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 1 * - col1 AS col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL - col1 + - 38 - col2 + col1 + + col2 + + col1 * col1 * - + col1 AS col1 FROM tab1 AS cor0
----
-103861
-163
-2782

query I rowsort
SELECT DISTINCT - col0 + - ( + + col2 ) + + col1 FROM tab0
----
-195
-76
19

query I rowsort
SELECT DISTINCT col0 * - col1 + - col2 * + 84 FROM tab2
----
-4278
-8288
-9897

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT MIN( ALL 75 ) col0 FROM tab1
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1724
SELECT MIN ( ALL 75 ) col0 FROM tab1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT DISTINCT MIN( - - ( - - col1 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1725
SELECT DISTINCT MIN ( - - ( - - col1 ) ) FROM tab0
----
1

query II rowsort
SELECT DISTINCT + 94 AS col2, - 11 - - 5 FROM tab0
----
94
-6

query I rowsort
SELECT + 30 * 61 - + + col1 FROM tab0
----
1749
1809
1829

onlyif mysql # aggregate syntax: 
query II rowsort label-1728
SELECT ALL + COUNT( * ) + + COUNT( * ) AS col1, + 87 AS col1 FROM tab1
----
6
87

skipif mysql # not compatible
query II rowsort label-1728
SELECT ALL + COUNT ( * ) + + COUNT ( * ) AS col1, + 87 AS col1 FROM tab1
----
6
87

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * 79 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL + + col0 FROM tab2 AS cor0 WHERE NOT 14 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT DISTINCT + - 64 * + 40 * - - 8 * + COUNT( * ) FROM tab1 cor0
----
-61440

skipif mysql # not compatible
query I rowsort label-1732
SELECT DISTINCT + - 64 * + 40 * - - 8 * + COUNT ( * ) FROM tab1 cor0
----
-61440

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT - + 90 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-1733
SELECT - + 90 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-270

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT + + 40 * + + col0 * + col2 FROM tab0 cor0
----
28200
34800
384120

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT ALL 41 * COUNT( * ) AS col2 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL 41 * COUNT ( * ) AS col2 FROM tab0
----
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1737
SELECT COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1737
SELECT COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1738
SELECT - MIN( + col2 ) AS col1, 74 AS col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND 10
----
NULL
74

skipif mysql # not compatible
query II rowsort label-1738
SELECT - MIN ( + col2 ) AS col1, 74 AS col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND 10
----
NULL
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1739
SELECT col2 AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-1739
SELECT col2 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT COUNT( * ) + + 90 * COUNT( * ) AS col1 FROM tab0 WHERE NOT - col2 * - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1740
SELECT COUNT ( * ) + + 90 * COUNT ( * ) AS col1 FROM tab0 WHERE NOT - col2 * - col1 IS NOT NULL
----
0

query II rowsort
SELECT ALL + + col1 * + 44 + + + col2, - col0 AS col1 FROM tab0 AS cor0
----
143
-97
3611
-15
934
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT DISTINCT + 99 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1742
SELECT DISTINCT + 99 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
96

query I rowsort
SELECT - + col1 + + col2 * + - 1 + 60 AS col1 FROM tab0 AS cor0
----
-40
-68
29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1744
SELECT col0 + CAST( col0 AS SIGNED ) DIV + col1 FROM tab2 AS cor0
----
46
64
76

skipif mysql # not compatible
query I rowsort label-1744
SELECT col0 + CAST ( col0 AS INTEGER ) / + col1 FROM tab2 AS cor0
----
46
64
76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - - col1 NOT BETWEEN - col1 + + + 6 + - col2 * + - col2 - - 61 AND + 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT - 40 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-1746
SELECT - 40 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT ALL + + MIN( 91 ) FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-1747
SELECT ALL + + MIN ( 91 ) FROM tab0 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 + 98 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1749
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT + ( - + 77 ) / + col2 FROM tab2 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND col2
----

query I rowsort
SELECT + - 6 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1752
SELECT DISTINCT - COUNT( * ) DIV + + ( - 74 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-1752
SELECT DISTINCT - COUNT ( * ) / + + ( - 74 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT SUM( ALL - + 36 ) AS col1 FROM tab0
----
-108

skipif mysql # not compatible
query I rowsort label-1753
SELECT SUM ( ALL - + 36 ) AS col1 FROM tab0
----
-108

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1755
SELECT - CAST( + - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1755
SELECT - CAST ( + - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL - 55 * + 86 AS col2 FROM tab2 AS cor0
----
-4730
-4730
-4730

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1757
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 <> - - col2 * col0 + + - 35 / + col0 - ( - CAST( 14 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1757
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 <> - - col2 * col0 + + - 35 / + col0 - ( - CAST ( 14 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT DISTINCT - COUNT( * ) + - MAX( + col0 ) FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-1758
SELECT DISTINCT - COUNT ( * ) + - MAX ( + col0 ) FROM tab1 AS cor0
----
-94

query I rowsort
SELECT 64 AS col1 FROM tab0 cor0
----
64
64
64

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 >= + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1761
SELECT ALL 30 DIV - ( + + col0 ) + + col2 * + + col2 - + - col1 FROM tab0 AS cor0
----
121
2288
9802

skipif mysql # not compatible
query I rowsort label-1761
SELECT ALL 30 / - ( + + col0 ) + + col2 * + + col2 - + - col1 FROM tab0 AS cor0
----
121
2288
9802

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1762
SELECT CAST( + + col2 AS SIGNED ) + 48 FROM tab0 AS cor0
----
147
58
95

skipif mysql # not compatible
query I rowsort label-1762
SELECT CAST ( + + col2 AS INTEGER ) + 48 FROM tab0 AS cor0
----
147
58
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT DISTINCT + 27 - - MIN( DISTINCT - + col2 ) AS col1 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-1763
SELECT DISTINCT + 27 - - MIN ( DISTINCT - + col2 ) AS col1 FROM tab1 AS cor0
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1764
SELECT 4 + + - CAST( + SUM( ALL col2 ) AS SIGNED ) AS col2 FROM tab0
----
-152

skipif mysql # not compatible
query I rowsort label-1764
SELECT 4 + + - CAST ( + SUM ( ALL col2 ) AS INTEGER ) AS col2 FROM tab0
----
-152

query I rowsort
SELECT ALL 86 - - col1 FROM tab0
----
107
167
87

query I rowsort
SELECT col2 * - - 65 * - 48 AS col2 FROM tab1
----
-184080
-212160
-299520

onlyif mysql # DIV for integer division: 
query II rowsort label-1767
SELECT + - 90 DIV + 54, col2 FROM tab0 AS cor0
----
-1
10
-1
47
-1
99

skipif mysql # not compatible
query II rowsort label-1767
SELECT + - 90 / + 54, col2 FROM tab0 AS cor0
----
-1
10
-1
47
-1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT + + COUNT( + + 41 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1768
SELECT + + COUNT ( + + 41 ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + col1 * - + col0 + + - 26 AS col2 FROM tab1 AS cor0
----
-4303
-451
-740

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 28 IS NULL
----

query I rowsort
SELECT DISTINCT + 57 + - - 3 AS col1 FROM tab1 AS cor0
----
60

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 6 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1773
SELECT - ( - ( + CAST( + + col1 AS SIGNED ) ) ) * col0 AS col2 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-1773
SELECT - ( - ( + CAST ( + + col1 AS INTEGER ) ) ) * col0 AS col2 FROM tab2
----
2346
4928
5025

query II rowsort
SELECT DISTINCT col1, + col2 + + + col2 FROM tab0
----
1
198
21
20
81
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT + - 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-1775
SELECT + - COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1776
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL <> + 84
----

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL <> + 84
----

query II rowsort
SELECT - col2 AS col2, col2 AS col2 FROM tab2 cor0
----
-23
23
-40
40
-58
58

onlyif mysql # aggregate syntax: 
query II rowsort label-1778
SELECT DISTINCT + COUNT( * ) AS col0, COUNT( * ) + - 16 AS col1 FROM tab1 AS cor0
----
3
-13

skipif mysql # not compatible
query II rowsort label-1778
SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) + - 16 AS col1 FROM tab1 AS cor0
----
3
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT SUM( - - col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-1779
SELECT SUM ( - - col1 ) FROM tab2 AS cor0
----
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1780
SELECT COUNT( * ), CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-1780
SELECT COUNT ( * ), CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1781
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1782
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - 52 * + col2 + - col0 + + col0 + - + CAST( NULL AS SIGNED ) + col1 * - + 64 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1782
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - 52 * + col2 + - col0 + + col0 + - + CAST ( NULL AS INTEGER ) + col1 * - + 64 IS NOT NULL
----
-3

query I rowsort
SELECT col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

query I rowsort
SELECT col2 * + col0 * - - col0 * - col0 AS col0 FROM tab2
----
-10485760
-2238728
-24468750

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT DISTINCT - SUM( ALL - col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-1785
SELECT DISTINCT - SUM ( ALL - col2 ) FROM tab1
----
223

query I rowsort
SELECT DISTINCT col2 * + - 21 FROM tab0
----
-2079
-210
-987

query I rowsort
SELECT DISTINCT + ( 53 ) * - 45 FROM tab0
----
-2385

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 = - + 18
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1790
SELECT ALL + COUNT( * ) AS col2, COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-1790
SELECT ALL + COUNT ( * ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

query I rowsort
SELECT + 76 + - 63 FROM tab2
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT ALL COUNT( * ) + - COUNT( ALL + 4 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1792
SELECT ALL COUNT ( * ) + - COUNT ( ALL + 4 ) FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( + col2 ) NOT BETWEEN col0 AND ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT + col1 - - ( col2 ) + - col1 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-1794
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT + col1 - - ( col2 ) + - col1 IS NOT NULL )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 38 + - 83 + - + 98 col2 FROM tab2 AS cor0 WHERE ( 36 = NULL )
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 cor0 WHERE NULL BETWEEN + col0 * + + 28 + ( col1 ) - - col1 * + col2 AND 14 + col0
----

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT - COUNT( * ) FROM tab2 cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1798
SELECT - COUNT ( * ) FROM tab2 cor0 WHERE col2 IS NULL
----
0

query II rowsort
SELECT - col0 AS col0, + col0 + - + 62 FROM tab1 AS cor0
----
-51
-11
-85
23
-91
29

query I rowsort
SELECT ALL + 9 + + + col1 FROM tab0 AS cor0
----
10
30
90

onlyif mysql # DIV for integer division: 
query II rowsort label-1801
SELECT + + col1 AS col1, + col2 - - 18 - 43 DIV - ( + col2 ) FROM tab2 AS cor0
----
51
42
67
76
77
59

skipif mysql # not compatible
query II rowsort label-1801
SELECT + + col1 AS col1, + col2 - - 18 - 43 / - ( + col2 ) FROM tab2 AS cor0
----
51
42
67
76
77
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1802
SELECT - col0 AS col1, col2 * CAST( + - col2 AS SIGNED ) FROM tab0
----
-15
-2209
-87
-100
-97
-9801

skipif mysql # not compatible
query II rowsort label-1802
SELECT - col0 AS col1, col2 * CAST ( + - col2 AS INTEGER ) FROM tab0
----
-15
-2209
-87
-100
-97
-9801

query III rowsort
SELECT * FROM tab0 WHERE - 37 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT + MAX( DISTINCT - 77 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-1804
SELECT + MAX ( DISTINCT - 77 ) AS col2 FROM tab2
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1805
SELECT 2 * - - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1805
SELECT 2 * - - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT SUM( col2 ) - ( - 43 ) AS col2 FROM tab1
----
266

skipif mysql # not compatible
query I rowsort label-1806
SELECT SUM ( col2 ) - ( - 43 ) AS col2 FROM tab1
----
266

query I rowsort
SELECT col1 - - + col1 FROM tab1
----
10
28
94

query II rowsort
SELECT DISTINCT 14 - - col0 AS col1, col1 + ( - + ( + col1 ) ) * - col0 AS col0 FROM tab0
----
101
1848
111
98
29
1296

query I rowsort
SELECT ALL col0 * col0 - - col0 AS col2 FROM tab0
----
240
7656
9506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1810
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - 66 - 42 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1810
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - 66 - 42 AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1811
SELECT * FROM tab2 WHERE NULL IN ( 96, col0 + + + 99, - col1, + CAST( + col0 AS SIGNED ), + col1 )
----

skipif mysql # not compatible
query III rowsort label-1811
SELECT * FROM tab2 WHERE NULL IN ( 96, col0 + + + 99, - col1, + CAST ( + col0 AS INTEGER ), + col1 )
----

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT DISTINCT + COUNT( + + ( - col1 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1813
SELECT DISTINCT + COUNT ( + + ( - col1 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT ALL 30 FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT 83 * - - col0 FROM tab0 AS cor0
----
1245
7221
8051

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT ALL - MIN( + - 0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1817
SELECT ALL - MIN ( + - 0 ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1818
SELECT - col2 DIV + - col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1818
SELECT - col2 / + - col1 AS col0 FROM tab2
----
0
0
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0 WHERE NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT DISTINCT - + 3 * 2 + + col0 FROM tab1 AS cor0
----
45
79
85

query I rowsort
SELECT + - 5 AS col2 FROM tab1 cor0
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT ALL - 35 * - COUNT( * ) FROM tab0 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL - 35 * - COUNT ( * ) FROM tab0 AS cor0
----
105

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 55 * - col0 * col2 FROM tab0 AS cor0
----
-38775
-47850
-528165

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT ALL MAX( - + col2 ) * + - 11 FROM tab1 AS cor0
----
649

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL MAX ( - + col2 ) * + - 11 FROM tab1 AS cor0
----
649

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1826
SELECT 8 AS col1, + CAST( NULL AS DECIMAL ) * COUNT( ALL - col0 ) col0 FROM tab1
----
8
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1826
SELECT 8 AS col1, + CAST ( NULL AS REAL ) * COUNT ( ALL - col0 ) col0 FROM tab1
----
8
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1827
SELECT DISTINCT SUM( DISTINCT + + col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-1827
SELECT DISTINCT SUM ( DISTINCT + + col2 ) FROM tab1
----
223

query I rowsort
SELECT col0 FROM tab1 WHERE NOT NULL = - 95
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1830
SELECT ( + + col1 ) * - 10 + CAST( - - col1 AS SIGNED ) DIV col1 FROM tab2
----
-509
-669
-769

skipif mysql # not compatible
query I rowsort label-1830
SELECT ( + + col1 ) * - 10 + CAST ( - - col1 AS INTEGER ) / col1 FROM tab2
----
-509
-669
-769

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT ( - col1 ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - 64 * - col1 + - 30 col0 FROM tab1 AS cor0
----
205
2887
815

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1833
SELECT ALL + 41 * - AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL + 41 * - AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1834
SELECT DISTINCT col2 * - col2 * + + col1 DIV col1 FROM tab2 AS cor0
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT col2 * - col2 * + + col1 / col1 FROM tab2 AS cor0
----
-1600
-3364
-529

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) = - col0
----

query I rowsort
SELECT DISTINCT + 91 * - 64 FROM tab1
----
-5824

query I rowsort
SELECT + + 16 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # DIV for integer division: 
query II rowsort label-1838
SELECT DISTINCT + col0 DIV + + col2 AS col0, 83 + - - col2 - + - 38 FROM tab2 AS cor0
----
1
161
1
179
2
144

skipif mysql # not compatible
query II rowsort label-1838
SELECT DISTINCT + col0 / + + col2 AS col0, 83 + - - col2 - + - 38 FROM tab2 AS cor0
----
1
161
1
179
2
144

query I rowsort
SELECT - - col1 - + + col0 + col1 FROM tab0 AS cor0
----
-45
-95
147

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1840
SELECT DISTINCT COUNT( * ) / 24 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT COUNT ( * ) / 24 * - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 49 - - 50 FROM tab1 AS cor0
----
99
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1842
SELECT CAST( NULL AS SIGNED ) col2 FROM tab2 cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1842
SELECT CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + 22 + col0 FROM tab1 cor0
----
107
113
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT COUNT( * ) + - + 53 * 95 AS col1 FROM tab2 AS cor0
----
-5032

skipif mysql # not compatible
query I rowsort label-1844
SELECT COUNT ( * ) + - + 53 * 95 AS col1 FROM tab2 AS cor0
----
-5032

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 32 * - col0 ) IS NULL
----

query I rowsort
SELECT ALL col0 * + col0 - + col2 + - col0 FROM tab0
----
163
7472
9213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1847
SELECT DISTINCT + CAST( + - SUM( DISTINCT + + col1 ) AS SIGNED ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-1847
SELECT DISTINCT + CAST ( + - SUM ( DISTINCT + + col1 ) AS INTEGER ) FROM tab0
----
-103

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 82 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT ALL COUNT( - + 58 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL COUNT ( - + 58 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - col2 * - col1 - + 91 FROM tab1 AS cor0
----
1253
204
3105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 col0 FROM tab1 AS cor0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1852
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN + ( + - col0 ) AND - CAST( - 85 AS SIGNED )
----
87
21
10

skipif mysql # not compatible
query III rowsort label-1852
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN + ( + - col0 ) AND - CAST ( - 85 AS INTEGER )
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1853
SELECT CAST( + - 87 AS SIGNED ) FROM tab0
----
-87
-87
-87

skipif mysql # not compatible
query I rowsort label-1853
SELECT CAST ( + - 87 AS INTEGER ) FROM tab0
----
-87
-87
-87

query II rowsort
SELECT DISTINCT col2, + col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT ALL + MAX( DISTINCT - - ( col1 ) ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-1855
SELECT ALL + MAX ( DISTINCT - - ( col1 ) ) FROM tab1
----
47

query I rowsort
SELECT col2 * 55 AS col1 FROM tab2
----
1265
2200
3190

onlyif mysql # aggregate syntax: 
query II rowsort label-1857
SELECT DISTINCT + - MIN( + 18 ), + COUNT( * ) + - - ( - + 90 ) AS col2 FROM tab0 cor0
----
-18
-87

skipif mysql # not compatible
query II rowsort label-1857
SELECT DISTINCT + - MIN ( + 18 ), + COUNT ( * ) + - - ( - + 90 ) AS col2 FROM tab0 cor0
----
-18
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT + - COUNT( * ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1858
SELECT + - COUNT ( * ) AS col1 FROM tab0 cor0
----
-3

query III rowsort
SELECT DISTINCT col1 AS col0, - ( col1 ) - + col0 AS col0, + ( + - 13 ) FROM tab2 AS cor0
----
9 values hashing to 81156f75f11c08a58c7936f4f08c9a78

query I rowsort
SELECT - + 1 AS col2 FROM tab1 cor0 WHERE NOT - col1 * - col0 <> - col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN - 54 * - 34 AND - col0 / - - 69
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1862
SELECT DISTINCT + 9 * - CAST( NULL AS SIGNED ) AS col1, - 89 * col0 col0 FROM tab0 WHERE NOT + col1 <= - col0 + 35 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1862
SELECT DISTINCT + 9 * - CAST ( NULL AS INTEGER ) AS col1, - 89 * col0 col0 FROM tab0 WHERE NOT + col1 <= - col0 + 35 * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col0 * ( + + col0 ) * + col1 AS col1 FROM tab1
----
36125
36414
389207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col0 col2 FROM tab2
----
-8
13
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1865
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) * 62 FROM tab1
----
186

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) * 62 FROM tab1
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT COUNT( - 95 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1866
SELECT COUNT ( - 95 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT + 58 * + col2 FROM tab0
----
2726
5742
580

query I rowsort
SELECT DISTINCT + 0 + col2 * - + col1 FROM tab0 WHERE NOT + + col2 > 80
----
-210
-3807

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT + col0 * - + 82 * col1 - 36 AS col2 FROM tab1 AS cor0 WHERE col1 / col0 * + col1 >= + col0 * - + col0
----
-34886
-350750
-58584

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1871
SELECT ALL + 4 + + CAST( - COUNT( * ) AS SIGNED ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1871
SELECT ALL + 4 + + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 cor0
----
1

query I rowsort
SELECT ALL - 31 + ( - col0 ) - 63 FROM tab0
----
-109
-181
-191

query I rowsort
SELECT 79 + + col1 - + col1 AS col0 FROM tab2
----
79
79
79

onlyif mysql # aggregate syntax: 
query II rowsort label-1874
SELECT - COUNT( * ) AS col1, - 30 AS col0 FROM tab0 WHERE NULL NOT BETWEEN + col2 AND col1 * - - 43
----
0
-30

skipif mysql # not compatible
query II rowsort label-1874
SELECT - COUNT ( * ) AS col1, - 30 AS col0 FROM tab0 WHERE NULL NOT BETWEEN + col2 AND col1 * - - 43
----
0
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1875
SELECT ALL - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT 39 IN ( + 24 - + col2 + + - 15, - 8, 55 * - + 37, col2 )
----
14
47
5

query I rowsort
SELECT - + 90 * + 26 FROM tab2 cor0
----
-2340
-2340
-2340

onlyif mysql # aggregate syntax: 
query II rowsort label-1878
SELECT DISTINCT + 17 AS col1, MAX( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
17
99

skipif mysql # not compatible
query II rowsort label-1878
SELECT DISTINCT + 17 AS col1, MAX ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
17
99

query I rowsort
SELECT col1 - - col0 * 19 * + col0 * + + col2 FROM tab2 AS cor0
----
3113037
6198817
924743

onlyif mysql # DIV for integer division: 
query I rowsort label-1880
SELECT + col1 DIV - col1 - + 8 FROM tab0 AS cor0
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-1880
SELECT + col1 / - col1 - + 8 FROM tab0 AS cor0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT ( ( - 13 ) ) - COUNT( * ) FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-1881
SELECT ( ( - 13 ) ) - COUNT ( * ) FROM tab1 AS cor0
----
-16

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 95 - + col2 * + 10 + 33 * + col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1883
SELECT DISTINCT - 52 - + CAST( col1 AS SIGNED ) FROM tab1
----
-57
-66
-99

skipif mysql # not compatible
query I rowsort label-1883
SELECT DISTINCT - 52 - + CAST ( col1 AS INTEGER ) FROM tab1
----
-57
-66
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1884
SELECT - CAST( - 80 AS SIGNED ) FROM tab2
----
80
80
80

skipif mysql # not compatible
query I rowsort label-1884
SELECT - CAST ( - 80 AS INTEGER ) FROM tab2
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT DISTINCT - MIN( - + 96 ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT - MIN ( - + 96 ) FROM tab2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT ALL + COUNT( col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1886
SELECT ALL + COUNT ( col1 ) FROM tab1
----
3

query I rowsort
SELECT + 37 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 99 * col2 * - col2 AS col2 FROM tab2 cor0
----
158400
333036
52371

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1889
SELECT ALL col2 * - - CAST( NULL AS SIGNED ) * - 71 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL col2 * - - CAST ( NULL AS INTEGER ) * - 71 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT DISTINCT + COUNT( * ) + - 39 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT - col2 IS NULL )
----
-39

skipif mysql # not compatible
query I rowsort label-1890
SELECT DISTINCT + COUNT ( * ) + - 39 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT - col2 IS NULL )
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-1891
SELECT DISTINCT + col0 DIV - - col1 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-1891
SELECT DISTINCT + col0 / - - col1 FROM tab2
----
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1892
SELECT ALL COUNT( * ) col0, COUNT( * ) col0 FROM tab1
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1892
SELECT ALL COUNT ( * ) col0, COUNT ( * ) col0 FROM tab1
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 20 col1, - col1 + 45 FROM tab0 AS cor0
----
20
-36
20
24
20
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT + + MAX( + col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1894
SELECT + + MAX ( + col0 ) AS col1 FROM tab0 AS cor0
----
97

query I rowsort
SELECT - - ( + 14 ) AS col1 FROM tab2 AS cor0
----
14
14
14

onlyif mysql # DIV for integer division: 
query I rowsort label-1896
SELECT DISTINCT 77 DIV - 57 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1896
SELECT DISTINCT 77 / - 57 FROM tab2 AS cor0
----
-1

query II rowsort
SELECT col0, - 54 AS col1 FROM tab2 AS cor0
----
46
-54
64
-54
75
-54

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL <= + col1 )
----

query I rowsort
SELECT + 58 + - 84 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT DISTINCT + 68 FROM tab2 WHERE NOT 61 / + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT ALL - 98 + - MIN( + col0 ) AS col1 FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL - 98 + - MIN ( + col0 ) AS col1 FROM tab2
----
-144

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1902
SELECT DISTINCT - SUM( DISTINCT - + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1902
SELECT DISTINCT - SUM ( DISTINCT - + CAST ( NULL AS REAL ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT col0 * + - col2 + - + 91 * 81 AS col2 FROM tab2
----
-11721
-8429
-9931

query II rowsort
SELECT ALL + - col1 AS col0, - 34 FROM tab2 AS cor0
----
-51
-34
-67
-34
-77
-34

query I rowsort
SELECT col2 * - + 30 * + col2 * - col0 + - 71 + - 19 + col0 AS col0 FROM tab0 AS cor0
----
260997
28520917
993975

query II rowsort
SELECT ALL col2 AS col0, 33 FROM tab2 AS cor0
----
23
33
40
33
58
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1907
SELECT - col1 DIV col0 * - - col0 FROM tab0 AS cor0
----
-75
0
0

skipif mysql # not compatible
query I rowsort label-1907
SELECT - col1 / col0 * - - col0 FROM tab0 AS cor0
----
-75
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 16 + + + col1 NOT BETWEEN col2 AND - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-1909
SELECT 69 * + COUNT( * ) AS col0, - SUM( + - col1 ) AS col0 FROM tab1
----
207
66

skipif mysql # not compatible
query II rowsort label-1909
SELECT 69 * + COUNT ( * ) AS col0, - SUM ( + - col1 ) AS col0 FROM tab1
----
207
66

query I rowsort
SELECT DISTINCT - col2 + - col2 + - 48 + - - col0 AS col2 FROM tab1
----
-189
-81
-93

query I rowsort
SELECT + ( + col1 ) - col1 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1913
SELECT DISTINCT + + col0 - + - col0 + + 82 + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1913
SELECT DISTINCT + + col0 - + - col0 + + 82 + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 * col0 col1 FROM tab0 AS cor0
----
4002
4462
690

query I rowsort
SELECT - 94 + + ( + 62 ) FROM tab0 cor0
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1916
SELECT + 2 + 64 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-1916
SELECT + 2 + 64 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1917
SELECT + CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1917
SELECT + CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT DISTINCT + - SUM( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-1918
SELECT DISTINCT + - SUM ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 77 + - col2, + 10 col2 FROM tab1 AS cor0
----
-19
10
18
10
9
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + - col0 col1 FROM tab2 AS cor0
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT ALL - COUNT( * ) * + - 90 FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL - COUNT ( * ) * + - 90 FROM tab0 AS cor0
----
270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - + col1 col1 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT - col2 AS col0 FROM tab1 cor0 WHERE NOT NULL NOT IN ( ( + col2 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1924
SELECT DISTINCT CAST( MAX( DISTINCT - + col0 ) AS SIGNED ) col0 FROM tab1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1924
SELECT DISTINCT CAST ( MAX ( DISTINCT - + col0 ) AS INTEGER ) col0 FROM tab1
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 94 col0, col2 FROM tab1
----
94
59
94
68
94
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 96 IS NULL
----

query I rowsort
SELECT DISTINCT - 45 AS col1 FROM tab0
----
-45

query I rowsort
SELECT + 58 FROM tab2 WHERE NOT + col1 - col2 - + col1 * + - ( col0 ) - + + col0 IS NULL
----
58
58
58

query II rowsort
SELECT + col0, col2 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT MAX( DISTINCT 51 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1930
SELECT MAX ( DISTINCT 51 ) FROM tab2
----
51

query II rowsort
SELECT - col1 AS col2, col1 FROM tab2
----
-51
51
-67
67
-77
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 13 IS NULL
----

query I rowsort
SELECT DISTINCT 64 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT DISTINCT COUNT( * ) + - - MAX( ALL 82 ) + + 80 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
171

skipif mysql # not compatible
query I rowsort label-1934
SELECT DISTINCT COUNT ( * ) + - - MAX ( ALL 82 ) + + 80 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
171

query I rowsort
SELECT + + 4 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT DISTINCT - + 19 * COUNT( DISTINCT 5 ) FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-1936
SELECT DISTINCT - + 19 * COUNT ( DISTINCT 5 ) FROM tab0 AS cor0
----
-19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT ALL - MAX( - - 76 ) + - 62 AS col1 FROM tab1 cor0
----
-138

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL - MAX ( - - 76 ) + - 62 AS col1 FROM tab1 cor0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1939
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL > ( NULL )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1940
SELECT DISTINCT + COUNT( * ) * ( - - 41 ) DIV 64 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1940
SELECT DISTINCT + COUNT ( * ) * ( - - 41 ) / 64 FROM tab1 cor0
----
1

query I rowsort
SELECT ALL col2 + - + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - col1 + col2 * + + 48 FROM tab0 cor0
----
2337
4753
501

query II rowsort
SELECT ALL - 40 + col1 AS col0, col1 * 19 FROM tab0 AS cor0
----
-19
399
-39
19
41
1539

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT ALL + COUNT( ALL - - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1944
SELECT ALL + COUNT ( ALL - - col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 90 + - - col1 * 40 FROM tab1
----
110
1790
470

query III rowsort
SELECT * FROM tab0 WHERE + col0 < + col1 * + 49
----
15
81
47
87
21
10

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 WHERE + - col0 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT - - col1 / - 47 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1948
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT - - col1 / - 47 IS NOT NULL
----
0

query II rowsort
SELECT + col2 AS col0, col2 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT DISTINCT - MIN( - col2 ) FROM tab2 AS cor0 WHERE ( NOT - + col0 BETWEEN - col2 AND - - 81 * + col1 )
----
58

skipif mysql # not compatible
query I rowsort label-1950
SELECT DISTINCT - MIN ( - col2 ) FROM tab2 AS cor0 WHERE ( NOT - + col0 BETWEEN - col2 AND - - 81 * + col1 )
----
58

query I rowsort
SELECT - col2 * + ( - ( + - 28 ) ) + - col2 AS col0 FROM tab0 AS cor0
----
-1363
-2871
-290

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1953
SELECT col0 + + - col1 DIV - col1 AS col0 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-1953
SELECT col0 + + - col1 / - col1 AS col0 FROM tab2
----
47
65
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT ALL 54 * - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-486

skipif mysql # not compatible
query I rowsort label-1954
SELECT ALL 54 * - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-486

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT ALL 10 * - COUNT( * ) * MIN( - + col0 ) AS col1 FROM tab0
----
2910

skipif mysql # not compatible
query I rowsort label-1955
SELECT ALL 10 * - COUNT ( * ) * MIN ( - + col0 ) AS col1 FROM tab0
----
2910

query I rowsort
SELECT DISTINCT + col2 - + + col1 FROM tab0
----
-11
-34
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT ALL + MAX( + - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1958
SELECT ALL + MAX ( + - col1 ) FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT ALL SUM( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-1959
SELECT ALL SUM ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1960
SELECT CAST( 0 AS SIGNED ) FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1960
SELECT CAST ( 0 AS INTEGER ) FROM tab0 cor0
----
0
0
0

query II rowsort
SELECT DISTINCT - - col1, + col1 AS col2 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT ALL + 5 * - - col0 FROM tab0 AS cor0
----
435
485
75

query I rowsort
SELECT DISTINCT 47 * + + col2 + + - col0 FROM tab0 AS cor0
----
2194
383
4556

query I rowsort
SELECT ALL + + 52 AS col0 FROM tab2 AS cor0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT DISTINCT + + 2 * COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT + + 2 * COUNT ( * ) FROM tab2 AS cor0
----
6

query I rowsort
SELECT col0 * + 84 FROM tab0 AS cor0
----
1260
7308
8148

query I rowsort
SELECT ALL - col2 * + 14 FROM tab2 AS cor0
----
-322
-560
-812

query I rowsort
SELECT - col0 * - ( - - col2 ) FROM tab0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1969
SELECT col2 * - CAST( NULL AS SIGNED ) * - col0, col1 col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1969
SELECT col2 * - CAST ( NULL AS INTEGER ) * - col0, col1 col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 WHERE NOT col2 / + - col1 <= col2
----
0

skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 WHERE NOT col2 / + - col1 <= col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT DISTINCT - ( COUNT( * ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1971
SELECT DISTINCT - ( COUNT ( * ) ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1972
SELECT + CAST( + AVG ( ALL + 70 ) AS SIGNED ) FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-1972
SELECT + CAST ( + AVG ( ALL + 70 ) AS INTEGER ) FROM tab0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT DISTINCT COUNT( * ) * + 81 col2 FROM tab1 WHERE + col2 + - col2 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1973
SELECT DISTINCT COUNT ( * ) * + 81 col2 FROM tab1 WHERE + col2 + - col2 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 27 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * - - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 * - col2 * + - col2 col1 FROM tab2 AS cor0
----
10092
1587
4800

query I rowsort
SELECT DISTINCT - 92 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-92

query I rowsort
SELECT DISTINCT 58 + + - 55 - + 19 AS col2 FROM tab0 AS cor0
----
-16

query I rowsort
SELECT ALL - + col1 * + - col1 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT COUNT( * ) col0 FROM tab2 AS cor0 WHERE col1 * col0 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1980
SELECT COUNT ( * ) col0 FROM tab2 AS cor0 WHERE col1 * col0 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - - col2 col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # DIV for integer division: 
query I rowsort label-1982
SELECT DISTINCT col1 DIV col1 DIV col0 * - + 31 * - + col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1982
SELECT DISTINCT col1 / col1 / col0 * - + 31 * - + col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT 42 + col1 * 39 * - col0 > col2 / - col0 + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1984
SELECT ALL + 92 DIV + 8 + 67 FROM tab2 AS cor0
----
78
78
78

skipif mysql # not compatible
query I rowsort label-1984
SELECT ALL + 92 / + 8 + 67 FROM tab2 AS cor0
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1985
SELECT ALL + - CAST( - - 57 AS SIGNED ) * + - 5 AS col1 FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-1985
SELECT ALL + - CAST ( - - 57 AS INTEGER ) * + - 5 AS col1 FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT DISTINCT + SUM( 12 ) + + COUNT( * ) FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-1986
SELECT DISTINCT + SUM ( 12 ) + + COUNT ( * ) FROM tab2 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT - COUNT( * ) + + + MAX( DISTINCT 13 ) * - 49 FROM tab0 AS cor0
----
-640

skipif mysql # not compatible
query I rowsort label-1987
SELECT - COUNT ( * ) + + + MAX ( DISTINCT 13 ) * - 49 FROM tab0 AS cor0
----
-640

query I rowsort
SELECT DISTINCT + + 67 + - col1 FROM tab1 AS cor0
----
20
53
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT + 31 + + COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 cor0
----
37

skipif mysql # not compatible
query I rowsort label-1989
SELECT + 31 + + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 cor0
----
37

query I rowsort
SELECT DISTINCT col0 + col2 + col2 + col1 * + - 65 * col0 AS col2 FROM tab0
----
-118648
-6010
-78866

query I rowsort
SELECT DISTINCT ( col0 ) + + col2 * + col2 + - - 18 AS col1 FROM tab2
----
1682
3457
593

query I rowsort
SELECT ALL 2 + + col0 FROM tab2
----
48
66
77

query I rowsort
SELECT ALL col0 * - 79 AS col0 FROM tab1
----
-4029
-6715
-7189

query II rowsort
SELECT ALL 86 + - + col2 * col0 + + - 86 AS col0, + col1 FROM tab1
----
-4896
14
-5015
5
-6188
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1995
SELECT CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) - - + 77 + 61 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1995
SELECT CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) - - + 77 + 61 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1996
SELECT + + col2 AS col2 FROM tab1 AS cor0 WHERE col0 > CAST( NULL AS SIGNED ) / + col2
----

skipif mysql # not compatible
query I rowsort label-1996
SELECT + + col2 AS col2 FROM tab1 AS cor0 WHERE col0 > CAST ( NULL AS INTEGER ) / + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT + ( + MIN( - 43 ) ) AS col2 FROM tab2 cor0
----
-43

skipif mysql # not compatible
query I rowsort label-1997
SELECT + ( + MIN ( - 43 ) ) AS col2 FROM tab2 cor0
----
-43

query II rowsort
SELECT 78 * + - col0, + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-1170
-3807
-6786
-210
-7566
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 47 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE ( ( + col2 / + - 9 * + + 5 + + 64 ) = NULL )
----

query I rowsort
SELECT ALL + 57 * - - 67 FROM tab0
----
3819
3819
3819

onlyif mysql # aggregate syntax: 
query II rowsort label-2002
SELECT DISTINCT - COUNT( DISTINCT + 67 ) + COUNT( * ) AS col1, COUNT( + 33 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
8
9

skipif mysql # not compatible
query II rowsort label-2002
SELECT DISTINCT - COUNT ( DISTINCT + 67 ) + COUNT ( * ) AS col1, COUNT ( + 33 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
8
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT + + COUNT( + col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2003
SELECT + + COUNT ( + col1 ) AS col2 FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT + col1, col2 + 16 AS col0 FROM tab0
----
1
115
21
26
81
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2005
SELECT ALL col1 * CAST( 82 AS SIGNED ) FROM tab2
----
4182
5494
6314

skipif mysql # not compatible
query I rowsort label-2005
SELECT ALL col1 * CAST ( 82 AS INTEGER ) FROM tab2
----
4182
5494
6314

query II rowsort
SELECT ALL + col1 AS col0, col1 * - + col0 FROM tab2 WHERE - + col2 IS NULL
----

query II rowsort
SELECT col0 AS col2, + col0 AS col2 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2008
SELECT col2 AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-2008
SELECT col2 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT - col0 + + - 35 FROM tab0 WHERE NOT col0 IS NULL
----
-122
-132
-50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2010
SELECT DISTINCT * FROM tab1 WHERE + CAST( + 99 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2010
SELECT DISTINCT * FROM tab1 WHERE + CAST ( + 99 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2011
SELECT ALL + - col2 + col2 - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL + - col2 + col2 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 AND + 8 / - + col1
----

query I rowsort
SELECT - 92 + - - col1 AS col2 FROM tab1
----
-45
-78
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2014
SELECT DISTINCT CAST( + - col0 AS SIGNED ) * - col0 col1 FROM tab0
----
225
7569
9409

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2014
SELECT DISTINCT CAST ( + - col0 AS INTEGER ) * - col0 col1 FROM tab0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT COUNT( * ) + - 1 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-2015
SELECT COUNT ( * ) + - 1 FROM tab0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-2016
SELECT ALL 11 * COUNT( * ) AS col2, COUNT( * ) * + 90 + - 16 FROM tab0
----
33
254

skipif mysql # not compatible
query II rowsort label-2016
SELECT ALL 11 * COUNT ( * ) AS col2, COUNT ( * ) * + 90 + - 16 FROM tab0
----
33
254

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2017
SELECT - + CAST( NULL AS DECIMAL ) + + + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2017
SELECT - + CAST ( NULL AS REAL ) + + + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 59 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + ( 78 ) + + 15 FROM tab2 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT DISTINCT 20 + + - COUNT( * ) FROM tab0 cor0
----
17

skipif mysql # not compatible
query I rowsort label-2020
SELECT DISTINCT 20 + + - COUNT ( * ) FROM tab0 cor0
----
17

query I rowsort
SELECT ALL - + col1 + + ( - ( ( + col2 ) ) ) AS col1 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT DISTINCT + - 43 + - COUNT( DISTINCT + col1 ) FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2022
SELECT DISTINCT + - 43 + - COUNT ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-46

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND - - col2 / + 31
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2024
SELECT ALL CAST( col2 AS SIGNED ) * ( 45 ) * col1 - + + col0 AS col2, 27 + + + col0 AS col0 FROM tab0
----
171300
42
4358
124
9363
114

skipif mysql # not compatible
query II rowsort label-2024
SELECT ALL CAST ( col2 AS INTEGER ) * ( 45 ) * col1 - + + col0 AS col2, 27 + + + col0 AS col0 FROM tab0
----
171300
42
4358
124
9363
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2025
SELECT DISTINCT 11 DIV + MIN( - col2 ) * + COUNT( * ) col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2025
SELECT DISTINCT 11 / + MIN ( - col2 ) * + COUNT ( * ) col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 - - col0 * + - col1 AS col1, - ( - 11 ) col1 FROM tab1
----
-340
11
-4186
11
-663
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - 41 col1 FROM tab1
----
18
27
55

query II rowsort
SELECT DISTINCT 12 AS col1, - col0 - col2 FROM tab1 cor0
----
12
-144
12
-147
12
-159

query I rowsort
SELECT - col2 * 85 + - 54 FROM tab0 AS cor0
----
-4049
-8469
-904

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 ) NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT ( 10 ) FROM tab2 WHERE NOT 11 / - col2 BETWEEN + col1 AND ( 86 )
----
10
10
10

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 < + 16
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE - 38 <> NULL
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * col2 + col2 * - 62 FROM tab2 WHERE NULL IS NULL
----
-253
290
600

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT MAX( + col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2036
SELECT MAX ( + col2 ) AS col0 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT DISTINCT + MIN( col2 ) FROM tab2 WHERE ( NULL ) IS NULL
----
23

skipif mysql # not compatible
query I rowsort label-2037
SELECT DISTINCT + MIN ( col2 ) FROM tab2 WHERE ( NULL ) IS NULL
----
23

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 19 ) <> + 69
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 - 25 FROM tab1
----
-30
-39
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT + MAX( ALL ( col0 ) ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2040
SELECT + MAX ( ALL ( col0 ) ) AS col2 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT ALL COUNT( + col2 ) AS col2 FROM tab1 WHERE 21 IN ( + ( col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL COUNT ( + col2 ) AS col2 FROM tab1 WHERE 21 IN ( + ( col2 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT - MAX( col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-2042
SELECT - MAX ( col1 ) FROM tab1
----
-47

query I rowsort
SELECT ( + 58 ) AS col0 FROM tab1
----
58
58
58

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE ( 16 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 3 ) <= + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 56 IS NOT NULL
----

query I rowsort
SELECT + col1 * col0 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( col2 ) * 3
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2049
SELECT DISTINCT - 5 + + col0 col0 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN col2 AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2049
SELECT DISTINCT - 5 + + col0 col0 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN col2 AND ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + col0 IS NOT NULL
----

query I rowsort
SELECT ALL ( 58 ) AS col1 FROM tab1
----
58
58
58

query III rowsort
SELECT * FROM tab2 WHERE NOT 29 * col0 < ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 75 * - col2 + col2 AS col0 FROM tab1 AS cor0
----
-4366
-5032
-7104

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2055
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE ( + col1 ) > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE ( + col1 ) > - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT MAX( DISTINCT - col0 ) col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2056
SELECT MAX ( DISTINCT - col0 ) col1 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT DISTINCT 21 + 75 * col2 FROM tab1
----
4446
5121
7221

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT ALL COUNT( * ) + + 78 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL COUNT ( * ) + + 78 FROM tab0
----
81

query I rowsort
SELECT col0 - + col0 * ( ( - col1 ) ) AS col1 FROM tab2 AS cor0
----
2392
4992
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE 8 IN ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE 8 IN ( + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT DISTINCT + - ( COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2061
SELECT DISTINCT + - ( COUNT ( * ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + 0 * - col0 - col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ( - col1 ) + + col2 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT ALL 55 * + col1 + col2 * col1 FROM tab1 AS cor0
----
2114
570
5781

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT - 79 + - COUNT( * ) FROM tab0 cor0
----
-82

skipif mysql # not compatible
query I rowsort label-2065
SELECT - 79 + - COUNT ( * ) FROM tab0 cor0
----
-82

query I rowsort
SELECT col1 + + 17 FROM tab1 AS cor0
----
22
31
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT ALL - COUNT( * ) + - SUM( DISTINCT col0 + - col1 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL - COUNT ( * ) + - SUM ( DISTINCT col0 + - col1 ) AS col0 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 30 ) IS NOT NULL
----

query I rowsort
SELECT ( - 35 ) + + col2 FROM tab2 AS cor0
----
-12
23
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT COUNT( * ) + + ( 75 ) * 63 FROM tab0
----
4728

skipif mysql # not compatible
query I rowsort label-2070
SELECT COUNT ( * ) + + ( 75 ) * 63 FROM tab0
----
4728

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 14 NOT BETWEEN NULL AND + col2 * col1
----

query III rowsort
SELECT * FROM tab2 WHERE + 55 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT DISTINCT 22 - + MAX( ALL + col1 ) + COUNT( * ) AS col1 FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-2073
SELECT DISTINCT 22 - + MAX ( ALL + col1 ) + COUNT ( * ) AS col1 FROM tab0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2074
SELECT + MAX( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2074
SELECT + MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2075
SELECT ( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2075
SELECT ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2076
SELECT DISTINCT CAST( MIN( ALL col1 ) AS SIGNED ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2076
SELECT DISTINCT CAST ( MIN ( ALL col1 ) AS INTEGER ) FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT ALL COUNT( * ) - + ( + COUNT( * ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2077
SELECT ALL COUNT ( * ) - + ( + COUNT ( * ) ) AS col2 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( - 57 * - col2 ) = col1
----

query I rowsort
SELECT - 48 * 13 AS col2 FROM tab1 AS cor0
----
-624
-624
-624

onlyif mysql # DIV for integer division: 
query I rowsort label-2080
SELECT - col1 DIV + ( col1 ) + + 49 FROM tab0 AS cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-2080
SELECT - col1 / + ( col1 ) + + 49 FROM tab0 AS cor0
----
48
48
48

onlyif mysql # aggregate syntax: 
query II rowsort label-2081
SELECT ALL COUNT( * ) AS col1, COUNT( * ) AS col1 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2081
SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT + 87 / - AVG ( 64 ) + 25 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT ALL col0 * col2 AS col2 FROM tab1 AS cor0 WHERE + ( - + ( col1 ) ) - + 64 * col1 NOT IN ( - col0 )
----
4896
5015
6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2084
SELECT COUNT( CAST( - ( 0 ) AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2084
SELECT COUNT ( CAST ( - ( 0 ) AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL 61 * 46 - - 42 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT col2 - - 94 NOT BETWEEN ( NULL ) AND - col2 * col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( col0 ) < ( 0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2087
SELECT col1 DIV col2 * + 55 FROM tab0
----
0
110
55

skipif mysql # not compatible
query I rowsort label-2087
SELECT col1 / col2 * + 55 FROM tab0
----
0
110
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT DISTINCT ( - MAX( - col1 ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2088
SELECT DISTINCT ( - MAX ( - col1 ) ) FROM tab2
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2089
SELECT ALL SUM( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL SUM ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2090
SELECT + 32 * COUNT( * ) AS col1, 48 FROM tab1
----
96
48

skipif mysql # not compatible
query II rowsort label-2090
SELECT + 32 * COUNT ( * ) AS col1, 48 FROM tab1
----
96
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2091
SELECT + CAST( + - COUNT( * ) AS SIGNED ) * + - COUNT( * ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2091
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) * + - COUNT ( * ) AS col2 FROM tab2
----
9

query I rowsort
SELECT DISTINCT - + ( 68 ) + + col2 FROM tab1 AS cor0
----
-9
0
28

query I rowsort
SELECT ALL 36 AS col0 FROM tab2 cor0
----
36
36
36

query I rowsort
SELECT ALL - 50 + + 93 AS col1 FROM tab1 AS cor0
----
43
43
43

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( - 13 * + col1 + + col2 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT 34 FROM tab1 AS cor0 WHERE ( col2 <> col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 48 * + - 27 > ( + + col2 / ( - 67 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 WHERE - - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NULL NOT BETWEEN + 33 + + col2 AND - - col0 * - ( col2 + + col0 )
----

query I rowsort
SELECT col0 * + + col2 + + col2 + col0 * ( col0 ) FROM tab1
----
12299
14537
7593

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2102
SELECT ALL * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2102
SELECT ALL * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT + + col2 + + col0 <= - col0
----
-3

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT + + col2 + + col0 <= - col0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2104
SELECT - COUNT( + - CAST( NULL AS SIGNED ) ) + 50 col1 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2104
SELECT - COUNT ( + - CAST ( NULL AS INTEGER ) ) + 50 col1 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT ALL - + COUNT( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL - + COUNT ( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > 14 * - + 93 / + + ( + - 42 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 10 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT ALL - - ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2108
SELECT ALL - - ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2109
SELECT ALL + 6 DIV COUNT( * ) + + 74 DIV + 52 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2109
SELECT ALL + 6 / COUNT ( * ) + + 74 / + 52 FROM tab2 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * - ( - 79 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE NULL = 21 * + - ( + col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( col2 * col1 * col2 )
----

query I rowsort
SELECT + 86 * + - 5 FROM tab2 AS cor0
----
-430
-430
-430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2114
SELECT col1 FROM tab0 AS cor0 WHERE ( CAST( + col1 AS SIGNED ) ) BETWEEN + 31 + - - CAST( - 34 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2114
SELECT col1 FROM tab0 AS cor0 WHERE ( CAST ( + col1 AS INTEGER ) ) BETWEEN + 31 + - - CAST ( - 34 AS INTEGER ) AND NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col1 FROM tab2 cor0 WHERE NOT - 83 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2118
SELECT ALL 61 * + CAST( NULL AS SIGNED ) * + COUNT( * ) + + MAX( + col0 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL 61 * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + MAX ( + col0 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2119
SELECT DISTINCT + CAST( NULL AS SIGNED ) * COUNT( * ) + - + 67 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * COUNT ( * ) + - + 67 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2120
SELECT DISTINCT col0 - + 43 AS col0, 46 DIV + + col2 AS col0 FROM tab0
----
-28
0
44
4
54
0

skipif mysql # not compatible
query II rowsort label-2120
SELECT DISTINCT col0 - + 43 AS col0, 46 / + + col2 AS col0 FROM tab0
----
-28
0
44
4
54
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2121
SELECT DISTINCT - + 7 * + col2 * - col1 FROM tab0 WHERE + + CAST( + col1 AS SIGNED ) IS NOT NULL
----
1470
26649
693

skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT - + 7 * + col2 * - col1 FROM tab0 WHERE + + CAST ( + col1 AS INTEGER ) IS NOT NULL
----
1470
26649
693

query I rowsort
SELECT - col0 - + - 44 AS col0 FROM tab1
----
-41
-47
-7

query I rowsort
SELECT DISTINCT col2 + - col2 * col2 + - col1 AS col1 FROM tab2
----
-1637
-3373
-557

query I rowsort
SELECT + 51 - - 18 FROM tab2
----
69
69
69

query I rowsort
SELECT ALL 4 - + col2 FROM tab1
----
-55
-64
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT ALL MIN( DISTINCT + - 80 ) AS col0 FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-2126
SELECT ALL MIN ( DISTINCT + - 80 ) AS col0 FROM tab1
----
-80

query II rowsort
SELECT ALL + 10 AS col1, 54 - - + col1 AS col0 FROM tab2 AS cor0
----
10
105
10
121
10
131

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2128
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 > NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( col2 ) / - - col1 > ( + col0 + + 75 * + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 * - - 59 AS col1 FROM tab2 AS cor0
----
3009
3953
4543

query II rowsort
SELECT + - col1 AS col2, - col1 AS col2 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT COUNT( * ) col0 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2133
SELECT COUNT ( * ) col0 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
9

query I rowsort
SELECT DISTINCT ( + - 33 ) * - 77 + + + col0 FROM tab2
----
2587
2605
2616

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT COUNT( - 22 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2136
SELECT COUNT ( - 22 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2137
SELECT ALL * FROM tab2 AS cor0 INNER JOIN tab0 AS cor1 ON + ( + + 26 ) + 76 IS NULL WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-2137
SELECT ALL * FROM tab2 AS cor0 INNER JOIN tab0 AS cor1 ON + ( + + 26 ) + 76 IS NULL WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT ALL - COUNT( * ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2139
SELECT + + ( - 0 ) AS col1, ( + MIN( + col2 ) ) AS col0 FROM tab0 AS cor0
----
0
10

skipif mysql # not compatible
query II rowsort label-2139
SELECT + + ( - 0 ) AS col1, ( + MIN ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
0
10

query II rowsort
SELECT ALL col2 * - col2, col1 + + + col1 AS col2 FROM tab2 cor0
----
-1600
154
-3364
134
-529
102

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 IN ( + col0 * 91, - 17 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2142
SELECT ALL + + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL + + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2143
SELECT ALL + ( - + col0 ) DIV + col1 AS col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-2143
SELECT ALL + ( - + col0 ) / + col1 AS col1 FROM tab1 AS cor0
----
-1
-17
-3

query I rowsort
SELECT DISTINCT + col2 * - 53 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 72 / - 71 / - + ( col2 ) * 82 )
----

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 16 NOT IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 33 + + + col2 * + 63 FROM tab0 AS cor0
----
2994
6270
663

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2149
SELECT DISTINCT - CAST( - - 17 AS SIGNED ) FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT - CAST ( - - 17 AS INTEGER ) FROM tab1
----
-17

query I rowsort
SELECT + 59 FROM tab2 WHERE 89 IS NULL
----

query I rowsort
SELECT + col0 FROM tab1 WHERE - col0 = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT DISTINCT - MIN( ALL - col0 ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2152
SELECT DISTINCT - MIN ( ALL - col0 ) AS col2 FROM tab2
----
75

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) >= col1 - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT DISTINCT - MIN( ALL col0 ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2154
SELECT DISTINCT - MIN ( ALL col0 ) FROM tab1 cor0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-2155
SELECT + + col2 + + col2 + 51 DIV - col1 FROM tab0 AS cor0
----
147
18
94

skipif mysql # not compatible
query I rowsort label-2155
SELECT + + col2 + + col2 + 51 / - col1 FROM tab0 AS cor0
----
147
18
94

query II rowsort
SELECT col1 AS col0, - ( col1 ) + - + col2 FROM tab0 cor0 WHERE ( NULL ) < - + col2
----

query I rowsort
SELECT ALL - col2 + - 41 FROM tab2 AS cor0 WHERE ( NULL ) <> - + col0
----

query II rowsort
SELECT - col2 AS col0, 30 AS col1 FROM tab2 AS cor0
----
-23
30
-40
30
-58
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT DISTINCT + - COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2159
SELECT DISTINCT + - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
0

query II rowsort
SELECT + + 56, col1 + - col2 AS col0 FROM tab0 AS cor0
----
56
-98
56
11
56
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2161
SELECT - col1 - - col1 - + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2161
SELECT - col1 - - col1 - + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 22 + + col2 <> 96
----

query II rowsort
SELECT - ( - 75 ) * + + 27 + - - col2 AS col1, - col0 * + col2 FROM tab1 AS cor0
----
2084
-5015
2093
-6188
2121
-4896

query I rowsort
SELECT + - col0 + - col0 + - 96 FROM tab2 AS cor0
----
-188
-224
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT DISTINCT + SUM( - col0 ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2165
SELECT DISTINCT + SUM ( - col0 ) AS col0 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT DISTINCT 47 + + 12 + - + col0 FROM tab0 AS cor0
----
-28
-38
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT DISTINCT + ( + MIN( + ( + col0 ) ) ) + 11 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-2167
SELECT DISTINCT + ( + MIN ( + ( + col0 ) ) ) + 11 FROM tab0 AS cor0
----
26

query I rowsort
SELECT col0 FROM tab0 WHERE + 79 IS NOT NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 16 / - 73 * - col1 < NULL
----

query II rowsort
SELECT ALL - - col1 AS col2, + ( col1 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( + 90 ) FROM tab2
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT ALL SUM( DISTINCT + - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2172
SELECT ALL SUM ( DISTINCT + - col1 ) FROM tab1
----
-66

query I rowsort
SELECT ALL - - col2 * - ( 24 ) FROM tab0 AS cor0
----
-1128
-2376
-240

query II rowsort
SELECT 56, col1 AS col0 FROM tab1 AS cor0
----
56
14
56
47
56
5

query I rowsort
SELECT - col1 * - - 46 AS col2 FROM tab1 AS cor0
----
-2162
-230
-644

query I rowsort
SELECT + 88 * ( - col2 ) FROM tab1 AS cor0
----
-5192
-5984
-8448

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT ALL - MIN( 25 ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-2177
SELECT ALL - MIN ( 25 ) FROM tab2 AS cor0
----
-25

query I rowsort
SELECT + 93 * - col2 AS col2 FROM tab0 AS cor0
----
-4371
-9207
-930

query II rowsort
SELECT + ( - 5 ), + col0 FROM tab0 AS cor0 WHERE NOT - col1 + + col2 * 34 IS NULL
----
-5
15
-5
87
-5
97

query I rowsort
SELECT ALL - + col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 * + col0 / + col2 AND + 99
----

query I rowsort
SELECT 22 * + - ( + col1 ) * col0 + - col1 * 18 AS col0 FROM tab0
----
-2152
-28188
-40572

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT MAX( col0 ) * - + 51 AS col2 FROM tab1
----
-4641

skipif mysql # not compatible
query I rowsort label-2182
SELECT MAX ( col0 ) * - + 51 AS col2 FROM tab1
----
-4641

query I rowsort
SELECT ( + 78 ) FROM tab0
----
78
78
78

query I rowsort
SELECT 17 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT - + col1 + + col0 + + col0 AS col1 FROM tab2 AS cor0
----
41
51
83

query I rowsort
SELECT ALL ( - 62 ) AS col1 FROM tab0 AS cor0 WHERE ( col1 ) IS NOT NULL
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT - COUNT( * ) + + 39 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-2187
SELECT - COUNT ( * ) + + 39 FROM tab1 AS cor0
----
36

query I rowsort
SELECT ALL 45 + + col1 * - + 95 AS col2 FROM tab2 cor0
----
-4800
-6320
-7270

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + + 42 >= 25
----

query I rowsort
SELECT - 78 * - 55 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
4290
4290
4290

onlyif mysql # DIV for integer division: 
query I rowsort label-2191
SELECT ALL + 15 DIV - + ( - ( + col1 ) ) col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2191
SELECT ALL + 15 / - + ( - ( + col1 ) ) col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - 0 + + col0 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT ALL 48 FROM tab1 cor0
----
48
48
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2194
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - + col1 - + - col0 col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2194
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - + col1 - + - col0 col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

onlyif mysql # DIV for integer division: 
query I rowsort label-2196
SELECT + col1 DIV 63 DIV + - col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2196
SELECT + col1 / 63 / + - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col1 * - + 23 FROM tab1
----
-1081
-115
-322

query I rowsort
SELECT DISTINCT + + col0 + + + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
128
150
92

onlyif mysql # DIV for integer division: 
query II rowsort label-2199
SELECT DISTINCT col0 DIV - + col0 col0, + 69 DIV col0 FROM tab1 AS cor0
----
-1
0
-1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2199
SELECT DISTINCT col0 / - + col0 col0, + 69 / col0 FROM tab1 AS cor0
----
-1
0
-1
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 11 + + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT ALL 20 * + MIN( DISTINCT - col1 ) - SUM( ALL col2 ) FROM tab0
----
-1776

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL 20 * + MIN ( DISTINCT - col1 ) - SUM ( ALL col2 ) FROM tab0
----
-1776

query I rowsort
SELECT col0 FROM tab0 WHERE - - col1 * - + col1 * 68 BETWEEN + 50 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col2 >= 65
----
15
81
47
87
21
10

query I rowsort
SELECT ALL col1 - + col0 AS col1 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT ALL + ( - 30 ) AS col0 FROM tab2 AS cor0
----
-30
-30
-30

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2207
SELECT ALL - 6 * + + COUNT( ALL - + col0 ), + MAX( + - 21 ) AS col1 FROM tab0 AS cor0
----
-18
-21

skipif mysql # not compatible
query II rowsort label-2207
SELECT ALL - 6 * + + COUNT ( ALL - + col0 ), + MAX ( + - 21 ) AS col1 FROM tab0 AS cor0
----
-18
-21

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2209
SELECT - - CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2209
SELECT - - CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 25 + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + col2 AS col2, col2 AS col1 FROM tab0 cor0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT - MAX( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2212
SELECT - MAX ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 55 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 73 * - 73 AS col0, - col1 AS col2 FROM tab0
----
-5329
-1
-5329
-21
-5329
-81

query I rowsort
SELECT ( 11 ) AS col1 FROM tab0
----
11
11
11

query II rowsort
SELECT ALL - ( - + col2 ) AS col0, 80 FROM tab1
----
59
80
68
80
96
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2218
SELECT COUNT( * ) FROM tab0 WHERE NOT + col1 * - + 46 IN ( + CAST( NULL AS SIGNED ), 99, 99 * + - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2218
SELECT COUNT ( * ) FROM tab0 WHERE NOT + col1 * - + 46 IN ( + CAST ( NULL AS INTEGER ), 99, 99 * + - col0 )
----
0

query I rowsort
SELECT - col0 * - - 53 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-4611
-5141
-795

query I rowsort
SELECT - 76 * + - 36 FROM tab2 AS cor0
----
2736
2736
2736

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 50 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col1 * + 20 >= - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * + - ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT - + SUM( DISTINCT + + 26 ) FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-2224
SELECT - + SUM ( DISTINCT + + 26 ) FROM tab0 AS cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT + + MIN( ALL - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2225
SELECT + + MIN ( ALL - col0 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT - col0 + + + col1 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT - 43 * + MIN( ALL 55 ) + - 12 col2 FROM tab2
----
-2377

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2227
SELECT - 43 * + MIN ( ALL 55 ) + - 12 col2 FROM tab2
----
-2377

query I rowsort
SELECT DISTINCT ( + 31 ) + + col0 AS col2 FROM tab0
----
118
128
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2229
SELECT DISTINCT 1 / col2 / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2229
SELECT DISTINCT 1 / col2 / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2231
SELECT ALL COUNT( * ), + MAX( DISTINCT - 84 ) + + COUNT( * ) AS col0 FROM tab1
----
3
-81

skipif mysql # not compatible
query II rowsort label-2231
SELECT ALL COUNT ( * ), + MAX ( DISTINCT - 84 ) + + COUNT ( * ) AS col0 FROM tab1
----
3
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2232
SELECT + 69 + COUNT( * ) * - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2232
SELECT + 69 + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col2 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2234
SELECT + - 23 DIV + - col1 AS col1 FROM tab0 AS cor0
----
0
1
23

skipif mysql # not compatible
query I rowsort label-2234
SELECT + - 23 / + - col1 AS col1 FROM tab0 AS cor0
----
0
1
23

query I rowsort
SELECT + ( 26 ) FROM tab2 cor0
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT + COUNT( * ) * + COUNT( ALL - 22 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-2236
SELECT + COUNT ( * ) * + COUNT ( ALL - 22 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
81

query I rowsort
SELECT - 56 AS col2 FROM tab1 WHERE col0 IS NOT NULL
----
-56
-56
-56

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 68 >= + + ( 45 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( + ( - col0 ) ) AS col2 FROM tab2
----
-46
-64
-75

query II rowsort
SELECT col1 * - 76, - col2 AS col2 FROM tab1 AS cor0
----
-1064
-96
-3572
-68
-380
-59

query I rowsort
SELECT + 9 * - - 12 * + 5 FROM tab2 AS cor0
----
540
540
540

query I rowsort
SELECT DISTINCT - col2 * 17 * 10 + col0 FROM tab2 AS cor0
----
-3864
-6736
-9785

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 16 + 10 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT DISTINCT - COUNT( ALL 32 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2244
SELECT DISTINCT - COUNT ( ALL 32 ) FROM tab1
----
-3

query I rowsort
SELECT ALL + col1 + - 48 AS col1 FROM tab1 WHERE NOT ( ( + col0 - + 86 ) < 97 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2246
SELECT ALL 20 DIV + + COUNT( ALL - col2 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2246
SELECT ALL 20 / + + COUNT ( ALL - col2 ) FROM tab1
----
6

query I rowsort
SELECT - 90 AS col0 FROM tab2 cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT DISTINCT ( COUNT( col2 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2248
SELECT DISTINCT ( COUNT ( col2 ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT + COUNT( * ) * 0 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2249
SELECT + COUNT ( * ) * 0 AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - ( col2 ) col2 FROM tab2 AS cor0
----
-117
-125
-74

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 + + col0 <= col1
----
91
47
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 <= ( + 6 * - - 63 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 + col1 + col1 + + 6 FROM tab0 cor0
----
107
215
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 * col1 + - 41 * + + 27 AS col0 FROM tab0
----
-1008
-897
2700

query I rowsort
SELECT ALL + col1 * + ( + col1 ) AS col1 FROM tab2
----
2601
4489
5929

query II rowsort
SELECT col1, 19 * + ( - - 3 ) + - col1 + - col2 FROM tab1
----
14
-53
47
-58
5
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT ALL COUNT( * ) * + + 7 * 8 - COUNT( * ) AS col2 FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-2259
SELECT ALL COUNT ( * ) * + + 7 * 8 - COUNT ( * ) AS col2 FROM tab1
----
165

query I rowsort
SELECT - col1 - - + col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT 12 - - 96 FROM tab0
----
108

query II rowsort
SELECT DISTINCT + col0, - 52 * - 92 * - + col0 FROM tab0 WHERE NOT col2 BETWEEN NULL AND ( + col2 ) + ( + - col0 ) + - col2 / - col0
----
15
-71760
87
-416208
97
-464048

query II rowsort
SELECT ALL col2 AS col0, - col0 * + + col2 AS col2 FROM tab2
----
23
-1058
40
-2560
58
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 col0, 88 + + + 86 + - col1 FROM tab2 AS cor0
----
-46
123
-64
97
-75
107

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT + - COUNT( * ) + + 45 * + MAX( DISTINCT + - col2 ) FROM tab1 AS cor0
----
-2658

skipif mysql # not compatible
query I rowsort label-2265
SELECT + - COUNT ( * ) + + 45 * + MAX ( DISTINCT + - col2 ) FROM tab1 AS cor0
----
-2658

query I rowsort
SELECT ALL + + 12 AS col1 FROM tab2 AS cor0
----
12
12
12

query I rowsort
SELECT col1 + + - 83 + + col0 AS col2 FROM tab0
----
13
15
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2268
SELECT ALL 11 DIV - MAX( DISTINCT col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL 11 / - MAX ( DISTINCT col0 ) FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 61 col1, - 3 * + - 54 * - col1 AS col1 FROM tab2
----
61
-10854
61
-12474
61
-8262

query I rowsort
SELECT 96 FROM tab2 WHERE NOT - - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 89 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
89

query II rowsort
SELECT DISTINCT col2 AS col1, 13 AS col1 FROM tab2
----
23
13
40
13
58
13

query I rowsort
SELECT DISTINCT + 44 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
44

query I rowsort
SELECT DISTINCT - 83 AS col0 FROM tab1, tab2 AS cor0
----
-83

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = ( col0 * 93 )
----

query I rowsort
SELECT ALL - - 95 FROM tab2 AS cor0
----
95
95
95

query I rowsort
SELECT - col0 + - col0 + col0 FROM tab0 AS cor0 WHERE NOT + col0 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * - col1 / + 60 NOT IN ( - + col2, 19 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * - - col0 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2280
SELECT ALL + col0 * 10 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2280
SELECT ALL + col0 * 10 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2281
SELECT DISTINCT + - col1 DIV + + col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT + - col1 / + + col2 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2282
SELECT ALL CAST( col2 AS SIGNED ) * - - col1 FROM tab0 AS cor0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL CAST ( col2 AS INTEGER ) * - - col1 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2283
SELECT ALL 58 DIV - 30 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL 58 / - 30 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 * + 90 * - 34 col2 FROM tab0 AS cor0
----
-100980

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col1, - 83 col0 FROM tab1 AS cor0
----
14
-83
47
-83
5
-83

query I rowsort
SELECT ALL - 0 AS col2 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 78 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + + - col1 / + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - col0 AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2290
SELECT DISTINCT + ( ( 30 ) ) DIV 10 DIV col1 + 80 AS col2 FROM tab0
----
80
83

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT + ( ( 30 ) ) / 10 / col1 + 80 AS col2 FROM tab0
----
80
83

query I rowsort
SELECT + - 12 + + + 46 - + 36 + col1 * - col1 FROM tab0 AS cor0
----
-3
-443
-6563

query I rowsort
SELECT - - 42 + + ( + + 63 ) FROM tab1 AS cor0
----
105
105
105

query I rowsort
SELECT - - col2 + - ( - 75 ) AS col0 FROM tab2 AS cor0
----
115
133
98

query I rowsort
SELECT DISTINCT - - 49 * col1 - + col1 * - col0 + - - col0 FROM tab2 AS cor0
----
4891
8383
8765

onlyif mysql # DIV for integer division: 
query II rowsort label-2295
SELECT ALL - - 92 DIV - 79, 55 col0 FROM tab0 AS cor0
----
-1
55
-1
55
-1
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2295
SELECT ALL - - 92 / - 79, 55 col0 FROM tab0 AS cor0
----
-1
55
-1
55
-1
55

query I rowsort
SELECT col0 / - + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2297
SELECT ALL + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col0 * + - 63 FROM tab2
----
2898
4032
4725

query I rowsort
SELECT DISTINCT 51 + - col2 * + ( + 59 ) * - col2 + - col1 AS col2 FROM tab2
----
198460
31211
94374

query I rowsort
SELECT DISTINCT 36 * + - col2 FROM tab2
----
-1440
-2088
-828

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= col0 + 35 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT - - ( - - COUNT( ALL col0 ) ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2302
SELECT - - ( - - COUNT ( ALL col0 ) ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT col2 + + + ( + - col2 ) FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 > col2 * + - ( + col0 ) * 73 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2305
SELECT ALL + col2 + col0 DIV + 95 FROM tab0 AS cor0
----
10
100
47

skipif mysql # not compatible
query I rowsort label-2305
SELECT ALL + col2 + col0 / + 95 FROM tab0 AS cor0
----
10
100
47

query II rowsort
SELECT DISTINCT - + 48, - 78 AS col0 FROM tab0 AS cor0
----
-48
-78

query I rowsort
SELECT DISTINCT - + col2 + - 33 AS col2 FROM tab2 AS cor0
----
-56
-73
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-2308
SELECT + + 29 + + - col2 DIV + 92 col2, - 18 DIV col0 AS col1 FROM tab2 AS cor0
----
29
0
29
0
29
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2308
SELECT + + 29 + + - col2 / + 92 col2, - 18 / col0 AS col1 FROM tab2 AS cor0
----
29
0
29
0
29
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT DISTINCT + - COUNT( * ) + - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT + - COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 + + + col2 col1 FROM tab1 AS cor0
----
31
40
68

onlyif mysql # DIV for integer division: 
query II rowsort label-2311
SELECT - ( - col0 ) + col1 DIV + col2, col0 col2 FROM tab0 AS cor0
----
16
15
89
87
97
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2311
SELECT - ( - col0 ) + col1 / + col2, col0 col2 FROM tab0 AS cor0
----
16
15
89
87
97
97

query I rowsort
SELECT col2 + + 18 FROM tab1
----
114
77
86

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2314
SELECT DISTINCT col2 - - + 68 DIV - + 56 FROM tab0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-2314
SELECT DISTINCT col2 - - + 68 / - + 56 FROM tab0
----
46
9
98

query I rowsort
SELECT ALL col1 + + - col2 AS col1 FROM tab0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT DISTINCT + MAX( - 44 ) * - COUNT( * ) - - 64 AS col1 FROM tab2
----
196

skipif mysql # not compatible
query I rowsort label-2316
SELECT DISTINCT + MAX ( - 44 ) * - COUNT ( * ) - - 64 AS col1 FROM tab2
----
196

query I rowsort
SELECT 14 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 * + col0 * + col0 + + + col1 col0 FROM tab0 AS cor0
----
-2169
-75669
-94089

query I rowsort
SELECT - col1 * + col2 + 93 + + col1 * + col2 AS col1 FROM tab0 AS cor0
----
93
93
93

query II rowsort
SELECT DISTINCT + 65 * + col2, col2 AS col1 FROM tab0 AS cor0
----
3055
47
6435
99
650
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2321
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2321
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 96 * + col0 AS col2 FROM tab2
----
4416
6144
7200

query II rowsort
SELECT DISTINCT col1, col1 AS col2 FROM tab0 WHERE + - 96 + + col2 IS NOT NULL
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT 35 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
35

query I rowsort
SELECT col1 * + 9 FROM tab2
----
459
603
693

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 cor0 WHERE + ( - col2 ) IS NOT NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, + col1 AS col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT DISTINCT - 80 * - + 87 / col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT ALL - - COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2329
SELECT ALL - - COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col1 + + 12 + col1 * - - 67 + + col2 + col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * + - 56 AS col2 FROM tab0 AS cor0
----
-1176
-4536
-56

query I rowsort
SELECT ALL + col2 * + - col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2333
SELECT - ( CAST( NULL AS SIGNED ) ) * + 36 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2333
SELECT - ( CAST ( NULL AS INTEGER ) ) * + 36 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT DISTINCT MAX( - + col2 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT MAX ( - + col2 ) AS col1 FROM tab0 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2335
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - + CAST( - + 27 AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-2335
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - + CAST ( - + 27 AS INTEGER ) IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2336
SELECT DISTINCT CAST( + col2 AS SIGNED ) DIV + col0, col0 - - - col1 AS col1 FROM tab1 AS cor0
----
0
44
0
80
1
37

skipif mysql # not compatible
query II rowsort label-2336
SELECT DISTINCT CAST ( + col2 AS INTEGER ) / + col0, col0 - - - col1 AS col1 FROM tab1 AS cor0
----
0
44
0
80
1
37

query II rowsort
SELECT + 77 AS col1, - 86 AS col0 FROM tab1
----
77
-86
77
-86
77
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2338
SELECT COUNT( * ), CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2338
SELECT COUNT ( * ), CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
3
NULL

query II rowsort
SELECT DISTINCT + 76 AS col0, col1 FROM tab1
----
76
14
76
47
76
5

query I rowsort
SELECT DISTINCT - ( - - col1 ) * + - col1 AS col0 FROM tab0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT DISTINCT MIN( 21 ) AS col0 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-2341
SELECT DISTINCT MIN ( 21 ) AS col0 FROM tab1
----
21

query I rowsort
SELECT col0 * + 83 FROM tab1
----
4233
7055
7553

query I rowsort
SELECT ALL - col1 * 76 AS col2 FROM tab0
----
-1596
-6156
-76

query I rowsort
SELECT ALL - col0 * 41 AS col1 FROM tab2
----
-1886
-2624
-3075

query II rowsort
SELECT DISTINCT + ( + - col2 ) AS col1, col0 AS col1 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query I rowsort
SELECT ( 90 ) AS col0 FROM tab1 cor0
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2347
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT DISTINCT - col2 + + - 95 AS col1 FROM tab2 AS cor0
----
-118
-135
-153

query I rowsort
SELECT ALL - + 65 AS col0 FROM tab0 AS cor0
----
-65
-65
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab1 AS cor0 WHERE NULL IN ( + 17 * + col2, 44 + col2, + col0 + + ( - - 96 ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <> ( NULL )
----

query I rowsort
SELECT DISTINCT + - col2 + + + col1 + col1 * + - 87 FROM tab0 cor0
----
-1816
-185
-7013

query III rowsort
SELECT * FROM tab0 WHERE - col2 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 42 - - col0 FROM tab1
----
127
133
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 - col1 col1 FROM tab1
----
-28
14
5

query I rowsort
SELECT 49 - - + col0 FROM tab2
----
113
124
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT + SUM( DISTINCT - - col1 ) - + 92 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-2357
SELECT + SUM ( DISTINCT - - col1 ) - + 92 FROM tab0
----
11

query I rowsort
SELECT + ( col0 ) - + 78 FROM tab1
----
-27
13
7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 24 * 66 * - col0 IS NOT NULL AND NOT NULL NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT + 86 - + SUM( + + col1 ) AS col1 FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-2360
SELECT + 86 - + SUM ( + + col1 ) AS col1 FROM tab0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2361
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE - col0 = + col0 - col1 + col0 AND NULL NOT BETWEEN col0 + col1 AND ( ( - CAST( + col1 AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE - col0 = + col0 - col1 + col0 AND NULL NOT BETWEEN col0 + col1 AND ( ( - CAST ( + col1 AS INTEGER ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 - ( + + ( + col1 ) ) col2 FROM tab2
----
2295
4851
4958

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----

query I rowsort
SELECT 88 + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( ( 82 ) IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col1, col2 * + + col2 * + + col2 AS col2 FROM tab2 cor0
----
51
12167
67
195112
77
64000

query II rowsort
SELECT DISTINCT - col0, col2 - + 3 AS col1 FROM tab0 AS cor0
----
-15
44
-87
7
-97
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = + col2 + + ( - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT ALL + 17 * + ( + MAX( + col0 ) ) AS col0 FROM tab1 AS cor0
----
1547

skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL + 17 * + ( + MAX ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
1547

query I rowsort
SELECT + col0 * + col2 + + col1 - ( - col1 ) FROM tab1 AS cor0
----
4924
5025
6282

query I rowsort
SELECT DISTINCT + 46 + col1 FROM tab0 AS cor0 WHERE - col1 * + 99 <> NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 36 * + col1 AND + col0 * - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2372
SELECT - 23 * + MAX( DISTINCT + ( CAST( NULL AS SIGNED ) ) ) - COUNT( * ) + 35 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2372
SELECT - 23 * + MAX ( DISTINCT + ( CAST ( NULL AS INTEGER ) ) ) - COUNT ( * ) + 35 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - col0 * + + col0 AS col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT ALL col1 * + col2 + + col2 AS col0 FROM tab2 AS cor0
----
1196
3120
3944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2375
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2375
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 * - + 88 col1 FROM tab0
----
-5104
-5104
-5104

query I rowsort
SELECT + 99 * col0 + - + 21 FROM tab2 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT col0 * col0 * col0 AS col0 FROM tab2
----
262144
421875
97336

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT DISTINCT - + 47 + + + COUNT( * ) FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-2380
SELECT DISTINCT - + 47 + + + COUNT ( * ) FROM tab0 AS cor0
----
-44

query I rowsort
SELECT DISTINCT 98 * - col2 AS col0 FROM tab2
----
-2254
-3920
-5684

onlyif mysql # DIV for integer division: 
query I rowsort label-2382
SELECT ALL col0 DIV + 99 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL col0 / + 99 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + + ( col0 ) + - 86 + - + col2 - + + col0 * col2 * 65 AS col1 FROM tab0 cor0
----
-45943
-56559
-624283

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2384
SELECT - col2 + - col2 + + CAST( - + CAST( col1 AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
-123
-183
-206

skipif mysql # not compatible
query I rowsort label-2384
SELECT - col2 + - col2 + + CAST ( - + CAST ( col1 AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
-123
-183
-206

query I rowsort
SELECT + + 69 * - col0 + - - col0 FROM tab1 AS cor0
----
-3468
-5780
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab2 AS cor0 WHERE ( NOT - ( ( - 26 ) ) < NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2387
SELECT ALL + COUNT( * ) DIV + 22 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL + COUNT ( * ) / + 22 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2388
SELECT + CAST( NULL AS DECIMAL ) + - ( - + ( CAST( - col1 AS DECIMAL ) ) ) * + + 40, + 8 AS col2 FROM tab2 AS cor0
----
NULL
8
NULL
8
NULL
8

skipif mysql # not compatible
query II rowsort label-2388
SELECT + CAST ( NULL AS REAL ) + - ( - + ( CAST ( - col1 AS REAL ) ) ) * + + 40, + 8 AS col2 FROM tab2 AS cor0
----
NULL
8
NULL
8
NULL
8

query II rowsort
SELECT DISTINCT 25 AS col2, + 61 FROM tab2 AS cor0
----
25
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2390
SELECT ALL + - CAST( NULL AS SIGNED ) + - 29 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL + - CAST ( NULL AS INTEGER ) + - 29 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 15 - 45 * + col1 FROM tab1
----
-210
-2100
-615

query I rowsort
SELECT - col0 + - col2 FROM tab0 WHERE NOT 90 > col0
----
-196

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + + 8 >= NULL
----

query I rowsort
SELECT ( + col2 ) * col2 AS col2 FROM tab1
----
3481
4624
9216

onlyif mysql # DIV for integer division: 
query I rowsort label-2395
SELECT DISTINCT 62 DIV + + col2 AS col1 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-2395
SELECT DISTINCT 62 / + + col2 AS col1 FROM tab0
----
0
1
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + 34 * 50 AS col0, col2 col1 FROM tab2
----
108800
40
127500
58
78200
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2397
SELECT DISTINCT - CAST( + 83 AS SIGNED ) AS col2, - 17 FROM tab2 AS cor0
----
-83
-17

skipif mysql # not compatible
query II rowsort label-2397
SELECT DISTINCT - CAST ( + 83 AS INTEGER ) AS col2, - 17 FROM tab2 AS cor0
----
-83
-17

query I rowsort
SELECT DISTINCT + + col1 / + col1 + + col2 + col1 FROM tab2 AS cor0 WHERE NOT - 36 IS NOT NULL
----

query I rowsort
SELECT ALL - + 20 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT ALL COUNT( DISTINCT + 54 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2400
SELECT ALL COUNT ( DISTINCT + 54 ) AS col1 FROM tab2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2401
SELECT + CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab0 WHERE NOT - col1 NOT BETWEEN NULL AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2401
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab0 WHERE NOT - col1 NOT BETWEEN NULL AND + col0
----
NULL

query I rowsort
SELECT DISTINCT + 33 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
33

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 6 > + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 + + col0 * + 65 * 11 FROM tab0 AS cor0
----
10772
62215
69454

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2405
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE NOT col1 / - - ( - 27 ) IS NOT NULL
----

query I rowsort
SELECT - 85 * col1 AS col2 FROM tab0 AS cor0
----
-1785
-6885
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT DISTINCT - - COUNT( * ) + + 87 AS col1 FROM tab0 WHERE NULL NOT BETWEEN + col2 + + + ( - col2 ) * - col0 AND col1
----
87

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT - - COUNT ( * ) + + 87 AS col1 FROM tab0 WHERE NULL NOT BETWEEN + col2 + + + ( - col2 ) * - col0 AND col1
----
87

query I rowsort
SELECT DISTINCT - col2 * - - col2 + - 61 + - col2 AS col0 FROM tab2
----
-1701
-3483
-613

query I rowsort
SELECT ALL 29 * - + col2 + + col0 AS col1 FROM tab2
----
-1096
-1607
-621

query I rowsort
SELECT ALL col2 * - col0 * 7 AS col0 FROM tab1
----
-34272
-35105
-43316

query I rowsort
SELECT + col1 * - 7 * col0 AS col0 FROM tab0
----
-12789
-679
-8505

query I rowsort
SELECT DISTINCT ( + 95 ) * + col0 FROM tab1
----
4845
8075
8645

query I rowsort
SELECT - col2 + 51 FROM tab1 WHERE NULL <> NULL
----

query I rowsort
SELECT + AVG ( 6 ) FROM tab2 WHERE NULL NOT IN ( - - col2, col2, - col0, - col1 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2416
SELECT col1 DIV - + col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-2416
SELECT col1 / - + col0 FROM tab0
----
-5
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT DISTINCT + 48 * - 51 * + + ( - - COUNT( * ) ) FROM tab2
----
-7344

skipif mysql # not compatible
query I rowsort label-2417
SELECT DISTINCT + 48 * - 51 * + + ( - - COUNT ( * ) ) FROM tab2
----
-7344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2418
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2418
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + 1 * 72 AS col1 FROM tab2
----
72
72
72

onlyif mysql # aggregate syntax: 
query II rowsort label-2420
SELECT + ( + - COUNT( * ) ) + - 74 col2, - AVG ( - 85 ) AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
-74
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2420
SELECT + ( + - COUNT ( * ) ) + - 74 col2, - AVG ( - 85 ) AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
-74
NULL

query I rowsort
SELECT + col2 AS col0 FROM tab2 cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT ALL 8 + + COUNT( * ) AS col2 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL 8 + + COUNT ( * ) AS col2 FROM tab0
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 * + 29 * - col1 col0 FROM tab0
----
-110356
-2772
-6080

query I rowsort
SELECT ALL - + 7 AS col0 FROM tab1 AS cor0
----
-7
-7
-7

query I rowsort
SELECT + col1 - + col1 - - col1 AS col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT + SUM( + 59 ) - + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-2426
SELECT + SUM ( + 59 ) - + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2427
SELECT ALL + CAST( NULL AS SIGNED ), - 16 * + col0 * - + col2 AS col2 FROM tab0 AS cor0
----
NULL
11280
NULL
13920
NULL
153648

skipif mysql # not compatible
query II rowsort label-2427
SELECT ALL + CAST ( NULL AS INTEGER ), - 16 * + col0 * - + col2 AS col2 FROM tab0 AS cor0
----
NULL
11280
NULL
13920
NULL
153648

query I rowsort
SELECT DISTINCT + + 25 * - col2 FROM tab2 cor0
----
-1000
-1450
-575

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT DISTINCT + + 26 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2429
SELECT DISTINCT + + 26 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 - + col1 col2 FROM tab0 AS cor0
----
-118
-178
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-2431
SELECT ALL - 77 DIV + - col0 col2 FROM tab0
----
0
0
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2431
SELECT ALL - 77 / + - col0 col2 FROM tab0
----
0
0
5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT + ( 18 ) IS NULL )
----

query II rowsort
SELECT col2 AS col0, + 51 FROM tab0
----
10
51
47
51
99
51

onlyif mysql # aggregate syntax: 
query II rowsort label-2434
SELECT - 18, + ( + MIN( - col1 ) ) AS col0 FROM tab2
----
-18
-77

skipif mysql # not compatible
query II rowsort label-2434
SELECT - 18, + ( + MIN ( - col1 ) ) AS col0 FROM tab2
----
-18
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2435
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, col0 AS col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-2435
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, col0 AS col2 FROM tab0
----
NULL
15
NULL
87
NULL
97

query II rowsort
SELECT DISTINCT + ( + ( - col2 ) ) * 45 AS col0, 19 AS col2 FROM tab0
----
-2115
19
-4455
19
-450
19

query I rowsort
SELECT ALL col0 * - - col0 AS col2 FROM tab2
----
2116
4096
5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 83 col0, + 37 col0 FROM tab1
----
-83
37
-83
37
-83
37

query II rowsort
SELECT 41 AS col2, - ( - ( - col2 ) ) + + + 32 AS col0 FROM tab0
----
41
-15
41
-67
41
22

query I rowsort
SELECT col0 * - 18 FROM tab1 AS cor0
----
-1530
-1638
-918

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT COUNT( * ) * COUNT( ALL + col1 ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2441
SELECT COUNT ( * ) * COUNT ( ALL + col1 ) FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2442
SELECT - COUNT( * ) DIV CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2442
SELECT - COUNT ( * ) / CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
1

query I rowsort
SELECT - + 55 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT + 40 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT ALL - + MIN( ALL + + col2 ) col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2445
SELECT ALL - + MIN ( ALL + + col2 ) col0 FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2446
SELECT + col1 * col1 DIV + + CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-113
-148
-77

skipif mysql # not compatible
query I rowsort label-2446
SELECT + col1 * col1 / + + CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-113
-148
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 7 * - col2 col1, col0 AS col1 FROM tab1 AS cor0
----
-413
85
-476
91
-672
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2448
SELECT - - col0 AS col1 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) + - 20 + - col1 NOT BETWEEN - 16 / 4 AND + - 29
----

skipif mysql # not compatible
query I rowsort label-2448
SELECT - - col0 AS col1 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + - 20 + - col1 NOT BETWEEN - 16 / 4 AND + - 29
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + - + 66 + - col1 col0, + col2 FROM tab2
----
-58
58
-71
23
-79
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT DISTINCT ( - MIN( - col1 ) ) * - SUM( DISTINCT - col2 ) * - - COUNT( * ) FROM tab0
----
37908

skipif mysql # not compatible
query I rowsort label-2450
SELECT DISTINCT ( - MIN ( - col1 ) ) * - SUM ( DISTINCT - col2 ) * - - COUNT ( * ) FROM tab0
----
37908

query I rowsort
SELECT + - 46 AS col2 FROM tab0 WHERE 24 IS NOT NULL
----
-46
-46
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-2452
SELECT 40 + + 12 DIV - 9 AS col2 FROM tab0
----
39
39
39

skipif mysql # not compatible
query I rowsort label-2452
SELECT 40 + + 12 / - 9 AS col2 FROM tab0
----
39
39
39

query I rowsort
SELECT ALL 19 * + - 78 AS col0 FROM tab2
----
-1482
-1482
-1482

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2454
SELECT ALL * FROM tab1 WHERE NOT + col2 NOT BETWEEN + CAST( - 77 AS SIGNED ) * + col0 - + 79 + - + 27 / - 49 * + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2454
SELECT ALL * FROM tab1 WHERE NOT + col2 NOT BETWEEN + CAST ( - 77 AS INTEGER ) * + col0 - + 79 + - + 27 / - 49 * + col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2455
SELECT ALL + AVG ( + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1, ( - COUNT( * ) ) FROM tab0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-2455
SELECT ALL + AVG ( + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1, ( - COUNT ( * ) ) FROM tab0
----
NULL
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 94 col2 FROM tab2 AS cor0
----
-94
-94
-94

query I rowsort
SELECT - 23 * + 17 AS col0 FROM tab0 AS cor0
----
-391
-391
-391

query I rowsort
SELECT DISTINCT + col1 + 95 * - 92 * - + col0 FROM tab0 AS cor0
----
131181
760401
847781

query III rowsort
SELECT ALL * FROM tab0 WHERE + 94 + + - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2460
SELECT + - 74 DIV - col0 FROM tab2 WHERE 77 IS NOT NULL
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2460
SELECT + - 74 / - col0 FROM tab2 WHERE 77 IS NOT NULL
----
0
1
1

query I rowsort
SELECT col2 + col0 + col2 * - + col1 * + col1 AS col2 FROM tab0
----
-308305
-4313
97

query I rowsort
SELECT ALL 32 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> col2 * + 53 * - + 13 * - col1 * 50 + - - col2 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT MAX( col0 ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2463
SELECT MAX ( col0 ) AS col1 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT ALL - 76 * - - COUNT( * ) FROM tab0 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-2464
SELECT ALL - 76 * - - COUNT ( * ) FROM tab0 AS cor0
----
-228

query I rowsort
SELECT DISTINCT + 81 * col1 AS col2 FROM tab2
----
4131
5427
6237

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab1 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2466
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab1 WHERE - col2 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN col1 AND + 28
----

query I rowsort
SELECT 11 * - col0 AS col1 FROM tab0
----
-1067
-165
-957

query I rowsort
SELECT DISTINCT - - 14 + + col1 AS col0 FROM tab0 WHERE + - ( col1 ) NOT BETWEEN + - 94 * + - col1 AND + - col1
----
15
35
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT DISTINCT COUNT( - ( + - 78 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT COUNT ( - ( + - 78 ) ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2471
SELECT ALL + col1 FROM tab2 WHERE col1 * + 6 NOT IN ( - col1, - col2 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL + col1 FROM tab2 WHERE col1 * + 6 NOT IN ( - col1, - col2 * CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL 11 * + col0 AS col0 FROM tab2
----
506
704
825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2473
SELECT + + CAST( ( + - col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2473
SELECT + + CAST ( ( + - col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - ( - 18 ) ) + col0 * - 85 col2 FROM tab1 AS cor0 WHERE - 37 + + 39 >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT DISTINCT - - 99 * + COUNT( * ) AS col0 FROM tab2 cor0
----
297

skipif mysql # not compatible
query I rowsort label-2475
SELECT DISTINCT - - 99 * + COUNT ( * ) AS col0 FROM tab2 cor0
----
297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 38 col0, col1 AS col2 FROM tab1
----
-38
14
-38
47
-38
5

query I rowsort
SELECT ALL - 97 AS col0 FROM tab2
----
-97
-97
-97

query I rowsort
SELECT DISTINCT + + 45 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
45

query I rowsort
SELECT col2 + - 22 FROM tab1
----
37
46
74

query I rowsort
SELECT - col0 + + - col0 FROM tab2
----
-128
-150
-92

query I rowsort
SELECT ALL + + 92 * + col2 FROM tab2 AS cor0
----
2116
3680
5336

query I rowsort
SELECT ALL - - 22 * + 19 - + - 96 + - col1 AS col0 FROM tab1 AS cor0
----
467
500
509

query II rowsort
SELECT DISTINCT - col0, - ( + 56 ) AS col0 FROM tab2 AS cor0
----
-46
-56
-64
-56
-75
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT + 74 + + COUNT( * ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-2484
SELECT + 74 + + COUNT ( * ) FROM tab2 cor0
----
77

query I rowsort
SELECT DISTINCT - + 73 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + - col0 * - 92, - col0 * col2, - - col0 * col0, - 82, col0 * + + 44, + col0 )
----

query II rowsort
SELECT DISTINCT col0 AS col1, col0 AS col2 FROM tab2 AS cor0 WHERE + col1 <> col1
----

query I rowsort
SELECT DISTINCT col2 + - 12 FROM tab0 AS cor0
----
-2
35
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2488
SELECT ALL + CAST( NULL AS SIGNED ) + + - col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2488
SELECT ALL + CAST ( NULL AS INTEGER ) + + - col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 9 * + 68 + + + col2 AS col1 FROM tab1
----
-516
-544
-553

query I rowsort
SELECT ALL + col2 * 70 AS col0 FROM tab1 WHERE col2 + + col1 NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT 92 * + col2 AS col2 FROM tab0
----
4324
9108
920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 col0 FROM tab0
----
22

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE ( 20 * + + 99 ) < NULL
----

query I rowsort
SELECT - 27 - + col2 * + - col2 AS col1 FROM tab0
----
2182
73
9774

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT DISTINCT SUM( 93 ) FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT SUM ( 93 ) FROM tab0
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2496
SELECT + CAST( NULL AS SIGNED ) + - 18 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2496
SELECT + CAST ( NULL AS INTEGER ) + - 18 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 98 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * + + col0 AS col1 FROM tab0 AS cor0
----
705
870
9603

query II rowsort
SELECT ALL - - col1 * + col0 * 56, col2 FROM tab0 AS cor0
----
102312
10
5432
99
68040
47

query I rowsort
SELECT - 5 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-5
-5
-5

query I rowsort
SELECT - + col0 FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT IN ( + 33, col2, - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT DISTINCT - COUNT( * ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2502
SELECT DISTINCT - COUNT ( * ) col2 FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 BETWEEN - - col1 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT + SUM( ALL col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-2504
SELECT + SUM ( ALL col2 ) FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT ALL - MAX( ALL 25 ) FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL - MAX ( ALL 25 ) FROM tab2
----
-25

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 0 + + col1 ) BETWEEN ( 90 ) + + 92 AND NULL
----

query I rowsort
SELECT ALL - 5 * col1 AS col0 FROM tab0
----
-105
-405
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2508
SELECT ALL - + col0 * - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2508
SELECT ALL - + col0 * - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2509
SELECT - + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2509
SELECT - + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col1 * 33 * + col2 FROM tab1
----
105468
44352
9735

onlyif mysql # DIV for integer division: 
query I rowsort label-2511
SELECT ALL col1 DIV - - col2 + + - col1 FROM tab0 AS cor0
----
-1
-19
-80

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL col1 / - - col2 + + - col1 FROM tab0 AS cor0
----
-1
-19
-80

query I rowsort
SELECT DISTINCT + col0 * col0 + + + col1 AS col2 FROM tab0 AS cor0
----
306
7590
9410

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 < + 71
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT + MAX( 60 ) col2 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2514
SELECT + MAX ( 60 ) col2 FROM tab1 AS cor0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2515
SELECT + col2 * col0 * + ( - - 29 ) + + CAST( NULL AS SIGNED ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2515
SELECT + col2 * col0 * + ( - - 29 ) + + CAST ( NULL AS INTEGER ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + 5 FROM tab0 AS cor0
----
102
20
92

query I rowsort
SELECT + - ( - 29 ) + + col0 FROM tab2 cor0
----
104
75
93

query I rowsort
SELECT ALL + 10 + + col2 AS col0 FROM tab2 AS cor0
----
33
50
68

query I rowsort
SELECT + 72 + + 69 FROM tab2
----
141
141
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 + + col1 col0 FROM tab0
----
100
231
3888

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 29 * - col0 / - 80 * - - col1 + col2 * + col1 - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col1 AS col1, 17 AS col2 FROM tab2
----
-51
17
-67
17
-77
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2523
SELECT ALL - + 70 DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL - + 70 / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-23

query I rowsort
SELECT ALL + 9 * + col2 FROM tab2 AS cor0
----
207
360
522

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2525
SELECT DISTINCT + CAST( + - col1 AS SIGNED ) * + + ( 18 ) * - col2 AS col0 FROM tab1 cor0
----
24192
5310
57528

skipif mysql # not compatible
query I rowsort label-2525
SELECT DISTINCT + CAST ( + - col1 AS INTEGER ) * + + ( 18 ) * - col2 AS col0 FROM tab1 cor0
----
24192
5310
57528

query II rowsort
SELECT - 59 * - + col1 AS col1, - col2 + col2 FROM tab1 AS cor0
----
2773
0
295
0
826
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT DISTINCT MIN( col0 ) col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2527
SELECT DISTINCT MIN ( col0 ) col2 FROM tab0 AS cor0
----
15

query I rowsort
SELECT 94 - - + 82 + + 53 * - col0 * - + col2 FROM tab1 AS cor0
----
259664
265971
328140

query I rowsort
SELECT - col2 - + + col0 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT ALL COUNT( ALL - 70 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL COUNT ( ALL - 70 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT + SUM( - col2 ) * 34 FROM tab1 AS cor0
----
-7582

skipif mysql # not compatible
query I rowsort label-2531
SELECT + SUM ( - col2 ) * 34 FROM tab1 AS cor0
----
-7582

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + ( col0 ), col0 + + col0 col2 FROM tab2 AS cor0
----
-46
92
-64
128
-75
150

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 59 - - + col1 = - 95
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ( - 85 ) AS col2, + col2 AS col0 FROM tab1 AS cor0
----
-85
59
-85
68
-85
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT DISTINCT MIN( ALL - - 84 ) * MAX( ALL 95 ) AS col0 FROM tab1 AS cor0
----
7980

skipif mysql # not compatible
query I rowsort label-2535
SELECT DISTINCT MIN ( ALL - - 84 ) * MAX ( ALL 95 ) AS col0 FROM tab1 AS cor0
----
7980

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT COUNT( * ) FROM tab2 cor0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2536
SELECT COUNT ( * ) FROM tab2 cor0 WHERE NOT - col1 IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 38 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2539
SELECT DISTINCT CAST( + - col1 AS SIGNED ) AS col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2539
SELECT DISTINCT CAST ( + - col1 AS INTEGER ) AS col1 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT DISTINCT + SUM( - col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-2540
SELECT DISTINCT + SUM ( - col2 ) FROM tab1
----
-223

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( ( + col0 >= NULL ) ) )
----

query II rowsort
SELECT col0 AS col2, - 22 AS col0 FROM tab1
----
51
-22
85
-22
91
-22

query II rowsort
SELECT ALL col1, col1 AS col1 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2544
SELECT - ( MAX( - + 55 ) ) DIV + + COUNT( * ) AS col2 FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-2544
SELECT - ( MAX ( - + 55 ) ) / + + COUNT ( * ) AS col2 FROM tab0 cor0
----
18

query I rowsort
SELECT ALL - 51 AS col2 FROM tab1 AS cor0
----
-51
-51
-51

query I rowsort
SELECT DISTINCT + 82 * col1 FROM tab0
----
1722
6642
82

query I rowsort
SELECT DISTINCT - ( col1 ) - - col0 AS col1 FROM tab0
----
-66
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 87 col2 FROM tab1
----
5133
5916
8352

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col0 ) IN ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > col0
----

query I rowsort
SELECT ALL + col2 + col2 AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT - COUNT( * ) * - 92 FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-2552
SELECT - COUNT ( * ) * - 92 FROM tab1
----
276

query I rowsort
SELECT ALL ( 19 ) AS col2 FROM tab0
----
19
19
19

query I rowsort
SELECT col1 * 97 FROM tab0 WHERE col1 IS NOT NULL
----
2037
7857
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT ALL - COUNT( ALL col2 ) AS col0 FROM tab0 WHERE ( NULL ) BETWEEN NULL AND - col0 + 72 / - col0
----
0

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL - COUNT ( ALL col2 ) AS col0 FROM tab0 WHERE ( NULL ) BETWEEN NULL AND - col0 + 72 / - col0
----
0

query I rowsort
SELECT DISTINCT + col2 + col2 * 13 FROM tab2
----
322
560
812

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2557
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE 90 NOT BETWEEN ( 37 ) AND - col1 + + col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE 90 NOT BETWEEN ( 37 ) AND - col1 + + col2
----
NULL
NULL
NULL

query I rowsort
SELECT 56 * 78 FROM tab1
----
4368
4368
4368

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 12 >= + col2 * - col0 + ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT NULL < 46 + + col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 57 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT ALL - COUNT( * ) * + 6 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL - COUNT ( * ) * + 6 FROM tab0
----
-18

query III rowsort
SELECT * FROM tab2 WHERE - col2 BETWEEN + 44 * col0 + 61 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2565
SELECT ALL + COUNT( * ) DIV - 75 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2565
SELECT ALL + COUNT ( * ) / - 75 AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + col0 * col2 FROM tab1 WHERE - 43 + - col1 * - 20 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2567
SELECT MAX( 72 ) DIV - 88 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2567
SELECT MAX ( 72 ) / - 88 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT - MAX( ALL col1 ) AS col2 FROM tab2 WHERE NOT col1 IS NULL
----
-77

skipif mysql # not compatible
query I rowsort label-2568
SELECT - MAX ( ALL col1 ) AS col2 FROM tab2 WHERE NOT col1 IS NULL
----
-77

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 * + col1 + col1 NOT IN ( 94 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + + 12 AS col0 FROM tab1 AS cor0
----
103
63
97

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 - col0 = - col0 * 72
----
46
64
75

query I rowsort
SELECT col0 + 28 * col2 FROM tab1 AS cor0 WHERE col2 + + 6 NOT IN ( - col1 - + col0 / col1 )
----
1737
1995
2739

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT SUM( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-2574
SELECT SUM ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT ALL - ( COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL - ( COUNT ( * ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT MAX( + 77 ) * 99 AS col0 FROM tab0 AS cor0
----
7623

skipif mysql # not compatible
query I rowsort label-2576
SELECT MAX ( + 77 ) * 99 AS col0 FROM tab0 AS cor0
----
7623

query I rowsort
SELECT DISTINCT - col0 * ( - col2 ) AS col1 FROM tab1 AS cor0
----
4896
5015
6188

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 37 + col0 > - 71
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 )
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2580
SELECT ALL SUM( ALL + ( col1 ) ) DIV - COUNT( * ) FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-2580
SELECT ALL SUM ( ALL + ( col1 ) ) / - COUNT ( * ) FROM tab1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-2581
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0
----
9

query I rowsort
SELECT 76 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT - 82 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT DISTINCT 52 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
52

query I rowsort
SELECT ALL + 34 FROM tab2 AS cor0 WHERE NOT 58 NOT BETWEEN NULL AND col0 * 64
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * + col0 FROM tab1 AS cor0 WHERE NOT ( col1 + 10 * + ( - col2 - - col2 ) ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) NOT IN ( - 10 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT + COUNT( col0 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2589
SELECT + COUNT ( col0 ) AS col0 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2590
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 99 ) * CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-2590
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 99 ) * CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT - COUNT( * ) * 81 FROM tab1 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-2591
SELECT - COUNT ( * ) * 81 FROM tab1 AS cor0
----
-243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2592
SELECT COUNT( - col0 ) * + MAX( - col0 + CAST( + col1 AS SIGNED ) ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-2592
SELECT COUNT ( - col0 ) * + MAX ( - col0 + CAST ( + col1 AS INTEGER ) ) FROM tab2
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-2593
SELECT + 59 DIV col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2593
SELECT + 59 / col0 FROM tab0
----
0
0
3

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE NOT ( + 19 + + ( col1 ) * col1 ) IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2595
SELECT col1 * - CAST( - 93 AS SIGNED ) FROM tab2
----
4743
6231
7161

skipif mysql # not compatible
query I rowsort label-2595
SELECT col1 * - CAST ( - 93 AS INTEGER ) FROM tab2
----
4743
6231
7161

query I rowsort
SELECT ALL + col1 * - col1 FROM tab1 WHERE NULL >= - col2 + - col1
----

query I rowsort
SELECT 16 * + - col0 * 13 AS col0 FROM tab2
----
-13312
-15600
-9568

query I rowsort
SELECT ALL col0 * 86 AS col1 FROM tab1 WHERE NOT NULL IN ( col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 BETWEEN NULL AND ( + col2 )
----

query I rowsort
SELECT ALL + AVG ( DISTINCT + 64 ) FROM tab2 WHERE NOT col0 * - col0 NOT BETWEEN + 63 + - col0 AND NULL
----
NULL

query I rowsort
SELECT DISTINCT ( + col1 ) + col2 * - col2 FROM tab1 AS cor0
----
-3476
-4577
-9202

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2602
SELECT ALL AVG ( ALL + col1 ) * - 50 AS col1 FROM tab2 AS cor0 WHERE NOT + 34 * + CAST( NULL AS DECIMAL ) > ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2602
SELECT ALL AVG ( ALL + col1 ) * - 50 AS col1 FROM tab2 AS cor0 WHERE NOT + 34 * + CAST ( NULL AS REAL ) > ( - col2 )
----
NULL

query I rowsort
SELECT DISTINCT + col0 + 31 / 5 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 35 AND ( NULL )
----

query I rowsort
SELECT ALL - 59 + + col2 * 82 AS col0 FROM tab0 AS cor0
----
3795
761
8059

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT + + COUNT( ALL - + 88 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2605
SELECT + + COUNT ( ALL - + 88 ) FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT col1 * + + col2 + col0 * - 83 AS col2 FROM tab0
----
-7011
-7952
2562

query I rowsort
SELECT ALL - ( + 90 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT DISTINCT COUNT( ALL + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2608
SELECT DISTINCT COUNT ( ALL + col0 ) FROM tab1
----
3

query I rowsort
SELECT ALL + 74 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 col0 FROM tab2 WHERE NOT - + 13 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2611
SELECT - - col1 * 59 + - CAST( NULL AS SIGNED ) - + col1 * 54 - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2611
SELECT - - col1 * 59 + - CAST ( NULL AS INTEGER ) - + col1 * 54 - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 + col1 + col0 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2613
SELECT - col2 DIV - ( - 38 ) + col2 FROM tab1 AS cor0
----
58
67
94

skipif mysql # not compatible
query I rowsort label-2613
SELECT - col2 / - ( - 38 ) + col2 FROM tab1 AS cor0
----
58
67
94

query I rowsort
SELECT ALL col2 * - col1 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-1344
-295
-3196

query I rowsort
SELECT - 80 + + + 72 FROM tab2 cor0
----
-8
-8
-8

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( + 36 ) AND NULL
----

query II rowsort
SELECT ALL - 94 AS col0, 14 * col1 AS col1 FROM tab1 AS cor0
----
-94
196
-94
658
-94
70

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 <> + + col1 * 49
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 46 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2620
SELECT - - ( + + col1 ) + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2620
SELECT - - ( + + col1 ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( col0 * - 82 )
----

query III rowsort
SELECT * FROM tab2 WHERE - col1 * + + 59 * col1 - + col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2623
SELECT * FROM tab1 WHERE ( - col2 ) NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2623
SELECT * FROM tab1 WHERE ( - col2 ) NOT IN ( - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT BETWEEN ( col2 + + 5 * + 34 ) AND col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) IN ( - 20 )
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT col0 + - + col1 * + 37 <= ( + col0 + 85 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - col1 * - 86 + + - 26 col2 FROM tab0
----
-13
-1822
-6945

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT - col1 < ( - + col1 + 16 * col1 )
----

query I rowsort
SELECT ALL - col0 - - 9 + - 36 + - + ( 65 ) FROM tab1
----
-143
-177
-183

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + + 3 * - 9 * + col0 + ( - ( - ( col0 ) ) ) ) IN ( 41 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2631
SELECT + 16 / ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2631
SELECT + 16 / ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT DISTINCT - COUNT( + ( + col2 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2632
SELECT DISTINCT - COUNT ( + ( + col2 ) ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 <= ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col2 * + col2, + col1 AS col0 FROM tab2 AS cor0
----
1600
77
3364
67
529
51

query I rowsort
SELECT DISTINCT + col2 * - + col2 AS col1 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT + SUM( DISTINCT + col1 ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2636
SELECT + SUM ( DISTINCT + col1 ) AS col0 FROM tab0
----
103

query I rowsort
SELECT ALL ( + ( 23 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT DISTINCT - SUM( - col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT - SUM ( - col0 ) AS col0 FROM tab1 AS cor0
----
227

query I rowsort
SELECT 37 * + 18 FROM tab1 cor0
----
666
666
666

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT ALL ( COUNT( * ) ) + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col2 < ( - col2 - + 78 * - col0 + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL ( COUNT ( * ) ) + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col2 < ( - col2 - + 78 * - col0 + col0 )
----
0

query I rowsort
SELECT ( + 73 ) AS col2 FROM tab0 AS cor0
----
73
73
73

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 4 ) <> ( NULL )
----

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= ( - col1 / + 83 + - - col0 )
----

query II rowsort
SELECT col1 AS col2, col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT DISTINCT - MAX( DISTINCT 18 ) AS col0 FROM tab2 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT - MAX ( DISTINCT 18 ) AS col0 FROM tab2 cor0
----
-18

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= + col1 * 75
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE NOT + 20 * + col1 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 + 53 = + col0
----
15
87
97

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 <> ( + 84 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2650
SELECT + CAST( - COUNT( * ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2650
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = NULL OR NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT ALL 42 * COUNT( + col2 ) + + 94 AS col0 FROM tab0 AS cor0 WHERE ( col2 ) = + + 28 * col1
----
94

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL 42 * COUNT ( + col2 ) + + 94 AS col0 FROM tab0 AS cor0 WHERE ( col2 ) = + + 28 * col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2653
SELECT DISTINCT col1 * - col2 * - - col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2653
SELECT DISTINCT col1 * - col2 * - - col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2654
SELECT DISTINCT - col2 DIV - + 99 + 79 * + 71 * col0 col2 FROM tab0 AS cor0
----
487983
544074
84135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2654
SELECT DISTINCT - col2 / - + 99 + 79 * + 71 * col0 col2 FROM tab0 AS cor0
----
487983
544074
84135

query III rowsort
SELECT * FROM tab2 WHERE + - 73 + - + col2 NOT IN ( + 8 + - 64 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 72 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2657
SELECT DISTINCT + col0 + + col0 * - + col2 AS col1, - CAST( NULL AS SIGNED ) / + + col1 FROM tab1
----
-4845
NULL
-4930
NULL
-6097
NULL

skipif mysql # not compatible
query II rowsort label-2657
SELECT DISTINCT + col0 + + col0 * - + col2 AS col1, - CAST ( NULL AS INTEGER ) / + + col1 FROM tab1
----
-4845
NULL
-4930
NULL
-6097
NULL

query I rowsort
SELECT - col0 * + - col1 AS col0 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2659
SELECT ALL 10 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 - + CAST( col2 AS DECIMAL ) * col1 + - - col0 )
----

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL 10 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 - + CAST ( col2 AS REAL ) * col1 + - - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT NULL > - + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2661
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) + + AVG ( col0 ) * COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2661
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) + + AVG ( col0 ) * COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 69 + + col0 * + col2 AS col0 FROM tab0 AS cor0
----
636
801
9534

query I rowsort
SELECT ALL col1 * col0 - - 60 * - 73 FROM tab1
----
-103
-3666
-3955

onlyif mysql # aggregate syntax: 
query III rowsort label-2664
SELECT - COUNT( * ), - COUNT( ( 99 ) ), - COUNT( * ) col0 FROM tab1
----
-3
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2664
SELECT - COUNT ( * ), - COUNT ( ( 99 ) ), - COUNT ( * ) col0 FROM tab1
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2665
SELECT ALL + 6, - MIN( - - 15 ) AS col1 FROM tab1
----
6
-15

skipif mysql # not compatible
query II rowsort label-2665
SELECT ALL + 6, - MIN ( - - 15 ) AS col1 FROM tab1
----
6
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT DISTINCT COUNT( * ) * - 81 AS col2 FROM tab2
----
-243

skipif mysql # not compatible
query I rowsort label-2666
SELECT DISTINCT COUNT ( * ) * - 81 AS col2 FROM tab2
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT ALL SUM( ALL - col0 ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL SUM ( ALL - col0 ) AS col2 FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2668
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

query I rowsort
SELECT + + col1 * + ( + 22 ) FROM tab0 AS cor0
----
1782
22
462

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2670
SELECT + COUNT( * ) DIV + SUM( ALL - col0 ), - 77 DIV 45 AS col1 FROM tab2 cor0
----
0
-1

skipif mysql # not compatible
query II rowsort label-2670
SELECT + COUNT ( * ) / + SUM ( ALL - col0 ), - 77 / 45 AS col1 FROM tab2 cor0
----
0
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

query I rowsort
SELECT + 73 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT - COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2673
SELECT - COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2674
SELECT DISTINCT + CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2674
SELECT DISTINCT + CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL + 73 * col2 FROM tab0 AS cor0
----
3431
7227
730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2676
SELECT + - CAST( + 20 AS SIGNED ) col1 FROM tab0 AS cor0
----
-20
-20
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2676
SELECT + - CAST ( + 20 AS INTEGER ) col1 FROM tab0 AS cor0
----
-20
-20
-20

query I rowsort
SELECT ALL + - col0 + - - 52 AS col1 FROM tab1 AS cor0
----
-33
-39
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT DISTINCT - SUM( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2678
SELECT DISTINCT - SUM ( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL + 80 + 33 - - col2 + col0 * 43 - 63 AS col0 FROM tab0 AS cor0
----
3801
4320
742

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT - - COUNT( * ) * + - MIN( DISTINCT - 21 ) FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2680
SELECT - - COUNT ( * ) * + - MIN ( DISTINCT - 21 ) FROM tab2 AS cor0
----
63

query I rowsort
SELECT + col2 + col1 + 76 * + col1 FROM tab2
----
3950
5217
5969

query II rowsort
SELECT ALL 78 AS col1, col2 * + ( + col2 ) AS col2 FROM tab1 AS cor0
----
78
3481
78
4624
78
9216

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - 35 NOT IN ( + col0 * - col2 + - col0 + - col2 + + col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT 28 * + 9 * - COUNT( * ) FROM tab2 AS cor0
----
-756

skipif mysql # not compatible
query I rowsort label-2684
SELECT 28 * + 9 * - COUNT ( * ) FROM tab2 AS cor0
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT DISTINCT - ( - + ( + COUNT( * ) ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2685
SELECT DISTINCT - ( - + ( + COUNT ( * ) ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT col0 + - + col1 FROM tab0
----
-66
66
96

query II rowsort
SELECT ALL + col2 AS col0, - 62 AS col1 FROM tab2 AS cor0
----
23
-62
40
-62
58
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT DISTINCT + - 63 - + COUNT( DISTINCT - + col2 ) FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2688
SELECT DISTINCT + - 63 - + COUNT ( DISTINCT - + col2 ) FROM tab2 AS cor0
----
-66

query I rowsort
SELECT 72 + - + col2 AS col2 FROM tab0 AS cor0
----
-27
25
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, - 23 col2 FROM tab1 AS cor0
----
-14
-23
-47
-23
-5
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2691
SELECT - - col2 + ( + CAST( - col1 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
21
54
82

skipif mysql # not compatible
query I rowsort label-2691
SELECT - - col2 + ( + CAST ( - col1 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE + col2 + 22 >= 1
----
46
64
75

query II rowsort
SELECT + ( + col1 ) * + 11 + + col1, col0 FROM tab2 AS cor0
----
612
46
804
75
924
64

query I rowsort
SELECT ALL 45 * + col0 AS col1 FROM tab0 AS cor0
----
3915
4365
675

query I rowsort
SELECT DISTINCT - col2 * + col1 + + col2 AS col1 FROM tab0 AS cor0
----
-200
-3760
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2696
SELECT DISTINCT + 53 DIV 37 * col2 + - + ( col2 ) col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2696
SELECT DISTINCT + 53 / 37 * col2 + - + ( col2 ) col0 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2697
SELECT ALL - col0 AS col1, col2 DIV + 57 FROM tab2 AS cor0
----
-46
0
-64
0
-75
1

skipif mysql # not compatible
query II rowsort label-2697
SELECT ALL - col0 AS col1, col2 / + 57 FROM tab2 AS cor0
----
-46
0
-64
0
-75
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2698
SELECT DISTINCT * FROM tab1 WHERE NOT + - CAST( NULL AS SIGNED ) * + 2 <> col2 * + 30
----

skipif mysql # not compatible
query III rowsort label-2698
SELECT DISTINCT * FROM tab1 WHERE NOT + - CAST ( NULL AS INTEGER ) * + 2 <> col2 * + 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT COUNT( DISTINCT 80 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2699
SELECT COUNT ( DISTINCT 80 ) AS col0 FROM tab2
----
1

query I rowsort
SELECT DISTINCT - 40 * - ( - 61 ) AS col0 FROM tab1
----
-2440

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * + + 52 BETWEEN - col1 * - + col0 + - - col2 AND + col0 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + col1 AS col2 FROM tab0 cor0 WHERE NOT ( NULL IS NULL ) OR col1 * - 0 + + 17 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 * - col1 col0 FROM tab0
----
2016
7776
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 42 col1, - col0 + + - col1 + + - 98 + + col0 + 26 * - col1 - + 40 FROM tab0
----
42
-165
42
-2325
42
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT MAX( + col2 ) + ( 87 ) FROM tab2 AS cor0
----
145

skipif mysql # not compatible
query I rowsort label-2705
SELECT MAX ( + col2 ) + ( 87 ) FROM tab2 AS cor0
----
145

query I rowsort
SELECT DISTINCT - + 27 * + + col2 + - col2 AS col2 FROM tab1 AS cor0
----
-1652
-1904
-2688

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 + + 79 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 - - ( 20 ) * - col2 * + - col2 * - 16 / - col0 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2709
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 96 AS col2, - 92 - + 10 - - - 86 + + MAX( DISTINCT + + col1 ) DIV + - ( - SUM( DISTINCT - ( + 29 ) ) ) FROM tab0
----
NULL
-190

skipif mysql # not compatible
query II rowsort label-2709
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 96 AS col2, - 92 - + 10 - - - 86 + + MAX ( DISTINCT + + col1 ) / + - ( - SUM ( DISTINCT - ( + 29 ) ) ) FROM tab0
----
NULL
-190

onlyif mysql # DIV for integer division: 
query I rowsort label-2710
SELECT 44 DIV col2 * - col1 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2710
SELECT 44 / col2 * - col1 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE col1 >= - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT - SUM( DISTINCT col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-2712
SELECT - SUM ( DISTINCT col2 ) FROM tab2
----
-121

query I rowsort
SELECT - 30 * 21 AS col0 FROM tab0
----
-630
-630
-630

query I rowsort
SELECT ALL - col0 * + - col1 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT DISTINCT COUNT( * ) * - - SUM( ALL - + 5 ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-2715
SELECT DISTINCT COUNT ( * ) * - - SUM ( ALL - + 5 ) FROM tab2
----
-45

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 + - col2 + + - col2 + 44 * + + col2 * + 54 + col0 + + col1 + - col1 * + col2 IS NULL
----

query I rowsort
SELECT + col2 + - - col2 FROM tab2 AS cor0
----
116
46
80

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( - 63, + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > col0 + - col0 + - col0
----

query I rowsort
SELECT DISTINCT - + 3 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-3

query I rowsort
SELECT ALL col0 - - 8 AS col2 FROM tab2
----
54
72
83

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2723
SELECT DISTINCT - + col1 col0, + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2723
SELECT DISTINCT - + col1 col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2724
SELECT ALL + COUNT( * ) AS col1, 8 FROM tab2
----
3
8

skipif mysql # not compatible
query II rowsort label-2724
SELECT ALL + COUNT ( * ) AS col1, 8 FROM tab2
----
3
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT + ( - COUNT( * ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2725
SELECT + ( - COUNT ( * ) ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + 50 AS col2 FROM tab1
----
50

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 53 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT ALL + COUNT( - ( - 83 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL + COUNT ( - ( - 83 ) ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 86 NOT IN ( - col0 * - + 0, col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2730
SELECT ALL * FROM tab1 WHERE ( CAST( + col0 AS DECIMAL ) * - + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2730
SELECT ALL * FROM tab1 WHERE ( CAST ( + col0 AS REAL ) * - + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( - ( - - col2 ) ) * + col1 * + col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

onlyif mysql # aggregate syntax: 
query II rowsort label-2732
SELECT ALL - 28 AS col0, - COUNT( * ) AS col0 FROM tab0 cor0
----
-28
-3

skipif mysql # not compatible
query II rowsort label-2732
SELECT ALL - 28 AS col0, - COUNT ( * ) AS col0 FROM tab0 cor0
----
-28
-3

query I rowsort
SELECT DISTINCT + + 32 AS col2 FROM tab1 cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT + - COUNT( + - 98 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2734
SELECT + - COUNT ( + - 98 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col0 * + + 84 * + col2 FROM tab1
----
411264
421260
519792

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT DISTINCT COUNT( DISTINCT ( col0 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2736
SELECT DISTINCT COUNT ( DISTINCT ( col0 ) ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) > 46 * + ( col1 )
----

query I rowsort
SELECT ALL + 56 * + col2 AS col0 FROM tab1
----
3304
3808
5376

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT - - MIN( DISTINCT - ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2739
SELECT - - MIN ( DISTINCT - ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT DISTINCT - ( COUNT( * ) ) + - 33 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT - ( COUNT ( * ) ) + - 33 FROM tab0 AS cor0
----
-36

query II rowsort
SELECT DISTINCT - col2 * 12 + col2 AS col2, col1 AS col2 FROM tab1 AS cor0
----
-1056
14
-649
5
-748
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2742
SELECT ALL + - CAST( NULL AS DECIMAL ) + + + 97 AS col2, COUNT( * ) + - + COUNT( * ) FROM tab2 AS cor0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2742
SELECT ALL + - CAST ( NULL AS REAL ) + + + 97 AS col2, COUNT ( * ) + - + COUNT ( * ) FROM tab2 AS cor0
----
NULL
0

query I rowsort
SELECT - col1 + - + col2 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT ALL ( - col2 ) + - 48 FROM tab0 AS cor0
----
-147
-58
-95

query I rowsort
SELECT DISTINCT + + col0 * + col0 * - col1 - col1 + + col0 FROM tab2 AS cor0
----
-107921
-315405
-376867

onlyif mysql # DIV for integer division: 
query I rowsort label-2746
SELECT col0 DIV - + col2 + col2 FROM tab0
----
2
47
99

skipif mysql # not compatible
query I rowsort label-2746
SELECT col0 / - + col2 + col2 FROM tab0
----
2
47
99

query III rowsort
SELECT * FROM tab1 WHERE + - col0 / 63 BETWEEN - - col1 * + col0 + + + col1 + - + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT - 53 + + - ( + MIN( DISTINCT - col2 ) ) AS col1 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-2748
SELECT - 53 + + - ( + MIN ( DISTINCT - col2 ) ) AS col1 FROM tab1
----
43

query I rowsort
SELECT ALL col0 + col2 + - 43 FROM tab1
----
101
104
116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 col2 FROM tab1
----
118
136
192

query I rowsort
SELECT - col1 * + col2 AS col1 FROM tab2 WHERE ( NOT ( - + col0 + - + 85 IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT DISTINCT 27 + - COUNT( * ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-2752
SELECT DISTINCT 27 + - COUNT ( * ) FROM tab0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2753
SELECT - CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2753
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT + SUM( - col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2754
SELECT + SUM ( - col0 ) FROM tab0 AS cor0
----
-199

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2755
SELECT DISTINCT - CAST( + + 30 AS SIGNED ) DIV 45 + + ( + col0 ) AS col1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT - CAST ( + + 30 AS INTEGER ) / 45 + + ( + col0 ) AS col1 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT ALL - COUNT( * ) * + 60 + 85 FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL - COUNT ( * ) * + 60 + 85 FROM tab2
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 col1 FROM tab0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT DISTINCT - ( + COUNT( * ) ) AS col0 FROM tab1 WHERE NULL <= col0
----
0

skipif mysql # not compatible
query I rowsort label-2758
SELECT DISTINCT - ( + COUNT ( * ) ) AS col0 FROM tab1 WHERE NULL <= col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2759
SELECT - COUNT( ALL + col0 ) * - CAST( - AVG ( ALL - + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2759
SELECT - COUNT ( ALL + col0 ) * - CAST ( - AVG ( ALL - + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT + + 41 * - MAX( ALL - col2 ) FROM tab2 cor0
----
943

skipif mysql # not compatible
query I rowsort label-2760
SELECT + + 41 * - MAX ( ALL - col2 ) FROM tab2 cor0
----
943

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT 93 * + + col0 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2762
SELECT ALL + + 77 + + - col0 FROM tab1 cor0 WHERE ( NULL NOT IN ( col1 + - ( + - col0 ), - CAST( NULL AS DECIMAL ) + + 19 + + + 44 ) )
----

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL + + 77 + + - col0 FROM tab1 cor0 WHERE ( NULL NOT IN ( col1 + - ( + - col0 ), - CAST ( NULL AS REAL ) + + 19 + + + 44 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2763
SELECT + CAST( NULL AS SIGNED ) * - + col0, - col2 AS col1 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-2763
SELECT + CAST ( NULL AS INTEGER ) * - + col0, - col2 AS col1 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

query I rowsort
SELECT - + col2 * - col0 + 48 AS col2 FROM tab0 AS cor0
----
753
918
9651

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 75 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 96 FROM tab1 cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT ALL - COUNT( + + 92 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2767
SELECT ALL - COUNT ( + + 92 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2768
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2768
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2769
SELECT DISTINCT col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2769
SELECT DISTINCT col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT DISTINCT + SUM( + 93 ) AS col1 FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-2770
SELECT DISTINCT + SUM ( + 93 ) AS col1 FROM tab2
----
279

query I rowsort
SELECT col0 * + + col1 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT DISTINCT + 36 AS col2 FROM tab1 cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT - COUNT( 21 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2773
SELECT - COUNT ( 21 ) FROM tab1 cor0
----
-3

query I rowsort
SELECT + ( - 25 ) + + 30 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

query II rowsort
SELECT + col2 * - ( - col0 ) + + + col1 AS col1, + col1 * + - ( + 6 ) FROM tab2
----
1109
-306
2637
-462
4417
-402

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT ( + - 73 ) + - COUNT( * ) FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-2776
SELECT ( + - 73 ) + - COUNT ( * ) FROM tab1 AS cor0
----
-76

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 70 col2, + col0 * + + col1 * + col1 FROM tab2 AS cor0
----
70
119646
70
336675
70
379456

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 88 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 85, ( + - col0 ) col1 FROM tab1 AS cor0
----
85
-51
85
-85
85
-91

query I rowsort
SELECT DISTINCT + 38 + - ( - col0 ) FROM tab0 AS cor0
----
125
135
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT ALL 57 + COUNT( - + 78 ) FROM tab0 cor0
----
60

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL 57 + COUNT ( - + 78 ) FROM tab0 cor0
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 col2 FROM tab0 AS cor0 WHERE NULL > + 41
----

query II rowsort
SELECT col1, 98 AS col2 FROM tab0 AS cor0
----
1
98
21
98
81
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2785
SELECT DISTINCT CAST( NULL AS DECIMAL ) - + col0 * - col1 * - + col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2785
SELECT DISTINCT CAST ( NULL AS REAL ) - + col0 * - col1 * - + col2 FROM tab1
----
NULL

query I rowsort
SELECT - ( col0 ) - col1 AS col0 FROM tab0
----
-108
-96
-98

query II rowsort
SELECT ALL ( + - col1 ), col0 FROM tab2
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT - 98 * - - MAX( ALL + 79 ) - + MIN( + 59 ) FROM tab1
----
-7801

skipif mysql # not compatible
query I rowsort label-2788
SELECT - 98 * - - MAX ( ALL + 79 ) - + MIN ( + 59 ) FROM tab1
----
-7801

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT DISTINCT + COUNT( * ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2789
SELECT DISTINCT + COUNT ( * ) col1 FROM tab1
----
3

query I rowsort
SELECT col2 + 25 FROM tab0
----
124
35
72

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - + col0 AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2793
SELECT DISTINCT - + col2 * - + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col1, - col0 + + + col2 FROM tab1 cor0
----
NULL
-23
NULL
-26
NULL
45

skipif mysql # not compatible
query II rowsort label-2793
SELECT DISTINCT - + col2 * - + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col1, - col0 + + + col2 FROM tab1 cor0
----
NULL
-23
NULL
-26
NULL
45

query I rowsort
SELECT DISTINCT - 65 * + - col2 - - col0 AS col1 FROM tab1 AS cor0
----
3920
4511
6291

query I rowsort
SELECT + - col0 FROM tab2 AS cor0 WHERE NOT - col1 * + col2 / + + col1 + + 48 / - + col1 < NULL
----

query I rowsort
SELECT - ( + 76 ) * - col1 AS col1 FROM tab2 AS cor0
----
3876
5092
5852

query I rowsort
SELECT DISTINCT col2 * + + ( + 75 ) AS col1 FROM tab1 AS cor0
----
4425
5100
7200

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT DISTINCT COUNT( + 97 ) AS col0 FROM tab1 WHERE NOT ( NULL > 60 )
----
0

skipif mysql # not compatible
query I rowsort label-2798
SELECT DISTINCT COUNT ( + 97 ) AS col0 FROM tab1 WHERE NOT ( NULL > 60 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT DISTINCT COUNT( * ) * 97 AS col2 FROM tab2
----
291

skipif mysql # not compatible
query I rowsort label-2799
SELECT DISTINCT COUNT ( * ) * 97 AS col2 FROM tab2
----
291

onlyif mysql # DIV for integer division: 
query II rowsort label-2800
SELECT 65 DIV - + col2 AS col1, col1 * + 46 AS col0 FROM tab1
----
-1
230
0
2162
0
644

skipif mysql # not compatible
query II rowsort label-2800
SELECT 65 / - + col2 AS col1, col1 * + 46 AS col0 FROM tab1
----
-1
230
0
2162
0
644

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT + - 69 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT ALL + SUM( DISTINCT + col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-2803
SELECT ALL + SUM ( DISTINCT + col0 ) AS col2 FROM tab2
----
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2804
SELECT SUM( - col1 ) - + 10 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL >= - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-2804
SELECT SUM ( - col1 ) - + 10 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL >= - 5
----
NULL

query I rowsort
SELECT + col2 * - ( col2 ) AS col2 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT ALL - col1 * ( - col0 ) + - ( - + 20 ) AS col2 FROM tab0 AS cor0
----
117
1235
1847

query I rowsort
SELECT + - 51 + + - col0 FROM tab1 AS cor0
----
-102
-136
-142

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT 94 + - 94 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2810
SELECT 95 + + col2 DIV + col1 + col2 * + - col0 AS col1 FROM tab1 AS cor0
----
-4795
-4909
-6092

skipif mysql # not compatible
query I rowsort label-2810
SELECT 95 + + col2 / + col1 + col2 * + - col0 AS col1 FROM tab1 AS cor0
----
-4795
-4909
-6092

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT DISTINCT 30 - COUNT( - + 30 ) AS col0 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2811
SELECT DISTINCT 30 - COUNT ( - + 30 ) AS col0 FROM tab0 AS cor0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2812
SELECT * FROM tab0 WHERE - col0 NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2812
SELECT * FROM tab0 WHERE - col0 NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN 96 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT 97 + MIN( + col0 ) AS col0 FROM tab0
----
112

skipif mysql # not compatible
query I rowsort label-2814
SELECT 97 + MIN ( + col0 ) AS col0 FROM tab0
----
112

query I rowsort
SELECT ALL - ( - col1 ) - - col1 - col2 FROM tab2
----
114
76
79

query I rowsort
SELECT DISTINCT col1 * - - 92 + - - col0 FROM tab0
----
189
2019
7467

query I rowsort
SELECT ALL - col0 * - col1 + - col1 + - col0 + + col2 * 9 FROM tab2
----
2456
5147
5405

query I rowsort
SELECT ALL + 57 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 WHERE ( + - col2 * col0 ) <> col0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2820
SELECT CAST( + - 77 AS SIGNED ) * + 89 FROM tab0
----
-6853
-6853
-6853

skipif mysql # not compatible
query I rowsort label-2820
SELECT CAST ( + - 77 AS INTEGER ) * + 89 FROM tab0
----
-6853
-6853
-6853

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT - ( + col2 ) - 65 * ( + 88 ) AS col1 FROM tab1 AS cor0
----
-5779
-5788
-5816

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT + SUM( col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-2823
SELECT + SUM ( col0 ) AS col1 FROM tab0 AS cor0
----
199

query II rowsort
SELECT col1 AS col2, 53 FROM tab1 AS cor0
----
14
53
47
53
5
53

query I rowsort
SELECT ALL + 88 * col2 FROM tab2 AS cor0
----
2024
3520
5104

query IIIIII rowsort
SELECT ALL * FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( NOT - - 32 IS NULL )
----

query II rowsort
SELECT ALL col0 * - col1 AS col2, 33 FROM tab0
----
-1215
33
-1827
33
-97
33

query I rowsort
SELECT ALL - - col0 * + + col1 AS col1 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT ( - COUNT( * ) ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2829
SELECT ( - COUNT ( * ) ) AS col0 FROM tab2 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 45 * - col1 + + col1 + col2 AS col0 FROM tab2 AS cor0
----
-2221
-2890
-3348

query I rowsort
SELECT ALL - col2 * + + col2 * col2 FROM tab1 AS cor0
----
-205379
-314432
-884736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2833
SELECT ALL + CAST( + - 16 AS SIGNED ) FROM tab0 AS cor0
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL + CAST ( + - 16 AS INTEGER ) FROM tab0 AS cor0
----
-16
-16
-16

query I rowsort
SELECT - col1 * + 93 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL col1 + + - 38 + + 37 AS col0 FROM tab1 WHERE NOT NULL BETWEEN 68 AND NULL
----

query II rowsort
SELECT col0, 13 AS col0 FROM tab0
----
15
13
87
13
97
13

query I rowsort
SELECT + col1 * + + col0 FROM tab0
----
1215
1827
97

query I rowsort
SELECT DISTINCT col0 + + + 25 FROM tab1
----
110
116
76

query I rowsort
SELECT ALL - + col1 * - - col1 AS col1 FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT + + col2 * - 57 FROM tab1 cor0
----
-3363
-3876
-5472

query I rowsort
SELECT ALL + ( - col1 ) * col0 + + col1 AS col1 FROM tab0 AS cor0
----
-1134
-1806
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2845
SELECT + ( + + col2 ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2845
SELECT + ( + + col2 ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 3 / + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - - 77 + ( - 20 ) FROM tab1 AS cor0
----
57
57
57

onlyif mysql # DIV for integer division: 
query I rowsort label-2848
SELECT - 7 DIV - + col1 FROM tab0 AS cor0
----
0
0
7

skipif mysql # not compatible
query I rowsort label-2848
SELECT - 7 / - + col1 FROM tab0 AS cor0
----
0
0
7

query I rowsort
SELECT DISTINCT + - 50 * - col0 + + + 21 AS col1 FROM tab0 AS cor0
----
4371
4871
771

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + 82 col2 FROM tab0 AS cor0
----
-15
-5
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT DISTINCT ( + 4 ) + COUNT( - + 4 ) + + 2 + + 23 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT ( + 4 ) + COUNT ( - + 4 ) + + 2 + + 23 FROM tab2
----
32

query I rowsort
SELECT ALL - 62 - - + ( + 90 ) AS col2 FROM tab0
----
28
28
28

query I rowsort
SELECT ALL col0 - + 27 + col0 * - + col1 AS col1 FROM tab0
----
-1227
-1767
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-2854
SELECT 66 - - - col1 DIV - - 17 FROM tab1
----
64
66
66

skipif mysql # not compatible
query I rowsort label-2854
SELECT 66 - - - col1 / - - 17 FROM tab1
----
64
66
66

query I rowsort
SELECT DISTINCT 43 - + col2 + col0 FROM tab2
----
60
66
67

query I rowsort
SELECT ALL - ( + 81 ) FROM tab2
----
-81
-81
-81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 + - 39 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2858
SELECT - col2, + 96 DIV 45 + - col0 * + - col2 - - + col0 AS col1 FROM tab1 AS cor0
----
-59
5102
-68
6281
-96
4949

skipif mysql # not compatible
query II rowsort label-2858
SELECT - col2, + 96 / 45 + - col0 * + - col2 - - + col0 AS col1 FROM tab1 AS cor0
----
-59
5102
-68
6281
-96
4949

query I rowsort
SELECT ALL 41 AS col1 FROM tab2 AS cor0
----
41
41
41

query II rowsort
SELECT DISTINCT col0, col0 + - col1 AS col0 FROM tab2 AS cor0
----
46
-5
64
-13
75
8

query I rowsort
SELECT ALL - 79 * - 2 AS col1 FROM tab2 cor0
----
158
158
158

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 38 * + col1 FROM tab1 AS cor0
----
1786
190
532

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND - col1
----

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT NULL >= - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT - - MAX( - + col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2867
SELECT - - MAX ( - + col2 ) AS col0 FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2868
SELECT + CAST( - col0 AS SIGNED ) * + - 90 + 96, col2 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
4236
23
5856
40
6846
58

skipif mysql # not compatible
query II rowsort label-2868
SELECT + CAST ( - col0 AS INTEGER ) * + - 90 + 96, col2 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
4236
23
5856
40
6846
58

query I rowsort
SELECT + col0 * - + col2 AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT + + 97 FROM tab1 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT - SUM( ALL + - col0 ) col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2871
SELECT - SUM ( ALL + - col0 ) col0 FROM tab1 AS cor0
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 45 col1, + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2873
SELECT DISTINCT + COUNT( col0 ) AS col0, MIN( - col0 ) AS col0 FROM tab0
----
3
-97

skipif mysql # not compatible
query II rowsort label-2873
SELECT DISTINCT + COUNT ( col0 ) AS col0, MIN ( - col0 ) AS col0 FROM tab0
----
3
-97

query I rowsort
SELECT ( col0 ) * + + 5 AS col1 FROM tab0
----
435
485
75

query II rowsort
SELECT ALL 16 * - 65 AS col2, - col1 AS col0 FROM tab2
----
-1040
-51
-1040
-67
-1040
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2876
SELECT ALL + COUNT( * ) DIV 84 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL + COUNT ( * ) / 84 FROM tab1
----
0

query I rowsort
SELECT ALL - 36 - - col0 FROM tab1 WHERE NOT - 56 = + + 86
----
15
49
55

query I rowsort
SELECT DISTINCT 14 * - 59 * - col0 FROM tab1
----
42126
70210
75166

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT ALL COUNT( * ) * - - COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 42 col1 FROM tab1 WHERE + 17 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT ALL SUM( DISTINCT + + col2 ) col1 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2881
SELECT ALL SUM ( DISTINCT + + col2 ) col1 FROM tab1
----
223

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 16 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT + 46 + COUNT( + 93 ) AS col0 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-2883
SELECT + 46 + COUNT ( + 93 ) AS col0 FROM tab0 AS cor0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2884
SELECT * FROM tab0 AS cor0 WHERE + CAST( + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2884
SELECT * FROM tab0 AS cor0 WHERE + CAST ( + col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL + - 4 + - col2 FROM tab0 AS cor0
----
-103
-14
-51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 92 + 21 FROM tab2 AS cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT DISTINCT 29 * - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-261

skipif mysql # not compatible
query I rowsort label-2888
SELECT DISTINCT 29 * - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-261

query I rowsort
SELECT - + col0 FROM tab0 cor0 WHERE - 2 + + col1 IS NULL
----

query I rowsort
SELECT - 76 + col0 AS col1 FROM tab1 AS cor0
----
-25
15
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2891
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) / col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2891
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) / col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2892
SELECT DISTINCT ( + col1 ) + col0 FROM tab0 AS cor0 WHERE 17 + + + col0 - - 8 - - 68 - + col0 * + 74 * - 92 * - - col0 * + - 2 * col2 * + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2892
SELECT DISTINCT ( + col1 ) + col0 FROM tab0 AS cor0 WHERE 17 + + + col0 - - 8 - - 68 - + col0 * + 74 * - 92 * - - col0 * + - 2 * col2 * + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT ALL - COUNT( * ) + + COUNT( col1 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2893
SELECT ALL - COUNT ( * ) + + COUNT ( col1 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT ( + ( 31 ) ) FROM tab0
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT DISTINCT - COUNT( - col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT - COUNT ( - col1 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT ALL COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT - 95 + - col1 AS col2 FROM tab2 AS cor0
----
-146
-162
-172

query I rowsort
SELECT - 66 * col2 + col1 + col0 * + + 59 + + 9 AS col2 FROM tab2 AS cor0
----
1222
1256
673

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT - + 43 * + + SUM( - + 79 ) FROM tab2 AS cor0
----
10191

skipif mysql # not compatible
query I rowsort label-2900
SELECT - + 43 * + + SUM ( - + 79 ) FROM tab2 AS cor0
----
10191

query I rowsort
SELECT ALL - col1 + - col0 - + - col2 FROM tab1 AS cor0
----
-31
-70
31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT ( + 72 ) + - col1, col2 AS col0 FROM tab0 AS cor0
----
-9
47
51
10
71
99

query I rowsort
SELECT ALL col2 + 3 + - + col1 - - + 8 * + 8 FROM tab1
----
121
149
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2905
SELECT DISTINCT - col2 + - - CAST( + 34 AS SIGNED ) + 49 AS col0 FROM tab1
----
-13
15
24

skipif mysql # not compatible
query I rowsort label-2905
SELECT DISTINCT - col2 + - - CAST ( + 34 AS INTEGER ) + 49 AS col0 FROM tab1
----
-13
15
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, + 48 * - col1 - + col1 AS col0 FROM tab0
----
15
-3969
87
-1029
97
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT COUNT( DISTINCT - + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2907
SELECT COUNT ( DISTINCT - + col2 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2908
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 21 col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2908
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 21 col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT COUNT( * ) AS col1 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2909
SELECT COUNT ( * ) AS col1 FROM tab1, tab1 AS cor0
----
9

query II rowsort
SELECT ALL - col1 AS col0, col1 AS col1 FROM tab0
----
-1
1
-21
21
-81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT DISTINCT - COUNT( ALL + - 13 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2911
SELECT DISTINCT - COUNT ( ALL + - 13 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + 14 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT DISTINCT - 62 AS col0 FROM tab0
----
-62

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 + - col0 + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 + - col0 IS NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 20 = - - 96 + + + col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 73 * - - ( + ( + 29 ) ) / + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <= + 27 + + 93
----

query I rowsort
SELECT DISTINCT - 62 FROM tab2 cor0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT - - ( COUNT( * ) ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2920
SELECT - - ( COUNT ( * ) ) col2 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 34 col1 FROM tab1 AS cor0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT DISTINCT ( COUNT( * ) ) * + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2922
SELECT DISTINCT ( COUNT ( * ) ) * + COUNT ( * ) FROM tab0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2923
SELECT - 3 DIV - + 91 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2923
SELECT - 3 / - + 91 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - 66 * - + col1 AS col2 FROM tab2
----
3366
4422
5082

query I rowsort
SELECT DISTINCT - col1 * + 81 AS col2 FROM tab0
----
-1701
-6561
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2926
SELECT DISTINCT - col1 DIV + col0 AS col2 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT - col1 / + col0 AS col2 FROM tab2
----
-1
0

query I rowsort
SELECT 79 FROM tab0 WHERE NOT ( col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col1 * - - ( + ( 97 ) ) FROM tab0 AS cor0
----
-2037
-7857
-97

query II rowsort
SELECT 92 AS col1, + col2 FROM tab1 AS cor0
----
92
59
92
68
92
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND NOT col2 >= - col0
----

query II rowsort
SELECT + col2, col0 - - col1 * 76 AS col0 FROM tab2 AS cor0
----
23
3922
40
5916
58
5167

query II rowsort
SELECT ALL - col2, col2 AS col2 FROM tab2 WHERE NOT + + col1 IS NULL
----
-23
23
-40
40
-58
58

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - + 34 AS col2 FROM tab1 cor0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT - 37 AS col1 FROM tab1 cor0
----
-37

query I rowsort
SELECT ALL 45 + + col1 AS col1 FROM tab1 AS cor0
----
50
59
92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 <= - + 11
----

query I rowsort
SELECT - ( - - col1 ) FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT - col0 + + 73 FROM tab0 cor0
----
-14
-24
58

query II rowsort
SELECT + col1 + + col0 AS col2, - col0 * - 66 * col0 * - - col0 AS col1 FROM tab2 AS cor0
----
141
17301504
142
27843750
97
6424176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2941
SELECT ALL + 97 + AVG ( ALL CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL + 97 + AVG ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL + ( - - col0 ) + 23 AS col0, col1 * col1 FROM tab2
----
69
2601
87
5929
98
4489

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT - COUNT( * ) + + 22 AS col2 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-2943
SELECT - COUNT ( * ) + + 22 AS col2 FROM tab1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT ALL + COUNT( * ) * - 30 + COUNT( * ) + + + 42 * 15 FROM tab2
----
543

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL + COUNT ( * ) * - 30 + COUNT ( * ) + + + 42 * 15 FROM tab2
----
543

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT ALL - MAX( 5 ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-2945
SELECT ALL - MAX ( 5 ) AS col0 FROM tab1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2946
SELECT DISTINCT + + 29 + - + col0 * + 84 AS col0, 55 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) * + + col2 > + + col2
----

skipif mysql # not compatible
query II rowsort label-2946
SELECT DISTINCT + + 29 + - + col0 * + 84 AS col0, 55 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) * + + col2 > + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT DISTINCT - MIN( - col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT - MIN ( - col1 ) FROM tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 > ( col1 )
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT + col2 * + col0 + - + 62 AS col0 FROM tab1 AS cor0
----
4834
4953
6126

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2950
SELECT DISTINCT * FROM tab2 WHERE + col0 + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2950
SELECT DISTINCT * FROM tab2 WHERE + col0 + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col2, + col2 AS col0 FROM tab1
----
-59
59
-68
68
-96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 + - + 14 * + + ( + 18 ) FROM tab1 AS cor0
----
-156
-184
-193

query I rowsort
SELECT DISTINCT + - 36 AS col0 FROM tab2 AS cor0
----
-36

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT + col0 > - + ( col0 )
----

query I rowsort
SELECT 31 * - + col1 AS col1 FROM tab1 AS cor0
----
-1457
-155
-434

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2957
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2957
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 = CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col2 * - ( 28 ) FROM tab2 AS cor0
----
-1120
-1624
-644

query I rowsort
SELECT + col0 * - + col0 * col2 AS col0 FROM tab1 AS cor0
----
-249696
-426275
-563108

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT ALL COUNT( * ) + + 95 FROM tab0 cor0 WHERE NOT ( 29 * + ( - ( + - col1 ) ) + col1 * + - col0 ) >= + col2
----
97

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL COUNT ( * ) + + 95 FROM tab0 cor0 WHERE NOT ( 29 * + ( - ( + - col1 ) ) + col1 * + - col0 ) >= + col2
----
97

query I rowsort
SELECT 82 * - 7 * + col1 * col2 AS col1 FROM tab2 AS cor0
----
-1767920
-2230564
-673302

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2963
SELECT * FROM tab2 WHERE NOT - CAST( + ( + col2 ) AS SIGNED ) + + 48 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2963
SELECT * FROM tab2 WHERE NOT - CAST ( + ( + col2 ) AS INTEGER ) + + 48 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2964
SELECT DISTINCT + 79 DIV - MIN( + 27 ) AS col1 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-2964
SELECT DISTINCT + 79 / - MIN ( + 27 ) AS col1 FROM tab0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2965
SELECT col0 * + CAST( - col1 AS SIGNED ) AS col0 FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-2965
SELECT col0 * + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) = + col1
----

query II rowsort
SELECT DISTINCT + 33 * + ( col1 ), col1 AS col2 FROM tab2 AS cor0
----
1683
51
2211
67
2541
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT - - MAX( - + col2 ) FROM tab0 AS cor0 WHERE NOT NULL <> col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2968
SELECT - - MAX ( - + col2 ) FROM tab0 AS cor0 WHERE NOT NULL <> col2
----
NULL

query II rowsort
SELECT 62, + col2 FROM tab2
----
62
23
62
40
62
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2970
SELECT DISTINCT - CAST( NULL AS SIGNED ), COUNT( * ) AS col2 FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2970
SELECT DISTINCT - CAST ( NULL AS INTEGER ), COUNT ( * ) AS col2 FROM tab1
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2971
SELECT col0 DIV - + col1 + CAST( - col2 AS SIGNED ) * 52 AS col0 FROM tab0
----
-2444
-524
-5245

skipif mysql # not compatible
query I rowsort label-2971
SELECT col0 / - + col1 + CAST ( - col2 AS INTEGER ) * 52 AS col0 FROM tab0
----
-2444
-524
-5245

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT ALL ( COUNT( * ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2972
SELECT ALL ( COUNT ( * ) ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2973
SELECT col1 * - - CAST( NULL AS DECIMAL ) * col0 + + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2973
SELECT col1 * - - CAST ( NULL AS REAL ) * col0 + + col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT ALL + COUNT( DISTINCT + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL + COUNT ( DISTINCT + col0 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 + + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2976
SELECT ALL + col0 + - col1 DIV - 16, col2 - col1 AS col0 FROM tab0 AS cor0
----
20
-34
88
-11
97
98

skipif mysql # not compatible
query II rowsort label-2976
SELECT ALL + col0 + - col1 / - 16, col2 - col1 AS col0 FROM tab0 AS cor0
----
20
-34
88
-11
97
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN 50 AND NULL
----
46
51
23

query I rowsort
SELECT + 65 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 AND + + col2
----

query I rowsort
SELECT - 75 * - col0 + + col0 FROM tab2
----
3496
4864
5700

query I rowsort
SELECT 49 + + col1 FROM tab1
----
54
63
96

query I rowsort
SELECT + 69 + - col0 + - - 45 AS col2 FROM tab2 AS cor0
----
39
50
68

query I rowsort
SELECT + col0 + 26 + + 40 FROM tab2 cor0
----
112
130
141

query I rowsort
SELECT ALL + 3 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT ALL - MAX( + col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT - 37 IS NULL
----
-47

skipif mysql # not compatible
query I rowsort label-2984
SELECT ALL - MAX ( + col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT - 37 IS NULL
----
-47

query I rowsort
SELECT DISTINCT ( - ( - + col2 ) ) FROM tab1 cor0
----
59
68
96

query II rowsort
SELECT ALL col2 * - - col2 * col1 AS col2, col2 AS col2 FROM tab2 AS cor0
----
123200
40
225388
58
26979
23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * - col1 BETWEEN + + col1 AND 1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * + 44 AS col1 FROM tab0 AS cor0
----
3828
4268
660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2989
SELECT - CAST( NULL AS SIGNED ) / 23 * + col2 + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2989
SELECT - CAST ( NULL AS INTEGER ) / 23 * + col2 + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 <= - 81 / + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT ALL - 16 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-2991
SELECT ALL - 16 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
48

query I rowsort
SELECT - + ( - 35 ) * - + col2 FROM tab2 cor0 WHERE NOT - col1 * + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2993
SELECT COUNT( * ) * + - CAST( + MIN( col1 ) AS SIGNED ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2993
SELECT COUNT ( * ) * + - CAST ( + MIN ( col1 ) AS INTEGER ) AS col0 FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 - - col1 * + + 36 col1 FROM tab2 WHERE NOT + + col1 > 7
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2995
SELECT - 45, ( + + COUNT( * ) ) AS col0 FROM tab1
----
-45
3

skipif mysql # not compatible
query II rowsort label-2995
SELECT - 45, ( + + COUNT ( * ) ) AS col0 FROM tab1
----
-45
3

query I rowsort
SELECT 17 + + col2 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2997
SELECT - col0 DIV - 9 AS col2 FROM tab2
----
5
7
8

skipif mysql # not compatible
query I rowsort label-2997
SELECT - col0 / - 9 AS col2 FROM tab2
----
5
7
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2998
SELECT DISTINCT - 95 * - CAST( NULL AS DECIMAL ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2998
SELECT DISTINCT - 95 * - CAST ( NULL AS REAL ) col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2999
SELECT ALL - COUNT( * ) * - COUNT( * ), 3 col0 FROM tab1
----
9
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2999
SELECT ALL - COUNT ( * ) * - COUNT ( * ), 3 col0 FROM tab1
----
9
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3000
SELECT col2 * + col1 + + - col0 AS col0 FROM tab1 AS cor0 WHERE - col1 * + - 13 BETWEEN 62 AND + + CAST( - col0 AS SIGNED ) / + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3000
SELECT col2 * + col1 + + - col0 AS col0 FROM tab1 AS cor0 WHERE - col1 * + - 13 BETWEEN 62 AND + + CAST ( - col0 AS INTEGER ) / + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3001
SELECT ALL - col2 + + + ( - col1 ) * 66 DIV + col0 FROM tab2 AS cor0
----
-116
-119
-96

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL - col2 + + + ( - col1 ) * 66 / + col0 FROM tab2 AS cor0
----
-116
-119
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3002
SELECT + CAST( NULL AS SIGNED ) + + ( + + 90 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3002
SELECT + CAST ( NULL AS INTEGER ) + + ( + + 90 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * col2 + + col2 - col1 AS col1 FROM tab2 AS cor0
----
-1086
-2597
-4359

query I rowsort
SELECT - col1 + + + 17 AS col2 FROM tab0 AS cor0
----
-4
-64
16

query I rowsort
SELECT DISTINCT - - 50 + + col1 AS col0 FROM tab1 AS cor0
----
55
64
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3006
SELECT ALL - CAST( NULL AS SIGNED ) + + MAX( ALL - + ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL - CAST ( NULL AS INTEGER ) + + MAX ( ALL - + ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 54 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3008
SELECT - col2 + - col2 * + col0 + col1 - - col2 DIV col1 * col1 FROM tab0 cor0
----
-671
-859
-9602

skipif mysql # not compatible
query I rowsort label-3008
SELECT - col2 + - col2 * + col0 + col1 - - col2 / col1 * col1 FROM tab0 cor0
----
-671
-859
-9602

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * + 19 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3010
SELECT * FROM tab2 WHERE - - CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-3010
SELECT * FROM tab2 WHERE - - CAST ( NULL AS INTEGER ) >= NULL
----

query I rowsort
SELECT DISTINCT 28 * - col1 * - col0 FROM tab0
----
2716
34020
51156

query II rowsort
SELECT ALL col1 AS col0, col0 * + + 66 AS col0 FROM tab2
----
51
3036
67
4950
77
4224

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE 31 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query II rowsort label-3014
SELECT DISTINCT 50 * - - 46 + + 98, MAX( ALL + - col0 ) AS col2 FROM tab2 AS cor0
----
2398
-46

skipif mysql # not compatible
query II rowsort label-3014
SELECT DISTINCT 50 * - - 46 + + 98, MAX ( ALL + - col0 ) AS col2 FROM tab2 AS cor0
----
2398
-46

query I rowsort
SELECT + 35 - - 9 FROM tab2 AS cor0
----
44
44
44

query I rowsort
SELECT DISTINCT + + col1 * - 92 AS col0 FROM tab2 AS cor0
----
-4692
-6164
-7084

query I rowsort
SELECT col0 FROM tab1 WHERE col1 * col1 + col0 * - 26 < col2 * 82
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT ( MIN( DISTINCT col2 ) ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3018
SELECT ( MIN ( DISTINCT col2 ) ) AS col2 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT ALL 64 + 10 * MAX( DISTINCT + ( col1 ) ) AS col2 FROM tab2
----
834

skipif mysql # not compatible
query I rowsort label-3019
SELECT ALL 64 + 10 * MAX ( DISTINCT + ( col1 ) ) AS col2 FROM tab2
----
834

query I rowsort
SELECT ( - 57 ) FROM tab1
----
-57
-57
-57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3021
SELECT * FROM tab1 WHERE NULL NOT BETWEEN CAST( NULL AS SIGNED ) * 21 AND ( - col1 ) / + col0
----

skipif mysql # not compatible
query III rowsort label-3021
SELECT * FROM tab1 WHERE NULL NOT BETWEEN CAST ( NULL AS INTEGER ) * 21 AND ( - col1 ) / + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3022
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT NULL NOT IN ( + ( - ( + col2 ) ) )
----

skipif mysql # not compatible
query I rowsort label-3022
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT NULL NOT IN ( + ( - ( + col2 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT + COUNT( * ) + + SUM( ALL col0 ) FROM tab2 WHERE NOT + 29 / - col0 <= - 12
----
188

skipif mysql # not compatible
query I rowsort label-3023
SELECT + COUNT ( * ) + + SUM ( ALL col0 ) FROM tab2 WHERE NOT + 29 / - col0 <= - 12
----
188

query I rowsort
SELECT 42 - + col0 AS col2 FROM tab1
----
-43
-49
-9

query I rowsort
SELECT DISTINCT 18 AS col2 FROM tab1 WHERE NOT 9 + col0 / 89 IS NULL
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3026
SELECT DISTINCT col2 + - col2 col2 FROM tab1 WHERE NOT NULL BETWEEN - col2 AND + ( CAST( NULL AS SIGNED ) ) * 80
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3026
SELECT DISTINCT col2 + - col2 col2 FROM tab1 WHERE NOT NULL BETWEEN - col2 AND + ( CAST ( NULL AS INTEGER ) ) * 80
----

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT - col1 IS NULL
----
59
68
96

query I rowsort
SELECT ALL + 40 + ( + col0 - + 17 ) * + col0 AS col1 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 7 FROM tab0 WHERE NOT NULL BETWEEN NULL AND - 69
----

query I rowsort
SELECT ALL - 56 * col2 + col2 AS col2 FROM tab0 WHERE NOT NULL IN ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 + - 95 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab2 WHERE - col1 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT ALL SUM( 88 ) AS col1 FROM tab1
----
264

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL SUM ( 88 ) AS col1 FROM tab1
----
264

onlyif mysql # DIV for integer division: 
query I rowsort label-3034
SELECT ALL + col0 DIV 63 + col0 col0 FROM tab1
----
51
86
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3034
SELECT ALL + col0 / 63 + col0 col0 FROM tab1
----
51
86
92

query I rowsort
SELECT DISTINCT col2 * - ( col2 ) + col0 AS col2 FROM tab1
----
-3396
-4533
-9165

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( + col1 * 91 ) IN ( col0 + - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-3036
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( + col1 * 91 ) IN ( col0 + - col0 )
----
3

query I rowsort
SELECT DISTINCT 6 * - 56 AS col1 FROM tab2 AS cor0
----
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT DISTINCT + COUNT( * ) + 81 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-3038
SELECT DISTINCT + COUNT ( * ) + 81 FROM tab2
----
84

query I rowsort
SELECT DISTINCT - col1 * + 44 FROM tab1 WHERE NOT 85 IN ( 25 + - 19 * 49 )
----
-2068
-220
-616

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 NOT IN ( ( col2 ) )
----

query I rowsort
SELECT DISTINCT 5 AS col0 FROM tab2 AS cor0 WHERE NOT NULL > + col1
----

query I rowsort
SELECT ALL + 28 AS col2 FROM tab1 cor0 WHERE - col0 NOT BETWEEN NULL AND ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT DISTINCT - 64 * - COUNT( * ) FROM tab1 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-3043
SELECT DISTINCT - 64 * - COUNT ( * ) FROM tab1 AS cor0
----
192

query I rowsort
SELECT ALL ( - col2 ) * + 27 FROM tab1 cor0
----
-1593
-1836
-2592

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT COUNT( * ) * COUNT( * ) FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3045
SELECT COUNT ( * ) * COUNT ( * ) FROM tab0 cor0
----
9

query I rowsort
SELECT DISTINCT - col2 + col0 * + col1 AS col0 FROM tab2 AS cor0
----
2323
4888
4967

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3047
SELECT DISTINCT + CAST( - 98 AS SIGNED ) DIV + col1 AS col2 FROM tab0 cor0
----
-1
-4
-98

skipif mysql # not compatible
query I rowsort label-3047
SELECT DISTINCT + CAST ( - 98 AS INTEGER ) / + col1 AS col2 FROM tab0 cor0
----
-1
-4
-98

query I rowsort
SELECT ALL - 42 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( col2 * + ( col2 ) ) AND 17 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3050
SELECT + CAST( + col1 AS SIGNED ) FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3050
SELECT + CAST ( + col1 AS INTEGER ) FROM tab0 cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT ALL - COUNT( * ) + + 78 AS col2 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3051
SELECT ALL - COUNT ( * ) + + 78 AS col2 FROM tab1 AS cor0
----
75

query I rowsort
SELECT 53 AS col0 FROM tab2 AS cor0 WHERE ( - ( - ( + col1 ) ) ) + - ( col1 ) IS NOT NULL
----
53
53
53

query III rowsort
SELECT * FROM tab2 WHERE 17 BETWEEN col2 + + col1 AND ( - col2 ) OR ( - 57 + - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 + - 85 FROM tab0
----
-70
12
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT ALL COUNT( * ) * + 72 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL COUNT ( * ) * + 72 FROM tab1
----
216

query I rowsort
SELECT DISTINCT col1 / - col1 FROM tab2 WHERE ( NULL ) NOT IN ( - 65 * + 39 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT - COUNT( * ) + 67 AS col0 FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-3057
SELECT - COUNT ( * ) + 67 AS col0 FROM tab1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT 8 + + COUNT( DISTINCT - col1 ) + 12 AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3058
SELECT 8 + + COUNT ( DISTINCT - col1 ) + 12 AS col2 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT DISTINCT + ( + 93 ) * COUNT( * ) FROM tab0 WHERE NOT - 18 + + col2 <> ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3059
SELECT DISTINCT + ( + 93 ) * COUNT ( * ) FROM tab0 WHERE NOT - 18 + + col2 <> ( - col1 )
----
0

query I rowsort
SELECT - 25 + 76 FROM tab1
----
51
51
51

query I rowsort
SELECT ALL 81 * + col0 * col2 - 32 AS col0 FROM tab0
----
57073
70438
777811

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3062
SELECT col2 FROM tab0 WHERE ( 20 * col0 ) IN ( + CAST( NULL AS SIGNED ) + - col0 )
----

skipif mysql # not compatible
query I rowsort label-3062
SELECT col2 FROM tab0 WHERE ( 20 * col0 ) IN ( + CAST ( NULL AS INTEGER ) + - col0 )
----

query I rowsort
SELECT - col1 * ( - 4 ) + col1 FROM tab2
----
255
335
385

query I rowsort
SELECT - + col0 + + col2 * + ( col2 ) AS col1 FROM tab1 AS cor0
----
3396
4533
9165

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 86 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT + + ( + COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3066
SELECT + + ( + COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-3067
SELECT DISTINCT - 44, COUNT( * ) AS col2 FROM tab0
----
-44
3

skipif mysql # not compatible
query II rowsort label-3067
SELECT DISTINCT - 44, COUNT ( * ) AS col2 FROM tab0
----
-44
3

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 30 AS col1, - col2 col2 FROM tab0
----
30
-10
30
-47
30
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT ALL + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * + 92 IN ( - 79 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT + COUNT( * ) * - - 41 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3073
SELECT + COUNT ( * ) * - - 41 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - + col1 + + 62 * 34 FROM tab0 AS cor0 WHERE NOT + col1 = NULL
----

query I rowsort
SELECT + ( - col2 ) * - + ( - 32 ) FROM tab0 AS cor0
----
-1504
-3168
-320

query I rowsort
SELECT DISTINCT + AVG ( - ( + 45 ) ) AS col2 FROM tab0 cor0 WHERE + col0 * - col1 * 14 < NULL
----
NULL

query I rowsort
SELECT DISTINCT + col2 * + 34 AS col0 FROM tab2
----
1360
1972
782

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT - 31 * COUNT( * ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-3079
SELECT - 31 * COUNT ( * ) FROM tab0
----
-93

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 NOT BETWEEN col0 AND - ( col0 )
----

query I rowsort
SELECT - col0 * + 54 * col1 * col2 FROM tab0
----
-3083670
-518562
-986580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3082
SELECT - CAST( - - col1 AS SIGNED ) * + + col1 + col0 * + 9 col2 FROM tab1
----
-1390
263
740

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3082
SELECT - CAST ( - - col1 AS INTEGER ) * + + col1 + col0 * + 9 col2 FROM tab1
----
-1390
263
740

query III rowsort
SELECT * FROM tab2 WHERE ( - ( - col1 ) - ( - col1 ) ) BETWEEN 78 AND - 67 AND NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * - col1 * + - 63 FROM tab2
----
163863
282807
373527

query I rowsort
SELECT ALL + 88 * - - 91 + col1 + - col2 * col1 FROM tab0 AS cor0
----
4282
7819
7910

query I rowsort
SELECT DISTINCT col2 * - 98 FROM tab1 cor0 WHERE NOT NULL < ( - col0 * - 29 )
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - col0 AS col2 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
15
87
97

query I rowsort
SELECT col0 * - 0 + + 95 FROM tab2 AS cor0
----
95
95
95

query I rowsort
SELECT - col2 + + 25 + 49 FROM tab2 AS cor0
----
16
34
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3091
SELECT ALL + 58, CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
58
NULL
58
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-3091
SELECT ALL + 58, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
58
NULL
58
NULL
58
NULL

query I rowsort
SELECT ALL 75 + + + col2 FROM tab0 AS cor0
----
122
174
85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3093
SELECT - col1 / + - col1 * - CAST( NULL AS DECIMAL ) + - - col1 * - 8 * + col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3093
SELECT - col1 / + - col1 * - CAST ( NULL AS REAL ) + - - col1 * - 8 * + col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 50 + - 19 AS col2 FROM tab0 AS cor0
----
-69
-69
-69

query I rowsort
SELECT ALL col0 + - col0 * + col0 * - - col1 AS col2 FROM tab0 AS cor0
----
-158862
-18210
-9312

query I rowsort
SELECT 53 * + - col1 + + + col0 AS col2 FROM tab2 AS cor0
----
-2657
-3476
-4017

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < ( + 8 )
----

query I rowsort
SELECT ALL + 8 AS col0 FROM tab0 AS cor0
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3099
SELECT ALL - 99 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL - 99 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT - + COUNT( * ) + + 50 AS col0 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3100
SELECT - + COUNT ( * ) + + 50 AS col0 FROM tab0 AS cor0
----
47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 93 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0, - 55 FROM tab0
----
15
-55
87
-55
97
-55

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT NULL <= - col1 * + 82 + + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE - 98 NOT IN ( + 15, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT ALL COUNT( * ) - - COUNT( * ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3106
SELECT DISTINCT * FROM tab0 WHERE NOT + ( + CAST( NULL AS DECIMAL ) ) <= + col1
----

skipif mysql # not compatible
query III rowsort label-3106
SELECT DISTINCT * FROM tab0 WHERE NOT + ( + CAST ( NULL AS REAL ) ) <= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT ALL COUNT( DISTINCT + + col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3107
SELECT ALL COUNT ( DISTINCT + + col2 ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col2, 23 FROM tab0 AS cor0
----
15
23
87
23
97
23

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col2 / - ( - - 26 ) * col1 BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT + ( + + col1 ), col1 * + 79 FROM tab2 AS cor0
----
51
4029
67
5293
77
6083

query I rowsort
SELECT - - 82 AS col1 FROM tab1 AS cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT MAX( - 54 ) AS col2 FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-3112
SELECT MAX ( - 54 ) AS col2 FROM tab2 AS cor0
----
-54

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 - 32 < + col1 + + col1
----

query I rowsort
SELECT 93 FROM tab0 AS cor0 WHERE NOT col0 < + col2 * - - col2 * - 80
----
93
93
93

query I rowsort
SELECT DISTINCT + col2 / - 23 + col1 / - 80 * 83 + col2 * - col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL = NULL )
----

query I rowsort
SELECT DISTINCT - 26 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT - col0 + - 13 * - + 41 NOT BETWEEN NULL AND ( - col0 ) )
----
-26

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 NOT IN ( ( - - col2 ) / - - col1, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT ALL - COUNT( + ( + col2 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL - COUNT ( + ( + col2 ) ) FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( + col0 + + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT ALL MIN( 20 ) FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL MIN ( 20 ) FROM tab1
----
20

query I rowsort
SELECT + - 67 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3122
SELECT + CAST( NULL AS SIGNED ) + 30 - SUM( + col1 ), 58 * - COUNT( * ) AS col0 FROM tab1
----
NULL
-174

skipif mysql # not compatible
query II rowsort label-3122
SELECT + CAST ( NULL AS INTEGER ) + 30 - SUM ( + col1 ), 58 * - COUNT ( * ) AS col0 FROM tab1
----
NULL
-174

query II rowsort
SELECT - 88, - 17 AS col1 FROM tab2, tab2 AS cor0
----
18 values hashing to 35cd11597d69de17f73d949589036820

query I rowsort
SELECT ALL - - 31 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT ALL 69 * + COUNT( * ) + - 44 + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
586

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL 69 * + COUNT ( * ) + - 44 + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
586

query I rowsort
SELECT - ( - 82 ) AS col0 FROM tab2 AS cor0 WHERE - 77 >= - + col0
----

query I rowsort
SELECT DISTINCT - - ( 59 ) FROM tab2 AS cor0
----
59

query I rowsort
SELECT DISTINCT - col2 * + col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3129
SELECT + COUNT( * ) - - AVG ( DISTINCT - col2 ) * - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3129
SELECT + COUNT ( * ) - - AVG ( DISTINCT - col2 ) * - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 / ( + col0 ) * 89, col1, - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 38 <= 3
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( + col0 ) < + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT ALL 5 - - COUNT( * ) AS col2 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL 5 - - COUNT ( * ) AS col2 FROM tab1
----
8

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN + + col0 AND 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT DISTINCT + MAX( + + 81 ) AS col0 FROM tab1 WHERE NOT NULL <> + - 75 * col2 - col2 * + col0 + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT + MAX ( + + 81 ) AS col0 FROM tab1 WHERE NOT NULL <> + - 75 * col2 - col2 * + col0 + col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3136
SELECT ALL + col0 DIV col2 * - col0 * + 10 col2 FROM tab1
----
-850
-910
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3136
SELECT ALL + col0 / col2 * - col0 * + 10 col2 FROM tab1
----
-850
-910
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 93 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - col0, col0 + - + col1 col1, - + 15 * + - 52 AS col2 FROM tab2
----
9 values hashing to 43bb75b5c55bfe0226b0e5bb962988c5

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT DISTINCT - MIN( DISTINCT + col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3139
SELECT DISTINCT - MIN ( DISTINCT + col1 ) FROM tab0
----
-1

query II rowsort
SELECT ALL ( + col1 ) * + - 39 AS col0, ( + col2 ) FROM tab2
----
-1989
23
-2613
58
-3003
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3141
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE - - 81 + - + 59 - + - col2 + + ( - + col2 ) + + ( + CAST( + col2 AS SIGNED ) ) * - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE - - 81 + - + 59 - + - col2 + + ( - + col2 ) + + ( + CAST ( + col2 AS INTEGER ) ) * - col0 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3142
SELECT + 57 AS col1, ( + ( - COUNT( * ) ) ) col2 FROM tab0
----
57
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3142
SELECT + 57 AS col1, ( + ( - COUNT ( * ) ) ) col2 FROM tab0
----
57
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 24 ) < ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 IN ( - - 37, - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND + 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT COUNT( * ) * + 47 AS col2 FROM tab2
----
141

skipif mysql # not compatible
query I rowsort label-3147
SELECT COUNT ( * ) * + 47 AS col2 FROM tab2
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3148
SELECT + AVG ( col1 ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1, col2, - CAST( NULL AS SIGNED ), + ( - col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3148
SELECT + AVG ( col1 ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1, col2, - CAST ( NULL AS INTEGER ), + ( - col0 ) )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3149
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) * col2 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3149
SELECT DISTINCT - + CAST ( NULL AS REAL ) * col2 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3150
SELECT DISTINCT - 22 DIV + col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT - 22 / + col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT ALL 91 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL 91 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
94

query I rowsort
SELECT 88 + + - 73 * + - col0 AS col1 FROM tab0 AS cor0
----
1183
6439
7169

onlyif mysql # aggregate syntax: 
query II rowsort label-3153
SELECT + COUNT( DISTINCT - col0 ) + + 73 col2, 48 FROM tab1
----
76
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3153
SELECT + COUNT ( DISTINCT - col0 ) + + 73 col2, 48 FROM tab1
----
76
48

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT - - col2 * - col1 + + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT col0 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( NOT + - col2 / + - col0 NOT BETWEEN NULL AND col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3157
SELECT + ( - - col1 ), - col1 AS col2, - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
9 values hashing to 742540774cb8bed15aae891153323c96

skipif mysql # not compatible
query III rowsort label-3157
SELECT + ( - - col1 ), - col1 AS col2, - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
9 values hashing to 742540774cb8bed15aae891153323c96

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT - COUNT( * ) * - 16 * - - COUNT( * ) * - - 97 AS col1 FROM tab1 AS cor0
----
13968

skipif mysql # not compatible
query I rowsort label-3159
SELECT - COUNT ( * ) * - 16 * - - COUNT ( * ) * - - 97 AS col1 FROM tab1 AS cor0
----
13968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3160
SELECT + 64 + - 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-3160
SELECT + 64 + - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT + - ( 15 ) + + + MAX( - - col1 ) FROM tab0 cor0
----
66

skipif mysql # not compatible
query I rowsort label-3162
SELECT + - ( 15 ) + + + MAX ( - - col1 ) FROM tab0 cor0
----
66

query I rowsort
SELECT ALL - col2 + - col2 + - + col0 FROM tab2 AS cor0
----
-144
-191
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3164
SELECT 46 AS col2, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
46
NULL
46
NULL
46
NULL

skipif mysql # not compatible
query II rowsort label-3164
SELECT 46 AS col2, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
46
NULL
46
NULL
46
NULL

query II rowsort
SELECT - 96, - col2 + + col1 AS col0 FROM tab1 AS cor0
----
-96
-21
-96
-54
-96
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT ALL + 9 * COUNT( * ) FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL + 9 * COUNT ( * ) FROM tab1 AS cor0
----
27

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + - - ( + + 26 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 59 * + - col1 FROM tab2 AS cor0
----
-3009
-3953
-4543

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT ALL + 39 * - MAX( - - 53 ) AS col1 FROM tab1 AS cor0
----
-2067

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL + 39 * - MAX ( - - 53 ) AS col1 FROM tab1 AS cor0
----
-2067

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + - 10 + + col0 + + - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 89 FROM tab1 AS cor0 WHERE NOT + col2 * col1 IS NULL
----
-89
-89
-89

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT COUNT( + 73 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3174
SELECT COUNT ( + 73 ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3175
SELECT DISTINCT * FROM tab2 WHERE NOT CAST( + 90 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3175
SELECT DISTINCT * FROM tab2 WHERE NOT CAST ( + 90 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < col0 / + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col0, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT COUNT( * ) + 32 AS col0 FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-3178
SELECT COUNT ( * ) + 32 AS col0 FROM tab2 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT + SUM( - + col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3179
SELECT + SUM ( - + col0 ) AS col2 FROM tab1 AS cor0
----
-227

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3180
SELECT * FROM tab0 AS cor0 WHERE ( + CAST( NULL AS DECIMAL ) + - col1 ) IN ( - col0, + 83 )
----

skipif mysql # not compatible
query III rowsort label-3180
SELECT * FROM tab0 AS cor0 WHERE ( + CAST ( NULL AS REAL ) + - col1 ) IN ( - col0, + 83 )
----

query I rowsort
SELECT - + col2 + - col1 FROM tab0 AS cor0 WHERE 58 IS NULL
----

query I rowsort
SELECT ALL - + 60 + - col1 + col1 FROM tab1 AS cor0
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT ALL + COUNT( * ) * - - SUM( ALL + + col2 ) FROM tab2 cor0
----
363

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL + COUNT ( * ) * - - SUM ( ALL + + col2 ) FROM tab2 cor0
----
363

query II rowsort
SELECT - - col2 AS col0, + col0 AS col0 FROM tab0 cor0
----
10
87
47
15
99
97

query I rowsort
SELECT 91 * - 45 FROM tab1
----
-4095
-4095
-4095

query I rowsort
SELECT ALL 73 + + - col1 AS col2 FROM tab1
----
26
59
68

query I rowsort
SELECT 32 - - + col2 AS col2 FROM tab1
----
100
128
91

query I rowsort
SELECT + col2 - + col1 + 63 AS col0 FROM tab1
----
117
145
84

onlyif mysql # aggregate syntax: 
query II rowsort label-3189
SELECT ALL 27, + COUNT( * ) col1 FROM tab2 AS cor0
----
27
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3189
SELECT ALL 27, + COUNT ( * ) col1 FROM tab2 AS cor0
----
27
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3190
SELECT DISTINCT 42 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT 42 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - col1 * + col1 + + - 39 + - col0 + 67 FROM tab1 AS cor0
----
-32
173
2146

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 39 >= NULL
----

query I rowsort
SELECT ALL + 22 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT ALL - - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL - - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 16 - + - 36 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT 9 * - col0 FROM tab2
----
-414
-576
-675

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 40 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 51 col0 FROM tab2 cor0
----
51
51
51

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT + MIN( - col0 ) FROM tab1 AS cor0 WHERE NOT - col1 * + 18 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3200
SELECT + MIN ( - col0 ) FROM tab1 AS cor0 WHERE NOT - col1 * + 18 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT - MAX( + col0 ) * + 2 FROM tab2 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-3201
SELECT - MAX ( + col0 ) * + 2 FROM tab2 AS cor0
----
-150

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 37 + col2 * - + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT + 72 * - MIN( DISTINCT + col2 ) FROM tab0
----
-720

skipif mysql # not compatible
query I rowsort label-3203
SELECT + 72 * - MIN ( DISTINCT + col2 ) FROM tab0
----
-720

query II rowsort
SELECT ALL - col1, - col0 * + col2 + - 52 - ( - col1 ) AS col0 FROM tab0
----
-1
-9654
-21
-901
-81
-676

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 AND + col0 + - 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT ALL MAX( DISTINCT col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL MAX ( DISTINCT col2 ) FROM tab2
----
58

query II rowsort
SELECT DISTINCT col0 AS col1, - col1 FROM tab1
----
51
-14
85
-5
91
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT MIN( + - 29 ) AS col0 FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-3208
SELECT MIN ( + - 29 ) AS col0 FROM tab1
----
-29

query I rowsort
SELECT + 34 * - 46 FROM tab2 AS cor0
----
-1564
-1564
-1564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3210
SELECT + - CAST( - 37 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-3210
SELECT + - CAST ( - 37 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
37
37
37

query III rowsort
SELECT ALL * FROM tab0 WHERE + 5 * - + col2 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3212
SELECT + col2 DIV - 66 FROM tab0 AS cor0 WHERE + 15 IS NOT NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3212
SELECT + col2 / - 66 FROM tab0 AS cor0 WHERE + 15 IS NOT NULL
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT + SUM( col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-3213
SELECT + SUM ( col0 ) AS col0 FROM tab2 AS cor0
----
185

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-3215
SELECT - 24, 60 + - + 5 DIV 21 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-24
60
-24
60
-24
60

skipif mysql # not compatible
query II rowsort label-3215
SELECT - 24, 60 + - + 5 / 21 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-24
60
-24
60
-24
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT ALL - COUNT( * ) + - COUNT( * ) * + - 98 * + 37 FROM tab0 AS cor0
----
10875

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL - COUNT ( * ) + - COUNT ( * ) * + - 98 * + 37 FROM tab0 AS cor0
----
10875

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 - - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 + - col2 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT + + col2 + + ( + + col2 ) FROM tab2 AS cor0
----
116
46
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 84 * + - col2 col1 FROM tab0
----
-3948
-8316
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT ALL COUNT( * ) + - 64 FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL COUNT ( * ) + - 64 FROM tab0
----
-61

query I rowsort
SELECT + 12 + - 31 FROM tab0
----
-19
-19
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-3223
SELECT - 60 DIV - + col1 + col0 AS col1 FROM tab2
----
47
64
75

skipif mysql # not compatible
query I rowsort label-3223
SELECT - 60 / - + col1 + col0 AS col1 FROM tab2
----
47
64
75

query I rowsort
SELECT ALL 31 - + col0 AS col2 FROM tab2
----
-15
-33
-44

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 / - col2 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT DISTINCT + 36 * - + 91 * + COUNT( * ) col2 FROM tab1
----
-9828

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3226
SELECT DISTINCT + 36 * - + 91 * + COUNT ( * ) col2 FROM tab1
----
-9828

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT COUNT( * ) * + 26 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-3227
SELECT COUNT ( * ) * + 26 FROM tab2
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3228
SELECT DISTINCT 85 DIV + - col0 col2 FROM tab0
----
-5
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3228
SELECT DISTINCT 85 / + - col0 col2 FROM tab0
----
-5
0

query I rowsort
SELECT ALL - - ( 32 ) AS col0 FROM tab2 AS cor0
----
32
32
32

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 99 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 / + col1 * col0 IS NULL
----

query I rowsort
SELECT DISTINCT - 99 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-99

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE ( NOT - 40 - - col1 IS NOT NULL )
----

query I rowsort
SELECT + 62 * col1 FROM tab2 cor0
----
3162
4154
4774

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT DISTINCT SUM( - col0 ) FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3235
SELECT DISTINCT SUM ( - col0 ) FROM tab1 cor0
----
-227

query II rowsort
SELECT - + col1 AS col2, col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT - 71 * + + COUNT( + - 23 ) FROM tab1 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-3237
SELECT - 71 * + + COUNT ( + - 23 ) FROM tab1 AS cor0
----
-213

query II rowsort
SELECT 99 AS col1, col1 FROM tab2 AS cor0
----
99
51
99
67
99
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - col2 col1, col1, + 58 + col0 AS col2 FROM tab2 AS cor0
----
9 values hashing to efb80609410d89f5818aa7481dde67bd

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT ALL COUNT( * ) * - 57 col0 FROM tab0
----
-171

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3240
SELECT ALL COUNT ( * ) * - 57 col0 FROM tab0
----
-171

onlyif mysql # DIV for integer division: 
query I rowsort label-3241
SELECT - 23 DIV + 89 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3241
SELECT - 23 / + 89 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3242
SELECT ALL ( 7 ) * + - CAST( NULL AS SIGNED ) * COUNT( * ) + - 26 AS col0, + 54 AS col1 FROM tab2
----
NULL
54

skipif mysql # not compatible
query II rowsort label-3242
SELECT ALL ( 7 ) * + - CAST ( NULL AS INTEGER ) * COUNT ( * ) + - 26 AS col0, + 54 AS col1 FROM tab2
----
NULL
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3243
SELECT DISTINCT CAST( 22 AS SIGNED ) FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-3243
SELECT DISTINCT CAST ( 22 AS INTEGER ) FROM tab1 AS cor0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3244
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 ) >= - CAST( + col0 AS SIGNED ) * col2
----

skipif mysql # not compatible
query III rowsort label-3244
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 ) >= - CAST ( + col0 AS INTEGER ) * col2
----

query I rowsort
SELECT + 27 + - col0 FROM tab1
----
-24
-58
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT ALL COUNT( * ) * + 10 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL COUNT ( * ) * + 10 FROM tab0
----
30

query I rowsort
SELECT DISTINCT - - col0 AS col2 FROM tab0 WHERE NOT + col0 + - col2 = + - col0 + - 73
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3248
SELECT + 62 DIV col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3248
SELECT + 62 / col0 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3249
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 / - + col2 + + col2 * + - col2 + + - 10 <= + CAST( - - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3249
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 / - + col2 + + col2 * + - col2 + + - 10 <= + CAST ( - - col0 AS INTEGER )
----

query II rowsort
SELECT 14 AS col1, 85 + col0 * 55 + + 23 AS col0 FROM tab2 AS cor0
----
14
2638
14
3628
14
4233

query I rowsort
SELECT ALL 95 + + + col0 FROM tab1
----
146
180
186

query III rowsort
SELECT * FROM tab0 WHERE 33 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 34 AS col1 FROM tab0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT MIN( ALL - + col1 ) + + ( - 18 ) FROM tab1
----
-65

skipif mysql # not compatible
query I rowsort label-3254
SELECT MIN ( ALL - + col1 ) + + ( - 18 ) FROM tab1
----
-65

query I rowsort
SELECT col0 * - col0 + - ( - - 6 ) AS col1 FROM tab2
----
-2122
-4102
-5631

query I rowsort
SELECT + col0 + - + col2 FROM tab0 AS cor0
----
-2
-32
77

query II rowsort
SELECT ALL - col1 + + 68, + col2 FROM tab1 cor0
----
21
68
54
96
63
59

query I rowsort
SELECT ( + col2 ) * + 95 FROM tab0
----
4465
9405
950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 * + + col1 col2 FROM tab1 AS cor0
----
-2162
-230
-644

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT - 23 * + 49 AS col1 FROM tab2 cor0
----
-1127

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT - SUM( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3262
SELECT - SUM ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT 12 * - - COUNT( * ) * - 33 col1 FROM tab1 AS cor0
----
-1188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3263
SELECT 12 * - - COUNT ( * ) * - 33 col1 FROM tab1 AS cor0
----
-1188

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT ALL - - 31 * - - COUNT( * ) FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL - - 31 * - - COUNT ( * ) FROM tab1 AS cor0
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, - 33 - - col1 col0 FROM tab2
----
46
18
64
44
75
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3267
SELECT COUNT( CAST( + 50 AS SIGNED ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3267
SELECT COUNT ( CAST ( + 50 AS INTEGER ) ) AS col2 FROM tab2
----
3

query I rowsort
SELECT ( 50 ) AS col2 FROM tab1
----
50
50
50

query II rowsort
SELECT DISTINCT col1 AS col1, + col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT - COUNT( + + col2 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3270
SELECT - COUNT ( + + col2 ) AS col0 FROM tab2
----
-3

query II rowsort
SELECT DISTINCT + 87 AS col2, 2 FROM tab1
----
87
2

query II rowsort
SELECT DISTINCT - col1, + col0 FROM tab0
----
-1
97
-21
87
-81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT DISTINCT + COUNT( * ) + - - 41 AS col1 FROM tab2 cor0
----
44

skipif mysql # not compatible
query I rowsort label-3273
SELECT DISTINCT + COUNT ( * ) + - - 41 AS col1 FROM tab2 cor0
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 col1, - 5 FROM tab0 AS cor0
----
1
-5
21
-5
81
-5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 * + col1 AND - 48 + + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col1 + + + col1 * - + ( - - 14 ) + - col0 ) <> - 48
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT ALL + SUM( ALL ( + 90 ) ) FROM tab1 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL + SUM ( ALL ( + 90 ) ) FROM tab1 AS cor0
----
270

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3278
SELECT DISTINCT + + col0 + CAST( NULL AS SIGNED ), - 29 AS col2 FROM tab2 AS cor0
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-3278
SELECT DISTINCT + + col0 + CAST ( NULL AS INTEGER ), - 29 AS col2 FROM tab2 AS cor0
----
NULL
-29

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 IS NULL OR - - col1 IS NULL
----

query I rowsort
SELECT - ( + col1 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3281
SELECT * FROM tab1 AS cor0 WHERE col0 = ( col2 * + ( - CAST( NULL AS SIGNED ) ) * col2 - - 39 )
----

skipif mysql # not compatible
query III rowsort label-3281
SELECT * FROM tab1 AS cor0 WHERE col0 = ( col2 * + ( - CAST ( NULL AS INTEGER ) ) * col2 - - 39 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + + - col0 AS col2, 38 col0 FROM tab2 AS cor0
----
-8
38
13
38
5
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT DISTINCT - - 91 + - SUM( + 4 ) * - MAX( DISTINCT + 97 ) AS col0 FROM tab0 cor0
----
1255

skipif mysql # not compatible
query I rowsort label-3283
SELECT DISTINCT - - 91 + - SUM ( + 4 ) * - MAX ( DISTINCT + 97 ) AS col0 FROM tab0 cor0
----
1255

query I rowsort
SELECT - - col0 + - 55 + - col1 + + col0 * + col0 AS col2 FROM tab2 cor0
----
2056
4028
5578

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT ALL + 70 + - + COUNT( * ) * + - 29 AS col0 FROM tab0 AS cor0
----
157

skipif mysql # not compatible
query I rowsort label-3285
SELECT ALL + 70 + - + COUNT ( * ) * + - 29 AS col0 FROM tab0 AS cor0
----
157

query I rowsort
SELECT - 38 + - 71 AS col1 FROM tab1
----
-109
-109
-109

query I rowsort
SELECT DISTINCT col0 + col1 - - + 3 AS col2 FROM tab0
----
101
111
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT DISTINCT + COUNT( * ) * - 64 - SUM( DISTINCT col0 ) FROM tab2
----
-377

skipif mysql # not compatible
query I rowsort label-3288
SELECT DISTINCT + COUNT ( * ) * - 64 - SUM ( DISTINCT col0 ) FROM tab2
----
-377

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT ALL - 40 - + ( + COUNT( * ) ) * COUNT( * ) FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-3289
SELECT ALL - 40 - + ( + COUNT ( * ) ) * COUNT ( * ) FROM tab0
----
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col0 ) - + col0 col0 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3291
SELECT DISTINCT - COUNT( * ) * + SUM( ALL + CAST( NULL AS SIGNED ) ) + - 59 col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3291
SELECT DISTINCT - COUNT ( * ) * + SUM ( ALL + CAST ( NULL AS INTEGER ) ) + - 59 col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 17 * 99 AS col2 FROM tab0 AS cor0 WHERE NOT col2 = - col0
----
-1683

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3293
SELECT DISTINCT 37 * - + col2 FROM tab2 AS cor0 WHERE NOT NULL <> ( + col1 ) * - 15 + - ( - col2 ) * - + CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT 37 * - + col2 FROM tab2 AS cor0 WHERE NOT NULL <> ( + col1 ) * - 15 + - ( - col2 ) * - + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 col0 FROM tab2 AS cor0
----
11
11
11

query I rowsort
SELECT DISTINCT col0 * + 21 FROM tab0
----
1827
2037
315

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT - COUNT( ALL - + col0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3296
SELECT - COUNT ( ALL - + col0 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT + - COUNT( col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3297
SELECT + - COUNT ( col1 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT DISTINCT + - 84 * - COUNT( * ) * 74 AS col1 FROM tab2 AS cor0
----
18648

skipif mysql # not compatible
query I rowsort label-3298
SELECT DISTINCT + - 84 * - COUNT ( * ) * 74 AS col1 FROM tab2 AS cor0
----
18648

query I rowsort
SELECT ALL - 5 * + ( + 90 ) + col1 FROM tab2 AS cor0
----
-373
-383
-399

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT DISTINCT COUNT( - 68 ) * + 37 AS col2 FROM tab1 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-3300
SELECT DISTINCT COUNT ( - 68 ) * + 37 AS col2 FROM tab1 AS cor0
----
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3301
SELECT DISTINCT - - SUM( + ( + col0 ) ) DIV - 80 col0 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3301
SELECT DISTINCT - - SUM ( + ( + col0 ) ) / - 80 col0 FROM tab0 AS cor0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3302
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 IN ( - col0, CAST( + ( + + 90 ) AS SIGNED ), + + col2 / ( col0 ) / 44 + + - col0 - col2 * + 94 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3302
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 IN ( - col0, CAST ( + ( + + 90 ) AS INTEGER ), + + col2 / ( col0 ) / 44 + + - col0 - col2 * + 94 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NULL BETWEEN - 56 AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # DIV for integer division: 
query I rowsort label-3305
SELECT ( 28 ) DIV - + 75 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3305
SELECT ( 28 ) / - + 75 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - 43 * - + 45 FROM tab0
----
1935
1935
1935

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3307
SELECT + COUNT( * ) DIV 40 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3307
SELECT + COUNT ( * ) / 40 AS col1 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3308
SELECT DISTINCT MIN( col1 ) * + - 10 + COUNT( + col2 ) FROM tab0 cor0 WHERE - 57 NOT BETWEEN NULL AND CAST( NULL AS SIGNED ) * - - col1 * + - 0 + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-3308
SELECT DISTINCT MIN ( col1 ) * + - 10 + COUNT ( + col2 ) FROM tab0 cor0 WHERE - 57 NOT BETWEEN NULL AND CAST ( NULL AS INTEGER ) * - - col1 * + - 0 + 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT - COUNT( * ) * ( - + 51 ) - 10 col2 FROM tab2 AS cor0
----
143

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3309
SELECT - COUNT ( * ) * ( - + 51 ) - 10 col2 FROM tab2 AS cor0
----
143

query I rowsort
SELECT - col0 + col1 + + 24 AS col1 FROM tab2 AS cor0
----
16
29
37

query II rowsort
SELECT DISTINCT 99, col0 FROM tab1
----
99
51
99
85
99
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT - MIN( + 28 ) AS col0 FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-3312
SELECT - MIN ( + 28 ) AS col0 FROM tab0
----
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, + col1 FROM tab2
----
51
51
67
67
77
77

query II rowsort
SELECT ALL col2, col1 - - - 20 FROM tab0
----
10
1
47
61
99
-19

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3316
SELECT ALL - 0 * - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL - 0 * - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col0, - col0 AS col1 FROM tab1 AS cor0
----
-51
-51
-85
-85
-91
-91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * ( - col2 ) * - ( + col1 ) = - ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( NOT col0 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 < 61
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT - COUNT( * ) - 39 + + COUNT( * ) FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-3322
SELECT - COUNT ( * ) - 39 + + COUNT ( * ) FROM tab1
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3323
SELECT DISTINCT * FROM tab1 WHERE col0 * col1 * CAST( NULL AS SIGNED ) + - - col0 + - + ( - + col0 ) + 75 * - 13 >= NULL
----

skipif mysql # not compatible
query III rowsort label-3323
SELECT DISTINCT * FROM tab1 WHERE col0 * col1 * CAST ( NULL AS INTEGER ) + - - col0 + - + ( - + col0 ) + 75 * - 13 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3324
SELECT DISTINCT - 99 + col2 AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-52
NULL
-89
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-3324
SELECT DISTINCT - 99 + col2 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-52
NULL
-89
NULL
0
NULL

query I rowsort
SELECT + col0 + 81 - 24 * + 21 + - - col0 FROM tab1
----
-241
-253
-321

query I rowsort
SELECT - col1 + + 38 - - col1 + + col1 FROM tab0
----
119
39
59

query I rowsort
SELECT ALL col0 - + col1 + 5 FROM tab2
----
-8
0
13

query I rowsort
SELECT - - 23 + - 19 AS col0 FROM tab0 WHERE - + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3329
SELECT + 54 + + - 92 DIV - col0 FROM tab2
----
55
55
56

skipif mysql # not compatible
query I rowsort label-3329
SELECT + 54 + + - 92 / - col0 FROM tab2
----
55
55
56

query I rowsort
SELECT DISTINCT - 32 * + col2 AS col2 FROM tab1 cor0
----
-1888
-2176
-3072

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 97 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 * col1 + + 54 + + - 0 col0 FROM tab1 WHERE NOT - + col1 >= + - 31 * - 88
----
2310
294
726

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
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-3333
SELECT COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT + 82 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND col1 / 43 * + + col1 * - col0 * + col2 + - col0 * + col1 + - ( + + ( + 35 ) )
----

query II rowsort
SELECT DISTINCT - col2 AS col0, - col1 + 41 FROM tab1 AS cor0
----
-59
36
-68
-6
-96
27

query I rowsort
SELECT col1 * - + 20 * - 81 FROM tab0 AS cor0 WHERE NOT + col2 * - 93 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3338
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * + 79 + + col1 NOT IN ( CAST( NULL AS SIGNED ), + 5, col1 * + col1 + 79 )
----

skipif mysql # not compatible
query III rowsort label-3338
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * + 79 + + col1 NOT IN ( CAST ( NULL AS INTEGER ), + 5, col1 * + col1 + 79 )
----

query I rowsort
SELECT DISTINCT - 48 * - col1 FROM tab0 AS cor0
----
1008
3888
48

query I rowsort
SELECT + col2 * + - 0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT - SUM( - - 40 ) FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-3341
SELECT - SUM ( - - 40 ) FROM tab2 AS cor0
----
-120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 * + - 50 col1 FROM tab0 AS cor0
----
4750
4750
4750

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT + - COUNT( * ) * + 13 AS col0 FROM tab1 cor0
----
-39

skipif mysql # not compatible
query I rowsort label-3343
SELECT + - COUNT ( * ) * + 13 AS col0 FROM tab1 cor0
----
-39

query I rowsort
SELECT 95 + + - col2 AS col0 FROM tab1
----
-1
27
36

onlyif mysql # DIV for integer division: 
query I rowsort label-3345
SELECT col0 DIV 21 + + - 19 AS col1 FROM tab2
----
-16
-16
-17

skipif mysql # not compatible
query I rowsort label-3345
SELECT col0 / 21 + + - 19 AS col1 FROM tab2
----
-16
-16
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( col1 ), col0 col0 FROM tab2
----
-51
46
-67
75
-77
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3347
SELECT + 46 DIV + ( col1 ) AS col0 FROM tab1 AS cor0
----
0
3
9

skipif mysql # not compatible
query I rowsort label-3347
SELECT + 46 / + ( col1 ) AS col0 FROM tab1 AS cor0
----
0
3
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT - + ( - MIN( col2 ) ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3348
SELECT - + ( - MIN ( col2 ) ) FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT DISTINCT + - COUNT( * ) + + COUNT( - col1 ) * - - 16 * + COUNT( * ) FROM tab2 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-3349
SELECT DISTINCT + - COUNT ( * ) + + COUNT ( - col1 ) * - - 16 * + COUNT ( * ) FROM tab2 AS cor0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT ALL - MAX( 12 ) + - - COUNT( * ) + - + 48 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL - MAX ( 12 ) + - - COUNT ( * ) + - + 48 FROM tab2 AS cor0
----
-57

query I rowsort
SELECT DISTINCT - col0 + - col0 + + - 54 AS col2 FROM tab2 AS cor0
----
-146
-182
-204

query I rowsort
SELECT + col2 * - 42 FROM tab2
----
-1680
-2436
-966

query I rowsort
SELECT ALL - 69 + col1 - + col2 * + col2 AS col0 FROM tab1
----
-3545
-4646
-9271

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT DISTINCT - 36 + + - MAX( col0 ) FROM tab1
----
-127

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT - 36 + + - MAX ( col0 ) FROM tab1
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT ALL + COUNT( * ) - - 29 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
38

skipif mysql # not compatible
query I rowsort label-3355
SELECT ALL + COUNT ( * ) - - 29 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3356
SELECT DISTINCT COUNT( * ) DIV + 94 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT COUNT ( * ) / + 94 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT ALL - - COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL - - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT + 48 + + MAX( ALL 79 ) AS col2 FROM tab0 cor0
----
127

skipif mysql # not compatible
query I rowsort label-3358
SELECT + 48 + + MAX ( ALL 79 ) AS col2 FROM tab0 cor0
----
127

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 35 + + 43 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT ALL + 16 - - COUNT( * ) col0 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3360
SELECT ALL + 16 - - COUNT ( * ) col0 FROM tab2 AS cor0
----
19

query II rowsort
SELECT + col1, - ( 26 ) AS col2 FROM tab1
----
14
-26
47
-26
5
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3362
SELECT DISTINCT - 91 * CAST( + CAST( - 81 AS SIGNED ) AS SIGNED ) * + COUNT( * ) AS col2 FROM tab2
----
22113

skipif mysql # not compatible
query I rowsort label-3362
SELECT DISTINCT - 91 * CAST ( + CAST ( - 81 AS INTEGER ) AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab2
----
22113

query II rowsort
SELECT col2 AS col0, col1 FROM tab1
----
59
5
68
47
96
14

query II rowsort
SELECT ALL - col0, - 97 + + - col0 AS col1 FROM tab1
----
-51
-148
-85
-182
-91
-188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3365
SELECT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT 78 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3365
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 78 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT DISTINCT - + COUNT( ALL - 43 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3366
SELECT DISTINCT - + COUNT ( ALL - 43 ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT - + col0, col0 AS col1 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query II rowsort
SELECT ALL col0, - 6 FROM tab2 AS cor0
----
46
-6
64
-6
75
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT - SUM( + col0 ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
597

skipif mysql # not compatible
query I rowsort label-3369
SELECT - SUM ( + col0 ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
597

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT ALL + 86 * + + COUNT( * ) - + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL + 86 * + + COUNT ( * ) - + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3371
SELECT + 37 DIV col1 AS col2, 57 + ( - - 3 ) + + col2 FROM tab2
----
0
100
0
118
0
83

skipif mysql # not compatible
query II rowsort label-3371
SELECT + 37 / col1 AS col2, 57 + ( - - 3 ) + + col2 FROM tab2
----
0
100
0
118
0
83

query I rowsort
SELECT ALL - 87 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3373
SELECT DISTINCT + MAX( - - 43 ), CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
43
NULL

skipif mysql # not compatible
query II rowsort label-3373
SELECT DISTINCT + MAX ( - - 43 ), CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
43
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * + 16 IS NULL
----

query I rowsort
SELECT + - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT SUM( ALL + + col1 ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3376
SELECT SUM ( ALL + + col1 ) AS col2 FROM tab1 AS cor0
----
66

query I rowsort
SELECT - - col1 * - 37 FROM tab2 AS cor0
----
-1887
-2479
-2849

query I rowsort
SELECT ALL + 51 + ( 18 ) * - col2 AS col0 FROM tab0 AS cor0
----
-129
-1731
-795

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * + 40 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT + ( + COUNT( - col0 ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3380
SELECT + ( + COUNT ( - col0 ) ) FROM tab0 cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col1 / - 95 + col1 IS NULL
----

query II rowsort
SELECT 82 AS col0, 68 FROM tab1
----
82
68
82
68
82
68

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 < - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE 20 < - - 61
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 3 * col1 AS col1 FROM tab0
----
-243
-3
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3386
SELECT - CAST( + + 40 AS SIGNED ) * + col2 * - col1 - - col0 FROM tab1
----
11885
127931
53811

skipif mysql # not compatible
query I rowsort label-3386
SELECT - CAST ( + + 40 AS INTEGER ) * + col2 * - col1 - - col0 FROM tab1
----
11885
127931
53811

onlyif mysql # DIV for integer division: 
query I rowsort label-3387
SELECT ALL col2 DIV - - col1 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL col2 / - - col1 FROM tab1
----
1
11
6

query I rowsort
SELECT + 69 * - ( + - col1 ) * + col0 FROM tab1
----
29325
295113
49266

query I rowsort
SELECT DISTINCT col0 + - + col2 FROM tab0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT - 44 * + - COUNT( - + 19 ) + - 26 + + - 27 AS col1 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-3390
SELECT - 44 * + - COUNT ( - + 19 ) + - 26 + + - 27 AS col1 FROM tab2 AS cor0
----
79

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 + - col2 * col1 * col2 )
----

query II rowsort
SELECT ( + col0 ), 86 AS col2 FROM tab0
----
15
86
87
86
97
86

query I rowsort
SELECT DISTINCT - 52 * + col1 AS col0 FROM tab2
----
-2652
-3484
-4004

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT - - COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3394
SELECT - - COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3395
SELECT ALL 55 DIV - col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3395
SELECT ALL 55 / - col1 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT DISTINCT - MAX( col2 ) col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3396
SELECT DISTINCT - MAX ( col2 ) col0 FROM tab1 AS cor0
----
-96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT + 7 + + col1 FROM tab0 AS cor0
----
28
8
88

query I rowsort
SELECT 1 - + - 40 AS col1 FROM tab1 AS cor0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT ALL - SUM( DISTINCT + col0 ) col0 FROM tab0 cor0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3400
SELECT ALL - SUM ( DISTINCT + col0 ) col0 FROM tab0 cor0
----
-199

onlyif mysql # aggregate syntax: 
query II rowsort label-3401
SELECT ALL + COUNT( - 78 ), COUNT( * ) + + COUNT( * ) AS col0 FROM tab2 cor0
----
3
6

skipif mysql # not compatible
query II rowsort label-3401
SELECT ALL + COUNT ( - 78 ), COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2 cor0
----
3
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= - col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 = + 26 * col0 / - 40
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 75 * 33 AS col1 FROM tab0
----
2475
2475
2475

onlyif mysql # DIV for integer division: 
query I rowsort label-3405
SELECT 89 DIV + col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3405
SELECT 89 / + col0 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT MIN( ALL - - col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3406
SELECT MIN ( ALL - - col1 ) AS col1 FROM tab1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3407
SELECT ALL CAST( + - COUNT( DISTINCT - - col1 ) AS SIGNED ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3407
SELECT ALL CAST ( + - COUNT ( DISTINCT - - col1 ) AS INTEGER ) col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT + COUNT( ALL - + col2 ) col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3408
SELECT + COUNT ( ALL - + col2 ) col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT + 93 / + col2 + - col2 - + 20 AS col1 FROM tab2 AS cor0 WHERE NOT 7 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT + MIN( + col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3410
SELECT + MIN ( + col2 ) AS col1 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT - SUM( DISTINCT - - 59 ) * - 58 * 22 FROM tab1 AS cor0
----
75284

skipif mysql # not compatible
query I rowsort label-3411
SELECT - SUM ( DISTINCT - - 59 ) * - 58 * 22 FROM tab1 AS cor0
----
75284

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3412
SELECT + COUNT( * ) DIV 61 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3412
SELECT + COUNT ( * ) / 61 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3413
SELECT DISTINCT col0 DIV + + col1 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-3413
SELECT DISTINCT col0 / + + col1 FROM tab0
----
0
4
97

query I rowsort
SELECT DISTINCT - col2 * + - col0 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3415
SELECT - col2 + - + col2 AS col2 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-3415
SELECT - col2 + - + col2 AS col2 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) >= NULL
----

query I rowsort
SELECT DISTINCT ( 41 ) FROM tab1
----
41

query I rowsort
SELECT ( - col1 ) * 59 AS col0 FROM tab0 AS cor0
----
-1239
-4779
-59

query I rowsort
SELECT ALL + - col0 + + - col0 + - - col1 AS col0 FROM tab2 AS cor0
----
-41
-51
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT DISTINCT + - COUNT( * ) + - - 78 AS col2 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT + - COUNT ( * ) + - - 78 AS col2 FROM tab1 AS cor0
----
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= NULL AND NOT NULL > + col0 * - - col0 / - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3421
SELECT - - ( + col1 ) DIV col2 - - 25 * + 17 + 75 FROM tab0 AS cor0
----
500
501
502

skipif mysql # not compatible
query I rowsort label-3421
SELECT - - ( + col1 ) / col2 - - 25 * + 17 + 75 FROM tab0 AS cor0
----
500
501
502

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 27 col2 FROM tab1 AS cor0
----
32
41
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT + - 60 + - + 28 + + COUNT( * ) + + 82 + COUNT( * ) * - 65 FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-3423
SELECT + - 60 + - + 28 + + COUNT ( * ) + + 82 + COUNT ( * ) * - 65 FROM tab1 AS cor0
----
-198

query I rowsort
SELECT col1 * - - 36 + + 8 FROM tab0
----
2924
44
764

query II rowsort
SELECT DISTINCT + col0, col2 + + 37 * + col0 FROM tab1 WHERE NOT ( NOT + col2 IS NOT NULL )
----
51
1983
85
3204
91
3435

onlyif mysql # aggregate syntax: 
query II rowsort label-3426
SELECT ALL COUNT( * ), COUNT( * ) FROM tab2 WHERE NOT ( NOT col1 NOT BETWEEN col1 AND + col2 )
----
3
3

skipif mysql # not compatible
query II rowsort label-3426
SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab2 WHERE NOT ( NOT col1 NOT BETWEEN col1 AND + col2 )
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 84 <> + 67
----

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT + col0 + - + col1 * + col2 + col1 BETWEEN - col1 AND + col1
----
15
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT MIN( ( + - col2 ) ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3429
SELECT MIN ( ( + - col2 ) ) FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT 81 + - COUNT( * ) AS col0 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-3430
SELECT 81 + - COUNT ( * ) AS col0 FROM tab2
----
78

query I rowsort
SELECT + col0 * + - col2 AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT ALL - - COUNT( DISTINCT 25 ) col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3432
SELECT ALL - - COUNT ( DISTINCT 25 ) col0 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3433
SELECT DISTINCT + 68 * + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE 77 + + + 36 <> + + col0 * col1 * + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3433
SELECT DISTINCT + 68 * + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE 77 + + + 36 <> + + col0 * col1 * + - col0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL > + col2
----

query II rowsort
SELECT + col2, + 14 + - col2 AS col0 FROM tab1 cor0
----
59
-45
68
-54
96
-82

query I rowsort
SELECT ALL col1 * - col1 * - col1 * + col0 FROM tab0 AS cor0
----
7971615
805707
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT ( 82 IS NOT NULL ) )
----
3

skipif mysql # not compatible
query I rowsort label-3437
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT ( 82 IS NOT NULL ) )
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + + col0 * - 63 NOT IN ( + 30, - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 37 / + 51 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT ALL COUNT( - + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL COUNT ( - + col2 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3441
SELECT DISTINCT ( - CAST( - - ( + 71 ) AS SIGNED ) ), + ( + + col0 ) FROM tab0 AS cor0
----
-71
15
-71
87
-71
97

skipif mysql # not compatible
query II rowsort label-3441
SELECT DISTINCT ( - CAST ( - - ( + 71 ) AS INTEGER ) ), + ( + + col0 ) FROM tab0 AS cor0
----
-71
15
-71
87
-71
97

query I rowsort
SELECT col1 * - 51 + - + col1 FROM tab0
----
-1092
-4212
-52

query II rowsort
SELECT + - col1 * - col2, - 92 * + ( + col0 ) * - 62 AS col2 FROM tab1 AS cor0 WHERE - 11 NOT BETWEEN NULL AND + 2 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT DISTINCT - MIN( DISTINCT 1 ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT - MIN ( DISTINCT 1 ) AS col0 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3445
SELECT DISTINCT + col1 * col1 + + + 16 * - CAST( NULL AS DECIMAL ) * col0 * 60 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3445
SELECT DISTINCT + col1 * col1 + + + 16 * - CAST ( NULL AS REAL ) * col0 * 60 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE - col1 + + + col1 + + 82 * col0 < + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 <= col0
----
87
21
10
97
1
99

query II rowsort
SELECT DISTINCT col1 AS col0, col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT - ( MAX( DISTINCT 48 ) ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-3449
SELECT - ( MAX ( DISTINCT 48 ) ) FROM tab1
----
-48

query I rowsort
SELECT ALL + 35 - - 35 + - + col2 AS col2 FROM tab1
----
-26
11
2

query II rowsort
SELECT DISTINCT - 15 AS col1, 86 FROM tab1
----
-15
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3452
SELECT DISTINCT col1, + 54 + CAST( NULL AS SIGNED ) col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3452
SELECT DISTINCT col1, + 54 + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT DISTINCT + COUNT( * ) - + - 71 AS col1 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT + COUNT ( * ) - + - 71 AS col1 FROM tab0
----
74

query I rowsort
SELECT DISTINCT - col1 * - col1 + - col1 + - 45 AS col1 FROM tab1 AS cor0
----
-25
137
2117

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT DISTINCT - COUNT( + col1 ) AS col0 FROM tab0 AS cor0 WHERE + col0 + 74 - + 47 * + 12 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3455
SELECT DISTINCT - COUNT ( + col1 ) AS col0 FROM tab0 AS cor0 WHERE + col0 + 74 - + 47 * + 12 < NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3456
SELECT - COUNT( * ), COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3456
SELECT - COUNT ( * ), COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT ALL + COUNT( * ) * - MAX( + + 99 ) AS col0 FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL + COUNT ( * ) * - MAX ( + + 99 ) AS col0 FROM tab0
----
-297

query I rowsort
SELECT ALL - ( - ( - 48 ) ) AS col0 FROM tab1 cor0
----
-48
-48
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 98 * - + col1 AS col2, col0 * - ( + col2 ) * col1 * col2 col0 FROM tab2 cor0
----
-4998
-1241034
-6566
-16904100
-7546
-7884800

query II rowsort
SELECT ALL + - col1 * + col2, + ( col2 ) FROM tab2 AS cor0
----
-1173
23
-3080
40
-3886
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT + + COUNT( * ) * + - 6 AS col1 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-3462
SELECT + + COUNT ( * ) * + - 6 AS col1 FROM tab2 AS cor0
----
-18

query I rowsort
SELECT - 1 * - + col2 FROM tab1
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - - 0 col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT ALL COUNT( + + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL COUNT ( + + col0 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3466
SELECT - col2 DIV + + col1 AS col2 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-3466
SELECT - col2 / + + col1 AS col2 FROM tab1
----
-1
-11
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT - MAX( ALL ( - col0 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3467
SELECT - MAX ( ALL ( - col0 ) ) FROM tab1
----
51

query I rowsort
SELECT - col0 * - col1 * - - col2 FROM tab2
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT ALL + ( + COUNT( * ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3469
SELECT ALL + ( + COUNT ( * ) ) AS col0 FROM tab2
----
3

query I rowsort
SELECT DISTINCT - 20 * col1 FROM tab2
----
-1020
-1340
-1540

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT ALL - SUM( - col2 ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL - SUM ( - col2 ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT + MIN( - col1 ) FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3472
SELECT + MIN ( - col1 ) FROM tab0 cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT DISTINCT MAX( ALL 50 ) * COUNT( ALL 69 ) FROM tab1 cor0
----
150

skipif mysql # not compatible
query I rowsort label-3473
SELECT DISTINCT MAX ( ALL 50 ) * COUNT ( ALL 69 ) FROM tab1 cor0
----
150

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 67 * + col0 col1 FROM tab1
----
3417
5695
6097

query I rowsort
SELECT + col1 * + 3 + + col2 FROM tab1
----
138
209
74

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3478
SELECT - ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3478
SELECT - ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 83 >= ( + col0 )
----

query I rowsort
SELECT DISTINCT col1 * 5 + col1 FROM tab0
----
126
486
6

query I rowsort
SELECT DISTINCT col0 - - 54 * - col0 AS col0 FROM tab2
----
-2438
-3392
-3975

query I rowsort
SELECT 22 * - 62 AS col0 FROM tab2
----
-1364
-1364
-1364

query III rowsort
SELECT ALL * FROM tab2 WHERE + 57 NOT IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT COUNT( * ) * COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3485
SELECT COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT COUNT( * ) * - 87 AS col2 FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-3486
SELECT COUNT ( * ) * - 87 AS col2 FROM tab0
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT DISTINCT + COUNT( ALL col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3487
SELECT DISTINCT + COUNT ( ALL col2 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3488
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3488
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT - COUNT( * ) * - 18 AS col1 FROM tab1 WHERE col0 NOT BETWEEN NULL AND ( + col2 )
----
36

skipif mysql # not compatible
query I rowsort label-3489
SELECT - COUNT ( * ) * - 18 AS col1 FROM tab1 WHERE col0 NOT BETWEEN NULL AND ( + col2 )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3490
SELECT * FROM tab1 WHERE NOT NULL >= ( - CAST( NULL AS SIGNED ) * col0 )
----

skipif mysql # not compatible
query III rowsort label-3490
SELECT * FROM tab1 WHERE NOT NULL >= ( - CAST ( NULL AS INTEGER ) * col0 )
----

query I rowsort
SELECT DISTINCT + 3 * ( col0 ) FROM tab2
----
138
192
225

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3492
SELECT ALL * FROM tab1 WHERE + col0 NOT BETWEEN - CAST( + col0 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3492
SELECT ALL * FROM tab1 WHERE + col0 NOT BETWEEN - CAST ( + col0 AS INTEGER ) AND NULL
----

query I rowsort
SELECT + col0 - + 69 FROM tab0
----
-54
18
28

query I rowsort
SELECT DISTINCT - col2 * + 6 FROM tab2
----
-138
-240
-348

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT 63 * - COUNT( * ) FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-3495
SELECT 63 * - COUNT ( * ) FROM tab1
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT COUNT( * ) - - COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3496
SELECT COUNT ( * ) - - COUNT ( * ) FROM tab0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3497
SELECT ALL ( - 35 ) DIV ( col0 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL ( - 35 ) / ( col0 ) FROM tab1
----
0
0
0

query I rowsort
SELECT - 84 FROM tab0 WHERE NOT - 75 * + col1 NOT BETWEEN 31 + + col0 AND - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 68 + col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL + 26 * col0 FROM tab0 WHERE NOT NULL <> + 1 * 7
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) <= ( col2 + - 19 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT ALL + COUNT( DISTINCT - col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL + COUNT ( DISTINCT - col2 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT DISTINCT ( COUNT( * ) ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3503
SELECT DISTINCT ( COUNT ( * ) ) col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT + 59 + COUNT( * ) * + 81 FROM tab2
----
302

skipif mysql # not compatible
query I rowsort label-3504
SELECT + 59 + COUNT ( * ) * + 81 FROM tab2
----
302

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT ( - COUNT( * ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3505
SELECT ( - COUNT ( * ) ) AS col1 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3506
SELECT + col0 FROM tab0 AS cor0 WHERE col2 / - col2 + col0 NOT BETWEEN + CAST( 83 AS SIGNED ) AND + col2
----
15
87

skipif mysql # not compatible
query I rowsort label-3506
SELECT + col0 FROM tab0 AS cor0 WHERE col2 / - col2 + col0 NOT BETWEEN + CAST ( 83 AS INTEGER ) AND + col2
----
15
87

query I rowsort
SELECT + 81 * 55 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0 / col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col2 col2 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT DISTINCT - 91 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-3509
SELECT DISTINCT - 91 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3510
SELECT ALL col2 * + 69 FROM tab2 AS cor0 WHERE ( + col1 ) < + 92 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3510
SELECT ALL col2 * + 69 FROM tab2 AS cor0 WHERE ( + col1 ) < + 92 * + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 9 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT DISTINCT COUNT( * ) * 60 AS col2 FROM tab1 WHERE ( col1 ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-3512
SELECT DISTINCT COUNT ( * ) * 60 AS col2 FROM tab1 WHERE ( col1 ) > NULL
----
0

query I rowsort
SELECT ALL + 80 FROM tab0 WHERE - col0 + col2 IS NOT NULL
----
80
80
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3514
SELECT - COUNT( * ) * 60 + 58 DIV 57 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= ( NULL )
----
1

skipif mysql # not compatible
query I rowsort label-3514
SELECT - COUNT ( * ) * 60 + 58 / 57 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= ( NULL )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3515
SELECT DISTINCT - COUNT( * ) - + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - col1 + + CAST( NULL AS SIGNED ) IS NULL
----
-6

skipif mysql # not compatible
query I rowsort label-3515
SELECT DISTINCT - COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - col1 + + CAST ( NULL AS INTEGER ) IS NULL
----
-6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN + 34 AND NULL
----

query I rowsort
SELECT DISTINCT - ( + 97 ) * col2 AS col1 FROM tab0 cor0
----
-4559
-9603
-970

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT - COUNT( col0 ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3519
SELECT - COUNT ( col0 ) col0 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3520
SELECT col2 DIV + 49 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3520
SELECT col2 / + 49 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 58 col1 FROM tab1 AS cor0
----
58

query I rowsort
SELECT - col2 * col0 * - 81 FROM tab0
----
57105
70470
777843

query I rowsort
SELECT ALL + col0 * - col2 FROM tab2 WHERE NOT 92 + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT 50 * + MIN( 94 ) AS col2 FROM tab0
----
4700

skipif mysql # not compatible
query I rowsort label-3524
SELECT 50 * + MIN ( 94 ) AS col2 FROM tab0
----
4700

query I rowsort
SELECT - col2 * + 58 FROM tab0
----
-2726
-5742
-580

query I rowsort
SELECT + col2 / - ( - 18 ) AS col0 FROM tab1 WHERE NOT ( + col0 * + 76 ) <> col0
----

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 WHERE ( 77 ) IS NOT NULL OR - 52 BETWEEN 38 AND col0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT + COUNT( - col2 ) * + MIN( DISTINCT 44 ) AS col0 FROM tab1 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-3528
SELECT + COUNT ( - col2 ) * + MIN ( DISTINCT 44 ) AS col0 FROM tab1 AS cor0
----
132

query I rowsort
SELECT ALL - + ( ( col0 ) ) FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > ( col2 ) AND NOT ( + 82 ) > + col0
----

query I rowsort
SELECT - col1 + ( ( + 75 ) ) AS col2 FROM tab1 AS cor0
----
28
61
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT COUNT( * ) + 85 AS col1 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-3533
SELECT COUNT ( * ) + 85 AS col1 FROM tab1
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3534
SELECT SUM( DISTINCT + 98 ) * - 52 AS col2 FROM tab2 WHERE - - 74 + ( 74 + ( - col0 ) ) * CAST( - ( col0 ) AS SIGNED ) NOT BETWEEN col2 AND ( - col2 )
----
-5096

skipif mysql # not compatible
query I rowsort label-3534
SELECT SUM ( DISTINCT + 98 ) * - 52 AS col2 FROM tab2 WHERE - - 74 + ( 74 + ( - col0 ) ) * CAST ( - ( col0 ) AS INTEGER ) NOT BETWEEN col2 AND ( - col2 )
----
-5096

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT + COUNT( * ) + - 94 * ( 55 * 91 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-470461

skipif mysql # not compatible
query I rowsort label-3535
SELECT + COUNT ( * ) + - 94 * ( 55 * 91 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-470461

query I rowsort
SELECT + col1 * - + col2 * + 74 AS col2 FROM tab1 AS cor0
----
-21830
-236504
-99456

onlyif mysql # DIV for integer division: 
query I rowsort label-3537
SELECT DISTINCT - col0 DIV - 12 FROM tab0 AS cor0
----
1
7
8

skipif mysql # not compatible
query I rowsort label-3537
SELECT DISTINCT - col0 / - 12 FROM tab0 AS cor0
----
1
7
8

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN ( NULL ) AND col2 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3539
SELECT + + 42 * + 24 * + + col1 + 96 * - CAST( + col1 + col2 * - 2 AS SIGNED ) FROM tab2 cor0
----
50928
72240
77904

skipif mysql # not compatible
query I rowsort label-3539
SELECT + + 42 * + 24 * + + col1 + 96 * - CAST ( + col1 + col2 * - 2 AS INTEGER ) FROM tab2 cor0
----
50928
72240
77904

query I rowsort
SELECT DISTINCT + 53 - + col1 * - 97 FROM tab2
----
5000
6552
7522

query I rowsort
SELECT + 56 * + col1 - col1 FROM tab0
----
1155
4455
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT DISTINCT + SUM( 62 ) - - COUNT( * ) FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT + SUM ( 62 ) - - COUNT ( * ) FROM tab2
----
189

query I rowsort
SELECT col2 + + 43 + - col2 FROM tab2
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT 31 + - 0 + COUNT( * ) AS col1 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-3544
SELECT 31 + - 0 + COUNT ( * ) AS col1 FROM tab0
----
34

query I rowsort
SELECT DISTINCT col2 - + 23 AS col2 FROM tab0
----
-13
24
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT 56 + - COUNT( * ) * + 90 - COUNT( * ) col0 FROM tab0
----
-217

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3546
SELECT 56 + - COUNT ( * ) * + 90 - COUNT ( * ) col0 FROM tab0
----
-217

query I rowsort
SELECT col1 * col0 + - - 32 FROM tab2
----
2378
4960
5057

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + - col0 col1 FROM tab0
----
-66
-96
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3549
SELECT SUM( DISTINCT col0 ) AS col1 FROM tab2 WHERE - - CAST( NULL AS SIGNED ) / col0 + 53 IS NULL
----
185

skipif mysql # not compatible
query I rowsort label-3549
SELECT SUM ( DISTINCT col0 ) AS col1 FROM tab2 WHERE - - CAST ( NULL AS INTEGER ) / col0 + 53 IS NULL
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT DISTINCT + + SUM( ALL - col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT + + SUM ( ALL - col0 ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT ALL - col1 * + 14 + - + 79 AS col0 FROM tab2 cor0
----
-1017
-1157
-793

query I rowsort
SELECT 99 * + - col0 * - col2 AS col0 FROM tab0 AS cor0
----
69795
86130
950697

query I rowsort
SELECT - col1 / 67 AS col2 FROM tab1 AS cor0 WHERE NOT col0 + - - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - + ( - + col0 ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL + - col0 * + 51 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 * - 96 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT + MIN( ALL 42 ) FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-3556
SELECT + MIN ( ALL 42 ) FROM tab0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT ( - - COUNT( DISTINCT - col0 ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3557
SELECT ( - - COUNT ( DISTINCT - col0 ) ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3558
SELECT + 62 col0, COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
62
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3558
SELECT + 62 col0, COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
62
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3559
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE + 73 BETWEEN ( - - col0 ) AND - CAST( NULL AS SIGNED ) - 72
----
0

skipif mysql # not compatible
query I rowsort label-3559
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE + 73 BETWEEN ( - - col0 ) AND - CAST ( NULL AS INTEGER ) - 72
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2 - - 14 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3561
SELECT DISTINCT 64 AS col1 FROM tab2 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
64

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT 64 AS col1 FROM tab2 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + - + 90 * col2 * 73 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 col1, col0 AS col2 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3564
SELECT COUNT( * ) * 18, - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
54
NULL

skipif mysql # not compatible
query II rowsort label-3564
SELECT COUNT ( * ) * 18, - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
54
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, col1 col0 FROM tab1
----
-59
5
-68
47
-96
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3566
SELECT DISTINCT col2 * + - col0 DIV + ( col0 ) AS col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3566
SELECT DISTINCT col2 * + - col0 / + ( col0 ) AS col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ( - 37 ) + - 79 FROM tab2
----
-116
-116
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT ALL COUNT( * ) * - + 54 AS col1 FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL COUNT ( * ) * - + 54 AS col1 FROM tab0
----
-162

query I rowsort
SELECT col0 + + ( - col0 ) + col0 + + col0 FROM tab0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT ( NOT col2 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT ( NOT col2 IS NULL )
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 IN ( + col1 )
----

query I rowsort
SELECT DISTINCT - 90 + col0 AS col1 FROM tab2 AS cor0
----
-15
-26
-44

query II rowsort
SELECT - ( 72 ), col0 FROM tab1 AS cor0
----
-72
51
-72
85
-72
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3574
SELECT + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT + ( + - 57 ) + 72 FROM tab1 AS cor0
----
15
15
15

query I rowsort
SELECT col1 + + col1 * - - 31 * - + 19 - 84 AS col1 FROM tab0 AS cor0
----
-12432
-47712
-672

query I rowsort
SELECT ALL - col2 * - - 50 AS col2 FROM tab1 AS cor0 WHERE NOT - 65 * - col0 * - col2 + + col0 IS NULL
----
-2950
-3400
-4800

query II rowsort
SELECT + 36 + - - col2 AS col1, col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 + + ( col2 ) + + 50 AS col0 FROM tab1 AS cor0
----
194
197
209

query I rowsort
SELECT - 17 * col0 + - + col2 + + col1 FROM tab2 AS cor0
----
-1051
-1266
-754

query I rowsort
SELECT DISTINCT col0 * + col1 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT DISTINCT - 66 + MAX( DISTINCT col2 ) FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-3582
SELECT DISTINCT - 66 + MAX ( DISTINCT col2 ) FROM tab0 AS cor0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-3583
SELECT ALL + 30 DIV + + 27 + + col0 DIV - 75 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3583
SELECT ALL + 30 / + + 27 + + col0 / - 75 AS col2 FROM tab1 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 NOT BETWEEN + + col0 AND + 91 - 4
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN col1 + - col2 AND ( 27 + col0 * + col0 )
----

query I rowsort
SELECT DISTINCT - col2 * + ( + 65 ) + + 51 AS col0 FROM tab1 cor0
----
-3784
-4369
-6189

query III rowsort
SELECT * FROM tab1 WHERE col0 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT ( MIN( - ( + col0 ) ) ) col1 FROM tab2 WHERE NULL <= ( + - col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3589
SELECT ( MIN ( - ( + col0 ) ) ) col1 FROM tab2 WHERE NULL <= ( + - col0 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3590
SELECT + CAST( + col0 AS DECIMAL ) AS col1 FROM tab2 WHERE + - col0 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-3590
SELECT + CAST ( + col0 AS REAL ) AS col1 FROM tab2 WHERE + - col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3591
SELECT ALL - + col0, 4 FROM tab0 WHERE NOT NULL <= + - CAST( NULL AS SIGNED ) * - col2 + - - 88
----

skipif mysql # not compatible
query II rowsort label-3591
SELECT ALL - + col0, 4 FROM tab0 WHERE NOT NULL <= + - CAST ( NULL AS INTEGER ) * - col2 + - - 88
----

query I rowsort
SELECT - + col2 FROM tab0 WHERE NOT + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3593
SELECT ALL col0 * - col2 * - CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3593
SELECT ALL col0 * - col2 * - CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT + 83 * - SUM( + col2 ) FROM tab1 AS cor0
----
-18509

skipif mysql # not compatible
query I rowsort label-3594
SELECT + 83 * - SUM ( + col2 ) FROM tab1 AS cor0
----
-18509

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3595
SELECT + col0 * - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3595
SELECT + col0 * - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0 * + col0 * - col0 AS col0, + col2 col1 FROM tab1 AS cor0
----
-132651
96
-614125
59
-753571
68

query I rowsort
SELECT - 76 * + - col2 FROM tab1 AS cor0
----
4484
5168
7296

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT + - COUNT( * ) * - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3598
SELECT + - COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT - SUM( - 64 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
576

skipif mysql # not compatible
query I rowsort label-3599
SELECT - SUM ( - 64 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
576

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 68 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT + + SUM( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3601
SELECT + + SUM ( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT - ( - COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3602
SELECT - ( - COUNT ( * ) ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - + col0 ) NOT BETWEEN + 24 AND ( - + 42 + + 35 * + - col0 ) OR NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3605
SELECT - COUNT( * ) FROM tab2 WHERE NOT - - CAST( NULL AS SIGNED ) < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3605
SELECT - COUNT ( * ) FROM tab2 WHERE NOT - - CAST ( NULL AS INTEGER ) < ( NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3606
SELECT DISTINCT 31 AS col1, 81 / + MAX( ALL CAST( NULL AS DECIMAL ) ) * + COUNT( * ) FROM tab2
----
31
NULL

skipif mysql # not compatible
query II rowsort label-3606
SELECT DISTINCT 31 AS col1, 81 / + MAX ( ALL CAST ( NULL AS REAL ) ) * + COUNT ( * ) FROM tab2
----
31
NULL

query III rowsort
SELECT * FROM tab2 WHERE + 94 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 16 * col1 FROM tab0
----
1296
16
336

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT - COUNT( ALL + col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3609
SELECT - COUNT ( ALL + col1 ) FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 * - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT DISTINCT - MIN( DISTINCT col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT - MIN ( DISTINCT col0 ) FROM tab2 AS cor0
----
-46

query II rowsort
SELECT DISTINCT col1 AS col2, + 1 * - + col0 * + 28 FROM tab1 AS cor0
----
14
-1428
47
-2548
5
-2380

query I rowsort
SELECT DISTINCT col0 + + + 28 FROM tab2 AS cor0
----
103
74
92

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3615
SELECT COUNT( * ) AS col1, ( - 27 ) AS col0 FROM tab1
----
3
-27

skipif mysql # not compatible
query II rowsort label-3615
SELECT COUNT ( * ) AS col1, ( - 27 ) AS col0 FROM tab1
----
3
-27

query I rowsort
SELECT 93 * col2 AS col1 FROM tab1
----
5487
6324
8928

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT COUNT( - + col0 ) * - COUNT( * ) * ( COUNT( * ) ) AS col2 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-3617
SELECT COUNT ( - + col0 ) * - COUNT ( * ) * ( COUNT ( * ) ) AS col2 FROM tab1
----
-27

query I rowsort
SELECT 86 * col0 + - col1 FROM tab1 AS cor0
----
4372
7305
7779

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT DISTINCT + + MAX( - col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT + + MAX ( - col1 ) AS col1 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT - + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3620
SELECT - + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3621
SELECT ALL CAST( NULL AS SIGNED ) * ( ( + + COUNT( * ) ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL CAST ( NULL AS INTEGER ) * ( ( + + COUNT ( * ) ) ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 94 FROM tab1 WHERE 90 IS NOT NULL
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 64 col2 FROM tab1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT MAX( + col2 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-3624
SELECT MAX ( + col2 ) AS col2 FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3625
SELECT ALL - 72 * + + CAST( + 21 AS SIGNED ) * + - col1 * col0 FROM tab1
----
1079568
642600
6466824

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL - 72 * + + CAST ( + 21 AS INTEGER ) * + - col1 * col0 FROM tab1
----
1079568
642600
6466824

onlyif mysql # DIV for integer division: 
query I rowsort label-3626
SELECT ALL ( + + col1 ) DIV + col0 DIV 16 * col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL ( + + col1 ) / + col0 / 16 * col2 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT col1 NOT BETWEEN NULL AND + col0 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT - SUM( col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3628
SELECT - SUM ( col2 ) FROM tab0 AS cor0
----
-156

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 96 * - 12 NOT BETWEEN NULL AND ( - ( - 97 ) )
----

query II rowsort
SELECT - col2 * - 85 AS col0, - col1 * + col0 AS col1 FROM tab2 AS cor0
----
1955
-2346
3400
-4928
4930
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-3631
SELECT DISTINCT - col2 * ( col1 ) DIV 14 * col1 * + 82 AS col1 FROM tab1 AS cor0
----
-110208
-8610
-878712

skipif mysql # not compatible
query I rowsort label-3631
SELECT DISTINCT - col2 * ( col1 ) / 14 * col1 * + 82 AS col1 FROM tab1 AS cor0
----
-110208
-8610
-878712

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 57 = - - ( + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( - + col0 ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query II rowsort
SELECT ALL - col1 + + - col2 * - col1 + col0 AS col2, + col2 + + col0 FROM tab1 AS cor0
----
1381
147
3240
159
375
144

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3636
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) + - + ( 76 ) * 62 NOT BETWEEN 29 AND - 4
----

skipif mysql # not compatible
query III rowsort label-3636
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + - + ( 76 ) * 62 NOT BETWEEN 29 AND - 4
----

query I rowsort
SELECT DISTINCT + col0 * + - col0 AS col2 FROM tab1 cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT ALL + + COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL + + COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 56 < + + col2
----

query II rowsort
SELECT + 91 + - 33 + - col0 AS col2, col0 FROM tab0 AS cor0
----
-29
87
-39
97
43
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT ALL MAX( + - 41 ) + + 29 AS col1 FROM tab2 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL MAX ( + - 41 ) + + 29 AS col1 FROM tab2 cor0
----
-12

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE col2 + + col1 NOT IN ( - col2 )
----
51
85
91

query I rowsort
SELECT - col1 + + + col0 AS col0 FROM tab1
----
37
44
80

query I rowsort
SELECT + 95 + - col0 + + 11 + + 89 + 3 * + - 15 FROM tab2
----
104
75
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT + MIN( ALL - col2 ) * + + 34 + - 24 * COUNT( * ) AS col2 FROM tab1
----
-3336

skipif mysql # not compatible
query I rowsort label-3645
SELECT + MIN ( ALL - col2 ) * + + 34 + - 24 * COUNT ( * ) AS col2 FROM tab1
----
-3336

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT DISTINCT + MIN( - + col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT + MIN ( - + col0 ) FROM tab2
----
-75

query I rowsort
SELECT ALL 1 + + + col1 FROM tab0
----
2
22
82

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE NOT - + 8 BETWEEN ( - col0 * col0 + 92 ) AND + col0
----

query I rowsort
SELECT 11 AS col2 FROM tab1 AS cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 col2 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT DISTINCT 25 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
25

query I rowsort
SELECT DISTINCT - - col0 * 85 * - - 30 - - ( - 80 ) AS col2 FROM tab1 cor0
----
129970
216670
231970

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT DISTINCT - - MAX( DISTINCT - + 61 ) AS col1 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-3653
SELECT DISTINCT - - MAX ( DISTINCT - + 61 ) AS col1 FROM tab0 AS cor0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT + ( + MAX( DISTINCT col2 ) ) + + 19 AS col0 FROM tab1 AS cor0
----
115

skipif mysql # not compatible
query I rowsort label-3654
SELECT + ( + MAX ( DISTINCT col2 ) ) + + 19 AS col0 FROM tab1 AS cor0
----
115

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + col0 + - - col1 - col2 BETWEEN + col2 AND NULL
----

query I rowsort
SELECT ALL + + col2 * + 77 AS col1 FROM tab1 AS cor0
----
4543
5236
7392

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT ALL MIN( DISTINCT - 63 ) col1 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3657
SELECT ALL MIN ( DISTINCT - 63 ) col1 FROM tab2 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-3658
SELECT DISTINCT + 11, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
11
3

skipif mysql # not compatible
query II rowsort label-3658
SELECT DISTINCT + 11, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
11
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN col1 * - ( + + col0 ) AND NULL
----

query I rowsort
SELECT + 9 AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9
9
9

query II rowsort
SELECT col2, - col0 + + - 28 FROM tab2
----
23
-74
40
-92
58
-103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3662
SELECT ALL + CAST( NULL AS SIGNED ) col2, - col2 + col2 + - col2 AS col2 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3662
SELECT ALL + CAST ( NULL AS INTEGER ) col2, - col2 + col2 + - col2 AS col2 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

query I rowsort
SELECT DISTINCT + 43 AS col0 FROM tab2
----
43

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 * col1 * col1 * + ( 87 ) + + col2 + col0 + + col0 * + 86 IS NULL
----

query II rowsort
SELECT ALL 14, - ( 5 ) AS col2 FROM tab2
----
14
-5
14
-5
14
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT - + MAX( - - col2 ) FROM tab0 WHERE NOT + col0 + - 87 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3666
SELECT - + MAX ( - - col2 ) FROM tab0 WHERE NOT + col0 + - 87 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> - ( - col0 ) * - + 94
----

query II rowsort
SELECT - col0, 94 AS col1 FROM tab1
----
-51
94
-85
94
-91
94

query II rowsort
SELECT DISTINCT col1 * - col2 AS col1, 29 FROM tab2
----
-1173
29
-3080
29
-3886
29

query I rowsort
SELECT + col0 * - - col1 AS col2 FROM tab1 cor0
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-3671
SELECT - + 57 DIV + 41 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3671
SELECT - + 57 / + 41 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col0 * 4 + - 27 AS col0 FROM tab2 AS cor0
----
157
229
273

onlyif mysql # aggregate syntax: 
query II rowsort label-3673
SELECT + MIN( 49 ) AS col0, COUNT( * ) + + 40 FROM tab1 AS cor0
----
49
43

skipif mysql # not compatible
query II rowsort label-3673
SELECT + MIN ( 49 ) AS col0, COUNT ( * ) + + 40 FROM tab1 AS cor0
----
49
43

query I rowsort
SELECT DISTINCT - + 88 FROM tab0 cor0
----
-88

query I rowsort
SELECT ALL - ( - col0 ) - - col0 AS col0 FROM tab0 AS cor0 WHERE + col2 * - 67 IS NOT NULL
----
174
194
30

query I rowsort
SELECT DISTINCT 20 AS col0 FROM tab2, tab1 AS cor0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3677
SELECT - CAST( NULL AS SIGNED ) * + AVG ( DISTINCT - col1 ) * - + COUNT( * ) + - MIN( DISTINCT - 89 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3677
SELECT - CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT - col1 ) * - + COUNT ( * ) + - MIN ( DISTINCT - 89 ) FROM tab2
----
NULL

query I rowsort
SELECT + 31 * col0 AS col0 FROM tab1
----
1581
2635
2821

query I rowsort
SELECT + col1 - - + 38 AS col1 FROM tab0
----
119
39
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT ALL COUNT( * ) * + SUM( 49 ) AS col1 FROM tab2
----
441

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL COUNT ( * ) * + SUM ( 49 ) AS col1 FROM tab2
----
441

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT - 98 + - + SUM( DISTINCT + - 80 ) * - COUNT( * ) * - SUM( DISTINCT 66 ) AS col1 FROM tab2
----
15742

skipif mysql # not compatible
query I rowsort label-3681
SELECT - 98 + - + SUM ( DISTINCT + - 80 ) * - COUNT ( * ) * - SUM ( DISTINCT 66 ) AS col1 FROM tab2
----
15742

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= - + col1
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL 8 AS col0 FROM tab1 AS cor0
----
8
8
8

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 89 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 + + 86 * 60 FROM tab0 AS cor0
----
5175
5247
5257

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 86 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 95 + + col0 + - - col0 + + + col1 FROM tab1 AS cor0
----
134
21
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT DISTINCT + ( - + 61 ) + + COUNT( * ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3690
SELECT DISTINCT + ( - + 61 ) + + COUNT ( * ) AS col0 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT - COUNT( * ) * - - 43 AS col1 FROM tab2
----
-129

skipif mysql # not compatible
query I rowsort label-3691
SELECT - COUNT ( * ) * - - 43 AS col1 FROM tab2
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3692
SELECT ALL ( + CAST( - col0 AS SIGNED ) ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3692
SELECT ALL ( + CAST ( - col0 AS INTEGER ) ) FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( NOT NULL <> + col1 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3694
SELECT - 31 / + SUM( DISTINCT - - col0 ), 54 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL
54

skipif mysql # not compatible
query II rowsort label-3694
SELECT - 31 / + SUM ( DISTINCT - - col0 ), 54 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
NULL
54

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 94 * + 83 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3696
SELECT + + col1 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3696
SELECT + + col1 * - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3697
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3697
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 IN ( + CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT ALL - col1, col2 AS col0 FROM tab1
----
-14
96
-47
68
-5
59

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + 84, col0 - - col0, col2, + col2 * + - 71, - - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3700
SELECT COUNT( * ) AS col2, 0 AS col1 FROM tab0
----
3
0

skipif mysql # not compatible
query II rowsort label-3700
SELECT COUNT ( * ) AS col2, 0 AS col1 FROM tab0
----
3
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3701
SELECT ALL + ( + MIN( ALL - 22 ) ) AS col1, + 79 + + COUNT( * ) AS col1 FROM tab0
----
-22
82

skipif mysql # not compatible
query II rowsort label-3701
SELECT ALL + ( + MIN ( ALL - 22 ) ) AS col1, + 79 + + COUNT ( * ) AS col1 FROM tab0
----
-22
82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 58 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - col0 col1 FROM tab2
----
51
-46
67
-75
77
-64

query I rowsort
SELECT DISTINCT 4 * + col1 FROM tab1
----
188
20
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT ( + + MAX( - - col0 ) ) FROM tab0 WHERE NOT 52 <= col1 * - ( - col1 ) * + col1 - - col1
----
97

skipif mysql # not compatible
query I rowsort label-3705
SELECT ( + + MAX ( - - col0 ) ) FROM tab0 WHERE NOT 52 <= col1 * - ( - col1 ) * + col1 - - col1
----
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = - col2 + - ( 8 )
----

query I rowsort
SELECT ALL - 0 * - 49 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * - col2 * + + col1 FROM tab1 AS cor0
----
-129024
-17405
-217328

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT ALL 11 + - COUNT( * ) * + - 70 AS col1 FROM tab1 AS cor0
----
221

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL 11 + - COUNT ( * ) * + - 70 AS col1 FROM tab1 AS cor0
----
221

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col0 * - + 86 col1 FROM tab0 AS cor0
----
1209
7461
8341

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3712
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * ( - 23 ) col1 FROM tab2
----
-1334
-529
-920

query I rowsort
SELECT + 80 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 JOIN tab0 AS cor1 ON NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 / col0 * - col2 BETWEEN 45 AND - col1
----

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 + + + 26 col2 FROM tab0 AS cor0
----
68

query I rowsort
SELECT - + col1 + - col1 * + col0 FROM tab0 AS cor0
----
-1296
-1848
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-3720
SELECT DISTINCT - - ( + col0 ) DIV + + col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-3720
SELECT DISTINCT - - ( + col0 ) / + + col1 FROM tab0 AS cor0
----
0
4
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3721
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - 10 + + col2 + - col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - 10 + + col2 + - col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 21 + - col1 AS col1 FROM tab0
----
-102
-22
-42

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 93 = - ( + col1 ) + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * - 49 + + col1 FROM tab0
----
-4242
-4752
-654

query I rowsort
SELECT col1 + - 37 + + 44 FROM tab2
----
58
74
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 49 * - 94 + - 47 col0, - col1 col2 FROM tab2
----
4559
-51
4559
-67
4559
-77

query I rowsort
SELECT ALL col2 * 5 FROM tab1
----
295
340
480

query I rowsort
SELECT ALL - col0 * + 36 - - col1 AS col0 FROM tab2
----
-1605
-2227
-2633

query I rowsort
SELECT - + col2 FROM tab0 WHERE - - col1 < + col0
----
-10
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3730
SELECT DISTINCT CAST( - - col0 AS SIGNED ) DIV CAST( col0 AS SIGNED ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3730
SELECT DISTINCT CAST ( - - col0 AS INTEGER ) / CAST ( col0 AS INTEGER ) FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - 5 - + - col1 col2 FROM tab1
----
282
30
84

query III rowsort
SELECT * FROM tab0 WHERE + + col1 / ( + 52 ) BETWEEN ( + col1 ) AND ( NULL )
----

query I rowsort
SELECT col0 * - + 65 AS col1 FROM tab1
----
-3315
-5525
-5915

query I rowsort
SELECT ALL + col2 * + 80 AS col2 FROM tab0
----
3760
7920
800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3735
SELECT - ( SUM( CAST( + ( + - 22 ) AS SIGNED ) ) ) AS col1 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3735
SELECT - ( SUM ( CAST ( + ( + - 22 ) AS INTEGER ) ) ) AS col1 FROM tab2 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3736
SELECT + CAST( NULL AS SIGNED ) - - ( col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3736
SELECT + CAST ( NULL AS INTEGER ) - - ( col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + ( col2 ) * - + 81, + col2 col1 FROM tab2 AS cor0
----
-1863
23
-3240
40
-4698
58

query I rowsort
SELECT - - 32 AS col0 FROM tab0 AS cor0
----
32
32
32

query II rowsort
SELECT + col2 * + col2 + 96 AS col0, + col1 FROM tab2 AS cor0
----
1696
77
3460
67
625
51

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( + 75 ) + col2 IS NOT NULL
----

query II rowsort
SELECT + + 34 AS col1, col2 * - col0 + + - col2 FROM tab0 AS cor0
----
34
-752
34
-880
34
-9702

onlyif mysql # aggregate syntax: 
query II rowsort label-3742
SELECT ALL + COUNT( * ) AS col2, 96 AS col0 FROM tab1 AS cor0
----
3
96

skipif mysql # not compatible
query II rowsort label-3742
SELECT ALL + COUNT ( * ) AS col2, 96 AS col0 FROM tab1 AS cor0
----
3
96

query I rowsort
SELECT + - col1 * - 46 FROM tab2 AS cor0
----
2346
3082
3542

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 80 / - 98 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 39 AS col0, 10 FROM tab0 AS cor0
----
39
10

query II rowsort
SELECT DISTINCT col1, + ( col2 ) FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3748
SELECT ALL + + COUNT( * ), - COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-3748
SELECT ALL + + COUNT ( * ), - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 10 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT DISTINCT - MAX( ALL + - 97 ) FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-3750
SELECT DISTINCT - MAX ( ALL + - 97 ) FROM tab1
----
97

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT DISTINCT COUNT( ALL + - col2 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3752
SELECT DISTINCT COUNT ( ALL + - col2 ) col2 FROM tab1
----
3

query I rowsort
SELECT 55 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3754
SELECT CAST( col1 AS SIGNED ) AS col0, + col0 AS col0 FROM tab1
----
14
51
47
91
5
85

skipif mysql # not compatible
query II rowsort label-3754
SELECT CAST ( col1 AS INTEGER ) AS col0, + col0 AS col0 FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT + col1 + - + col2 AS col2 FROM tab0
----
-98
11
34

query I rowsort
SELECT - col0 - + 20 FROM tab0 WHERE 13 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT DISTINCT - SUM( - ( 21 ) ) * + - 49 FROM tab0 AS cor0
----
-3087

skipif mysql # not compatible
query I rowsort label-3757
SELECT DISTINCT - SUM ( - ( 21 ) ) * + - 49 FROM tab0 AS cor0
----
-3087

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT 78 * + COUNT( * ) col1 FROM tab0 AS cor0
----
234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3758
SELECT 78 * + COUNT ( * ) col1 FROM tab0 AS cor0
----
234

query I rowsort
SELECT + - 48 FROM tab2 cor0
----
-48
-48
-48

query I rowsort
SELECT DISTINCT 29 - + col1 FROM tab1 cor0
----
-18
15
24

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( + - col1 ) NOT BETWEEN NULL AND - col1 - col1 * + 69 * - col0
----

query I rowsort
SELECT 34 - - + col2 FROM tab0
----
133
44
81

query II rowsort
SELECT col1 + + col2, + col0 AS col1 FROM tab0
----
100
97
128
15
31
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3764
SELECT CAST( NULL AS SIGNED ) + - 59 + + + col1 * - col0 * + + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3764
SELECT CAST ( NULL AS INTEGER ) + - 59 + + + col1 * - col0 * + + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 - col0 - - - 29 * - col1 AS col1 FROM tab1
----
119
1340
451

onlyif mysql # aggregate syntax: 
query II rowsort label-3766
SELECT ALL COUNT( * ) col2, + 51 * 84 AS col2 FROM tab0
----
3
4284

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3766
SELECT ALL COUNT ( * ) col2, + 51 * 84 AS col2 FROM tab0
----
3
4284

query I rowsort
SELECT DISTINCT ( - - 58 ) AS col0 FROM tab0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT MIN( ALL - - col1 ) AS col1 FROM tab0 AS cor0 WHERE col2 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3768
SELECT MIN ( ALL - - col1 ) AS col1 FROM tab0 AS cor0 WHERE col2 <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT DISTINCT - ( - - SUM( ALL + col2 ) ) FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3769
SELECT DISTINCT - ( - - SUM ( ALL + col2 ) ) FROM tab0 cor0
----
-156

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 NOT IN ( + + col2 * + ( + col2 ), col1, + - col2 + + 57 + - - col2 * 4 * + ( + - col2 ), + col2 )
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE NOT col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3772
SELECT DISTINCT - + ( + + CAST( - - 65 AS SIGNED ) ) FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT - + ( + + CAST ( - - 65 AS INTEGER ) ) FROM tab1 AS cor0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3773
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 < + col1 * + CAST( NULL AS SIGNED ) + + col0
----

skipif mysql # not compatible
query III rowsort label-3773
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 < + col1 * + CAST ( NULL AS INTEGER ) + + col0
----

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT col2 * + + col1 < + col1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3775
SELECT DISTINCT + + 84 * + col0 * - col1 * - col2 - CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3775
SELECT DISTINCT + + 84 * + col0 * - col1 * - col2 - CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 >= + + col1
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col0 < - 61
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 89 NOT BETWEEN + col2 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3780
SELECT DISTINCT + col0 col1, 42 * + - 42 + CAST( - col2 AS SIGNED ) FROM tab2
----
46
-1787
64
-1804
75
-1822

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3780
SELECT DISTINCT + col0 col1, 42 * + - 42 + CAST ( - col2 AS INTEGER ) FROM tab2
----
46
-1787
64
-1804
75
-1822

onlyif mysql # aggregate syntax: 
query II rowsort label-3781
SELECT DISTINCT COUNT( * ), COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-3781
SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab2
----
3
3

query II rowsort
SELECT col0, col2 FROM tab0
----
15
47
87
10
97
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND + - col0 * + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3784
SELECT DISTINCT + 31 DIV - col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3784
SELECT DISTINCT + 31 / - col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 80 FROM tab0 WHERE + 86 / - col0 * - 20 * - 15 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3786
SELECT ALL - col2 DIV + + col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3786
SELECT ALL - col2 / + + col0 FROM tab1
----
-1
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT SUM( col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3788
SELECT SUM ( col1 ) AS col1 FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3789
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - 59 * + - col2 / - 17 + - CAST( NULL AS SIGNED ), col0 / + 56 )
----

skipif mysql # not compatible
query III rowsort label-3789
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - 59 * + - col2 / - 17 + - CAST ( NULL AS INTEGER ), col0 / + 56 )
----

query II rowsort
SELECT col0, + col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT - 67 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3792
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT ALL + COUNT( * ) * COUNT( * ) * + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
729

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL + COUNT ( * ) * COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
729

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE NOT ( + 28 + + - col1 ) IN ( col0 + - + col1 + + 81, ( + col1 ) * - - col0 * - 20 * + 97 - - - col1, col2, + + col0 )
----
59
68
96

query I rowsort
SELECT DISTINCT + ( + - ( 59 ) ) FROM tab0 AS cor0
----
-59

query I rowsort
SELECT DISTINCT + 91 + col1 + 1 FROM tab2 AS cor0
----
143
159
169

query I rowsort
SELECT col1 + + + col2 + col0 + + - col2 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT DISTINCT + COUNT( * ) + + + 40 AS col1 FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-3798
SELECT DISTINCT + COUNT ( * ) + + + 40 AS col1 FROM tab1 AS cor0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3799
SELECT + CAST( NULL AS SIGNED ) + - - 45 + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3799
SELECT + CAST ( NULL AS INTEGER ) + - - 45 + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3800
SELECT ALL - 50 DIV + col2 + - col2 + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL - 50 / + col2 + - col2 + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - col1 - + col2 AS col1 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3802
SELECT DISTINCT col1 + + 83 + + ( ( CAST( NULL AS SIGNED ) ) ), 44 + + + CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3802
SELECT DISTINCT col1 + + 83 + + ( ( CAST ( NULL AS INTEGER ) ) ), 44 + + + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT COUNT( * ) AS col0 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3803
SELECT COUNT ( * ) AS col0 FROM tab2, tab2 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 ) NOT IN ( col1, 17 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3805
SELECT - ( COUNT( * ) ) - 53, - 90 + + COUNT( + col0 ) + - 34 + - CAST( NULL AS SIGNED ) + - + COUNT( * ) AS col1 FROM tab1
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-3805
SELECT - ( COUNT ( * ) ) - 53, - 90 + + COUNT ( + col0 ) + - 34 + - CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col1 FROM tab1
----
-56
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT DISTINCT - COUNT( * ) * + MIN( ALL col2 ) * + - 17 FROM tab0 AS cor0
----
510

skipif mysql # not compatible
query I rowsort label-3806
SELECT DISTINCT - COUNT ( * ) * + MIN ( ALL col2 ) * + - 17 FROM tab0 AS cor0
----
510

onlyif mysql # DIV for integer division: 
query I rowsort label-3807
SELECT DISTINCT + + col1 * ( - 77 ) DIV + col1 AS col2 FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3807
SELECT DISTINCT + + col1 * ( - 77 ) / + col1 AS col2 FROM tab0 AS cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col0, col1 + + + 59 AS col1 FROM tab0
----
-1
60
-21
80
-81
140

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 99 NOT IN ( col1 * + - 29, - 37, - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3810
SELECT DISTINCT - MIN( - CAST( + 68 AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
68

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT - MIN ( - CAST ( + 68 AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT ALL COUNT( DISTINCT ( 78 ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
1

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL COUNT ( DISTINCT ( 78 ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
1

query II rowsort
SELECT - col0, col2 AS col0 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT - MAX( DISTINCT + 98 ) FROM tab0 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-3813
SELECT - MAX ( DISTINCT + 98 ) FROM tab0 AS cor0
----
-98

query I rowsort
SELECT + col0 * - + col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ALL + col0 * ( + - col0 ) * + col0 + + col1 FROM tab1 AS cor0
----
-132637
-614120
-753524

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 AND - ( - col1 )
----

query I rowsort
SELECT col0 * col0 + + + 97 + - col2 + 62 + - col1 AS col0 FROM tab0 cor0 WHERE NOT col0 * - - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 88 * 80 * - ( + - 64 ) AS col2 FROM tab1
----
450560

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT ALL SUM( 49 ) col1 FROM tab0
----
147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3819
SELECT ALL SUM ( 49 ) col1 FROM tab0
----
147

query I rowsort
SELECT DISTINCT col1 + - col1 - 61 * + 83 FROM tab2 WHERE NOT - col2 IS NULL
----
-5063

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT - SUM( DISTINCT + col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-3821
SELECT - SUM ( DISTINCT + col0 ) FROM tab0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3822
SELECT DISTINCT - + ( - col0 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT - + ( - col0 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT ALL - - ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL - - ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3824
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3825
SELECT DISTINCT + CAST( + col0 AS SIGNED ) AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3825
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) AS col1 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL - + col0 + - + col2 * + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + col0 + - col2 - + col2 + col0 + - col2 + col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, + col1 * + col1 AS col1 FROM tab2 AS cor0
----
-51
2601
-67
4489
-77
5929

query II rowsort
SELECT DISTINCT + - col2 + col2 + - col2 AS col1, - 62 AS col1 FROM tab0 AS cor0
----
-10
-62
-47
-62
-99
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-3829
SELECT DISTINCT 13, + COUNT( * ) AS col2 FROM tab0 AS cor0
----
13
3

skipif mysql # not compatible
query II rowsort label-3829
SELECT DISTINCT 13, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
13
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = - 98
----

query I rowsort
SELECT ALL - col1 + + + col2 * + - col1 * + col0 AS col1 FROM tab1 cor0
----
-25080
-290883
-68558

query I rowsort
SELECT ALL ( - col2 ) * - - 26 - col0 AS col1 FROM tab0 AS cor0
----
-1237
-2671
-347

onlyif mysql # DIV for integer division: 
query I rowsort label-3833
SELECT + 85 DIV + + 83 FROM tab1 WHERE NULL IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3833
SELECT + 85 / + + 83 FROM tab1 WHERE NULL IS NULL
----
1
1
1

query I rowsort
SELECT ALL 79 + - col0 * col2 - - col2 + 40 FROM tab0
----
-539
-741
-9385

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3835
SELECT ALL - col1 - + CAST( - col0 AS SIGNED ) AS col0 FROM tab2
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-3835
SELECT ALL - col1 - + CAST ( - col0 AS INTEGER ) AS col0 FROM tab2
----
-13
-5
8

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IS NOT NULL AND NOT - 97 + - col1 * + - col0 / - - 88 NOT BETWEEN + col2 AND + col0
----

query II rowsort
SELECT 35 / - 54 + col1 AS col2, - col2 * + col1 FROM tab1 WHERE NOT NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + + 77 col1 FROM tab0
----
3619
7623
770

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT ALL - SUM( + 23 ) * - 7 + + + COUNT( * ) - + - COUNT( * ) FROM tab0
----
489

skipif mysql # not compatible
query I rowsort label-3839
SELECT ALL - SUM ( + 23 ) * - 7 + + + COUNT ( * ) - + - COUNT ( * ) FROM tab0
----
489

query I rowsort
SELECT - + col1 * - + col2 - + col2 AS col2 FROM tab1 AS cor0
----
1248
236
3128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3841
SELECT ALL CAST( + col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + col0 + + col2 - - + col2 > + 83 * + col0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3841
SELECT ALL CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + col0 + + col2 - - + col2 > + 83 * + col0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 41 col0 FROM tab2
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - - + 82 - + + 30 col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE - 28 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT + + 10 * + COUNT( * ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-3845
SELECT + + 10 * + COUNT ( * ) FROM tab0 AS cor0
----
30

query I rowsort
SELECT col1 * - 85 AS col2 FROM tab2 AS cor0
----
-4335
-5695
-6545

query I rowsort
SELECT 78 - + - col1 + - 71 FROM tab1 AS cor0 WHERE NOT 21 + - - 58 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + - 78 FROM tab1 AS cor0
----
-31
-64
-73

query I rowsort
SELECT DISTINCT + ( - col0 ) + 9 FROM tab0 AS cor0
----
-6
-78
-88

query I rowsort
SELECT ALL + 52 AS col1 FROM tab0 cor0
----
52
52
52

query I rowsort
SELECT col1 + + - col1 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT + 63 + COUNT( * ) + MAX( DISTINCT - + col0 ) * + 34 AS col0 FROM tab0
----
-444

skipif mysql # not compatible
query I rowsort label-3852
SELECT + 63 + COUNT ( * ) + MAX ( DISTINCT - + col0 ) * + 34 AS col0 FROM tab0
----
-444

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT 12 + + SUM( DISTINCT col1 ) AS col0 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-3853
SELECT 12 + + SUM ( DISTINCT col1 ) AS col0 FROM tab1
----
78

query I rowsort
SELECT DISTINCT ( col2 ) + col1 + - col0 FROM tab2
----
28
50
53

query I rowsort
SELECT DISTINCT 16 * - + 47 * - col2 FROM tab1
----
44368
51136
72192

onlyif mysql # DIV for integer division: 
query I rowsort label-3856
SELECT - 30 + - + 63 DIV ( 8 ) + + col2 + 21 * 26 - - - 80 + - + col2 FROM tab0
----
429
429
429

skipif mysql # not compatible
query I rowsort label-3856
SELECT - 30 + - + 63 / ( 8 ) + + col2 + 21 * 26 - - - 80 + - + col2 FROM tab0
----
429
429
429

query II rowsort
SELECT ALL - + col2 AS col2, - 46 * col2 AS col2 FROM tab1 AS cor0
----
-59
-2714
-68
-3128
-96
-4416

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT + COUNT( * ) + + 26 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-3858
SELECT + COUNT ( * ) + + 26 FROM tab2 AS cor0
----
29

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3860
SELECT + CAST( COUNT( * ) AS SIGNED ) AS col0, + 43 AS col1 FROM tab0 cor0
----
3
43

skipif mysql # not compatible
query II rowsort label-3860
SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col0, + 43 AS col1 FROM tab0 cor0
----
3
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3861
SELECT + + CAST( NULL AS SIGNED ) * 45 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3861
SELECT + + CAST ( NULL AS INTEGER ) * 45 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3862
SELECT - col2 DIV + ( + col1 ) FROM tab1 cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-3862
SELECT - col2 / + ( + col1 ) FROM tab1 cor0
----
-1
-11
-6

query I rowsort
SELECT - + col2 * col0 + - - col1 - - + 63 FROM tab2 AS cor0
----
-2420
-4220
-944

query I rowsort
SELECT + ( 13 ) FROM tab2
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT DISTINCT COUNT( DISTINCT + - col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT COUNT ( DISTINCT + - col2 ) AS col2 FROM tab2
----
3

query II rowsort
SELECT ALL 76 * - + ( col1 ), col1 FROM tab1
----
-1064
14
-3572
47
-380
5

query II rowsort
SELECT ALL - 82 AS col1, 57 FROM tab0 AS cor0
----
-82
57
-82
57
-82
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT ALL - MIN( DISTINCT + 20 ) AS col1 FROM tab0 cor0 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL - MIN ( DISTINCT + 20 ) AS col1 FROM tab0 cor0 WHERE - col0 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - 21 ) * + - col2 col2 FROM tab0
----
-2079
-210
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT DISTINCT - + 48 * - COUNT( ALL + - col0 ) AS col0 FROM tab2 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-3870
SELECT DISTINCT - + 48 * - COUNT ( ALL + - col0 ) AS col0 FROM tab2 AS cor0
----
144

query I rowsort
SELECT 50 + + 13 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL OR NULL < ( + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3872
SELECT DISTINCT + col1 + CAST( - 80 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-59
-79
1

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT + col1 + CAST ( - 80 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-59
-79
1

query I rowsort
SELECT ALL 37 AS col1 FROM tab0 cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3874
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT DISTINCT + col2 + + - 53 * - 4 - + 99 + + 1 FROM tab0 AS cor0
----
124
161
213

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 37 + 41 IS NULL
----

query I rowsort
SELECT DISTINCT + 89 + + 57 AS col2 FROM tab2 AS cor0
----
146

query II rowsort
SELECT ALL - - 23 + col0, col0 FROM tab2 AS cor0
----
69
46
87
64
98
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab2 WHERE NULL <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT DISTINCT - COUNT( + 28 ) * + + MIN( + col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3880
SELECT DISTINCT - COUNT ( + 28 ) * + + MIN ( + col1 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3881
SELECT DISTINCT COUNT( * ) * MIN( DISTINCT + CAST( + col2 AS SIGNED ) ) AS col1 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-3881
SELECT DISTINCT COUNT ( * ) * MIN ( DISTINCT + CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-3882
SELECT ALL - 6 DIV + 95 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3882
SELECT ALL - 6 / + 95 FROM tab1
----
0
0
0

query I rowsort
SELECT col2 * - - col1 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT ALL - col2 * + 53 AS col1 FROM tab2
----
-1219
-2120
-3074

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 + + + col0 - - + ( + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + + 36 col2 FROM tab2
----
103
113
87

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN col2 AND + + ( - 46 )
----

query I rowsort
SELECT col1 * - + 4 + ( + col2 ) AS col2 FROM tab2
----
-181
-210
-268

query I rowsort
SELECT DISTINCT 14 + 25 AS col2 FROM tab2 AS cor0
----
39

query I rowsort
SELECT ALL + 28 + + col2 FROM tab1 AS cor0
----
124
87
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3891
SELECT DISTINCT - 79 * COUNT( * ) - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3891
SELECT DISTINCT - 79 * COUNT ( * ) - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 89 AS col2 FROM tab1 cor0 WHERE - col2 IS NOT NULL
----
89

query I rowsort
SELECT DISTINCT + + col0 + + - col1 * - 7 AS col0 FROM tab0 AS cor0
----
104
234
582

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT ALL - 2 * + SUM( - col1 ) / + + ( COUNT( * ) ) col0 FROM tab1 WHERE - + col1 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3895
SELECT ALL - 2 * + SUM ( - col1 ) / + + ( COUNT ( * ) ) col0 FROM tab1 WHERE - + col1 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 73 BETWEEN + col2 AND col1
----
46
51
23
75
67
58

query I rowsort
SELECT ALL col1 + - 3 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < - 28
----

query I rowsort
SELECT ALL col1 * + - 31 AS col1 FROM tab1 cor0
----
-1457
-155
-434

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT ALL - - 83 * - - ( + + ( MAX( - - col0 ) ) ) FROM tab1 AS cor0
----
7553

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL - - 83 * - - ( + + ( MAX ( - - col0 ) ) ) FROM tab1 AS cor0
----
7553

query II rowsort
SELECT + col1 * + col0 AS col2, col2 AS col2 FROM tab2 AS cor0
----
2346
23
4928
40
5025
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3902
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( + CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3902
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( + CAST ( NULL AS INTEGER ) ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 2 col1 FROM tab2 AS cor0 WHERE NOT - ( - ( - col2 ) ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3904
SELECT + MIN( + col1 ) * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT + MIN ( + col1 ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - col0 * 97 FROM tab0
----
-1455
-8439
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT DISTINCT - SUM( - - col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-3906
SELECT DISTINCT - SUM ( - - col1 ) AS col2 FROM tab1
----
-66

query I rowsort
SELECT 95 * + col1 FROM tab2
----
4845
6365
7315

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3908
SELECT ALL - 54 DIV + COUNT( ALL + + 50 ) FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL - 54 / + COUNT ( ALL + + 50 ) FROM tab0
----
-18

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 12 + 39 IS NULL )
----

query I rowsort
SELECT ALL - - 63 AS col0 FROM tab1 AS cor0
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT + 47 + - + COUNT( * ) + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) < + 71
----
47

skipif mysql # not compatible
query I rowsort label-3911
SELECT + 47 + - + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) < + 71
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT - SUM( - col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3912
SELECT - SUM ( - col1 ) FROM tab1 AS cor0
----
66

query II rowsort
SELECT DISTINCT - col1, + 8 * col2 + - col1 AS col2 FROM tab0
----
-1
791
-21
59
-81
295

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col1 AS col2, col0 col1 FROM tab2 cor0
----
51
46
67
75
77
64

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 65 - + 87 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3917
SELECT 1 * + 34 + CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3917
SELECT 1 * + 34 + CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3918
SELECT COUNT( ALL - CAST( NULL AS SIGNED ) ) + + 98 FROM tab1 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-3918
SELECT COUNT ( ALL - CAST ( NULL AS INTEGER ) ) + + 98 FROM tab1 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT ALL ( - - COUNT( * ) ) * 79 AS col0 FROM tab1
----
237

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL ( - - COUNT ( * ) ) * 79 AS col0 FROM tab1
----
237

query I rowsort
SELECT + col2 + + - col0 AS col1 FROM tab1
----
-23
-26
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3921
SELECT DISTINCT 77 + - 23 + col0 + - + col2 DIV 96 DIV - col1 FROM tab1
----
105
139
145

skipif mysql # not compatible
query I rowsort label-3921
SELECT DISTINCT 77 + - 23 + col0 + - + col2 / 96 / - col1 FROM tab1
----
105
139
145

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT NULL >= - 88 * - 16 - col2
----
0

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT NULL >= - 88 * - 16 - col2
----
0

query III rowsort
SELECT * FROM tab0 WHERE + + col0 + col2 + col1 < - + col2 / + col2 * col1
----

query I rowsort
SELECT - + 84 AS col0 FROM tab2 WHERE col0 * + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3925
SELECT DISTINCT + 60 + - - col0 * + CAST( - 75 AS SIGNED ) + - 32 + 46 FROM tab1
----
-3751
-6301
-6751

skipif mysql # not compatible
query I rowsort label-3925
SELECT DISTINCT + 60 + - - col0 * + CAST ( - 75 AS INTEGER ) + - 32 + 46 FROM tab1
----
-3751
-6301
-6751

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3926
SELECT DISTINCT COUNT( CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3926
SELECT DISTINCT COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - col1 ) * - + col2 col2 FROM tab2
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3928
SELECT ALL ( - - CAST( NULL AS SIGNED ) ) * 55 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL ( - - CAST ( NULL AS INTEGER ) ) * 55 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT - + SUM( DISTINCT 69 ) FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3929
SELECT - + SUM ( DISTINCT 69 ) FROM tab2 AS cor0
----
-69

query I rowsort
SELECT ALL - - 2 + - 42 + 79 FROM tab0 AS cor0
----
39
39
39

query I rowsort
SELECT 1 - col2 AS col2 FROM tab2 cor0
----
-22
-39
-57

query I rowsort
SELECT DISTINCT 72 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
72

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN NULL AND - col0 / col2
----

query II rowsort
SELECT DISTINCT + 18 AS col1, + col0 FROM tab0 AS cor0
----
18
15
18
87
18
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 = 32
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT + col1 * - 29 - + + col0 FROM tab1 AS cor0
----
-1454
-230
-457

query I rowsort
SELECT ALL + - col0 * + - col0 AS col1 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT 89 * + col2 * 14 AS col0 FROM tab2 AS cor0
----
28658
49840
72268

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT DISTINCT + MIN( 0 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3940
SELECT DISTINCT + MIN ( 0 ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3941
SELECT - 93 DIV - + col1 FROM tab1 AS cor0
----
1
18
6

skipif mysql # not compatible
query I rowsort label-3941
SELECT - 93 / - + col1 FROM tab1 AS cor0
----
1
18
6

query I rowsort
SELECT ALL col1 * - - col1 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT DISTINCT - - COUNT( * ) * - 33 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT - - COUNT ( * ) * - 33 FROM tab2 AS cor0
----
-99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < + col0
----

query II rowsort
SELECT DISTINCT col1, + 82 + + + 63 * col1 AS col2 FROM tab1
----
14
964
47
3043
5
397

query I rowsort
SELECT DISTINCT col2 * + col0 + - col0 FROM tab0 WHERE NOT NULL NOT BETWEEN + 31 * col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3947
SELECT ALL - 94 DIV + 30 FROM tab2
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL - 94 / + 30 FROM tab2
----
-3
-3
-3

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT - - 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3949
SELECT DISTINCT - COUNT( * ) DIV - COUNT( * ) col1 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3949
SELECT DISTINCT - COUNT ( * ) / - COUNT ( * ) col1 FROM tab1
----
1

query I rowsort
SELECT ALL 29 * + + col1 FROM tab0
----
2349
29
609

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, + col0 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT DISTINCT - col0 * - - 82 AS col0 FROM tab0 AS cor0
----
-1230
-7134
-7954

query I rowsort
SELECT 95 * + + col0 + col0 AS col2 FROM tab1 AS cor0
----
4896
8160
8736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3954
SELECT ALL COUNT( * ) + 72 - - + CAST( NULL AS SIGNED ) + + SUM( ALL - CAST( - - ( - col0 ) AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3954
SELECT ALL COUNT ( * ) + 72 - - + CAST ( NULL AS INTEGER ) + + SUM ( ALL - CAST ( - - ( - col0 ) AS INTEGER ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT ALL + COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3956
SELECT + CAST( + + COUNT( * ) AS SIGNED ), COUNT( * ) AS col1 FROM tab1 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3956
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ), COUNT ( * ) AS col1 FROM tab1 cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab2 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT + - col2 * - 75 * + col2 FROM tab0 AS cor0
----
165675
735075
7500

query I rowsort
SELECT DISTINCT col2 + + + 8 FROM tab1 AS cor0
----
104
67
76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 17 * + col0 * + col2 > + col2 + - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 + col2 + - - ( col2 ) AS col0 FROM tab2
----
144
191
92

query I rowsort
SELECT col2 + - 10 * - - col1 AS col2 FROM tab0
----
-200
-763
89

onlyif mysql # DIV for integer division: 
query II rowsort label-3963
SELECT ALL 83 AS col0, 13 + - + col2 - col2 DIV ( - ( col0 ) ) + - - col0 * + 5 * + + 92 col0 FROM tab2
----
83
21150
83
29413
83
34455

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3963
SELECT ALL 83 AS col0, 13 + - + col2 - col2 / ( - ( col0 ) ) + - - col0 * + 5 * + + 92 col0 FROM tab2
----
83
21150
83
29413
83
34455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3964
SELECT 81 + + + col2 + + CAST( NULL AS SIGNED ) / + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3964
SELECT 81 + + + col2 + + CAST ( NULL AS INTEGER ) / + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3965
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN - 11 AND + - CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3965
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN - 11 AND + - CAST ( - col2 AS INTEGER )
----

query I rowsort
SELECT col1 + + + 79 FROM tab1
----
126
84
93

query I rowsort
SELECT + - col2 * col2 + col2 FROM tab2 AS cor0
----
-1560
-3306
-506

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3968
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col0 < NULL
----
0

query II rowsort
SELECT ALL col2 + + - col2, - 43 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 30 + + - col2 FROM tab0 cor0
----
-17
-69
20

query I rowsort
SELECT + 77 - - col2 * - 3 AS col0 FROM tab0
----
-220
-64
47

query I rowsort
SELECT ( + ( + 87 ) ) AS col1 FROM tab2
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT ALL - 68 - COUNT( * ) * - MIN( DISTINCT - col1 * col0 ) FROM tab2
----
-15143

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL - 68 - COUNT ( * ) * - MIN ( DISTINCT - col1 * col0 ) FROM tab2
----
-15143

query I rowsort
SELECT - 66 - + col1 AS col0 FROM tab2
----
-117
-133
-143

query I rowsort
SELECT ALL col2 + + 10 FROM tab2
----
33
50
68

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col2 + - 99
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 99 * 42 col0 FROM tab2
----
4209
4225
4235

query I rowsort
SELECT + 73 + 77 AS col2 FROM tab0
----
150
150
150

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3979
SELECT - CAST( - 62 AS DECIMAL ) + - COUNT( * ) * + MAX( + col1 * + col2 ) AS col1 FROM tab2 WHERE NOT - 4 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3979
SELECT - CAST ( - 62 AS REAL ) + - COUNT ( * ) * + MAX ( + col1 * + col2 ) AS col1 FROM tab2 WHERE NOT - 4 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE col2 <= ( 43 )
----

query I rowsort
SELECT 57 + - 71 * col0 FROM tab1 WHERE NOT 26 * + 60 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT ALL + ( - ( COUNT( * ) ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL + ( - ( COUNT ( * ) ) ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT - COUNT( DISTINCT + col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3983
SELECT - COUNT ( DISTINCT + col0 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3984
SELECT + col2 + 39 / + col2 FROM tab0 WHERE NOT ( col1 / - CAST( NULL AS SIGNED ) + - col2 ) = ( col0 * + 10 )
----

skipif mysql # not compatible
query I rowsort label-3984
SELECT + col2 + 39 / + col2 FROM tab0 WHERE NOT ( col1 / - CAST ( NULL AS INTEGER ) + - col2 ) = ( col0 * + 10 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( 97 ) * 4 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 + col0 ) > 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT + MIN( DISTINCT + col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3987
SELECT + MIN ( DISTINCT + col1 ) AS col2 FROM tab1
----
5

query I rowsort
SELECT DISTINCT - col0 * + 85 FROM tab0 AS cor0 WHERE ( 48 ) IS NOT NULL
----
-1275
-7395
-8245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3989
SELECT ALL - 18 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL - 18 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3991
SELECT ALL 12 DIV COUNT( * ) AS col1 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL 12 / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT 92 * COUNT( + 9 ) FROM tab0 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-3992
SELECT 92 * COUNT ( + 9 ) FROM tab0 AS cor0
----
276

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 )
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT ALL 43 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col0 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( - col0 * - 55 ) AND - 5
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col2 ) > + col1
----
97
1
99

query III rowsort
SELECT * FROM tab1 cor0 WHERE 63 + + col2 < ( 24 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab2 AS cor0 WHERE ( col0 ) / col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT DISTINCT - COUNT( 7 ) + 84 AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4001
SELECT DISTINCT - COUNT ( 7 ) + 84 AS col1 FROM tab0 AS cor0
----
81

query I rowsort
SELECT + ( - col1 ) + + 33 AS col1 FROM tab2 AS cor0
----
-18
-34
-44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4003
SELECT * FROM tab0 AS cor0 WHERE 86 NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4003
SELECT * FROM tab0 AS cor0 WHERE 86 NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT ALL + - 85 FROM tab0 cor0
----
-85
-85
-85

query I rowsort
SELECT ALL 53 + + col2 * col2 FROM tab2 AS cor0
----
1653
3417
582

query I rowsort
SELECT col0 + + ( 59 ) AS col0 FROM tab1 AS cor0
----
110
144
150

query I rowsort
SELECT - 91 * 74 + ( + 89 - 50 * - col2 ) AS col2 FROM tab1 AS cor0
----
-1845
-3245
-3695

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT + 80 * + SUM( DISTINCT 96 * + col1 ) AS col1 FROM tab2 AS cor0 WHERE 2 - + 23 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4008
SELECT + 80 * + SUM ( DISTINCT 96 * + col1 ) AS col1 FROM tab2 AS cor0 WHERE 2 - + 23 IS NULL
----
NULL

query I rowsort
SELECT - col2 * - 99 + + 85 AS col1 FROM tab2 AS cor0
----
2362
4045
5827

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT - COUNT( * ) + - 26 col0 FROM tab2 cor0
----
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4010
SELECT - COUNT ( * ) + - 26 col0 FROM tab2 cor0
----
-29

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 0 * - 76 <> 66
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 - + + 47 AS col0 FROM tab0
----
-32
40
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 col1 FROM tab1
----
-67
-67
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT - MIN( ALL - 49 ) AS col1 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-4015
SELECT - MIN ( ALL - 49 ) AS col1 FROM tab2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4016
SELECT ALL COUNT( * ) - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL COUNT ( * ) - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4017
SELECT DISTINCT + CAST( + 40 AS SIGNED ) FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-4017
SELECT DISTINCT + CAST ( + 40 AS INTEGER ) FROM tab0
----
40

query I rowsort
SELECT ALL col2 - - + ( - col1 ) AS col2 FROM tab1
----
21
54
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - 26 col2 FROM tab2 AS cor0
----
25
41
51

query I rowsort
SELECT DISTINCT + 85 FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND NOT + col2 NOT IN ( + 79 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - + col2 col2 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT + 3 - 52 AS col1 FROM tab0 cor0
----
-49
-49
-49

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT ALL + - SUM( + col2 ) col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4024
SELECT ALL + - SUM ( + col2 ) col0 FROM tab0 AS cor0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-4025
SELECT - col1 DIV - - col1 + + 29 FROM tab1 cor0
----
28
28
28

skipif mysql # not compatible
query I rowsort label-4025
SELECT - col1 / - - col1 + + 29 FROM tab1 cor0
----
28
28
28

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 59 + + col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT - 59 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 ) WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4029
SELECT DISTINCT - - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4029
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 ) <> NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col1, + col2 col1 FROM tab1 cor0
----
14
96
47
68
5
59

query II rowsort
SELECT - col2, + 93 + + - col0 AS col1 FROM tab2 cor0
----
-23
47
-40
29
-58
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4034
SELECT ALL - col2 * + CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-4034
SELECT ALL - col2 * + CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT DISTINCT COUNT( * ) * - 33 * + + MIN( 26 ) * 49 AS col0 FROM tab0 AS cor0
----
-126126

skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT COUNT ( * ) * - 33 * + + MIN ( 26 ) * 49 AS col0 FROM tab0 AS cor0
----
-126126

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4037
SELECT ALL - MIN( ALL - + 81 ) DIV - + CAST( + 92 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL - MIN ( ALL - + 81 ) / - + CAST ( + 92 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - ( + col1 ) FROM tab0 AS cor0 WHERE NOT ( ( - col2 ) * 51 + col1 * - ( - col1 ) ) IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-4039
SELECT DISTINCT 54 col0, + ( 85 ) * - SUM( + col1 ) FROM tab2 AS cor0
----
54
-16575

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4039
SELECT DISTINCT 54 col0, + ( 85 ) * - SUM ( + col1 ) FROM tab2 AS cor0
----
54
-16575

onlyif mysql # DIV for integer division: 
query I rowsort label-4040
SELECT + col1 * - 70 + + + col1 DIV + col2 FROM tab1 cor0
----
-3290
-350
-980

skipif mysql # not compatible
query I rowsort label-4040
SELECT + col1 * - 70 + + + col1 / + col2 FROM tab1 cor0
----
-3290
-350
-980

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + 45 + - col2
----

query I rowsort
SELECT - 72 AS col1 FROM tab1 WHERE NOT col2 IS NULL
----
-72
-72
-72

query III rowsort
SELECT * FROM tab2 WHERE NOT 73 < + - 82
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE 38 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT DISTINCT + COUNT( * ) * - SUM( + col1 ) AS col2 FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-4045
SELECT DISTINCT + COUNT ( * ) * - SUM ( + col1 ) AS col2 FROM tab1
----
-198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4046
SELECT DISTINCT COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab0 WHERE + col0 * - - col2 / col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab0 WHERE + col0 * - - col2 / col0 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 * - col1 * col1 NOT IN ( - col0 + 86 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT ALL - 28 + + 50 + COUNT( * ) col2 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4048
SELECT ALL - 28 + + 50 + COUNT ( * ) col2 FROM tab1 AS cor0
----
25

query I rowsort
SELECT ALL - + ( 24 ) FROM tab2 AS cor0 WHERE 63 + 1 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + - 14 col2, - 1 AS col1 FROM tab0 AS cor0
----
-15
-1
-35
-1
-95
-1

query I rowsort
SELECT - 65 * - 50 + col1 * 94 AS col0 FROM tab1
----
3720
4566
7668

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT DISTINCT + COUNT( * ) + - 58 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-4052
SELECT DISTINCT + COUNT ( * ) + - 58 FROM tab0
----
-55

query I rowsort
SELECT ALL 21 * ( + - 63 ) AS col0 FROM tab1
----
-1323
-1323
-1323

query I rowsort
SELECT - ( + 86 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT ALL col2 * + 2 AS col0 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT + COUNT( * ) * + SUM( ALL col1 ) FROM tab0 cor0
----
309

skipif mysql # not compatible
query I rowsort label-4056
SELECT + COUNT ( * ) * + SUM ( ALL col1 ) FROM tab0 cor0
----
309

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT + COUNT( ALL + 5 ) - ( 80 ) * - COUNT( * ) FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-4058
SELECT + COUNT ( ALL + 5 ) - ( 80 ) * - COUNT ( * ) FROM tab1 AS cor0
----
243

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 - + - col0 + - 21 IS NOT NULL AND NOT + col0 = 38
----

query I rowsort
SELECT - 3 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT 25 + - + COUNT( * ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-4062
SELECT 25 + - + COUNT ( * ) FROM tab1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4063
SELECT ALL COUNT( + CAST( NULL AS SIGNED ) ) - + 12 * 38 AS col1 FROM tab1
----
-456

skipif mysql # not compatible
query I rowsort label-4063
SELECT ALL COUNT ( + CAST ( NULL AS INTEGER ) ) - + 12 * 38 AS col1 FROM tab1
----
-456

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT ALL ( COUNT( * ) ) FROM tab1 WHERE 56 BETWEEN - col0 AND - + col1 + + col2
----
1

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL ( COUNT ( * ) ) FROM tab1 WHERE 56 BETWEEN - col0 AND - + col1 + + col2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4065
SELECT DISTINCT - col0 AS col2, - 94 DIV + col2 FROM tab0
----
-15
-2
-87
-9
-97
0

skipif mysql # not compatible
query II rowsort label-4065
SELECT DISTINCT - col0 AS col2, - 94 / + col2 FROM tab0
----
-15
-2
-87
-9
-97
0

query I rowsort
SELECT ALL - col0 - - - col0 - + col0 FROM tab0
----
-261
-291
-45

query I rowsort
SELECT + col2 * + - col1 + + col2 AS col1 FROM tab2
----
-1150
-3040
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT DISTINCT + SUM( ALL - col1 ) - + COUNT( * ) + - - SUM( - col0 ) + 2 * - 92 FROM tab0
----
-489

skipif mysql # not compatible
query I rowsort label-4068
SELECT DISTINCT + SUM ( ALL - col1 ) - + COUNT ( * ) + - - SUM ( - col0 ) + 2 * - 92 FROM tab0
----
-489

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT - COUNT( * ) + + ( - + 36 ) * COUNT( * ) AS col2 FROM tab1
----
-111

skipif mysql # not compatible
query I rowsort label-4069
SELECT - COUNT ( * ) + + ( - + 36 ) * COUNT ( * ) AS col2 FROM tab1
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT + ( 90 ) * - COUNT( * ) FROM tab1 WHERE - + col1 + - - col0 NOT BETWEEN ( NULL ) AND - col2 * - + col1
----
0

skipif mysql # not compatible
query I rowsort label-4070
SELECT + ( 90 ) * - COUNT ( * ) FROM tab1 WHERE - + col1 + - - col0 NOT BETWEEN ( NULL ) AND - col2 * - + col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4071
SELECT DISTINCT COUNT( * ) DIV 60 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4071
SELECT DISTINCT COUNT ( * ) / 60 AS col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 60 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4073
SELECT col0 * + col2 + col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4073
SELECT col0 * + col2 + col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4074
SELECT + + CAST( col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4074
SELECT + + CAST ( col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
14
47
5

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( ( + - 76 ) )
----

query I rowsort
SELECT ALL - - col0 * + col2 * + + 25 FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4077
SELECT * FROM tab0 AS cor0 WHERE NOT ( 6 + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + col1 + + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4077
SELECT * FROM tab0 AS cor0 WHERE NOT ( 6 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + col1 + + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT - - 47 * - - SUM( + 18 ) FROM tab2 AS cor0
----
2538

skipif mysql # not compatible
query I rowsort label-4078
SELECT - - 47 * - - SUM ( + 18 ) FROM tab2 AS cor0
----
2538

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col0 * - col2 + - + 2 * + col2 + + col0 ) NOT BETWEEN ( - col1 - + 81 ) AND ( col2 )
----

query I rowsort
SELECT ( - + col0 ) + 4 FROM tab1
----
-47
-81
-87

query I rowsort
SELECT + col1 + 79 AS col2 FROM tab0
----
100
160
80

query I rowsort
SELECT - 90 AS col2 FROM tab1 WHERE NOT - col1 + - col1 BETWEEN NULL AND + + col1
----

query I rowsort
SELECT DISTINCT - 41 * + - 47 AS col0 FROM tab2
----
1927

query I rowsort
SELECT - col1 + - - 95 * + col2 AS col2 FROM tab2
----
2134
3723
5443

query II rowsort
SELECT ALL + col0 AS col2, col0 * + col0 + + col1 FROM tab1 WHERE NOT NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 17 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT ALL - 9 * + 34 * - 90 + - COUNT( * ) * + 98 + ( 26 ) * + - COUNT( * ) FROM tab2 AS cor0
----
27168

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL - 9 * + 34 * - 90 + - COUNT ( * ) * + 98 + ( 26 ) * + - COUNT ( * ) FROM tab2 AS cor0
----
27168

query II rowsort
SELECT + + 38 AS col0, col2 AS col0 FROM tab0 AS cor0
----
38
10
38
47
38
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 39 col2 FROM tab2 AS cor0
----
-39
-39
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4090
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col0 + - ( + col0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4090
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col0 + - ( + col0 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 - + 47 AS col1 FROM tab0
----
-146
-57
-94

query I rowsort
SELECT DISTINCT + - 33 AS col2 FROM tab1 AS cor0
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-4093
SELECT + - col2 DIV - + 5 + - 12 FROM tab2 AS cor0
----
-1
-4
-8

skipif mysql # not compatible
query I rowsort label-4093
SELECT + - col2 / - + 5 + - 12 FROM tab2 AS cor0
----
-1
-4
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT ALL + COUNT( * ) + - - COUNT( * ) * - 24 AS col0 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4094
SELECT ALL + COUNT ( * ) + - - COUNT ( * ) * - 24 AS col0 FROM tab1 AS cor0
----
-69

query I rowsort
SELECT ALL - col1 + + 14 AS col1 FROM tab1 AS cor0
----
-33
0
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4096
SELECT - 52 DIV - col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4096
SELECT - 52 / - col0 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL + - col2 + + ( - ( + 28 ) ) FROM tab0 WHERE 13 IS NOT NULL
----
-127
-38
-75

query I rowsort
SELECT + ( - - col2 ) AS col0 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT - + MIN( DISTINCT + 79 ) AS col2 FROM tab2 WHERE - - ( + col1 ) + + col1 NOT BETWEEN NULL AND - + col0
----
-79

skipif mysql # not compatible
query I rowsort label-4099
SELECT - + MIN ( DISTINCT + 79 ) AS col2 FROM tab2 WHERE - - ( + col1 ) + + col1 NOT BETWEEN NULL AND - + col0
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-4100
SELECT DISTINCT col2 DIV + - 55 - col0 AS col0 FROM tab2
----
-46
-64
-76

skipif mysql # not compatible
query I rowsort label-4100
SELECT DISTINCT col2 / + - 55 - col0 AS col0 FROM tab2
----
-46
-64
-76

query I rowsort
SELECT DISTINCT + col1 + - 31 * - 54 - col0 AS col2 FROM tab0
----
1578
1608
1740

query I rowsort
SELECT ( - + col0 ) FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL - col1 * - 57 AS col1 FROM tab2
----
2907
3819
4389

query III rowsort
SELECT * FROM tab0 WHERE NOT + 58 + + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4105
SELECT ALL 25 DIV - - 5 FROM tab0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL 25 / - - 5 FROM tab0
----
5
5
5

query I rowsort
SELECT DISTINCT ( + + 43 ) FROM tab0
----
43

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - - col1 ) NOT IN ( + 90 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 39 ) IS NOT NULL
----

query II rowsort
SELECT - + 2 AS col2, 90 FROM tab2 AS cor0
----
-2
90
-2
90
-2
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT + - COUNT( 30 ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4110
SELECT + - COUNT ( 30 ) AS col1 FROM tab1 cor0
----
-3

query I rowsort
SELECT 84 * - col0 FROM tab2 cor0
----
-3864
-5376
-6300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4112
SELECT DISTINCT + CAST( + - col1 AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT + CAST ( + - col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4113
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + - CAST( NULL AS DECIMAL ) AND col1
----

skipif mysql # not compatible
query III rowsort label-4113
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + - CAST ( NULL AS REAL ) AND col1
----

query I rowsort
SELECT - + 94 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4115
SELECT * FROM tab0 WHERE NOT + ( CAST( NULL AS SIGNED ) ) * + - 5 * + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4115
SELECT * FROM tab0 WHERE NOT + ( CAST ( NULL AS INTEGER ) ) * + - 5 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT - + SUM( col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4116
SELECT - + SUM ( col2 ) FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT + - SUM( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4117
SELECT + - SUM ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT ALL MIN( DISTINCT + - col0 ) + COUNT( * ) FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL MIN ( DISTINCT + - col0 ) + COUNT ( * ) FROM tab1 AS cor0
----
-88

query II rowsort
SELECT DISTINCT + + col1 AS col2, 26 * + + col2 * - col1 + - - col1 + + col2 * - 19 AS col1 FROM tab0 AS cor0
----
1
-4454
21
-5629
81
-99794

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4120
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN CAST( + - col1 AS SIGNED ) AND - ( - 69 ) * - - col2
----

skipif mysql # not compatible
query III rowsort label-4120
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN CAST ( + - col1 AS INTEGER ) AND - ( - 69 ) * - - col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 * + col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT COUNT( * ) * - + 48 FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-4122
SELECT COUNT ( * ) * - + 48 FROM tab2
----
-144

query I rowsort
SELECT DISTINCT - 19 FROM tab0 WHERE NOT ( NOT NULL <= NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 81 * + 58 col2, + 47 FROM tab1
----
-4698
47
-4698
47
-4698
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT ALL SUM( ALL - 54 ) AS col2 FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-4125
SELECT ALL SUM ( ALL - 54 ) AS col2 FROM tab0
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4126
SELECT col2 + 76 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT col2 + 76 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT DISTINCT 83 * - SUM( DISTINCT + col2 ) AS col2 FROM tab2
----
-10043

skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT 83 * - SUM ( DISTINCT + col2 ) AS col2 FROM tab2
----
-10043

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NULL NOT IN ( col1, col1 )
----

query I rowsort
SELECT DISTINCT + ( 16 ) FROM tab2
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-4130
SELECT 59 * + - col2 * + - 59 + + col1 DIV - col1 FROM tab2 AS cor0
----
139239
201897
80062

skipif mysql # not compatible
query I rowsort label-4130
SELECT 59 * + - col2 * + - 59 + + col1 / - col1 FROM tab2 AS cor0
----
139239
201897
80062

query I rowsort
SELECT DISTINCT col2 * 78 AS col2 FROM tab2
----
1794
3120
4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 col0 FROM tab0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT ALL - COUNT( * ) - + COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL - COUNT ( * ) - + COUNT ( * ) FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT ALL + 46 * - MAX( DISTINCT - 83 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
3818

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL + 46 * - MAX ( DISTINCT - 83 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
3818

query I rowsort
SELECT - 90 * ( - - col1 ) + - col2 AS col2 FROM tab1 WHERE + col1 + - + col2 * - col0 * - col0 IS NOT NULL
----
-1356
-4298
-509

onlyif mysql # DIV for integer division: 
query I rowsort label-4136
SELECT - 98 DIV 9 - + + col2 DIV - col2 AS col0 FROM tab2 AS cor0
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-4136
SELECT - 98 / 9 - + + col2 / - col2 AS col0 FROM tab2 AS cor0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT ALL + MAX( ALL + + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL + MAX ( ALL + + col2 ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT - 96 + col1 FROM tab1 AS cor0
----
-49
-82
-91

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 AS cor0 WHERE ( - + col2 + - col2 * - + ( col2 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT DISTINCT + 5 * - COUNT( 57 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT - - 15 * + - col1 NOT IN ( + col2 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT + 5 * - COUNT ( 57 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT - - 15 * + - col1 NOT IN ( + col2 ) )
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4141
SELECT DISTINCT + + 23 DIV - - COUNT( * ) FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT + + 23 / - - COUNT ( * ) FROM tab1 AS cor0
----
7

query I rowsort
SELECT DISTINCT col1 * col2 - - 90 FROM tab2 WHERE NOT ( col0 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 95 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4144
SELECT CAST( + 36 AS SIGNED ) AS col1 FROM tab1
----
36
36
36

skipif mysql # not compatible
query I rowsort label-4144
SELECT CAST ( + 36 AS INTEGER ) AS col1 FROM tab1
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT ALL MIN( + col0 ) AS col2 FROM tab0 WHERE + 59 IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-4145
SELECT ALL MIN ( + col0 ) AS col2 FROM tab0 WHERE + 59 IS NOT NULL
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT + MIN( ALL + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-4146
SELECT + MIN ( ALL + col0 ) FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT - 8 * + - COUNT( * ) FROM tab2 cor0
----
24

skipif mysql # not compatible
query I rowsort label-4147
SELECT - 8 * + - COUNT ( * ) FROM tab2 cor0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4148
SELECT ALL + - col2 DIV - col0 * - + col0 + - - 33 - - col2 col0 FROM tab2 AS cor0
----
56
73
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4148
SELECT ALL + - col2 / - col0 * - + col0 + - - 33 - - col2 col0 FROM tab2 AS cor0
----
56
73
91

query I rowsort
SELECT + 54 * col1 AS col1 FROM tab0
----
1134
4374
54

onlyif mysql # DIV for integer division: 
query I rowsort label-4150
SELECT + col2 DIV + - col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4150
SELECT + col2 / + - col1 AS col1 FROM tab2
----
0
0
0

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0 WHERE NULL IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query III rowsort
SELECT DISTINCT - col2, + ( + col1 ) AS col1, col2 AS col0 FROM tab1
----
9 values hashing to 02a7661c231e19cde7a035aff3678bcc

query II rowsort
SELECT ALL col0, + col1 * ( col1 ) * col0 AS col2 FROM tab2
----
46
119646
64
379456
75
336675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 52 col2 FROM tab2 WHERE NOT - col1 IS NULL
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT DISTINCT MAX( ALL - col0 ) + - + COUNT( ALL - 59 ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-4156
SELECT DISTINCT MAX ( ALL - col0 ) + - + COUNT ( ALL - 59 ) FROM tab0 AS cor0
----
-18

query II rowsort
SELECT DISTINCT + col0, + 19 FROM tab1 cor0
----
51
19
85
19
91
19

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 0 * - - col0 <> - col2
----

query I rowsort
SELECT col0 + + + col0 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT ALL + ( - - col2 ) AS col1 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 10 * - 81 + + + col2 IS NULL
----

query I rowsort
SELECT - col2 + col1 * + 54 AS col1 FROM tab1 AS cor0
----
211
2470
660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 38 + - + col2 col2 FROM tab1 AS cor0
----
-106
-134
-97

query I rowsort
SELECT DISTINCT + col0 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 + - - 69 FROM tab0 cor0
----
156
166
84

query I rowsort
SELECT col0 + ( ( + + col1 ) ) AS col1 FROM tab0
----
108
96
98

query I rowsort
SELECT + 56 * - col1 + - 29 AS col0 FROM tab2
----
-2885
-3781
-4341

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT DISTINCT ( MIN( - 85 ) ) * COUNT( * ) + 79 * 33 * + - COUNT( * ) AS col2 FROM tab0
----
-8076

skipif mysql # not compatible
query I rowsort label-4168
SELECT DISTINCT ( MIN ( - 85 ) ) * COUNT ( * ) + 79 * 33 * + - COUNT ( * ) AS col2 FROM tab0
----
-8076

query II rowsort
SELECT ALL 28 AS col0, + 57 FROM tab2
----
28
57
28
57
28
57

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT DISTINCT COUNT( * ) + + 47 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-4171
SELECT DISTINCT COUNT ( * ) + + 47 FROM tab2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab1 WHERE NOT + - col1 BETWEEN - + 74 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4172
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab1 WHERE NOT + - col1 BETWEEN - + 74 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4173
SELECT ALL * FROM tab1 WHERE NOT + 4 * - col1 * - + 74 / - col1 - - - col2 * CAST( + 21 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4173
SELECT ALL * FROM tab1 WHERE NOT + 4 * - col1 * - + 74 / - col1 - - - col2 * CAST ( + 21 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 53 FROM tab2 WHERE col1 * + col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col0 / - - col0 <> + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 50 AS col0 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 - - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 51 col1, 23 AS col1 FROM tab2
----
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT ( ( - COUNT( * ) ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4179
SELECT ( ( - COUNT ( * ) ) ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT + - SUM( ALL + col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4180
SELECT + - SUM ( ALL + col1 ) FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT MIN( - 4 ) AS col2 FROM tab2 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-4181
SELECT MIN ( - 4 ) AS col2 FROM tab2 cor0
----
-4

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 35 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * + col0 - - + col2 AS col2 FROM tab2 AS cor0
----
-2323
-4888
-4967

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 94 / col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 col1 FROM tab0 AS cor0 WHERE NOT + 67 IS NULL
----
-15
-87
-97

query I rowsort
SELECT + col1 * col2 * + col1 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT - 2 * + 17 AS col0 FROM tab1 AS cor0
----
-34
-34
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-4188
SELECT ALL + col2 DIV 57 + - 95 + - 48 * col1 FROM tab1 AS cor0
----
-2350
-334
-766

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL + col2 / 57 + - 95 + - 48 * col1 FROM tab1 AS cor0
----
-2350
-334
-766

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4189
SELECT + col2 * - + 65 + CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3776
-4352
-6144

skipif mysql # not compatible
query I rowsort label-4189
SELECT + col2 * - + 65 + CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3776
-4352
-6144

query I rowsort
SELECT DISTINCT + col2 * 21 FROM tab2
----
1218
483
840

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT + ( + col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT 2 * + col0 * + + col2 * + col1 = + col1 / col0
----
23
40
58

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 cor0 WHERE + col0 NOT BETWEEN NULL AND + 54
----
59
68

query I rowsort
SELECT ALL + - col2 * - - 20 AS col2 FROM tab2 AS cor0
----
-1160
-460
-800

query II rowsort
SELECT DISTINCT + + col0 AS col1, col0 * col2 AS col1 FROM tab0 AS cor0
----
15
705
87
870
97
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT DISTINCT - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL + 19 * - + col1 FROM tab2 AS cor0
----
-1273
-1463
-969

onlyif mysql # DIV for integer division: 
query I rowsort label-4198
SELECT col2 DIV - col0 + + 17 FROM tab1 AS cor0
----
16
17
17

skipif mysql # not compatible
query I rowsort label-4198
SELECT col2 / - col0 + + 17 FROM tab1 AS cor0
----
16
17
17

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 # aggregate syntax: 
query I rowsort label-4200
SELECT ALL - + MIN( DISTINCT + col0 ) + + COUNT( * ) FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL - + MIN ( DISTINCT + col0 ) + + COUNT ( * ) FROM tab1 AS cor0
----
-48

query I rowsort
SELECT + ( + - col0 ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT - 30 + + col0 / - col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4203
SELECT DISTINCT - 76 * - col2 + 13 DIV - col2 + - col2 + + 73 FROM tab0 cor0
----
3598
7498
822

skipif mysql # not compatible
query I rowsort label-4203
SELECT DISTINCT - 76 * - col2 + 13 / - col2 + - col2 + + 73 FROM tab0 cor0
----
3598
7498
822

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT ALL MAX( col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL MAX ( col1 ) FROM tab0
----
81

query I rowsort
SELECT DISTINCT + col1 * ( - 8 ) + - ( 47 ) FROM tab1
----
-159
-423
-87

query I rowsort
SELECT col1 + + + col0 AS col0 FROM tab1
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4207
SELECT - 35 + - CAST( + col1 AS SIGNED ) FROM tab0
----
-116
-36
-56

skipif mysql # not compatible
query I rowsort label-4207
SELECT - 35 + - CAST ( + col1 AS INTEGER ) FROM tab0
----
-116
-36
-56

query I rowsort
SELECT + col2 + 33 AS col2 FROM tab1
----
101
129
92

query I rowsort
SELECT col2 + - 91 AS col1 FROM tab1
----
-23
-32
5

query II rowsort
SELECT DISTINCT - col1 * ( col2 ), col2 FROM tab0 AS cor0
----
-210
10
-3807
47
-99
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 < NULL
----

query I rowsort
SELECT - col1 * - - 18 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 90 * + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT DISTINCT + 33 + COUNT( * ) AS col2 FROM tab0, tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4214
SELECT DISTINCT + 33 + COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT ALL - MAX( - col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL - MAX ( - col1 ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT + 52 AS col0 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 58 * col2 * - - col0 FROM tab0 cor0
----
40890
50460
556974

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4219
SELECT ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT col0 * + col0 AS col1, col1 * - col0 FROM tab0
----
225
-1215
7569
-1827
9409
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4221
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT ( col2 ) AS col0, 11 AS col2 FROM tab0
----
10
11
47
11
99
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT DISTINCT - 36 * ( + MIN( DISTINCT - - col0 ) ) FROM tab2 WHERE - - 38 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT - 36 * ( + MIN ( DISTINCT - - col0 ) ) FROM tab2 WHERE - - 38 < NULL
----
NULL

query I rowsort
SELECT - col1 * - 65 FROM tab1
----
3055
325
910

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT SUM( + 42 ) FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-4225
SELECT SUM ( + 42 ) FROM tab0
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4226
SELECT ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4226
SELECT ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 97 * col0 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 / + col0 IS NULL
----
-10
-47
-99

query II rowsort
SELECT DISTINCT 74 + + + 11, 70 AS col2 FROM tab0 AS cor0
----
85
70

query I rowsort
SELECT + - col0 * col1 - + col2 AS col2 FROM tab2 AS cor0
----
-2369
-4968
-5083

onlyif mysql # DIV for integer division: 
query I rowsort label-4232
SELECT - + 44 * + col0 * 94 + - col2 DIV 21 DIV + col2 + + 6 * col0 FROM tab2 AS cor0
----
-189980
-264320
-309750

skipif mysql # not compatible
query I rowsort label-4232
SELECT - + 44 * + col0 * 94 + - col2 / 21 / + col2 + + 6 * col0 FROM tab2 AS cor0
----
-189980
-264320
-309750

query II rowsort
SELECT ALL - col2 + - col2 AS col1, col2 - + ( + - col0 ) FROM tab2 AS cor0
----
-116
133
-46
69
-80
104

query II rowsort
SELECT + col0, col0 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT + COUNT( * ) * - - 84 AS col0 FROM tab0
----
252

skipif mysql # not compatible
query I rowsort label-4235
SELECT + COUNT ( * ) * - - 84 AS col0 FROM tab0
----
252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4236
SELECT DISTINCT ( - - 68 ) + - CAST( NULL AS SIGNED ) * + 5 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT ( - - 68 ) + - CAST ( NULL AS INTEGER ) * + 5 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL col0 + + 97 AS col2 FROM tab0 AS cor0
----
112
184
194

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT + ( COUNT( * ) ) + 58 FROM tab2 AS cor0 WHERE NULL IS NULL
----
61

skipif mysql # not compatible
query I rowsort label-4238
SELECT + ( COUNT ( * ) ) + 58 FROM tab2 AS cor0 WHERE NULL IS NULL
----
61

query I rowsort
SELECT DISTINCT + col0 + + ( col1 ) * col2 FROM tab1 cor0
----
1395
3287
380

query I rowsort
SELECT DISTINCT + + 75 - + col1 / + - col1 * + col1 AS col1 FROM tab2 AS cor0 WHERE + 14 * - col2 + + 7 + 10 * + 66 * col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - + col2 * + + col2 * - col1 + ( + 32 ) AS col1 FROM tab2 AS cor0
----
123232
225420
27011

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4242
SELECT - 75 * - COUNT( * ) * COUNT( + + 93 ) + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4242
SELECT - 75 * - COUNT ( * ) * COUNT ( + + 93 ) + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 28 + - ( - 66 ) * col1 col2, 24 FROM tab0 AS cor0
----
1358
24
38
24
5318
24

query I rowsort
SELECT + col0 + - 12 * + + col2 + - col2 AS col0 FROM tab1 cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 69 + + + col0 FROM tab1 AS cor0
----
-18
16
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT - COUNT( * ) + - COUNT( DISTINCT - col1 ) AS col1 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-4246
SELECT - COUNT ( * ) + - COUNT ( DISTINCT - col1 ) AS col1 FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT ALL 32 + - + MAX( col0 ) FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL 32 + - + MAX ( col0 ) FROM tab2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT + MIN( col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4248
SELECT + MIN ( col1 ) AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT DISTINCT ( COUNT( * ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT ( COUNT ( * ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4250
SELECT ALL + COUNT( CAST( - col0 AS SIGNED ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL + COUNT ( CAST ( - col0 AS INTEGER ) ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + col0, + 52 * col2 col0 FROM tab0
----
1215
2444
1827
520
97
5148

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT NULL > NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 70 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT DISTINCT + MAX( DISTINCT - 3 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT + MAX ( DISTINCT - 3 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - col2 - + + 28 * + 37 FROM tab0 AS cor0
----
-1046
-1083
-1135

query I rowsort
SELECT col2 * 20 AS col1 FROM tab0 AS cor0
----
1980
200
940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - col1 col0 FROM tab1 AS cor0 WHERE NOT col2 + + ( - - col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 * 21 col0 FROM tab2 AS cor0
----
-819
-819
-819

query I rowsort
SELECT - - 13 AS col2 FROM tab1 cor0
----
13
13
13

query II rowsort
SELECT - col2, - 72 * + 89 * - + col2 AS col1 FROM tab0 AS cor0
----
-10
64080
-47
301176
-99
634392

query I rowsort
SELECT col0 * 35 + - 66 FROM tab1 AS cor0
----
1719
2909
3119

query III rowsort
SELECT DISTINCT col0, + col2 * + 66 AS col1, - 68 FROM tab2 AS cor0
----
9 values hashing to c5c8355dfdc1442da6ac6eeda8119ec5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 15 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT ALL 50 * + - MAX( + col0 ) FROM tab0
----
-4850

skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL 50 * + - MAX ( + col0 ) FROM tab0
----
-4850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 col2 FROM tab1
----
41
41
41

query I rowsort
SELECT ( - ( + ( - ( col1 ) ) ) ) FROM tab0
----
1
21
81

query I rowsort
SELECT + col0 + - 94 FROM tab1 WHERE NOT col1 <> NULL
----

query II rowsort
SELECT ALL - + col0 * col0 + - ( + - col1 ), col1 - + col1 AS col2 FROM tab2 WHERE 78 <> NULL
----

query I rowsort
SELECT - col2 - - - col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4270
SELECT + SUM( DISTINCT col2 ) AS col0, + 3 AS col2 FROM tab2
----
121
3

skipif mysql # not compatible
query II rowsort label-4270
SELECT + SUM ( DISTINCT col2 ) AS col0, + 3 AS col2 FROM tab2
----
121
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT ALL + ( COUNT( * ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL + ( COUNT ( * ) ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT MIN( ALL + col0 ) col2 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4272
SELECT MIN ( ALL + col0 ) col2 FROM tab0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4273
SELECT * FROM tab2 cor0 WHERE NOT - CAST( ( - ( + + 52 ) ) AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4273
SELECT * FROM tab2 cor0 WHERE NOT - CAST ( ( - ( + + 52 ) ) AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT ALL + COUNT( * ) + + - MAX( DISTINCT 90 ) AS col0 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL + COUNT ( * ) + + - MAX ( DISTINCT 90 ) AS col0 FROM tab0 AS cor0
----
-87

query I rowsort
SELECT + - 69 AS col1 FROM tab1 AS cor0
----
-69
-69
-69

query I rowsort
SELECT ALL + col2 + - - col1 FROM tab1 cor0
----
110
115
64

query II rowsort
SELECT + col1 - - - 30, col1 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + col2 * - 9 * - col1 * + + col2 * + col0
----

query I rowsort
SELECT DISTINCT - ( + 18 ) + + 56 FROM tab0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT ALL COUNT( * ) * - 26 AS col0 FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL COUNT ( * ) * - 26 AS col0 FROM tab0
----
-78

query II rowsort
SELECT ALL + col1 * + 76, col1 - + - col1 AS col0 FROM tab1 AS cor0
----
1064
28
3572
94
380
10

query I rowsort
SELECT DISTINCT + + col0 * + - ( 13 ) FROM tab0 AS cor0 WHERE + 14 IS NOT NULL
----
-1131
-1261
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 28 col1 FROM tab2 AS cor0
----
-28
-28
-28

query I rowsort
SELECT DISTINCT - - col2 + col0 FROM tab0 cor0
----
196
62
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 20 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 + - - 54 FROM tab2 AS cor0
----
-4
14
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT ALL COUNT( * ) * - 0 + - 52 * 83 col0 FROM tab1
----
-4316

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4286
SELECT ALL COUNT ( * ) * - 0 + - 52 * 83 col0 FROM tab1
----
-4316

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 + + 18 col2 FROM tab2
----
-25
-25
-25

query I rowsort
SELECT 31 + - + col1 + + col1 - + 23 AS col1 FROM tab2
----
8
8
8

query I rowsort
SELECT + col1 + + + col2 * + - col2 + col2 FROM tab1
----
-3417
-4509
-9106

query II rowsort
SELECT DISTINCT + col1 AS col2, col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 35 + + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND 78 - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4293
SELECT + col2 DIV 27 AS col2 FROM tab1 AS cor0
----
2
2
3

skipif mysql # not compatible
query I rowsort label-4293
SELECT + col2 / 27 AS col2 FROM tab1 AS cor0
----
2
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT DISTINCT + SUM( + col2 ) * - 45 FROM tab2 AS cor0
----
-5445

skipif mysql # not compatible
query I rowsort label-4294
SELECT DISTINCT + SUM ( + col2 ) * - 45 FROM tab2 AS cor0
----
-5445

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT ALL + 12 * - COUNT( * ) FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-4295
SELECT ALL + 12 * - COUNT ( * ) FROM tab2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ( + ( + - ( COUNT( * ) ) ) ) AS col0 FROM tab0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4296
SELECT ( + ( + - ( COUNT ( * ) ) ) ) AS col0 FROM tab0 WHERE NOT + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT SUM( DISTINCT - col1 ) col1 FROM tab0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4297
SELECT SUM ( DISTINCT - col1 ) col1 FROM tab0
----
-103

onlyif mysql # DIV for integer division: 
query II rowsort label-4298
SELECT ALL - 16 DIV 97 AS col1, - 28 AS col2 FROM tab1 AS cor0
----
0
-28
0
-28
0
-28

skipif mysql # not compatible
query II rowsort label-4298
SELECT ALL - 16 / 97 AS col1, - 28 AS col2 FROM tab1 AS cor0
----
0
-28
0
-28
0
-28

query I rowsort
SELECT DISTINCT + ( - 58 ) AS col0 FROM tab0 AS cor0
----
-58

query I rowsort
SELECT DISTINCT - 27 * - col2 + + col1 FROM tab2 AS cor0
----
1157
1633
672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 83 col1 FROM tab2 AS cor0
----
83

query I rowsort
SELECT 15 * - ( - AVG ( + col1 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----
NULL

query I rowsort
SELECT ALL - 59 * - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
5133
5723
885

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT ALL MIN( + 40 ) FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-4304
SELECT ALL MIN ( + 40 ) FROM tab0 AS cor0
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 7 + - + 35 + col0 col0 FROM tab1
----
-341
-545
-581

onlyif mysql # DIV for integer division: 
query I rowsort label-4306
SELECT + col1 + 78 DIV 57 FROM tab2
----
52
68
78

skipif mysql # not compatible
query I rowsort label-4306
SELECT + col1 + 78 / 57 FROM tab2
----
52
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT ALL - SUM( col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL - SUM ( col2 ) FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT ALL + ( + - ( + COUNT( + col2 ) ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL + ( + - ( + COUNT ( + col2 ) ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + - col0 + - - col0 * + + 24 FROM tab0 AS cor0
----
2001
2231
345

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4310
SELECT ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4311
SELECT ALL COUNT( * ) + + ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL COUNT ( * ) + + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col0 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col2, 94 FROM tab1
----
59
94
68
94
96
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4314
SELECT DISTINCT - CAST( - 15 AS SIGNED ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4314
SELECT DISTINCT - CAST ( - 15 AS INTEGER ) FROM tab0 AS cor0
----
15

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 92 * - col2 >= + ( + + col0 ) * + + col2 * - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col2 col1 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4317
SELECT ALL + 89 DIV - COUNT( * ) - COUNT( - col2 ) AS col0, SUM( ALL - col2 ) FROM tab0 AS cor0
----
-32
-156

skipif mysql # not compatible
query II rowsort label-4317
SELECT ALL + 89 / - COUNT ( * ) - COUNT ( - col2 ) AS col0, SUM ( ALL - col2 ) FROM tab0 AS cor0
----
-32
-156

query I rowsort
SELECT DISTINCT 96 + + - col1 AS col0 FROM tab0 AS cor0
----
15
75
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT + 64 * - MAX( DISTINCT + 55 ) AS col0 FROM tab1 AS cor0
----
-3520

skipif mysql # not compatible
query I rowsort label-4319
SELECT + 64 * - MAX ( DISTINCT + 55 ) AS col0 FROM tab1 AS cor0
----
-3520

query I rowsort
SELECT 24 + - col1 AS col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT - 56 + 34 AS col0 FROM tab1
----
-22

query I rowsort
SELECT ( - 31 ) * + col0 FROM tab0
----
-2697
-3007
-465

query I rowsort
SELECT + + col2 + + + col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT ALL COUNT( ALL ( 19 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL COUNT ( ALL ( 19 ) ) FROM tab2
----
3

query I rowsort
SELECT col0 * 66 - - 39 + + col0 * - col2 - col2 AS col2 FROM tab2
----
1663
1994
581

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4326
SELECT ALL + col1 * - CAST( + col2 AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE - col2 * - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL + col1 * - CAST ( + col2 AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE - col2 * - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4327
SELECT + col1 DIV - col0, + ( - + col1 ) * + 13 AS col2 FROM tab2 AS cor0
----
-1
-1001
-1
-663
0
-871

skipif mysql # not compatible
query II rowsort label-4327
SELECT + col1 / - col0, + ( - + col1 ) * + 13 AS col2 FROM tab2 AS cor0
----
-1
-1001
-1
-663
0
-871

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT ALL - 4 * COUNT( * ) * 50 FROM tab0 AS cor0
----
-600

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL - 4 * COUNT ( * ) * 50 FROM tab0 AS cor0
----
-600

query II rowsort
SELECT + col2 * - 67 AS col0, + 68 AS col2 FROM tab0 AS cor0
----
-3149
68
-6633
68
-670
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT + ( + + MIN( DISTINCT - col2 ) ) col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4330
SELECT + ( + + MIN ( DISTINCT - col2 ) ) col0 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT - col1 * - + col1 AS col0 FROM tab2 WHERE NOT ( NOT ( NULL ) <= - ( - col1 ) / - col1 )
----

query I rowsort
SELECT ALL + ( + 13 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4333
SELECT ALL col0 * + CAST( - - 7 AS SIGNED ) * + + col0 FROM tab1
----
18207
50575
57967

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL col0 * + CAST ( - - 7 AS INTEGER ) * + + col0 FROM tab1
----
18207
50575
57967

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 col0 FROM tab2 cor0
----
17
17
17

query II rowsort
SELECT ALL + 72 AS col1, col1 AS col0 FROM tab0 AS cor0
----
72
1
72
21
72
81

query I rowsort
SELECT + 52 AS col2 FROM tab0 cor0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT MIN( ALL - - ( + ( col0 ) ) ) col2 FROM tab2 cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4337
SELECT MIN ( ALL - - ( + ( col0 ) ) ) col2 FROM tab2 cor0
----
46

query I rowsort
SELECT DISTINCT - col2 + - 85 AS col2 FROM tab2 AS cor0
----
-108
-125
-143

onlyif mysql # DIV for integer division: 
query I rowsort label-4339
SELECT ALL 98 DIV - col1 FROM tab1
----
-19
-2
-7

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL 98 / - col1 FROM tab1
----
-19
-2
-7

query I rowsort
SELECT ALL + ( - - col1 ) * + ( + col1 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT + SUM( DISTINCT - + col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-4341
SELECT + SUM ( DISTINCT - + col2 ) FROM tab1
----
-223

query I rowsort
SELECT DISTINCT + col1 + 70 FROM tab2 WHERE NOT - col0 + - 89 - + 52 + - 64 / col1 * + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT DISTINCT SUM( + 53 ) FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-4343
SELECT DISTINCT SUM ( + 53 ) FROM tab2
----
159

query I rowsort
SELECT 98 * - 89 FROM tab1
----
-8722
-8722
-8722

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT MIN( - - col2 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
59

skipif mysql # not compatible
query I rowsort label-4345
SELECT MIN ( - - col2 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4346
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1
----
3

query I rowsort
SELECT ( 57 ) FROM tab0
----
57
57
57

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 85 * - + 61 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4349
SELECT + col2 DIV + 76 + col1 * - col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-4349
SELECT + col2 / + 76 + col1 * - col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT + MAX( DISTINCT - + 5 ) + - COUNT( - col2 ) FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-4350
SELECT + MAX ( DISTINCT - + 5 ) + - COUNT ( - col2 ) FROM tab0 AS cor0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4351
SELECT + ( - CAST( - + 95 AS SIGNED ) ) + + col0 - + col2 * - - 16 FROM tab1 AS cor0
----
-1390
-764
-902

skipif mysql # not compatible
query I rowsort label-4351
SELECT + ( - CAST ( - + 95 AS INTEGER ) ) + + col0 - + col2 * - - 16 FROM tab1 AS cor0
----
-1390
-764
-902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 61 * ( + + col2 ) + 70 col2 FROM tab2
----
-1333
-2370
-3468

query I rowsort
SELECT - ( - + 63 ) FROM tab2
----
63
63
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4354
SELECT CAST( + 97 AS SIGNED ) * col0 * - col0 AS col1 FROM tab1
----
-252297
-700825
-803257

skipif mysql # not compatible
query I rowsort label-4354
SELECT CAST ( + 97 AS INTEGER ) * col0 * - col0 AS col1 FROM tab1
----
-252297
-700825
-803257

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 34 col1 FROM tab1
----
-34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4356
SELECT col0 + + ( - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4356
SELECT col0 + + ( - CAST ( NULL AS REAL ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 96 * + - col1 + + col0 AS col1 FROM tab1
----
-1293
-395
-4421

query I rowsort
SELECT - 4 + - - col1 FROM tab2
----
47
63
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4359
SELECT ALL - CAST( + - 5 AS SIGNED ) FROM tab1
----
5
5
5

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL - CAST ( + - 5 AS INTEGER ) FROM tab1
----
5
5
5

query I rowsort
SELECT 5 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4361
SELECT CAST( - 4 AS SIGNED ), - 4 FROM tab2
----
-4
-4
-4
-4
-4
-4

skipif mysql # not compatible
query II rowsort label-4361
SELECT CAST ( - 4 AS INTEGER ), - 4 FROM tab2
----
-4
-4
-4
-4
-4
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 20 col0, + col0 AS col2 FROM tab0
----
-20
15
-20
87
-20
97

query II rowsort
SELECT 38 * 20 AS col0, + col0 - + 39 AS col0 FROM tab2
----
760
25
760
36
760
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4364
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + + 90 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT + CAST ( NULL AS REAL ) * + + 90 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL col0 * - ( + 12 ) FROM tab0 AS cor0
----
-1044
-1164
-180

query II rowsort
SELECT DISTINCT + 63 * + col0 AS col2, ( col0 ) AS col2 FROM tab0 AS cor0
----
5481
87
6111
97
945
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT DISTINCT SUM( - - 46 ) FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-4367
SELECT DISTINCT SUM ( - - 46 ) FROM tab0
----
138

onlyif mysql # DIV for integer division: 
query II rowsort label-4368
SELECT - col2 DIV + col1, col1 FROM tab1
----
-1
47
-11
5
-6
14

skipif mysql # not compatible
query II rowsort label-4368
SELECT - col2 / + col1, col1 FROM tab1
----
-1
47
-11
5
-6
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT ALL - COUNT( * ) * + - COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4369
SELECT ALL - COUNT ( * ) * + - COUNT ( * ) FROM tab0
----
9

query I rowsort
SELECT DISTINCT + 83 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4372
SELECT DISTINCT - MAX( DISTINCT - col2 ), - 3 AS col1 FROM tab0 AS cor0
----
10
-3

skipif mysql # not compatible
query II rowsort label-4372
SELECT DISTINCT - MAX ( DISTINCT - col2 ), - 3 AS col1 FROM tab0 AS cor0
----
10
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-4373
SELECT ( - col2 ) + - col0 AS col2, col0 DIV 95 AS col1 FROM tab2 AS cor0
----
-104
0
-133
0
-69
0

skipif mysql # not compatible
query II rowsort label-4373
SELECT ( - col2 ) + - col0 AS col2, col0 / 95 AS col1 FROM tab2 AS cor0
----
-104
0
-133
0
-69
0

query I rowsort
SELECT - - 59 + 1 FROM tab1 AS cor0
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT DISTINCT 79 * - COUNT( * ) + + ( COUNT( * ) ) AS col0 FROM tab2
----
-234

skipif mysql # not compatible
query I rowsort label-4375
SELECT DISTINCT 79 * - COUNT ( * ) + + ( COUNT ( * ) ) AS col0 FROM tab2
----
-234

query II rowsort
SELECT + 86 + + ( - - col1 ), col0 AS col1 FROM tab2
----
137
46
153
75
163
64

onlyif mysql # DIV for integer division: 
query II rowsort label-4377
SELECT ALL 11 AS col0, + col1 DIV col1 FROM tab2
----
11
1
11
1
11
1

skipif mysql # not compatible
query II rowsort label-4377
SELECT ALL 11 AS col0, + col1 / col1 FROM tab2
----
11
1
11
1
11
1

query I rowsort
SELECT ( ( - col1 ) ) * + + col0 * - + col1 / - 26 FROM tab2 WHERE NULL <= - col1 / ( - col0 ) + - col2
----

query I rowsort
SELECT col0 + - - col2 FROM tab1
----
144
147
159

query II rowsort
SELECT DISTINCT col0 AS col2, col0 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT ALL + MIN( ALL + col2 ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL + MIN ( ALL + col2 ) AS col2 FROM tab0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4382
SELECT SUM( ALL + 37 ) - - - 36 AS col2 FROM tab1 WHERE + ( + 91 ) / col0 < CAST( NULL AS SIGNED ) * + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4382
SELECT SUM ( ALL + 37 ) - - - 36 AS col2 FROM tab1 WHERE + ( + 91 ) / col0 < CAST ( NULL AS INTEGER ) * + col0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col0 > - + 79 + col0 + + 49 * + col2 + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col0, col1 FROM tab1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col2 col2 FROM tab1 cor0
----
4896
5015
6188

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT - MAX( ALL 60 ) AS col2 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-4387
SELECT - MAX ( ALL 60 ) AS col2 FROM tab2 AS cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4388
SELECT - + 17, CAST( + 20 AS SIGNED ) + col2 col2 FROM tab1 AS cor0
----
-17
116
-17
79
-17
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4388
SELECT - + 17, CAST ( + 20 AS INTEGER ) + col2 col2 FROM tab1 AS cor0
----
-17
116
-17
79
-17
88

query I rowsort
SELECT + + 18 FROM tab2 cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT ALL + COUNT( * ) * + 57 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
513

skipif mysql # not compatible
query I rowsort label-4390
SELECT ALL + COUNT ( * ) * + 57 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
513

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4391
SELECT ALL * FROM tab2 WHERE CAST( - 8 AS DECIMAL ) * + 52 + 87 < - 86
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4391
SELECT ALL * FROM tab2 WHERE CAST ( - 8 AS REAL ) * + 52 + 87 < - 86
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT ALL COUNT( * ) FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL COUNT ( * ) FROM tab1, tab0 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4394
SELECT ALL + + COUNT( * ) * - COUNT( * ) - 24 DIV - COUNT( * ) AS col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL + + COUNT ( * ) * - COUNT ( * ) - 24 / - COUNT ( * ) AS col2 FROM tab0 cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4395
SELECT - COUNT( * ) + + - 83 - 97 DIV + - 9 + 2 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-4395
SELECT - COUNT ( * ) + + - 83 - 97 / + - 9 + 2 FROM tab0 AS cor0
----
-74

query I rowsort
SELECT - 68 - - ( col1 ) + + - 18 * 85 AS col2 FROM tab2 AS cor0 WHERE - 1 * - 15 + 91 * - 94 < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4398
SELECT ALL - + col0 DIV + 39 FROM tab1 cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL - + col0 / + 39 FROM tab1 cor0
----
-1
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT - 48 * + MIN( - 1 ) FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-4399
SELECT - 48 * + MIN ( - 1 ) FROM tab0 AS cor0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4400
SELECT + COUNT( * ) DIV - 52 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4400
SELECT + COUNT ( * ) / - 52 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 20 * + - 0 + 53 AS col1 FROM tab0 AS cor0
----
53
53
53

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 40 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 * + + col2 * col1 AS col1 FROM tab1
----
-1475
-150212
-18816

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT ALL + MIN( ALL 68 ) AS col0 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL + MIN ( ALL 68 ) AS col0 FROM tab2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT DISTINCT + COUNT( + col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4405
SELECT DISTINCT + COUNT ( + col2 ) AS col1 FROM tab1
----
3

query II rowsort
SELECT 70 AS col1, col1 AS col1 FROM tab2
----
70
51
70
67
70
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4407
SELECT AVG ( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4407
SELECT AVG ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT + 90 * + + 94 FROM tab2 AS cor0
----
8460
8460
8460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4409
SELECT + CAST( - - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4409
SELECT + CAST ( - - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT - ( + + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4410
SELECT - ( + + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

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-4412
SELECT ALL + SUM( ALL col2 ) col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4412
SELECT ALL + SUM ( ALL col2 ) col2 FROM tab1 AS cor0
----
223

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE 9 >= NULL
----

query I rowsort
SELECT + col2 * + col2 * + col0 * + 53 FROM tab2 AS cor0
----
1289702
13371900
5427200

query I rowsort
SELECT DISTINCT + col1 + + col2 + - + col2 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col0 - - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4417
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / + - 98 + + 87 * col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / + - 98 + + 87 * col2 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( + 36 ) AS col0 FROM tab1 AS cor0
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT ALL + COUNT( * ) + + AVG ( - ( - 24 ) ) AS col1 FROM tab2 AS cor0 WHERE + col2 * - + col1 NOT BETWEEN NULL AND - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL + COUNT ( * ) + + AVG ( - ( - 24 ) ) AS col1 FROM tab2 AS cor0 WHERE + col2 * - + col1 NOT BETWEEN NULL AND - 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT ALL + 19 + MIN( + ( - col1 ) ) FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL + 19 + MIN ( + ( - col1 ) ) FROM tab0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT NULL > - col2 + col1 * - - col0
----
0

skipif mysql # not compatible
query I rowsort label-4421
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT NULL > - col2 + col1 * - - col0
----
0

query I rowsort
SELECT + 71 + + - 19 - + col1 FROM tab2
----
-15
-25
1

query I rowsort
SELECT 91 + - col2 AS col1 FROM tab1
----
-5
23
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4424
SELECT - 51 + + 48 DIV - - 95 FROM tab2
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-4424
SELECT - 51 + + 48 / - - 95 FROM tab2
----
-51
-51
-51

query I rowsort
SELECT DISTINCT col0 * + - col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT + col0 - + 82 FROM tab0 WHERE 26 NOT BETWEEN NULL AND - col0 * 92 + + - col2
----
-67
15
5

query I rowsort
SELECT - 81 + - ( + + col2 ) AS col2 FROM tab0 AS cor0
----
-128
-180
-91

query I rowsort
SELECT - 30 * - + col1 + - col1 + + 61 AS col0 FROM tab2 cor0
----
1540
2004
2294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4429
SELECT - AVG ( + col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL IN ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4429
SELECT - AVG ( + col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL IN ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - ( 68 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4430
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - ( 68 ) IS NULL
----
0

query I rowsort
SELECT ALL + + 49 + col2 FROM tab2 cor0
----
107
72
89

onlyif mysql # DIV for integer division: 
query I rowsort label-4432
SELECT DISTINCT - 22 DIV - 65 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4432
SELECT DISTINCT - 22 / - 65 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 col1 FROM tab2
----
-59
-59
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4434
SELECT 27 FROM tab0 WHERE - CAST( NULL AS SIGNED ) <= + col0
----

skipif mysql # not compatible
query I rowsort label-4434
SELECT 27 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) <= + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, col2 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT MIN( + col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4436
SELECT MIN ( + col1 ) AS col0 FROM tab0
----
1

query II rowsort
SELECT ALL 66, + 40 + - 70 AS col1 FROM tab0
----
66
-30
66
-30
66
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT - 91 * - 9 - - ( - COUNT( * ) ) FROM tab2
----
816

skipif mysql # not compatible
query I rowsort label-4438
SELECT - 91 * - 9 - - ( - COUNT ( * ) ) FROM tab2
----
816

query I rowsort
SELECT ALL + ( + - 21 ) AS col1 FROM tab0 AS cor0
----
-21
-21
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-4440
SELECT - col2 - col1 DIV col0 * + 72 col0 FROM tab0 AS cor0
----
-10
-407
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4440
SELECT - col2 - col1 / col0 * + 72 col0 FROM tab0 AS cor0
----
-10
-407
-99

query I rowsort
SELECT ALL ( - 57 ) AS col0 FROM tab1 AS cor0
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT DISTINCT + MIN( ALL col1 ) col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4442
SELECT DISTINCT + MIN ( ALL col1 ) col2 FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4443
SELECT ALL - col0 AS col2, 10 * + + CAST( NULL AS SIGNED ) / + col0 / + 75 AS col0 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-4443
SELECT ALL - col0 AS col2, 10 * + + CAST ( NULL AS INTEGER ) / + col0 / + 75 AS col0 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4444
SELECT - 29 col0, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-29
NULL
-29
NULL
-29
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4444
SELECT - 29 col0, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-29
NULL
-29
NULL
-29
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 11 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4446
SELECT ALL - col2 col0, - CAST( NULL AS SIGNED ) AS col2 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-4446
SELECT ALL - col2 col0, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + + 84 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT - + SUM( - col1 ) - - COUNT( * ) FROM tab1 WHERE NOT NULL <> + + col1 + col0 * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4448
SELECT - + SUM ( - col1 ) - - COUNT ( * ) FROM tab1 WHERE NOT NULL <> + + col1 + col0 * + 50
----
NULL

query I rowsort
SELECT DISTINCT + col0 * + 83 FROM tab1
----
4233
7055
7553

onlyif mysql # DIV for integer division: 
query I rowsort label-4450
SELECT DISTINCT - 12 DIV + + col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4450
SELECT DISTINCT - 12 / + + col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4451
SELECT ALL - 34 AS col1, ( COUNT( * ) ) FROM tab1 WHERE NOT - + 70 NOT BETWEEN NULL AND + col1
----
-34
0

skipif mysql # not compatible
query II rowsort label-4451
SELECT ALL - 34 AS col1, ( COUNT ( * ) ) FROM tab1 WHERE NOT - + 70 NOT BETWEEN NULL AND + col1
----
-34
0

query I rowsort
SELECT + col2 * ( + - 54 ) AS col2 FROM tab1
----
-3186
-3672
-5184

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL > - col0 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT - MAX( - + 7 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
7

skipif mysql # not compatible
query I rowsort label-4454
SELECT - MAX ( - + 7 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
7

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL >= NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 50 col1 FROM tab0
----
-4350
-4850
-750

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 15 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT - COUNT( * ) * + 51 col2 FROM tab1 AS cor0 WHERE col2 + + col0 IS NOT NULL
----
-153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4458
SELECT - COUNT ( * ) * + 51 col2 FROM tab1 AS cor0 WHERE col2 + + col0 IS NOT NULL
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4459
SELECT DISTINCT - 45 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT - 45 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - col0 - col1 >= + col0 / - - col1 + + + 8
----
0

skipif mysql # not compatible
query I rowsort label-4460
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - col0 - col1 >= + col0 / - - col1 + + + 8
----
0

query I rowsort
SELECT DISTINCT + + col2 * + col2 + col1 + + col2 FROM tab1 AS cor0
----
3545
4739
9326

query I rowsort
SELECT col1 + + - col0 FROM tab1
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4463
SELECT DISTINCT + 85 + + - col1 - + - ( - + ( - 37 ) ) + + col0 * + 67 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4463
SELECT DISTINCT + 85 + + - col1 - + - ( - + ( - 37 ) ) + + col0 * + 67 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 * 69 AS col0 FROM tab2
----
3174
4416
5175

query I rowsort
SELECT ALL + col0 * - 68 FROM tab2
----
-3128
-4352
-5100

query I rowsort
SELECT ( - 78 ) AS col1 FROM tab2
----
-78
-78
-78

query I rowsort
SELECT + - col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4468
SELECT DISTINCT CAST( + - 50 AS SIGNED ) + col1 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4468
SELECT DISTINCT CAST ( + - 50 AS INTEGER ) + col1 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4469
SELECT - col2 * col1 DIV 25 - - + col0 FROM tab0 AS cor0
----
-137
79
94

skipif mysql # not compatible
query I rowsort label-4469
SELECT - col2 * col1 / 25 - - + col0 FROM tab0 AS cor0
----
-137
79
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4470
SELECT DISTINCT - COUNT( * ) * + 68 - + COUNT( ALL + col1 ) * 45 + + 9 DIV - 67 FROM tab1
----
-339

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT - COUNT ( * ) * + 68 - + COUNT ( ALL + col1 ) * 45 + + 9 / - 67 FROM tab1
----
-339

query I rowsort
SELECT ALL 20 - + - 10 FROM tab1
----
30
30
30

onlyif mysql # DIV for integer division: 
query I rowsort label-4472
SELECT + + col1 DIV - + col0 AS col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4472
SELECT + + col1 / - + col0 AS col1 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT - COUNT( * ) * + + 90 FROM tab0 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-4473
SELECT - COUNT ( * ) * + + 90 FROM tab0 AS cor0
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT - - MAX( ALL col1 ) * + + 33 AS col1 FROM tab1 AS cor0
----
1551

skipif mysql # not compatible
query I rowsort label-4474
SELECT - - MAX ( ALL col1 ) * + + 33 AS col1 FROM tab1 AS cor0
----
1551

query I rowsort
SELECT + ( + + col0 ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4476
SELECT - + col2 * CAST( 12 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1152
-708
-816

skipif mysql # not compatible
query I rowsort label-4476
SELECT - + col2 * CAST ( 12 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1152
-708
-816

query I rowsort
SELECT DISTINCT - 76 AS col2 FROM tab2 WHERE NOT - + col0 IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab2 WHERE NOT - + ( + col1 ) * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + 46 ) AS col2 FROM tab0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, + 46 + + - 79 col1 FROM tab1
----
59
-33
68
-33
96
-33

query III rowsort
SELECT * FROM tab1 WHERE NOT 11 IN ( - col2, col1 + + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4482
SELECT DISTINCT COUNT( * ) AS col1, + COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4482
SELECT DISTINCT COUNT ( * ) AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
3
3

query II rowsort
SELECT + - col0, 66 AS col0 FROM tab1 AS cor0
----
-51
66
-85
66
-91
66

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 38 BETWEEN + ( + col0 ) AND - col2 * - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 65 * col2 AS col0 FROM tab0
----
3055
6435
650

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT + COUNT( * ) * COUNT( * ) + + COUNT( ALL col1 ) AS col1 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-4486
SELECT + COUNT ( * ) * COUNT ( * ) + + COUNT ( ALL col1 ) AS col1 FROM tab2
----
12

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col1 / + col1 ) < NULL
----

query I rowsort
SELECT col0 FROM tab2 WHERE NOT col1 > - col2 / col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 col2 FROM tab1 WHERE NOT - 12 <= - col0 / 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT 83 * + COUNT( * ) + - COUNT( * ) FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-4492
SELECT 83 * + COUNT ( * ) + - COUNT ( * ) FROM tab0
----
246

query I rowsort
SELECT col1 + - 93 * col1 AS col1 FROM tab2 WHERE NOT NULL <> - 43 + col2
----

query I rowsort
SELECT DISTINCT - ( 71 ) FROM tab0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4495
SELECT DISTINCT col0 * - ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4495
SELECT DISTINCT col0 * - ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT ( + 34 ) NOT IN ( + col0 * + col1 + + ( col0 ) / 99 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT DISTINCT - COUNT( * ) * 18 AS col1 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT - COUNT ( * ) * 18 AS col1 FROM tab1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT DISTINCT ( - SUM( + col0 ) ) col1 FROM tab1 WHERE NOT 85 * + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4498
SELECT DISTINCT ( - SUM ( + col0 ) ) col1 FROM tab1 WHERE NOT 85 * + col2 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4500
SELECT ALL ( + 92 ) - ( col2 + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4500
SELECT ALL ( + 92 ) - ( col2 + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> ( col0 / 48 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT 90 / + MAX( col1 ) FROM tab1 WHERE + col2 < + ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4502
SELECT 90 / + MAX ( col1 ) FROM tab1 WHERE + col2 < + ( - col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4503
SELECT 67 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4503
SELECT 67 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4504
SELECT * FROM tab2 WHERE NOT + CAST( col0 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4504
SELECT * FROM tab2 WHERE NOT + CAST ( col0 AS REAL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NULL BETWEEN ( 82 + + col0 ) AND ( col0 )
----

query I rowsort
SELECT ALL + 6 + col1 AS col1 FROM tab1
----
11
20
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col0 col2 FROM tab0 WHERE ( NULL ) IS NULL
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT ALL SUM( ( - col0 ) ) FROM tab2 WHERE NULL IS NULL
----
-185

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL SUM ( ( - col0 ) ) FROM tab2 WHERE NULL IS NULL
----
-185

query I rowsort
SELECT DISTINCT 5 + 98 FROM tab1
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 * + col1 col0 FROM tab0
----
-1296
-16
-336

query I rowsort
SELECT + ( 46 ) * - col2 + + col0 FROM tab1 AS cor0
----
-2629
-3037
-4365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4512
SELECT ALL CAST( COUNT( * ) AS SIGNED ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4512
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 44 AS col2 FROM tab2 AS cor0
----
44

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT 48 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT DISTINCT + COUNT( * ) * MAX( 88 ) FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-4517
SELECT DISTINCT + COUNT ( * ) * MAX ( 88 ) FROM tab0
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-4518
SELECT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT DISTINCT - SUM( ALL - 41 ) * COUNT( * ) FROM tab2
----
369

skipif mysql # not compatible
query I rowsort label-4519
SELECT DISTINCT - SUM ( ALL - 41 ) * COUNT ( * ) FROM tab2
----
369

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 50 - - 8 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + ( 57 ) AS col0 FROM tab0 AS cor0
----
57
57
57

query I rowsort
SELECT 11 * - col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - col1 col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > ( col2 * 77 )
----

query I rowsort
SELECT - 61 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT 98 FROM tab2 AS cor0 WHERE NOT ( + 60 ) IS NOT NULL
----

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT col1 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT DISTINCT 70 * - + ( - COUNT( * ) ) AS col2 FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT 70 * - + ( - COUNT ( * ) ) AS col2 FROM tab2
----
210

query I rowsort
SELECT DISTINCT ( - 14 ) AS col0 FROM tab0
----
-14

query I rowsort
SELECT DISTINCT - col0 * 16 FROM tab0 WHERE NOT + 24 IN ( col2 + - col0 )
----
-1392
-1552
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT COUNT( 82 ) * MAX( 29 ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-4532
SELECT COUNT ( 82 ) * MAX ( 29 ) FROM tab0
----
87

query I rowsort
SELECT DISTINCT + 55 * + 7 FROM tab1 WHERE 90 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 WHERE NOT NULL = ( col0 )
----

query I rowsort
SELECT ALL + col0 * + - 26 - ( - col0 ) + + 9 FROM tab0 cor0
----
-2166
-2416
-366

query I rowsort
SELECT DISTINCT 90 FROM tab0 WHERE 5 <> col1 * - col2
----
90

query I rowsort
SELECT - 16 * col1 AS col0 FROM tab2
----
-1072
-1232
-816

query I rowsort
SELECT + 83 * + col1 AS col0 FROM tab2
----
4233
5561
6391

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4539
SELECT DISTINCT - COUNT( * ) + - MAX( col1 ) - MIN( + CAST( - col0 AS SIGNED ) ) * + COUNT( * ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT - COUNT ( * ) + - MAX ( col1 ) - MIN ( + CAST ( - col0 AS INTEGER ) ) * + COUNT ( * ) AS col2 FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT - - MIN( DISTINCT + 47 ) + - + ( 43 ) FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4540
SELECT - - MIN ( DISTINCT + 47 ) + - + ( 43 ) FROM tab2 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT + 73 + - + COUNT( * ) FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-4541
SELECT + 73 + - + COUNT ( * ) FROM tab0 AS cor0
----
70

query III rowsort
SELECT * FROM tab1 cor0 WHERE - ( + col2 ) / col0 < ( - col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col1 * + ( - col2 ) - + 1 * 88 AND NULL
----

query I rowsort
SELECT + - ( - - col1 ) + + + col2 + - 0 * col2 FROM tab0 AS cor0
----
-11
-34
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT + COUNT( * ) * - - 72 + - 9 FROM tab0 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-4546
SELECT + COUNT ( * ) * - - 72 + - 9 FROM tab0 AS cor0
----
207

query I rowsort
SELECT DISTINCT - + 13 + - 4 FROM tab2 AS cor0
----
-17

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 IN ( - col2 )
----

query I rowsort
SELECT ALL - 36 - - + 75 - - + col2 + col0 * - col2 * + col2 FROM tab1 AS cor0
----
-295787
-420677
-469881

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4550
SELECT DISTINCT - - col2 * - 55 - + + col0 + - CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4550
SELECT DISTINCT - - col2 * - 55 - + + col0 + - CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( col0 + + col2 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4552
SELECT ALL - ( COUNT( * ) ) FROM tab0 WHERE + CAST( col0 AS SIGNED ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL - ( COUNT ( * ) ) FROM tab0 WHERE + CAST ( col0 AS INTEGER ) >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4553
SELECT - 68 * CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL NOT IN ( + ( col2 ) * col2 )
----

skipif mysql # not compatible
query I rowsort label-4553
SELECT - 68 * CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL NOT IN ( + ( col2 ) * col2 )
----

query I rowsort
SELECT ALL - col0 * - 1 - - col1 AS col1 FROM tab2
----
141
142
97

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE + 86 / col2 + - col0 * col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4556
SELECT DISTINCT 62 DIV - 72 + - - col1 AS col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT 62 / - 72 + - - col1 AS col1 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4557
SELECT ALL + COUNT( * ) - + COUNT( * ), + MAX( ALL + 14 ) AS col2 FROM tab2
----
0
14

skipif mysql # not compatible
query II rowsort label-4557
SELECT ALL + COUNT ( * ) - + COUNT ( * ), + MAX ( ALL + 14 ) AS col2 FROM tab2
----
0
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4558
SELECT DISTINCT col2 - - ( + CAST( - + col1 AS SIGNED ) ) * + col1 AS col2 FROM tab1
----
-100
-2141
34

skipif mysql # not compatible
query I rowsort label-4558
SELECT DISTINCT col2 - - ( + CAST ( - + col1 AS INTEGER ) ) * + col1 AS col2 FROM tab1
----
-100
-2141
34

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 ) <> + 24
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - col0 - col2 FROM tab0 cor0
----
-196
-62
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4561
SELECT col2 - col1 * + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4561
SELECT col2 - col1 * + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 95 - - 3 FROM tab1 AS cor0
----
-92
-92
-92

query I rowsort
SELECT + + 69 AS col0 FROM tab0 AS cor0
----
69
69
69

query I rowsort
SELECT 22 * col0 FROM tab0 AS cor0 WHERE NOT ( - col1 NOT BETWEEN + col0 AND - 84 )
----

onlyif mysql # DIV for integer division: 
query III rowsort label-4565
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 DIV col1 * - col1 IN ( 6 DIV + col0 )
----
75
67
58

skipif mysql # not compatible
query III rowsort label-4565
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 / col1 * - col1 IN ( 6 / + col0 )
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4566
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT NULL > col0 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-4566
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT NULL > col0 * - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT ALL COUNT( * ) AS col0 FROM tab1 WHERE - 61 NOT IN ( + 10 )
----
3

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL COUNT ( * ) AS col0 FROM tab1 WHERE - 61 NOT IN ( + 10 )
----
3

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NULL <= ( + col0 / + col0 )
----

query I rowsort
SELECT DISTINCT + col0 / col2 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4570
SELECT + ( + + CAST( + - AVG ( + 95 ) AS SIGNED ) ) FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-4570
SELECT + ( + + CAST ( + - AVG ( + 95 ) AS INTEGER ) ) FROM tab0 AS cor0
----
-95

query I rowsort
SELECT - + col1 FROM tab1 cor0 WHERE NOT col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT DISTINCT MIN( + 78 ) FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT MIN ( + 78 ) FROM tab2 AS cor0
----
78

query I rowsort
SELECT + col2 * - ( + - 26 ) AS col2 FROM tab0 AS cor0
----
1222
2574
260

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, ( + + col2 ) FROM tab1 AS cor0
----
59
59
68
68
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 col1 FROM tab2 AS cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4576
SELECT ALL col1 * + col0 / + col0 * - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL col1 * + col0 / + col0 * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT DISTINCT + SUM( 62 ) FROM tab0 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT + SUM ( 62 ) FROM tab0 AS cor0
----
186

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4578
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 - - col0 >= CAST( - + 83 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4578
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 - - col0 >= CAST ( - + 83 AS REAL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 57 col1, col2 AS col0 FROM tab2
----
57
23
57
40
57
58

query I rowsort
SELECT col1 * - - ( + 29 ) FROM tab0
----
2349
29
609

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 > col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - col0 ) * 56 + + 8 FROM tab0 WHERE NOT + - 79 >= ( + col0 )
----
-4864
-5424
-832

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - col1 + - col2, + 14 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4584
SELECT DISTINCT + CAST( - - 87 AS SIGNED ) AS col0 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-4584
SELECT DISTINCT + CAST ( - - 87 AS INTEGER ) AS col0 FROM tab0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col1 * - col1 col1 FROM tab2
----
-2555
-4414
-5865

query I rowsort
SELECT DISTINCT col2 * col0 + - - col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 * - + 69 + + + col1 FROM tab0 AS cor0
----
1470
5670
70

query I rowsort
SELECT ALL + ( - - ( - col2 ) ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4589
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col0 + + + 19 ) BETWEEN ( NULL ) AND + - CAST( NULL AS SIGNED ) * + - 40 * - 40 + + 67
----

skipif mysql # not compatible
query III rowsort label-4589
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col0 + + + 19 ) BETWEEN ( NULL ) AND + - CAST ( NULL AS INTEGER ) * + - 40 * - 40 + + 67
----

query I rowsort
SELECT DISTINCT col1 * col2 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 * - - col2 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT ALL - SUM( + col0 ) + + 80 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-147

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL - SUM ( + col0 ) + + 80 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-147

query III rowsort
SELECT * FROM tab0 WHERE + 90 >= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - + col0 * + + col1 col2 FROM tab1
----
25075
290836
68544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 19 AS col1, + 90 col2 FROM tab2 cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 96 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT ALL - SUM( ALL - col0 ) + - 92 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
93

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL - SUM ( ALL - col0 ) + - 92 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
93

query I rowsort
SELECT DISTINCT + - 92 * + col0 * - - col2 + + col0 AS col1 FROM tab0 AS cor0
----
-64845
-79953
-883379

query I rowsort
SELECT DISTINCT + 79 + + col1 AS col0 FROM tab2 cor0
----
130
146
156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4600
SELECT * FROM tab2 WHERE ( NOT ( ( - col1 * + - CAST( + - 70 AS SIGNED ) ) IS NOT NULL ) ) OR NOT NULL > NULL
----

skipif mysql # not compatible
query III rowsort label-4600
SELECT * FROM tab2 WHERE ( NOT ( ( - col1 * + - CAST ( + - 70 AS INTEGER ) ) IS NOT NULL ) ) OR NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT - col1 - + - ( - col0 ) + - - col1 AS col2 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( + col1 ) AND col0 / 28
----

query I rowsort
SELECT 24 + - col0 FROM tab1
----
-27
-61
-67

query III rowsort
SELECT * FROM tab2 WHERE NULL > + col1 + - 2 + + + col0 - + 47 * col1 * - - col2 * - 3
----

query III rowsort
SELECT * FROM tab2 WHERE ( + - ( + col0 ) ) NOT BETWEEN - col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT DISTINCT MIN( ALL 50 ) AS col1 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-4606
SELECT DISTINCT MIN ( ALL 50 ) AS col1 FROM tab1
----
50

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 92 / col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT DISTINCT + COUNT( - - 5 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4608
SELECT DISTINCT + COUNT ( - - 5 ) col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4609
SELECT - CAST( + + 60 AS SIGNED ) AS col0 FROM tab2
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-4609
SELECT - CAST ( + + 60 AS INTEGER ) AS col0 FROM tab2
----
-60
-60
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4610
SELECT 49 DIV COUNT( * ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-4610
SELECT 49 / COUNT ( * ) FROM tab2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT MIN( DISTINCT + 68 ) AS col0 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-4611
SELECT MIN ( DISTINCT + 68 ) AS col0 FROM tab0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4612
SELECT - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 * + 66 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 > NULL
----

query I rowsort
SELECT 47 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4616
SELECT + 23 DIV col1 * - col2 AS col0 FROM tab0 AS cor0
----
-10
-2277
0

skipif mysql # not compatible
query I rowsort label-4616
SELECT + 23 / col1 * - col2 AS col0 FROM tab0 AS cor0
----
-10
-2277
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT DISTINCT + 5 + ( + COUNT( * ) ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT + 5 + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
8

query I rowsort
SELECT ALL + 48 * + 35 AS col1 FROM tab0
----
1680
1680
1680

query I rowsort
SELECT + col2 + + ( - col0 ) - + - col0 + + col1 - + - 11 + + - 77 - + + col0 - - + col0 - + col2 * - 69 * - 88 FROM tab0
----
-285322
-601094
-60755

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4620
SELECT DISTINCT + ( - CAST( + col2 AS SIGNED ) ) col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4620
SELECT DISTINCT + ( - CAST ( + col2 AS INTEGER ) ) col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT - col1 + + + col2 AS col1 FROM tab0
----
-11
-34
98

query II rowsort
SELECT col0 * + ( + col1 ), - 71 - + col1 - + 67 AS col1 FROM tab2
----
2346
-189
4928
-215
5025
-205

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT MIN( + 53 ) FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-4623
SELECT MIN ( + 53 ) FROM tab0
----
53

query I rowsort
SELECT 91 FROM tab1 WHERE + - col0 * - ( - col1 ) + + col2 IS NOT NULL
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT DISTINCT - COUNT( * ) * - - 45 AS col0 FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT - COUNT ( * ) * - - 45 AS col0 FROM tab0
----
-135

query III rowsort
SELECT * FROM tab2 WHERE + col0 + + + 36 * col0 * col1 * - 2 / - ( + 17 ) NOT BETWEEN NULL AND + 44 - + 65
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 * - + 2 AS col0 FROM tab1
----
-102
-170
-182

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT + col0 = ( - 30 * + - 68 + - - col1 + + + col0 * col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4629
SELECT DISTINCT + 4 DIV - col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT + 4 / - col2 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4630
SELECT ALL COUNT( * ) / CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL COUNT ( * ) / CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT COUNT( * ) col2 FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4631
SELECT COUNT ( * ) col2 FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----
0

query I rowsort
SELECT ALL ( col1 ) * col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT DISTINCT - 70 * - 81 FROM tab0
----
5670

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4634
SELECT DISTINCT col0 * col0 - - col0 + CAST( NULL AS SIGNED ) + - - col2 * + - 76 / + + col0 AS col0, + col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-4634
SELECT DISTINCT col0 * col0 - - col0 + CAST ( NULL AS INTEGER ) + - - col2 * + - 76 / + + col0 AS col0, + col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT DISTINCT col0 * - col1 * col2 + - col1 FROM tab1 AS cor0
----
-25080
-290883
-68558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4636
SELECT ALL + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 5 + col2 FROM tab2 AS cor0
----
28
45
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT + 10 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-4638
SELECT + 10 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4639
SELECT ALL + - CAST( + - 52 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL < col1 + col1 - - - CAST( + col0 AS SIGNED ) + - - col2
----

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL + - CAST ( + - 52 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL < col1 + col1 - - - CAST ( + col0 AS INTEGER ) + - - col2
----

query I rowsort
SELECT DISTINCT - 11 + + 58 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT + - MAX( + - 12 ) AS col2 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4641
SELECT + - MAX ( + - 12 ) AS col2 FROM tab1 AS cor0
----
12

query I rowsort
SELECT + col1 + ( - col2 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-21
-54
-82

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query II rowsort
SELECT - + 75 AS col1, + col2 FROM tab2 AS cor0
----
-75
23
-75
40
-75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT ALL 10 - - + MAX( ALL + 28 ) FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL 10 - - + MAX ( ALL + 28 ) FROM tab2
----
38

onlyif mysql # DIV for integer division: 
query II rowsort label-4647
SELECT ALL col0 DIV - col0 AS col2, + col2 col1 FROM tab1
----
-1
59
-1
68
-1
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4647
SELECT ALL col0 / - col0 AS col2, + col2 col1 FROM tab1
----
-1
59
-1
68
-1
96

query I rowsort
SELECT 62 FROM tab1 WHERE NOT ( ( col2 NOT IN ( col1 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE ( NOT NULL < + 43 )
----
0

skipif mysql # not compatible
query I rowsort label-4649
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE ( NOT NULL < + 43 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4650
SELECT DISTINCT - CAST( + - 45 AS SIGNED ) AS col0, + col0 + col0 + - col1 FROM tab2 WHERE NOT - + 25 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4650
SELECT DISTINCT - CAST ( + - 45 AS INTEGER ) AS col0, + col0 + col0 + - col1 FROM tab2 WHERE NOT - + 25 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 + + col0 * col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4652
SELECT ALL + - COUNT( * ) * - - 51 / - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL + - COUNT ( * ) * - - 51 / - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 IN ( + col1 - - - 68, + col2 * + 74 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT ALL - MIN( - + 18 ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL - MIN ( - + 18 ) FROM tab0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 77, + ( - + col1 ) * col0 + col1 col0 FROM tab0
----
-77
-1134
-77
-1806
-77
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT - SUM( DISTINCT + + col2 ) FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4656
SELECT - SUM ( DISTINCT + + col2 ) FROM tab0 cor0
----
-156

query I rowsort
SELECT + ( - 97 ) FROM tab0 AS cor0
----
-97
-97
-97

query II rowsort
SELECT - - col2 AS col2, + 25 FROM tab1 AS cor0
----
59
25
68
25
96
25

query I rowsort
SELECT DISTINCT + + 18 + - ( col1 ) * 81 * col2 AS col1 FROM tab1 AS cor0
----
-108846
-23877
-258858

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4660
SELECT - ( + - CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4660
SELECT - ( + - CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4661
SELECT ALL + + col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL + + col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col1 FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN NULL AND + + 55 / + col0 - 26
----
-51
-67
-77

query I rowsort
SELECT DISTINCT col1 * col0 AS col1 FROM tab2 cor0 WHERE col1 IS NOT NULL
----
2346
4928
5025

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL <> + + 84 )
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT MIN( + 82 ) col0 FROM tab1
----
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4666
SELECT MIN ( + 82 ) col0 FROM tab1
----
82

query I rowsort
SELECT + col0 * + + 50 + + col0 AS col0 FROM tab1
----
2601
4335
4641

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - col2 + - + 78 AS col2 FROM tab0 AS cor0
----
-125
-177
-88

query II rowsort
SELECT DISTINCT col2, + 4 FROM tab0
----
10
4
47
4
99
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 17 col1 FROM tab0 AS cor0
----
-30
-82
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT DISTINCT + ( + SUM( DISTINCT col0 ) ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT + ( + SUM ( DISTINCT col0 ) ) FROM tab0 cor0
----
199

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col0 + + + col0 - + + col1 - - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 8 * + - 69 col2, + col2 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4675
SELECT COUNT( * ) AS col1, + COUNT( * ) AS col0 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-4675
SELECT COUNT ( * ) AS col1, + COUNT ( * ) AS col0 FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4676
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT ALL 11 * COUNT( * ) AS col1 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL 11 * COUNT ( * ) AS col1 FROM tab1
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 72 ) col0 FROM tab2
----
72
72
72

query I rowsort
SELECT DISTINCT 38 * + - 17 FROM tab0
----
-646

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 * - 41 IN ( + - col0 * + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4681
SELECT + CAST( NULL AS DECIMAL ), + col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-4681
SELECT + CAST ( NULL AS REAL ), + col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4682
SELECT + CAST( 60 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 + - - col0 * col0 IS NULL
----
60
60
60

skipif mysql # not compatible
query I rowsort label-4682
SELECT + CAST ( 60 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 + - - col0 * col0 IS NULL
----
60
60
60

query I rowsort
SELECT DISTINCT + col2 + + col0 + - ( 8 ) * - 92 - + col2 FROM tab0 AS cor0 WHERE NOT ( - 98 >= + - col0 / + col2 + + col2 )
----
751
823
833

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT + COUNT( * ) * + COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4684
SELECT + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT DISTINCT - ( + COUNT( * ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4685
SELECT DISTINCT - ( + COUNT ( * ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 <> NULL
----

query I rowsort
SELECT ALL - 22 AS col2 FROM tab0 cor0
----
-22
-22
-22

query I rowsort
SELECT ALL + ( - 44 ) + + 38 FROM tab0 AS cor0
----
-6
-6
-6

query II rowsort
SELECT - + 70 + + col0 AS col1, + col2 FROM tab2 AS cor0
----
-24
23
-6
40
5
58

query I rowsort
SELECT + - 1 + + 23 + + - 51 * + col0 FROM tab0 AS cor0
----
-4415
-4925
-743

query I rowsort
SELECT + 60 + + - col1 FROM tab1 AS cor0
----
13
46
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + + - col0 col0, col2 FROM tab1 AS cor0
----
-138
68
-65
96
-90
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT ALL - 36 + COUNT( * ) col2 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4693
SELECT ALL - 36 + COUNT ( * ) col2 FROM tab0 AS cor0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4694
SELECT 92 * - SUM( - + col2 ) + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4694
SELECT 92 * - SUM ( - + col2 ) + CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col0 + + - 38 + - + 9 * - 65 * - 60 AS col0 FROM tab2
----
-35063
-35074
-35092

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, col1 col1 FROM tab2 WHERE NULL IS NULL
----
-46
51
-64
77
-75
67

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> col1
----

query I rowsort
SELECT + + 62 AS col2 FROM tab1 cor0 WHERE ( NULL ) >= + + col2
----

query II rowsort
SELECT DISTINCT col0 + - - ( - 81 ) * - col0 AS col2, 52 FROM tab1
----
4182
52
6970
52
7462
52

query III rowsort
SELECT * FROM tab1 WHERE NULL < ( - + 27 )
----

query I rowsort
SELECT ALL 65 - col2 AS col2 FROM tab1 AS cor0
----
-3
-31
6

query I rowsort
SELECT + + col1 * - 32 FROM tab2 AS cor0
----
-1632
-2144
-2464

query I rowsort
SELECT col0 * col0 + + col0 AS col0 FROM tab2 AS cor0
----
2162
4160
5700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4704
SELECT DISTINCT CAST( + SUM( + - col1 ) AS SIGNED ) * - COUNT( ALL CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4704
SELECT DISTINCT CAST ( + SUM ( + - col1 ) AS INTEGER ) * - COUNT ( ALL CAST ( NULL AS REAL ) ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 45 * + + 70 FROM tab0 AS cor0
----
-3150
-3150
-3150

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT ALL + - COUNT( * ) * - - 21 col1 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4706
SELECT ALL + - COUNT ( * ) * - - 21 col1 FROM tab1 AS cor0
----
-63

query I rowsort
SELECT + col1 * - + col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT DISTINCT + COUNT( * ) * - 15 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT + COUNT ( * ) * - 15 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT - SUM( ALL - col1 ) col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4709
SELECT - SUM ( ALL - col1 ) col0 FROM tab2 AS cor0
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4710
SELECT ALL + 23 * + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4710
SELECT ALL + 23 * + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4711
SELECT DISTINCT + 76 DIV - 63 AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4711
SELECT DISTINCT + 76 / - 63 AS col1 FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4712
SELECT DISTINCT - CAST( + - col1 AS SIGNED ) AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT - CAST ( + - col1 AS INTEGER ) AS col2 FROM tab0
----
1
21
81

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 39 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + col1 * col0 >= 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4715
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4716
SELECT ALL - col2 DIV + + col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL - col2 / + + col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4717
SELECT DISTINCT + COUNT( * ), COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4717
SELECT DISTINCT + COUNT ( * ), COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 69 col0 FROM tab0
----
-69
-69
-69

query I rowsort
SELECT ALL + 92 + - + 87 AS col1 FROM tab1 AS cor0
----
5
5
5

query II rowsort
SELECT col0 AS col0, + 42 AS col1 FROM tab1 AS cor0
----
51
42
85
42
91
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT ALL + MAX( - + 30 ) FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL + MAX ( - + 30 ) FROM tab2 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT MAX( ( - col0 ) ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4722
SELECT MAX ( ( - col0 ) ) AS col2 FROM tab1 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4723
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) > + col1 * + CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4723
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) > + col1 * + CAST ( col1 AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col1 * + col2 + + - 70 + ( + + 84 ) FROM tab1 AS cor0
----
-1330
-281
-3182

query I rowsort
SELECT DISTINCT + + col2 * col0 + + col2 FROM tab2 AS cor0
----
1081
2600
4408

onlyif mysql # aggregate syntax: 
query II rowsort label-4726
SELECT + COUNT( * ) AS col0, MAX( 98 ) AS col2 FROM tab2 AS cor0
----
3
98

skipif mysql # not compatible
query II rowsort label-4726
SELECT + COUNT ( * ) AS col0, MAX ( 98 ) AS col2 FROM tab2 AS cor0
----
3
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4727
SELECT DISTINCT CAST( NULL AS DECIMAL ) + 31 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4727
SELECT DISTINCT CAST ( NULL AS REAL ) + 31 FROM tab1
----
NULL

query I rowsort
SELECT ALL + ( - - 72 ) AS col2 FROM tab2
----
72
72
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4729
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - col2 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4729
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - col2 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT + + col1 * - col2 + - 50 AS col1 FROM tab0 cor0
----
-149
-260
-3857

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4731
SELECT CAST( NULL AS SIGNED ) + - col2 - + col1 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-4731
SELECT CAST ( NULL AS INTEGER ) + - col2 - + col1 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 34 AS col1 FROM tab2 cor0
----
34

query I rowsort
SELECT ALL - + 21 + col1 * - 9 AS col2 FROM tab1 AS cor0
----
-147
-444
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT ALL + SUM( + col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4734
SELECT ALL + SUM ( + col1 ) AS col2 FROM tab2 AS cor0
----
195

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 / col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + + 96 * + col0 FROM tab2
----
4370
6080
7125

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4737
SELECT - 92, CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
-92
NULL
-92
NULL
-92
NULL

skipif mysql # not compatible
query II rowsort label-4737
SELECT - 92, CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
-92
NULL
-92
NULL
-92
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT ALL - COUNT( 93 ) - 0 AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL - COUNT ( 93 ) - 0 AS col2 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT ( - 51 ) AS col1 FROM tab2
----
-51

query II rowsort
SELECT ALL + - col1, col0 AS col2 FROM tab1 cor0
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT + MIN( + 29 ) FROM tab2 cor0
----
29

skipif mysql # not compatible
query I rowsort label-4741
SELECT + MIN ( + 29 ) FROM tab2 cor0
----
29

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 19 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * + + 81 FROM tab2 AS cor0
----
3726
5184
6075

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT DISTINCT - SUM( + 38 ) AS col0 FROM tab1 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-4744
SELECT DISTINCT - SUM ( + 38 ) AS col0 FROM tab1 AS cor0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT + + COUNT( DISTINCT col1 ) * - COUNT( * ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4745
SELECT + + COUNT ( DISTINCT col1 ) * - COUNT ( * ) FROM tab1 cor0
----
-9

query I rowsort
SELECT ALL + col2 * - 71 AS col0 FROM tab1 cor0
----
-4189
-4828
-6816

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT + SUM( DISTINCT 28 ) AS col2 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-4747
SELECT + SUM ( DISTINCT 28 ) AS col2 FROM tab2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT ALL + SUM( + col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL + SUM ( + col2 ) AS col0 FROM tab1
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-4749
SELECT + 50 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4749
SELECT + 50 / col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4750
SELECT ALL - col0 * + + col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL - col0 * + + col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT COUNT( ALL + 5 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4751
SELECT COUNT ( ALL + 5 ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4752
SELECT DISTINCT - - CAST( - col1 AS SIGNED ) + + 85 AS col0 FROM tab0 cor0
----
4
64
84

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT - - CAST ( - col1 AS INTEGER ) + + 85 AS col0 FROM tab0 cor0
----
4
64
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT + COUNT( * ) * SUM( + col2 ) FROM tab1 AS cor0
----
669

skipif mysql # not compatible
query I rowsort label-4753
SELECT + COUNT ( * ) * SUM ( + col2 ) FROM tab1 AS cor0
----
669

query I rowsort
SELECT DISTINCT 19 + - - 30 FROM tab1 AS cor0
----
49

query II rowsort
SELECT ALL + 11 + - + ( + col0 ) AS col2, + col1 AS col2 FROM tab0 AS cor0
----
-4
81
-76
21
-86
1

query I rowsort
SELECT ALL 47 * + 73 - + col2 * - - 8 AS col1 FROM tab0 AS cor0
----
2639
3055
3351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4757
SELECT MIN( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4757
SELECT MIN ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4758
SELECT DISTINCT + 77 - + CAST( + col2 AS SIGNED ) + + col1 * + 44 FROM tab2
----
2298
2967
3425

skipif mysql # not compatible
query I rowsort label-4758
SELECT DISTINCT + 77 - + CAST ( + col2 AS INTEGER ) + + col1 * + 44 FROM tab2
----
2298
2967
3425

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT ALL - SUM( - + col1 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL - SUM ( - + col1 ) AS col1 FROM tab1
----
66

query I rowsort
SELECT ( + 83 ) * + col1 FROM tab1
----
1162
3901
415

query I rowsort
SELECT ALL + 8 - - col1 FROM tab0
----
29
89
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4762
SELECT ALL 76 DIV - col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL 76 / - col1 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4763
SELECT DISTINCT CAST( NULL AS SIGNED ) - - + col2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - + col2 AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4764
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4764
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + + col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 1 * 69 * + 1 FROM tab2 AS cor0
----
-69
-69
-69

query I rowsort
SELECT - + col2 * - col0 * col0 * - col2 AS col0 FROM tab1 cor0
----
-23970816
-25150225
-38291344

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 - - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 71 * - 77 * col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-256949
-541233
-54670

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4770
SELECT + - CAST( - 99 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
-4554
-6336
-7425

skipif mysql # not compatible
query I rowsort label-4770
SELECT + - CAST ( - 99 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
-4554
-6336
-7425

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN + - col0 AND ( - col0 ) / + + 7
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT DISTINCT SUM( - - ( + col1 ) ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4772
SELECT DISTINCT SUM ( - - ( + col1 ) ) AS col1 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT DISTINCT - SUM( col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4773
SELECT DISTINCT - SUM ( col1 ) FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT ALL MIN( ALL - 72 ) col0 FROM tab1
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4774
SELECT ALL MIN ( ALL - 72 ) col0 FROM tab1
----
-72

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4776
SELECT col2 DIV - - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4776
SELECT col2 / - - col1 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 FROM tab1 WHERE NOT + + col2 IS NULL
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4778
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( + col1 ) * - - COUNT( * ) - + - 1 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4778
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( + col1 ) * - - COUNT ( * ) - + - 1 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT 93 * + col0 + 92 + - col2 AS col1 FROM tab1 AS cor0
----
4739
7938
8487

query I rowsort
SELECT + - 78 + - - col0 AS col1 FROM tab0 cor0
----
-63
19
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4781
SELECT COUNT( * ) DIV 7 + - COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4781
SELECT COUNT ( * ) / 7 + - COUNT ( * ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT DISTINCT - COUNT( * ) + - ( - COUNT( * ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT - COUNT ( * ) + - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE 76 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4784
SELECT ALL + COUNT( * ) DIV + + ( - 22 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4784
SELECT ALL + COUNT ( * ) / + + ( - 22 ) AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE - col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4785
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE - col2 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT ( + 41 ) * - - col2 + ( - - col1 ) FROM tab2 WHERE NOT ( col0 - col1 ) NOT IN ( col2 * + col0, + col1 )
----

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE - col1 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT DISTINCT + + ( - - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4788
SELECT DISTINCT + + ( - - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - col0 * + col0 + - - 68 AS col2 FROM tab2 AS cor0
----
-2048
-4028
-5557

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4791
SELECT DISTINCT col0 - col2 DIV + - 52 AS col2 FROM tab2
----
46
64
76

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT col0 - col2 / + - 52 AS col2 FROM tab2
----
46
64
76

query I rowsort
SELECT ALL + 47 + + 75 FROM tab0
----
122
122
122

query I rowsort
SELECT - 1 + + col2 AS col1 FROM tab0
----
46
9
98

query I rowsort
SELECT DISTINCT - ( - - col1 ) - 12 AS col0 FROM tab2
----
-63
-79
-89

query I rowsort
SELECT 14 + + - col2 FROM tab2
----
-26
-44
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4796
SELECT + 67 + - col2 + - CAST( NULL AS SIGNED ) - + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4796
SELECT + 67 + - col2 + - CAST ( NULL AS INTEGER ) - + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 37 + + - col2 AS col1 FROM tab1
----
-22
-31
-59

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE NOT ( - 77 IS NULL )
----
15
87
97

query I rowsort
SELECT 55 + 24 - + 14 * - - ( + + ( col0 ) ) + + - 0 AS col2 FROM tab2
----
-565
-817
-971

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4800
SELECT ALL ( - - CAST( col0 AS SIGNED ) ) DIV 33 - 33 FROM tab0
----
-31
-31
-33

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL ( - - CAST ( col0 AS INTEGER ) ) / 33 - 33 FROM tab0
----
-31
-31
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4801
SELECT ALL - MIN( DISTINCT + CAST( + col0 AS SIGNED ) ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL - MIN ( DISTINCT + CAST ( + col0 AS INTEGER ) ) FROM tab2
----
-46

query II rowsort
SELECT + col1, col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT - SUM( ALL + 19 ) FROM tab0 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-4804
SELECT - SUM ( ALL + 19 ) FROM tab0 cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT ALL + COUNT( - col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL + COUNT ( - col2 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT + + 43 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query III rowsort
SELECT * FROM tab0 WHERE NOT - 49 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 53 * - col1 AS col1 FROM tab2
----
-2703
-3551
-4081

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 * - + 2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( col0 )
----

query I rowsort
SELECT DISTINCT - 94 FROM tab2 cor0
----
-94

query II rowsort
SELECT DISTINCT + col2 AS col1, + 31 * - + 9 FROM tab2 AS cor0
----
23
-279
40
-279
58
-279

onlyif mysql # DIV for integer division: 
query II rowsort label-4813
SELECT - + col0 col1, - 5 DIV 82 AS col1 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4813
SELECT - + col0 col1, - 5 / 82 AS col1 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

query I rowsort
SELECT DISTINCT - 37 * + 24 + - - 76 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4815
SELECT col1 + col2 * - CAST( col1 AS SIGNED ) AS col1 FROM tab1
----
-1330
-290
-3149

skipif mysql # not compatible
query I rowsort label-4815
SELECT col1 + col2 * - CAST ( col1 AS INTEGER ) AS col1 FROM tab1
----
-1330
-290
-3149

query II rowsort
SELECT DISTINCT + ( + col2 ), col0 * + 27 + col2 AS col0 FROM tab1 WHERE NOT 40 + + + ( + + 1 ) * col0 + - col0 BETWEEN NULL AND - col0
----
59
2354
68
2525
96
1473

query I rowsort
SELECT - col0 + + 91 FROM tab0
----
-6
4
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4818
SELECT col2 + + col0 - col0 DIV - - col2 AS col1 FROM tab2
----
103
132
67

skipif mysql # not compatible
query I rowsort label-4818
SELECT col2 + + col0 - col0 / - - col2 AS col1 FROM tab2
----
103
132
67

query I rowsort
SELECT ALL + ( + + col2 ) AS col1 FROM tab1
----
59
68
96

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * - col0 NOT BETWEEN col0 AND - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + - col2 col1 FROM tab2
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4822
SELECT + + col0 * + 1 + - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4822
SELECT + + col0 * + 1 + - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 FROM tab1 cor0 WHERE 70 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4824
SELECT + col0 * 13 + col2 AS col0 FROM tab2 WHERE NULL NOT IN ( - CAST( NULL AS SIGNED ) * + 95 + + ( - 94 ), - col1 )
----

skipif mysql # not compatible
query I rowsort label-4824
SELECT + col0 * 13 + col2 AS col0 FROM tab2 WHERE NULL NOT IN ( - CAST ( NULL AS INTEGER ) * + 95 + + ( - 94 ), - col1 )
----

query I rowsort
SELECT col1 + - + col1 + - col0 * - - col2 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT + COUNT( * ) * + - 56 + MIN( ALL - col1 ) FROM tab2 cor0
----
-245

skipif mysql # not compatible
query I rowsort label-4826
SELECT + COUNT ( * ) * + - 56 + MIN ( ALL - col1 ) FROM tab2 cor0
----
-245

onlyif mysql # DIV for integer division: 
query II rowsort label-4827
SELECT col2 col2, col2 DIV - + 9 FROM tab2 AS cor0
----
23
-2
40
-4
58
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4827
SELECT col2 col2, col2 / - + 9 FROM tab2 AS cor0
----
23
-2
40
-4
58
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT - MIN( + - 10 ) FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4828
SELECT - MIN ( + - 10 ) FROM tab2 AS cor0
----
10

query I rowsort
SELECT DISTINCT - col1 + + + 3 FROM tab2 AS cor0
----
-48
-64
-74

query II rowsort
SELECT ALL col0 * + - col0 * col1 + - - col2 AS col2, col0 AS col1 FROM tab2
----
-107893
46
-315352
64
-376817
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT COUNT( * ) FROM tab2 WHERE + col2 <> + + col1 * + - col2 + + 24
----
3

skipif mysql # not compatible
query I rowsort label-4831
SELECT COUNT ( * ) FROM tab2 WHERE + col2 <> + + col1 * + - col2 + + 24
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT DISTINCT 96 * - - COUNT( * ) * + + ( - MIN( ALL - 75 ) ) * - MIN( DISTINCT + ( col1 ) ) + - ( + 66 ) + - 87 col0 FROM tab1
----
-108153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4832
SELECT DISTINCT 96 * - - COUNT ( * ) * + + ( - MIN ( ALL - 75 ) ) * - MIN ( DISTINCT + ( col1 ) ) + - ( + 66 ) + - 87 col0 FROM tab1
----
-108153

query II rowsort
SELECT 76 * + 12 AS col1, + col1 * + - col0 * + 62 FROM tab0
----
912
-113274
912
-6014
912
-75330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4834
SELECT ALL COUNT( * ) - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4834
SELECT ALL COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4835
SELECT ALL * FROM tab2 WHERE + CAST( NULL AS SIGNED ) * col1 / + col0 + - col0 + + + 16 * + col0 NOT BETWEEN NULL AND + col1
----

skipif mysql # not compatible
query III rowsort label-4835
SELECT ALL * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) * col1 / + col0 + - col0 + + + 16 * + col0 NOT BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT + + MIN( ALL + + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4836
SELECT + + MIN ( ALL + + col1 ) FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4837
SELECT ALL + ( + - ( + CAST( - col1 AS SIGNED ) ) ) * + col2 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL + ( + - ( + CAST ( - col1 AS INTEGER ) ) ) * + col2 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT + COUNT( - col0 ) * - 36 AS col2 FROM tab2 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-4838
SELECT + COUNT ( - col0 ) * - 36 AS col2 FROM tab2 AS cor0
----
-108

query I rowsort
SELECT ALL - 12 * 46 FROM tab2 AS cor0
----
-552
-552
-552

query II rowsort
SELECT + + col1 * col1, col2 FROM tab2 AS cor0
----
2601
23
4489
58
5929
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT COUNT( * ) * + 39 AS col2 FROM tab2 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-4841
SELECT COUNT ( * ) * + 39 AS col2 FROM tab2 AS cor0
----
117

query II rowsort
SELECT DISTINCT + + 54 * - - col2, col1 AS col2 FROM tab1 AS cor0
----
3186
5
3672
47
5184
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4843
SELECT ALL - col1 DIV - 92 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL - col1 / - 92 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 7 - + + col2 * - + ( + 45 ) + col0 + + col2 BETWEEN + 6 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4845
SELECT CAST( NULL AS SIGNED ) * - - 40 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4845
SELECT CAST ( NULL AS INTEGER ) * - - 40 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT - ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4846
SELECT - ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT 49 * - 96 * col0 FROM tab1 AS cor0
----
-239904
-399840
-428064

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT ALL + COUNT( * ) * 81 AS col2 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL + COUNT ( * ) * 81 AS col2 FROM tab0 AS cor0
----
243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4849
SELECT - 72 FROM tab0 AS cor0 WHERE NOT + col2 * + + CAST( NULL AS SIGNED ) + + col0 + + 72 <= NULL
----

skipif mysql # not compatible
query I rowsort label-4849
SELECT - 72 FROM tab0 AS cor0 WHERE NOT + col2 * + + CAST ( NULL AS INTEGER ) + + col0 + + 72 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4850
SELECT - col2 * - - 41 + + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4850
SELECT - col2 * - - 41 + + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4851
SELECT ALL + - COUNT( * ) DIV + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL + - COUNT ( * ) / + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4852
SELECT + COUNT( * ) DIV - 36 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4852
SELECT + COUNT ( * ) / - 36 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----
0

query II rowsort
SELECT ALL - col2, + col0 FROM tab0
----
-10
87
-47
15
-99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT + COUNT( DISTINCT + - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4854
SELECT + COUNT ( DISTINCT + - col1 ) FROM tab1
----
3

query II rowsort
SELECT ALL + 72 AS col0, - col2 - - col1 AS col2 FROM tab1
----
72
-21
72
-54
72
-82

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 97 + - col1 = NULL
----

query I rowsort
SELECT DISTINCT + col0 * 35 + + 50 FROM tab1 AS cor0
----
1835
3025
3235

query I rowsort
SELECT DISTINCT + + 19 + - col0 + - + col2 FROM tab2 AS cor0
----
-114
-50
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE + col0 NOT IN ( + 40 )
----
3

skipif mysql # not compatible
query I rowsort label-4859
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE + col0 NOT IN ( + 40 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT - 46 * + - COUNT( * ) AS col0 FROM tab2 WHERE - 23 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4860
SELECT - 46 * + - COUNT ( * ) AS col0 FROM tab2 WHERE - 23 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( + + 25 ) IS NOT NULL
----

query I rowsort
SELECT + ( - col2 ) - - col1 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT 94 - + + col1 AS col0 FROM tab1 AS cor0
----
47
80
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT - MAX( + 17 ) + - 22 FROM tab2 AS cor0 WHERE col1 * + col1 + - + col0 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4864
SELECT - MAX ( + 17 ) + - 22 FROM tab2 AS cor0 WHERE col1 * + col1 + - + col0 > NULL
----
NULL

query I rowsort
SELECT - 4 * - - col2 - + col0 AS col2 FROM tab2 AS cor0 WHERE ( col1 ) * - col1 * + col1 < + - col2
----
-138
-224
-307

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT ALL 70 * 50 + + + COUNT( * ) FROM tab1 AS cor0
----
3503

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL 70 * 50 + + + COUNT ( * ) FROM tab1 AS cor0
----
3503

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( + col2 ) - - col1 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4868
SELECT col1 + - + col0 DIV + col1 - - col1 * - col2 col2 FROM tab0
----
-193
-195
-3726

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4868
SELECT col1 + - + col0 / + col1 - - col1 * - col2 col2 FROM tab0
----
-193
-195
-3726

query I rowsort
SELECT ALL ( + 41 ) AS col1 FROM tab1
----
41
41
41

query I rowsort
SELECT ( col1 ) * 69 AS col2 FROM tab2 WHERE NOT + - col2 * + col2 NOT IN ( - + ( - + 25 ) * + col2, - col0, - col2 + 4 * - - col0 + - - 6 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT MAX( + + col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4871
SELECT MAX ( + + col2 ) FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT - COUNT( DISTINCT col1 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4872
SELECT - COUNT ( DISTINCT col1 ) AS col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT + MAX( - col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4873
SELECT + MAX ( - col1 ) AS col1 FROM tab1
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4874
SELECT DISTINCT - SUM( + + 94 ) DIV + 25 AS col2, + 67 * + + 16 AS col1 FROM tab1
----
-11
1072

skipif mysql # not compatible
query II rowsort label-4874
SELECT DISTINCT - SUM ( + + 94 ) / + 25 AS col2, + 67 * + + 16 AS col1 FROM tab1
----
-11
1072

query II rowsort
SELECT + 60 AS col2, col2 FROM tab0
----
60
10
60
47
60
99

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT + MIN( DISTINCT - 27 ) AS col1 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-4877
SELECT + MIN ( DISTINCT - 27 ) AS col1 FROM tab0
----
-27

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT DISTINCT + COUNT( * ) * - ( 4 ) FROM tab0 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-4879
SELECT DISTINCT + COUNT ( * ) * - ( 4 ) FROM tab0 cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT + ( - - COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-4880
SELECT + ( - - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT 69 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4882
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col1 = NULL
----
0

query II rowsort
SELECT + col1 + + col2 AS col0, col0 AS col0 FROM tab0 cor0
----
100
97
128
15
31
87

query I rowsort
SELECT DISTINCT - - 19 FROM tab1 AS cor0 WHERE 11 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT DISTINCT 62 * + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 + col0 * + - col2 + - 71 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT 62 * + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 + col0 * + - col2 + - 71 <> NULL
----
0

query I rowsort
SELECT DISTINCT - 62 + - + 92 FROM tab0 cor0
----
-154

query I rowsort
SELECT col2 + + 22 AS col2 FROM tab0 AS cor0
----
121
32
69

query I rowsort
SELECT 11 + + col0 * ( ( + 53 ) ) + + + ( - - col0 ) FROM tab0
----
4709
5249
821

query I rowsort
SELECT col2 * - - col2 * col2 + col1 FROM tab0
----
1021
103904
970300

query I rowsort
SELECT - ( + - col2 ) AS col2 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT COUNT( * ) * + - COUNT( * ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4891
SELECT COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4892
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT 32 BETWEEN NULL AND - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4892
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT 32 BETWEEN NULL AND - col0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 60 + + - col1 + + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT - ( COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4894
SELECT - ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL 80 - + 67 * - col1 FROM tab0 AS cor0
----
147
1487
5507

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4896
SELECT - CAST( NULL AS SIGNED ) / - 98 * - 67 FROM tab2 AS cor0 WHERE ( NOT ( NULL IS NOT NULL ) )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4896
SELECT - CAST ( NULL AS INTEGER ) / - 98 * - 67 FROM tab2 AS cor0 WHERE ( NOT ( NULL IS NOT NULL ) )
----
NULL
NULL
NULL

query I rowsort
SELECT 97 - + col2 * + - 12 AS col1 FROM tab0 AS cor0
----
1285
217
661

query I rowsort
SELECT ALL - - 91 AS col0 FROM tab2 WHERE NULL IS NULL
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4899
SELECT - ( col0 ) / col0 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4899
SELECT - ( col0 ) / col0 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 21 AS col2, 82 FROM tab0 cor0
----
21
82
21
82
21
82

onlyif mysql # aggregate syntax: 
query II rowsort label-4901
SELECT - - 3 * - 74 AS col2, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-222
-3

skipif mysql # not compatible
query II rowsort label-4901
SELECT - - 3 * - 74 AS col2, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-222
-3

query II rowsort
SELECT col0 AS col2, col1 AS col0 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4903
SELECT + col0 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4903
SELECT + col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT + + COUNT( * ) * 58 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-4904
SELECT + + COUNT ( * ) * 58 FROM tab2 AS cor0
----
174

query II rowsort
SELECT - - 53, col2 AS col0 FROM tab0 AS cor0
----
53
10
53
47
53
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 44 > - 75
----

query II rowsort
SELECT + - 54, col1 AS col2 FROM tab2 AS cor0
----
-54
51
-54
67
-54
77

query I rowsort
SELECT 0 * + col2 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT MAX( ALL - + col2 ) AS col2 FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4909
SELECT MAX ( ALL - + col2 ) AS col2 FROM tab1 cor0
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4910
SELECT - 77 DIV + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-8

skipif mysql # not compatible
query I rowsort label-4910
SELECT - 77 / + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT ALL + SUM( + 48 ) * - 34 AS col0 FROM tab2
----
-4896

skipif mysql # not compatible
query I rowsort label-4911
SELECT ALL + SUM ( + 48 ) * - 34 AS col0 FROM tab2
----
-4896

query II rowsort
SELECT DISTINCT col2 * - col1 * ( + 43 ) AS col2, 61 + + col1 - - col2 * + 95 AS col0 FROM tab2
----
-132440
3938
-167098
5638
-50439
2297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, 47 FROM tab2
----
46
47
64
47
75
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT MAX( - col1 ) col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4914
SELECT MAX ( - col1 ) col2 FROM tab0 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT DISTINCT 7 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4915
SELECT DISTINCT 7 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL + col1 + - 5 * col2 FROM tab2 AS cor0
----
-123
-223
-64

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( + col0 ) * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2, - 39 col2 FROM tab0 AS cor0
----
-10
-39
-47
-39
-99
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4919
SELECT ALL - CAST( AVG ( ALL + ( - - 36 ) ) AS SIGNED ) AS col2 FROM tab0 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL - CAST ( AVG ( ALL + ( - - 36 ) ) AS INTEGER ) AS col2 FROM tab0 cor0
----
-36

query I rowsort
SELECT DISTINCT - - col1 + - 82 AS col0 FROM tab1 AS cor0
----
-35
-68
-77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT 94 + + - col1 * + col2 FROM tab2
----
-1079
-2986
-3792

query I rowsort
SELECT DISTINCT - 70 * - col2 FROM tab1
----
4130
4760
6720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4924
SELECT MAX( DISTINCT - + 12 ) * - 13 FROM tab2 WHERE + col1 = CAST( + col0 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4924
SELECT MAX ( DISTINCT - + 12 ) * - 13 FROM tab2 WHERE + col1 = CAST ( + col0 AS INTEGER )
----
NULL

query I rowsort
SELECT + col1 + - col1 + + 42 * - col0 FROM tab0
----
-3654
-4074
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT ALL - MAX( - ( + 76 ) ) * + MIN( - col2 ) FROM tab0
----
-7524

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL - MAX ( - ( + 76 ) ) * + MIN ( - col2 ) FROM tab0
----
-7524

query I rowsort
SELECT 46 + - col2 FROM tab0
----
-1
-53
36

query I rowsort
SELECT 36 + - - col2 FROM tab0
----
135
46
83

query I rowsort
SELECT ALL 15 * 5 AS col1 FROM tab2
----
75
75
75

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col2 * + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * - col1 + - col0 AS col2 FROM tab0 cor0
----
-1230
-1914
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT SUM( - - 22 ) AS col1 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-4932
SELECT SUM ( - - 22 ) AS col1 FROM tab1 cor0
----
66

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4934
SELECT 33 DIV 5 - + COUNT( ALL - + col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4934
SELECT 33 / 5 - + COUNT ( ALL - + col2 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT - 82 + - 94 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT DISTINCT - - SUM( + col0 ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-4936
SELECT DISTINCT - - SUM ( + col0 ) FROM tab1 cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT DISTINCT SUM( + ( - col1 ) ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-4937
SELECT DISTINCT SUM ( + ( - col1 ) ) AS col1 FROM tab2
----
-195

query II rowsort
SELECT 26 AS col0, col2 AS col0 FROM tab0
----
26
10
26
47
26
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT ALL + MAX( DISTINCT - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL + MAX ( DISTINCT - col0 ) FROM tab2
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 78 col1, col1 AS col0 FROM tab1
----
-78
14
-78
47
-78
5

query II rowsort
SELECT col2 AS col0, col0 * col1 FROM tab0
----
10
1827
47
1215
99
97

query II rowsort
SELECT DISTINCT - + col1 AS col2, col1 * + col0 FROM tab0 AS cor0
----
-1
97
-21
1827
-81
1215

query I rowsort
SELECT ALL - - 47 FROM tab1 cor0
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4944
SELECT DISTINCT + CAST( - 94 AS SIGNED ) FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT + CAST ( - 94 AS INTEGER ) FROM tab0 AS cor0
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-4945
SELECT + 86 DIV - 65 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4945
SELECT + 86 / - 65 AS col0 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT ALL SUM( DISTINCT - - col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL SUM ( DISTINCT - - col1 ) FROM tab2
----
195

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 92 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - 66 + + + col0 FROM tab1 AS cor0
----
-15
19
25

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT ALL - col1 + - + 94 + - - col1 FROM tab0 AS cor0
----
-94
-94
-94

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 AS cor0 WHERE col1 + + + col2 + + + col2 + - - 30 + - - 94 + - col0 NOT BETWEEN + col0 AND NULL
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4952
SELECT - CAST( col1 AS SIGNED ) + col0 AS col2 FROM tab1 AS cor0
----
37
44
80

skipif mysql # not compatible
query I rowsort label-4952
SELECT - CAST ( col1 AS INTEGER ) + col0 AS col2 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT - 66 + - ( - 13 ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-4953
SELECT - 66 + - ( - 13 ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-105

query I rowsort
SELECT DISTINCT 69 + + 75 AS col0 FROM tab2 AS cor0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT ( MAX( ALL + col0 ) ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-4955
SELECT ( MAX ( ALL + col0 ) ) FROM tab2 cor0
----
75

query I rowsort
SELECT DISTINCT 19 * + ( - col2 ) AS col0 FROM tab0
----
-1881
-190
-893

query I rowsort
SELECT DISTINCT + 36 * - col0 * + col1 + + + col1 AS col2 FROM tab1
----
-15295
-153925
-25690

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( NULL ) IS NULL )
----

query I rowsort
SELECT col0 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
51
85
91

query II rowsort
SELECT ALL + col2 AS col0, + 95 FROM tab2 AS cor0
----
23
95
40
95
58
95

onlyif mysql # DIV for integer division: 
query II rowsort label-4961
SELECT ALL col1 AS col0, - col2 DIV - + 48 FROM tab1 AS cor0
----
14
2
47
1
5
1

skipif mysql # not compatible
query II rowsort label-4961
SELECT ALL col1 AS col0, - col2 / - + 48 FROM tab1 AS cor0
----
14
2
47
1
5
1

query I rowsort
SELECT + col1 - - col2 + + + col1 * - - col1 FROM tab2 AS cor0
----
2675
4614
6046

query I rowsort
SELECT ALL col1 + + - 93 AS col0 FROM tab0 AS cor0
----
-12
-72
-92

query I rowsort
SELECT + col0 * - ( 7 ) AS col1 FROM tab1
----
-357
-595
-637

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT ( + COUNT( * ) ) * MAX( 29 ) AS col2 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-4965
SELECT ( + COUNT ( * ) ) * MAX ( 29 ) AS col2 FROM tab2
----
87

query I rowsort
SELECT ( + 34 ) * col1 FROM tab0
----
2754
34
714

query I rowsort
SELECT 51 + ( + col2 ) FROM tab1
----
110
119
147

query I rowsort
SELECT col0 FROM tab0 WHERE 0 IN ( - ( col1 ) + 38 * - ( - col2 + col0 * + 87 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4969
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND ( CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4969
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND ( CAST ( + col2 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4970
SELECT col1 AS col0 FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND - CAST( NULL AS SIGNED ) + col2 / - col2
----

skipif mysql # not compatible
query I rowsort label-4970
SELECT col1 AS col0 FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND - CAST ( NULL AS INTEGER ) + col2 / - col2
----

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 ) + col2 = ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 NOT BETWEEN - ( + col1 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 IN ( 90 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col1 + 18 * col1 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 * col0 - + 20 AS col2 FROM tab1
----
2581
7205
8261

query I rowsort
SELECT ALL 99 + col1 FROM tab1
----
104
113
146

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT ALL SUM( 47 ) FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL SUM ( 47 ) FROM tab0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT DISTINCT COUNT( col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4980
SELECT DISTINCT COUNT ( col1 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT SUM( ALL + col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-4981
SELECT SUM ( ALL + col0 ) AS col1 FROM tab0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 col2 FROM tab2
----
3
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 * 29 + - 4 col2 FROM tab2
----
2084
2084
2084

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 + col1 / - 45 < ( + 17 / col0 + - 36 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NULL = - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4986
SELECT 49 FROM tab1 WHERE NOT ( + col1 ) < ( CAST( - col0 AS DECIMAL ) + col1 * + col2 )
----

skipif mysql # not compatible
query I rowsort label-4986
SELECT 49 FROM tab1 WHERE NOT ( + col1 ) < ( CAST ( - col0 AS REAL ) + col1 * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4987
SELECT DISTINCT CAST( 42 AS SIGNED ) FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-4987
SELECT DISTINCT CAST ( 42 AS INTEGER ) FROM tab0
----
42

query III rowsort
SELECT * FROM tab1 WHERE col0 * 55 <> col1 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col2 + col2 ) > NULL
----

query I rowsort
SELECT - col1 + col0 * - 44 FROM tab0 AS cor0
----
-3849
-4269
-741

query I rowsort
SELECT DISTINCT + 86 FROM tab1 AS cor0 CROSS JOIN tab1
----
86

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 IN ( - 90 / 62 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * 8 FROM tab2
----
184
320
464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4994
SELECT + ( + 55 ) DIV COUNT( * ) FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4994
SELECT + ( + 55 ) / COUNT ( * ) FROM tab2 AS cor0
----
18

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT - col2 - 0 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT + ( - col1 ) * - col2 AS col0 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 AS cor0 WHERE NULL = col0 + - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4999
SELECT ALL + 39 + + 96 DIV - COUNT( * ) FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-4999
SELECT ALL + 39 + + 96 / - COUNT ( * ) FROM tab1 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT - - ( COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5000
SELECT - - ( COUNT ( * ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT 31 + + 51 * - COUNT( * ) AS col2 FROM tab1 cor0 WHERE ( - 93 ) <= col1
----
-122

skipif mysql # not compatible
query I rowsort label-5001
SELECT 31 + + 51 * - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE ( - 93 ) <= col1
----
-122

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 ) NOT BETWEEN 28 AND ( + col1 )
----
87
21
10
97
1
99

query I rowsort
SELECT ALL - - col1 * col2 + ( 1 ) FROM tab0 cor0
----
100
211
3808

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 86 NOT BETWEEN + col1 - + col0 AND 65
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-2162
-4160
-5700

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE col2 = 2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5007
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN + CAST( - 87 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-5007
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN + CAST ( - 87 AS INTEGER ) AND NULL
----

query I rowsort
SELECT ALL 46 FROM tab1 WHERE NOT col1 + - col2 * 48 IS NOT NULL
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE NULL BETWEEN col2 AND col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 35 * - 5 NOT BETWEEN 1 * + col2 - 99 / + col2 AND NULL
----

query I rowsort
SELECT ALL - ( - + col1 ) * + 97 - 46 AS col2 FROM tab1
----
1312
439
4513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab2 WHERE ( col0 * + col2 ) IN ( - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 15 ) NOT IN ( - 21 ) OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 + - + col1 AS col0 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT 87 * col0 + - col2 * + col0 AS col1 FROM tab0
----
-1164
600
6699

onlyif mysql # DIV for integer division: 
query I rowsort label-5016
SELECT + 94 DIV col0 + col0 AS col1 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-5016
SELECT + 94 / col0 + col0 AS col1 FROM tab1 AS cor0
----
52
86
92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 / 8 ) >= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT DISTINCT - COUNT( + 47 ) * - 79 + 48 FROM tab1 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-5018
SELECT DISTINCT - COUNT ( + 47 ) * - 79 + 48 FROM tab1 AS cor0
----
285

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE ( col1 ) BETWEEN ( col0 ) * + col0 + + 56 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5020
SELECT ALL 74 + - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL 74 + - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT DISTINCT + COUNT( * ) + - MIN( - col2 ) AS col2 FROM tab1 cor0
----
99

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT + COUNT ( * ) + - MIN ( - col2 ) AS col2 FROM tab1 cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5022
SELECT ALL - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) / + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5022
SELECT ALL - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) / + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * - - col0 AS col1 FROM tab1 AS cor0
----
425
4277
714

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 36 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1, + col2 AS col0 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query II rowsort label-5027
SELECT + COUNT( * ), - 40 + COUNT( * ) + ( COUNT( * ) ) AS col2 FROM tab1
----
3
-34

skipif mysql # not compatible
query II rowsort label-5027
SELECT + COUNT ( * ), - 40 + COUNT ( * ) + ( COUNT ( * ) ) AS col2 FROM tab1
----
3
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT + + COUNT( + 8 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5028
SELECT + + COUNT ( + 8 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT - - 56 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT - - ( - + col1 ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT ALL + MIN( - col0 ) AS col0 FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL + MIN ( - col0 ) AS col0 FROM tab1 cor0
----
-91

query I rowsort
SELECT 0 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT - COUNT( * ) * COUNT( * ) - - SUM( + 10 ) * - 87 FROM tab1 AS cor0 WHERE NOT + col2 / + 69 IN ( - col1 )
----
-2619

skipif mysql # not compatible
query I rowsort label-5035
SELECT - COUNT ( * ) * COUNT ( * ) - - SUM ( + 10 ) * - 87 FROM tab1 AS cor0 WHERE NOT + col2 / + 69 IN ( - col1 )
----
-2619

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5036
SELECT ALL - COUNT( + - col1 ) DIV 52 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5036
SELECT ALL - COUNT ( + - col1 ) / 52 AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT ( + + COUNT( * ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5037
SELECT ( + + COUNT ( * ) ) FROM tab2
----
3

query I rowsort
SELECT col1 * + 60 AS col1 FROM tab2
----
3060
4020
4620

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE NOT ( col2 ) IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5041
SELECT + CAST( + + ( col0 ) AS SIGNED ) AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5041
SELECT + CAST ( + + ( col0 ) AS INTEGER ) AS col1 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL 17 AS col1 FROM tab0 WHERE NOT 35 * - col1 >= col0
----
17
17
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5043
SELECT ALL - col0 AS col0 FROM tab2 WHERE NULL NOT BETWEEN + - col1 AND ( - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5043
SELECT ALL - col0 AS col0 FROM tab2 WHERE NULL NOT BETWEEN + - col1 AND ( - + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + ( ( 31 ) ) FROM tab0
----
31
31
31

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 53 + - - col2 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT - MIN( + + ( col1 ) ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-5046
SELECT - MIN ( + + ( col1 ) ) FROM tab2
----
-51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5048
SELECT * FROM tab1 AS cor0 WHERE ( NOT - 16 * - ( + ( col1 ) / - CAST( NULL AS SIGNED ) ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5048
SELECT * FROM tab1 AS cor0 WHERE ( NOT - 16 * - ( + ( col1 ) / - CAST ( NULL AS INTEGER ) ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT DISTINCT + - COUNT( * ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5049
SELECT DISTINCT + - COUNT ( * ) FROM tab1 cor0
----
-3

query I rowsort
SELECT - 36 + - 46 AS col0 FROM tab1 AS cor0
----
-82
-82
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5051
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( CAST( ( 37 ) AS SIGNED ) * col2 ) NOT BETWEEN NULL AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-5051
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( CAST ( ( 37 ) AS INTEGER ) * col2 ) NOT BETWEEN NULL AND + col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5052
SELECT * FROM tab1 AS cor0 WHERE + col2 <> + CAST( col1 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5052
SELECT * FROM tab1 AS cor0 WHERE + col2 <> + CAST ( col1 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 col2 FROM tab2 AS cor0
----
45
45
45

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) = - 68 * 23 / + col0 * col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5055
SELECT ALL col1 + 75 DIV + col1 AS col2, + 87 AS col2 FROM tab2 AS cor0
----
52
87
68
87
77
87

skipif mysql # not compatible
query II rowsort label-5055
SELECT ALL col1 + 75 / + col1 AS col2, + 87 AS col2 FROM tab2 AS cor0
----
52
87
68
87
77
87

query I rowsort
SELECT DISTINCT + col0 - + - col1 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # DIV for integer division: 
query I rowsort label-5057
SELECT - 34 DIV + 61 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5057
SELECT - 34 / + 61 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 60 * + col2 * + ( col1 ) FROM tab2 AS cor0
----
184800
233160
70380

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * - 8 / - col1 IS NULL
----

query I rowsort
SELECT ALL 98 - + + ( + 59 ) FROM tab0
----
39
39
39

query I rowsort
SELECT + ( - + col2 ) FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-5062
SELECT ALL 61 AS col0, COUNT( * ) FROM tab1
----
61
3

skipif mysql # not compatible
query II rowsort label-5062
SELECT ALL 61 AS col0, COUNT ( * ) FROM tab1
----
61
3

query I rowsort
SELECT ALL - col1 - - + 3 AS col2 FROM tab1
----
-11
-2
-44

query I rowsort
SELECT DISTINCT - 66 + - 49 AS col2 FROM tab0, tab0 AS cor0
----
-115

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 AND - col2
----

query I rowsort
SELECT + - col1 * - - 15 AS col2 FROM tab1 cor0
----
-210
-705
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT DISTINCT + MAX( col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5067
SELECT DISTINCT + MAX ( col2 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT DISTINCT col1 * + + col2 AS col2 FROM tab2 AS cor0
----
1173
3080
3886

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col0 )
----

query I rowsort
SELECT + col1 * - 9 AS col2 FROM tab2
----
-459
-603
-693

query I rowsort
SELECT DISTINCT - ( - ( + 77 ) ) FROM tab1
----
77

query I rowsort
SELECT ALL + - 72 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT ALL MAX( DISTINCT - + ( ( - - ( 77 ) ) ) ) col1 FROM tab2
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5073
SELECT ALL MAX ( DISTINCT - + ( ( - - ( 77 ) ) ) ) col1 FROM tab2
----
-77

query I rowsort
SELECT DISTINCT 94 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN + + col0 AND NULL
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5076
SELECT - + CAST( - + 46 AS SIGNED ) FROM tab0 AS cor0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-5076
SELECT - + CAST ( - + 46 AS INTEGER ) FROM tab0 AS cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT + COUNT( * ) * ( - + COUNT( * ) ) - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5077
SELECT + COUNT ( * ) * ( - + COUNT ( * ) ) - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT DISTINCT - - 83 + - col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT ALL + COUNT( * ) * + SUM( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
-555

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL + COUNT ( * ) * + SUM ( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
-555

query I rowsort
SELECT DISTINCT + + 35 * - col2 AS col1 FROM tab1 AS cor0
----
-2065
-2380
-3360

query I rowsort
SELECT + - col0 * - 63 FROM tab1 AS cor0
----
3213
5355
5733

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab2 WHERE NOT NULL >= ( NULL ) OR NOT + + col1 <> + - 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT DISTINCT - MAX( ALL + - col0 ) col0 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5083
SELECT DISTINCT - MAX ( ALL + - col0 ) col0 FROM tab2
----
46

query I rowsort
SELECT - 16 * + - 4 FROM tab2
----
64
64
64

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - + col1 ) = col1 * - col0 - 62
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - 22 AS col0, + ( - col1 ) FROM tab0
----
-22
-1
-22
-21
-22
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT - SUM( ALL + - col1 ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-5087
SELECT - SUM ( ALL + - col1 ) AS col1 FROM tab0
----
103

query II rowsort
SELECT ALL + col1 AS col1, col1 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5089
SELECT + CAST( - - col0 AS SIGNED ) AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5089
SELECT + CAST ( - - col0 AS INTEGER ) AS col2 FROM tab0
----
15
87
97

query III rowsort
SELECT * FROM tab0 WHERE 51 BETWEEN 73 * + col1 + + 61 * + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT - COUNT( * ) + + - COUNT( * ) + - SUM( col0 ) * + COUNT( * ) AS col0 FROM tab1 cor0
----
-687

skipif mysql # not compatible
query I rowsort label-5091
SELECT - COUNT ( * ) + + - COUNT ( * ) + - SUM ( col0 ) * + COUNT ( * ) AS col0 FROM tab1 cor0
----
-687

query I rowsort
SELECT DISTINCT + col1 + + + col1 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT ALL col1 + - + col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5094
SELECT DISTINCT 54 FROM tab0 WHERE - 82 >= ( + - 78 + - CAST( + 45 AS DECIMAL ) )
----
54

skipif mysql # not compatible
query I rowsort label-5094
SELECT DISTINCT 54 FROM tab0 WHERE - 82 >= ( + - 78 + - CAST ( + 45 AS REAL ) )
----
54

query I rowsort
SELECT DISTINCT + - 3 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-3

query II rowsort
SELECT ALL + ( - col2 ), col1 AS col1 FROM tab1
----
-59
5
-68
47
-96
14

query I rowsort
SELECT 2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT ALL + 0 + COUNT( - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5098
SELECT ALL + 0 + COUNT ( - col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT + + col1 * - - 20 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1620
20
420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5100
SELECT ALL + col2 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - + col2 AND - ( ( - 64 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL + col2 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN - + col2 AND - ( ( - 64 ) )
----
NULL

query I rowsort
SELECT + - 31 - + col2 AS col1 FROM tab2 cor0
----
-54
-71
-89

query I rowsort
SELECT DISTINCT col1 * - + 15 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT ALL + COUNT( * ) + + COUNT( * ) + - + COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL + COUNT ( * ) + + COUNT ( * ) + - + COUNT ( * ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + col0 NOT IN ( + col1 + + col2, - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 + 14 FROM tab1 AS cor0
----
-37
-71
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5106
SELECT ALL + SUM( DISTINCT + - 21 ) * - CAST( NULL AS SIGNED ) - - - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL + SUM ( DISTINCT + - 21 ) * - CAST ( NULL AS INTEGER ) - - - COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col0 + - 21 AS col1 FROM tab1
----
30
64
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT 72 + + - COUNT( - 36 ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-5108
SELECT 72 + + - COUNT ( - 36 ) FROM tab1
----
69

query I rowsort
SELECT DISTINCT 47 * + 22 * - col1 - - 28 * 80 FROM tab2
----
-50494
-67038
-77378

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 16 col0 FROM tab1
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT MAX( + - 91 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-5111
SELECT MAX ( + - 91 ) FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT - + 14 + + + col2 - 23 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5112
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT - + 14 + + + col2 - 23 IS NOT NULL
----
0

query I rowsort
SELECT ( - + 12 ) AS col2 FROM tab0
----
-12
-12
-12

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT col1 < - 71 )
----

query I rowsort
SELECT ALL 97 * - col2 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
-5723
-6596
-9312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5116
SELECT DISTINCT - CAST( - 13 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-5116
SELECT DISTINCT - CAST ( - 13 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, ( col2 ) col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT DISTINCT + COUNT( + + 0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5118
SELECT DISTINCT + COUNT ( + + 0 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5119
SELECT CAST( NULL AS SIGNED ) * - 2 * - 42 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5119
SELECT CAST ( NULL AS INTEGER ) * - 2 * - 42 col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT col1, + col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT DISTINCT + MIN( + + ( 42 ) ) * + COUNT( * ) FROM tab1 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-5121
SELECT DISTINCT + MIN ( + + ( 42 ) ) * + COUNT ( * ) FROM tab1 AS cor0
----
126

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 AS col1, col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT 64 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5125
SELECT + 70 / + col1 + - ( - + CAST( NULL AS SIGNED ) ) * col1 col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5125
SELECT + 70 / + col1 + - ( - + CAST ( NULL AS INTEGER ) ) * col1 col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT ALL MAX( + + 69 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL MAX ( + + 69 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5127
SELECT ALL CAST( SUM( ALL - ( - col2 ) ) AS SIGNED ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL CAST ( SUM ( ALL - ( - col2 ) ) AS INTEGER ) AS col2 FROM tab0
----
156

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 44 IN ( + col0 * - + 38, + 70, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * 34 * col1 + - + col2 FROM tab2
----
167512
170792
79741

query I rowsort
SELECT + 48 * - 54 * - - 19 AS col0 FROM tab0
----
-49248
-49248
-49248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - 33 col2 FROM tab2
----
1683
2211
2541

onlyif mysql # DIV for integer division: 
query II rowsort label-5132
SELECT DISTINCT 47 DIV - + col2 AS col0, + col2 FROM tab2
----
-1
40
-2
23
0
58

skipif mysql # not compatible
query II rowsort label-5132
SELECT DISTINCT 47 / - + col2 AS col0, + col2 FROM tab2
----
-1
40
-2
23
0
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab1 cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT - + col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5136
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT - COUNT( DISTINCT - - ( - 98 ) ) FROM tab0 WHERE + - col2 >= - + col0
----
-1

skipif mysql # not compatible
query I rowsort label-5137
SELECT - COUNT ( DISTINCT - - ( - 98 ) ) FROM tab0 WHERE + - col2 >= - + col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5138
SELECT * FROM tab0 AS cor0 WHERE ( - CAST( + + col0 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5138
SELECT * FROM tab0 AS cor0 WHERE ( - CAST ( + + col0 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col2 * + - 87 FROM tab1 AS cor0
----
5133
5916
8352

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT - COUNT( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5140
SELECT - COUNT ( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( - col2 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT - + MAX( ALL + - 38 ) AS col2 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-5143
SELECT - + MAX ( ALL + - 38 ) AS col2 FROM tab2 AS cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT + - MAX( col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5144
SELECT + - MAX ( col2 ) FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5145
SELECT + CAST( + COUNT( - col1 ) AS SIGNED ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5145
SELECT + CAST ( + COUNT ( - col1 ) AS INTEGER ) AS col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col0 + + col1 + + col0 + 34 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT DISTINCT ( - COUNT( * ) ) * + 77 AS col0 FROM tab1
----
-231

skipif mysql # not compatible
query I rowsort label-5147
SELECT DISTINCT ( - COUNT ( * ) ) * + 77 AS col0 FROM tab1
----
-231

onlyif mysql # DIV for integer division: 
query I rowsort label-5148
SELECT ALL col0 DIV + - col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL col0 / + - col2 FROM tab1
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5149
SELECT - CAST( - col0 AS SIGNED ) AS col2 FROM tab0 WHERE NOT col1 - + - 36 - + + col1 = + - col1
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5149
SELECT - CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 WHERE NOT col1 - + - 36 - + + col1 = + - col1
----
15
87
97

query I rowsort
SELECT - + col0 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5151
SELECT ALL - 59 AS col2 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * + col0 < NULL
----

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL - 59 AS col2 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT ALL COUNT( ALL + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL COUNT ( ALL + col0 ) FROM tab2
----
3

query II rowsort
SELECT - col1 AS col0, 33 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
33
-47
33
-5
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5154
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 81 AS col2 FROM tab0 AS cor0
----
-81
-81
-81

query II rowsort
SELECT ALL - col1, col1 AS col2 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5158
SELECT CAST( col1 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT 75 IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5158
SELECT CAST ( col1 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT 75 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5159
SELECT + + COUNT( * ) DIV 24 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5159
SELECT + + COUNT ( * ) / 24 AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IS NULL OR NULL NOT BETWEEN col1 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT + + COUNT( * ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5161
SELECT + + COUNT ( * ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT DISTINCT ( + + COUNT( * ) ) + - 53 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT ( + + COUNT ( * ) ) + - 53 FROM tab1 AS cor0
----
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5164
SELECT ALL - col0 + + + CAST( NULL AS DECIMAL ) / - - 86 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL - col0 + + + CAST ( NULL AS REAL ) / - - 86 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 >= NULL
----

query I rowsort
SELECT ALL + 77 + - 77 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 91 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > col2 + - col2 AND ( + col1 / - + ( 36 ) + - - col1 > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT - SUM( - 85 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5169
SELECT - SUM ( - 85 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5170
SELECT ALL - CAST( NULL AS SIGNED ) + - 7 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL - CAST ( NULL AS INTEGER ) + - 7 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 97 + + col2 FROM tab0 cor0
----
107
144
196

onlyif mysql # DIV for integer division: 
query I rowsort label-5172
SELECT ALL col2 DIV - + col0 + - col2 * - col2 FROM tab0
----
100
2206
9800

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL col2 / - + col0 + - col2 * - col2 FROM tab0
----
100
2206
9800

query I rowsort
SELECT - 82 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT + 19 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # DIV for integer division: 
query I rowsort label-5175
SELECT + - col0 DIV + 87 + + - col1 - - ( + 85 ) - col0 FROM tab0 AS cor0
----
-11
-14
-24

skipif mysql # not compatible
query I rowsort label-5175
SELECT + - col0 / + 87 + + - col1 - - ( + 85 ) - col0 FROM tab0 AS cor0
----
-11
-14
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-5176
SELECT + - col1 DIV + col1 + - + col0 AS col2 FROM tab0 AS cor0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-5176
SELECT + - col1 / + col1 + - + col0 AS col2 FROM tab0 AS cor0
----
-16
-88
-98

query I rowsort
SELECT ALL - 37 AS col0 FROM tab2 cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT DISTINCT + COUNT( * ) * + MIN( ALL + col2 ) FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-5178
SELECT DISTINCT + COUNT ( * ) * + MIN ( ALL + col2 ) FROM tab1 AS cor0
----
177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5179
SELECT DISTINCT CAST( NULL AS SIGNED ) * + ( col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5179
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( col2 ) FROM tab0
----
NULL

query II rowsort
SELECT + 75, col0 FROM tab0
----
75
15
75
87
75
97

query II rowsort
SELECT ALL col2 AS col1, + 53 FROM tab1
----
59
53
68
53
96
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 49 AS col1, + col2 + + - 42 col0 FROM tab0
----
49
-32
49
5
49
57

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( + col2 + ( - 58 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5184
SELECT ALL + ( - CAST( - col0 AS SIGNED ) ) FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL + ( - CAST ( - col0 AS INTEGER ) ) FROM tab0
----
15
87
97

query II rowsort
SELECT DISTINCT - 69 AS col2, + 7 FROM tab0
----
-69
7

onlyif mysql # DIV for integer division: 
query II rowsort label-5186
SELECT DISTINCT - 45 AS col1, + 79 DIV - col2 AS col2 FROM tab1 AS cor0
----
-45
-1
-45
0

skipif mysql # not compatible
query II rowsort label-5186
SELECT DISTINCT - 45 AS col1, + 79 / - col2 AS col2 FROM tab1 AS cor0
----
-45
-1
-45
0

query I rowsort
SELECT ALL + 80 FROM tab0 cor0
----
80
80
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5188
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= - col1 - - CAST( NULL AS SIGNED ) * col2 + - ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-5188
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= - col1 - - CAST ( NULL AS INTEGER ) * col2 + - ( + col1 )
----

query II rowsort
SELECT DISTINCT + 95 AS col1, - 65 AS col2 FROM tab0 AS cor0
----
95
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT - SUM( ALL + - 45 ) FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-5190
SELECT - SUM ( ALL + - 45 ) FROM tab2
----
135

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 = + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5192
SELECT ALL MIN( + 97 ) * + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL MIN ( + 97 ) * + + CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5193
SELECT DISTINCT MIN( + col2 ) AS col0, COUNT( * ) + + 72 col2 FROM tab2
----
23
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5193
SELECT DISTINCT MIN ( + col2 ) AS col0, COUNT ( * ) + + 72 col2 FROM tab2
----
23
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 32 ) / - 77 < + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT DISTINCT - MIN( DISTINCT + 29 ) + COUNT( * ) FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-5195
SELECT DISTINCT - MIN ( DISTINCT + 29 ) + COUNT ( * ) FROM tab2 AS cor0
----
-26

query I rowsort
SELECT 82 + + 39 AS col1 FROM tab1 AS cor0
----
121
121
121

onlyif mysql # aggregate syntax: 
query II rowsort label-5197
SELECT ALL SUM( ALL + 80 ), + 11 AS col0 FROM tab0 AS cor0
----
240
11

skipif mysql # not compatible
query II rowsort label-5197
SELECT ALL SUM ( ALL + 80 ), + 11 AS col0 FROM tab0 AS cor0
----
240
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5198
SELECT DISTINCT - - 70 + CAST( 45 AS SIGNED ) * + col1 + - + col2, col1 FROM tab1 cor0
----
2117
47
236
5
604
14

skipif mysql # not compatible
query II rowsort label-5198
SELECT DISTINCT - - 70 + CAST ( 45 AS INTEGER ) * + col1 + - + col2, col1 FROM tab1 cor0
----
2117
47
236
5
604
14

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 60 + ( + col0 ) + ( + 19 ) IS NULL
----

query I rowsort
SELECT 1 * 44 AS col0 FROM tab0
----
44
44
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5201
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5201
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col0 * - - col2 AS col0 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT COUNT( ALL + 92 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5203
SELECT COUNT ( ALL + 92 ) FROM tab2
----
3

query I rowsort
SELECT 50 * - 76 AS col0 FROM tab1
----
-3800
-3800
-3800

query I rowsort
SELECT - col1 FROM tab1 WHERE + 95 * + - 50 IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT DISTINCT COUNT( ALL col1 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5206
SELECT DISTINCT COUNT ( ALL col1 ) AS col0 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5207
SELECT + col1 - - + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-5207
SELECT + col1 - - + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT + + col1 + - ( col2 ) AS col1 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT - 90 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT DISTINCT + MIN( - 37 ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5210
SELECT DISTINCT + MIN ( - 37 ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5211
SELECT 18 * + + CAST( NULL AS SIGNED ) * - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5211
SELECT 18 * + + CAST ( NULL AS INTEGER ) * - col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 24 <= - + col0 * + - 79 - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5213
SELECT CAST( + 70 AS SIGNED ) FROM tab1 AS cor0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-5213
SELECT CAST ( + 70 AS INTEGER ) FROM tab1 AS cor0
----
70
70
70

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 * - 36 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT + COUNT( DISTINCT 0 ) col1 FROM tab2 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5215
SELECT + COUNT ( DISTINCT 0 ) col1 FROM tab2 cor0
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 40 <= NULL
----

query I rowsort
SELECT DISTINCT - + col1 * + col1 + - col1 AS col1 FROM tab2 AS cor0
----
-2652
-4556
-6006

query I rowsort
SELECT ALL col1 * - - 30 FROM tab2 AS cor0
----
1530
2010
2310

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 / + col2 + + col1 + + col0 >= + - col2
----

query I rowsort
SELECT DISTINCT - 34 * - - col2 AS col0 FROM tab2
----
-1360
-1972
-782

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 50 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5222
SELECT ALL - col0 DIV ( + 76 ) FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL - col0 / ( + 76 ) FROM tab1
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 66 col1 FROM tab0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + - col0 * 36 AS col2 FROM tab0 AS cor0
----
-3132
-3492
-540

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - 14 * + col2 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col0 + + col2 col0 FROM tab0 cor0
----
-178
-7559
-9310

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT DISTINCT + COUNT( 84 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5228
SELECT DISTINCT + COUNT ( 84 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5229
SELECT COUNT( * ) DIV + + COUNT( * ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5229
SELECT COUNT ( * ) / + + COUNT ( * ) AS col1 FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5230
SELECT col1 DIV + - col2 * - col0, col2 AS col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-5230
SELECT col1 / + - col2 * - col0, col2 AS col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT - ( + - COUNT( * ) ) FROM tab0 AS cor0 WHERE NULL <> - col0
----
0

skipif mysql # not compatible
query I rowsort label-5231
SELECT - ( + - COUNT ( * ) ) FROM tab0 AS cor0 WHERE NULL <> - col0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * + + col1 + col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5233
SELECT DISTINCT - 50 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5233
SELECT DISTINCT - 50 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + col1 * + 1 AS col1 FROM tab1 cor0
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5235
SELECT - COUNT( * ) AS col1, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-5235
SELECT - COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-3
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5236
SELECT ALL - COUNT( col1 ) + + CAST( NULL AS SIGNED ) AS col0, 99 FROM tab2 AS cor0
----
NULL
99

skipif mysql # not compatible
query II rowsort label-5236
SELECT ALL - COUNT ( col1 ) + + CAST ( NULL AS INTEGER ) AS col0, 99 FROM tab2 AS cor0
----
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT ALL 3 + - SUM( ALL - + col2 ) FROM tab2 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL 3 + - SUM ( ALL - + col2 ) FROM tab2 AS cor0
----
124

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col2, col0 AS col0 FROM tab0 cor0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5239
SELECT ALL CAST( NULL AS SIGNED ) * + ( col1 ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5239
SELECT ALL CAST ( NULL AS INTEGER ) * + ( col1 ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 32 + - col2 AS col0 FROM tab0
----
-15
-67
22

query III rowsort
SELECT * FROM tab2 WHERE ( NOT 35 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + ( - ( + - ( + col2 ) ) ) AS col0, - 84 FROM tab0
----
10
-84
47
-84
99
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5243
SELECT + + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5243
SELECT + + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT * FROM tab2 WHERE col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT ALL COUNT( * ) * 9 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL COUNT ( * ) * 9 FROM tab1
----
27

query II rowsort
SELECT ALL col1 * + + col0 AS col2, - col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT - - col2 + col1 IS NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 22 IS NOT NULL
----

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + - col1 * + + 89 FROM tab2 AS cor0
----
-4539
-5963
-6853

query II rowsort
SELECT ALL col1 * + col1 * - col1 AS col1, - col1 FROM tab1 AS cor0
----
-103823
-47
-125
-5
-2744
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5252
SELECT ALL - CAST( + - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL - CAST ( + - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5253
SELECT DISTINCT - MIN( - 52 ) + - MAX( 98 ) * MIN( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col1, COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 > NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5253
SELECT DISTINCT - MIN ( - 52 ) + - MAX ( 98 ) * MIN ( DISTINCT + CAST ( NULL AS REAL ) ) AS col1, COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 > NULL
----
NULL
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN - 79 AND NULL
----
51
14
96

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - ( + col1 ) NOT IN ( - + 65, + 66, + col2 - - col0, + col0 )
----

query II rowsort
SELECT + col2 AS col0, 41 AS col2 FROM tab1
----
59
41
68
41
96
41

onlyif mysql # DIV for integer division: 
query I rowsort label-5257
SELECT - col1 DIV + ( col2 ) FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5257
SELECT - col1 / + ( col2 ) FROM tab2
----
-1
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5258
SELECT + col1 DIV + - 81 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5258
SELECT + col1 / + - 81 col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5259
SELECT COUNT( * ) AS col1, + 44 * - - COUNT( - 63 ) AS col1 FROM tab0
----
3
132

skipif mysql # not compatible
query II rowsort label-5259
SELECT COUNT ( * ) AS col1, + 44 * - - COUNT ( - 63 ) AS col1 FROM tab0
----
3
132

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT DISTINCT - SUM( 34 ) AS col1 FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-5260
SELECT DISTINCT - SUM ( 34 ) AS col1 FROM tab0
----
-102

query I rowsort
SELECT - 56 * 4 AS col1 FROM tab1
----
-224
-224
-224

query I rowsort
SELECT DISTINCT 22 * - 71 AS col2 FROM tab2
----
-1562

query I rowsort
SELECT + col2 * + 85 AS col0 FROM tab0 AS cor0
----
3995
8415
850

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT DISTINCT + MAX( - - col1 ) * - - MAX( ALL + col0 ) AS col1 FROM tab2
----
5775

skipif mysql # not compatible
query I rowsort label-5264
SELECT DISTINCT + MAX ( - - col1 ) * - - MAX ( ALL + col0 ) AS col1 FROM tab2
----
5775

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND ( col0 * col1 + + 1 )
----

query I rowsort
SELECT DISTINCT + col0 * ( + - col2 ) FROM tab2 cor0
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5268
SELECT col2 FROM tab2 cor0 WHERE col0 * + CAST( + col0 AS SIGNED ) IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5268
SELECT col2 FROM tab2 cor0 WHERE col0 * + CAST ( + col0 AS INTEGER ) IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5269
SELECT DISTINCT - + 10 + - COUNT( * ) + - + COUNT( col0 ) DIV SUM( ALL 21 ) FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT - + 10 + - COUNT ( * ) + - + COUNT ( col0 ) / SUM ( ALL 21 ) FROM tab1 AS cor0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT + - ( - COUNT( ALL + ( - col2 ) ) ) + - + 93 AS col1 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-5270
SELECT + - ( - COUNT ( ALL + ( - col2 ) ) ) + - + 93 AS col1 FROM tab1 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT DISTINCT - ( + + 34 ) * - COUNT( * ) * - + SUM( DISTINCT col0 ) AS col2 FROM tab1
----
-23154

skipif mysql # not compatible
query I rowsort label-5271
SELECT DISTINCT - ( + + 34 ) * - COUNT ( * ) * - + SUM ( DISTINCT col0 ) AS col2 FROM tab1
----
-23154

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT - COUNT( * ) * MIN( - + 92 ) FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-5272
SELECT - COUNT ( * ) * MIN ( - + 92 ) FROM tab0
----
276

query I rowsort
SELECT + 62 * + - 11 FROM tab2
----
-682
-682
-682

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 80 * + ( - 36 ) col0, - col0 FROM tab2
----
-2880
-46
-2880
-64
-2880
-75

query II rowsort
SELECT - col0 * - 77 * - - col1, + col2 FROM tab0
----
140679
10
7469
99
93555
47

query II rowsort
SELECT ALL + 26 AS col0, - col1 * + 90 AS col0 FROM tab2
----
26
-4590
26
-6030
26
-6930

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT IN ( col2 ) AND + - col0 IS NOT NULL
----

query II rowsort
SELECT + ( col1 ) - + col2, col0 AS col0 FROM tab0 cor0
----
-98
97
11
87
34
15

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 / + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + + ( + + 48 ) AS col2 FROM tab0 AS cor0
----
48
48
48

onlyif mysql # DIV for integer division: 
query I rowsort label-5281
SELECT - col2 * 18 + + - ( - col0 ) + + col2 DIV 52 * col0 FROM tab1 AS cor0 WHERE col0 * + col0 IS NOT NULL
----
-1042
-1626
-892

skipif mysql # not compatible
query I rowsort label-5281
SELECT - col2 * 18 + + - ( - col0 ) + + col2 / 52 * col0 FROM tab1 AS cor0 WHERE col0 * + col0 IS NOT NULL
----
-1042
-1626
-892

query I rowsort
SELECT + - 74 + - 82 + + col2 AS col1 FROM tab1 AS cor0
----
-60
-88
-97

query II rowsort
SELECT DISTINCT + col1, - col2 AS col0 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0 col0, + col2 AS col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query II rowsort
SELECT DISTINCT + 48, + col1 FROM tab2 AS cor0
----
48
51
48
67
48
77

query I rowsort
SELECT + - 50 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) <> + - 78
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT DISTINCT MAX( DISTINCT - - ( + col0 ) ) col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5289
SELECT DISTINCT MAX ( DISTINCT - - ( + col0 ) ) col1 FROM tab2 AS cor0
----
75

query I rowsort
SELECT + col0 * - 18 AS col1 FROM tab2 cor0
----
-1152
-1350
-828

query I rowsort
SELECT - 77 AS col2 FROM tab2 cor0
----
-77
-77
-77

query II rowsort
SELECT - col0 * + col0, - col0 + col2 AS col0 FROM tab1 AS cor0
----
-2601
45
-7225
-26
-8281
-23

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT + - MIN( 51 ) col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5294
SELECT + - MIN ( 51 ) col2 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT DISTINCT - + 76 * + 75 + ( + col1 ) + - col1 FROM tab0 AS cor0
----
-5700

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT COUNT( * ) * - 43 * 45 AS col0 FROM tab1 AS cor0
----
-5805

skipif mysql # not compatible
query I rowsort label-5296
SELECT COUNT ( * ) * - 43 * 45 AS col0 FROM tab1 AS cor0
----
-5805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5297
SELECT ALL + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( 17 ) * - CAST( NULL AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( 17 ) * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * + 56 * - - col1 - + + 84 - + col1 * + 97 FROM tab2 AS cor0
----
-136407
-283521
-287983

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT ALL - COUNT( * ) AS col1 FROM tab1, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL - COUNT ( * ) AS col1 FROM tab1, tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT ALL + MAX( col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL + MAX ( col1 ) FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT + + MIN( ALL + col1 ) FROM tab0 WHERE NOT ( NOT + col1 - - - col2 * col1 * - col1 IS NOT NULL )
----
1

skipif mysql # not compatible
query I rowsort label-5302
SELECT + + MIN ( ALL + col1 ) FROM tab0 WHERE NOT ( NOT + col1 - - - col2 * col1 * - col1 IS NOT NULL )
----
1

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT + ( + ( + 61 ) ) >= + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 68 = ( - + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT DISTINCT - MAX( DISTINCT - col0 ) * + 73 FROM tab0
----
1095

skipif mysql # not compatible
query I rowsort label-5305
SELECT DISTINCT - MAX ( DISTINCT - col0 ) * + 73 FROM tab0
----
1095

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT ALL + COUNT( * ) + ( + 74 ) FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL + COUNT ( * ) + ( + 74 ) FROM tab0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + - col1 + + col0 + - + col0 + - 70 col2 FROM tab2 AS cor0
----
-107
-79
-98

query I rowsort
SELECT + 27 + + - col1 FROM tab0 AS cor0
----
-54
26
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT DISTINCT COUNT( DISTINCT col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5309
SELECT DISTINCT COUNT ( DISTINCT col1 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < col0
----

query I rowsort
SELECT DISTINCT + col2 + + + 91 AS col2 FROM tab0 AS cor0
----
101
138
190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 col1 FROM tab2 WHERE - col2 + 31 IS NOT NULL
----
23
40
58

query I rowsort
SELECT col2 FROM tab0 WHERE NULL BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5314
SELECT COUNT( * ) AS col2, COUNT( * ) AS col0 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-5314
SELECT COUNT ( * ) AS col2, COUNT ( * ) AS col0 FROM tab0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5315
SELECT 66 * - CAST( + - 49 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3234
3234
3234

skipif mysql # not compatible
query I rowsort label-5315
SELECT 66 * - CAST ( + - 49 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3234
3234
3234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5316
SELECT ALL - 25 DIV + 68 * - COUNT( ALL + col0 ) + 90 + - - MAX( ALL + - 23 ) AS col0 FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL - 25 / + 68 * - COUNT ( ALL + col0 ) + 90 + - - MAX ( ALL + - 23 ) AS col0 FROM tab1 AS cor0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5317
SELECT DISTINCT 83 DIV - 44 AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5317
SELECT DISTINCT 83 / - 44 AS col2 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 38 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + col2 * + col1 * + - 89 + - col2 col0 FROM tab2 AS cor0
----
104420
274144
345871

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT DISTINCT + COUNT( + 73 ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5320
SELECT DISTINCT + COUNT ( + 73 ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 + - 13 AS col0 FROM tab1 cor0
----
-104
-64
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5322
SELECT ALL - col2 * col1 + + - ( + ( 26 ) ) - - CAST( - col2 AS SIGNED ) FROM tab0
----
-224
-246
-3880

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL - col2 * col1 + + - ( + ( 26 ) ) - - CAST ( - col2 AS INTEGER ) FROM tab0
----
-224
-246
-3880

query I rowsort
SELECT - 11 + col0 AS col2 FROM tab1
----
40
74
80

query II rowsort
SELECT + ( + - col2 ) + col1 - col1 + - + col0, + col0 FROM tab2
----
-104
64
-133
75
-69
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT DISTINCT SUM( DISTINCT - - col1 ) - - 77 AS col0 FROM tab1
----
143

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT SUM ( DISTINCT - - col1 ) - - 77 AS col0 FROM tab1
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT ALL + COUNT( * ) - - COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL + COUNT ( * ) - - COUNT ( * ) FROM tab1
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab2 WHERE NOT ( + 36 ) IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT + 45 * + ( - MIN( DISTINCT + - 99 ) ) col1 FROM tab1
----
4455

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5328
SELECT + 45 * + ( - MIN ( DISTINCT + - 99 ) ) col1 FROM tab1
----
4455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + col0 ) col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT ( - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT DISTINCT MAX( ALL + col2 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-5331
SELECT DISTINCT MAX ( ALL + col2 ) AS col1 FROM tab2
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 col2 FROM tab1
----
38
38
38

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * - - col2 * - + col1 * col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 78 * - col2 FROM tab2 AS cor0
----
1794
3120
4524

query I rowsort
SELECT + 40 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
40
40
40

query I rowsort
SELECT DISTINCT col1 * + + 43 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN - 12 * - 28 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT 77 * + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5338
SELECT 77 * + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5339
SELECT ALL - - CAST( col0 AS SIGNED ) FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL - - CAST ( col0 AS INTEGER ) FROM tab1 cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT + 40 + + COUNT( * ) FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-5340
SELECT + 40 + + COUNT ( * ) FROM tab0 AS cor0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5341
SELECT 35 DIV + - 29 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5341
SELECT 35 / + - 29 AS col1 FROM tab2
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5342
SELECT ( + col2 ) DIV - 50 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5342
SELECT ( + col2 ) / - 50 FROM tab2
----
-1
0
0

query I rowsort
SELECT + 68 * - - col0 FROM tab0
----
1020
5916
6596

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT COUNT( * ) * - + 22 AS col2 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-5344
SELECT COUNT ( * ) * - + 22 AS col2 FROM tab0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT MIN( ALL 80 ) AS col0 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-5345
SELECT MIN ( ALL 80 ) AS col0 FROM tab2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT - SUM( 66 ) AS col2 FROM tab1 WHERE NOT - - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5346
SELECT - SUM ( 66 ) AS col2 FROM tab1 WHERE NOT - - col2 IS NOT NULL
----
NULL

query I rowsort
SELECT ( - 99 ) * col1 * - - col2 + - col1 FROM tab0
----
-20811
-376974
-9802

query I rowsort
SELECT ALL + + 24 AS col2 FROM tab1 AS cor0
----
24
24
24

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 <= + col0 * + - col2
----

query I rowsort
SELECT - + col1 * + col1 * + - ( + 80 ) * + + col0 + - col1 * + col2 + + col0 AS col1 FROM tab2 AS cor0
----
26930189
30353464
9570553

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 26 BETWEEN NULL AND + 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT + - COUNT( * ) + + COUNT( * ) col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5352
SELECT + - COUNT ( * ) + + COUNT ( * ) col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT + col1 * - ( + col1 ) AS col0 FROM tab1 AS cor0
----
-196
-2209
-25

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) IN ( - + 84 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT ALL - MIN( - 88 ) + - 46 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-5356
SELECT ALL - MIN ( - 88 ) + - 46 FROM tab1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-5357
SELECT DISTINCT - 49 DIV - ( 75 ) + + - 96 AS col1 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-5357
SELECT DISTINCT - 49 / - ( 75 ) + + - 96 AS col1 FROM tab0
----
-96

query II rowsort
SELECT DISTINCT + 1 AS col2, - 85 AS col0 FROM tab2
----
1
-85

query I rowsort
SELECT ALL col1 - 66 AS col2 FROM tab2
----
-15
1
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5360
SELECT ALL CAST( NULL AS SIGNED ) AS col1, COUNT( ALL + + 29 ) AS col0 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5360
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, COUNT ( ALL + + 29 ) AS col0 FROM tab0
----
NULL
3

query II rowsort
SELECT + - col0 AS col2, + 15 + - + col2 FROM tab2 AS cor0
----
-46
-8
-64
-25
-75
-43

query I rowsort
SELECT ALL + col2 * + col0 * col0 + - col0 FROM tab1 AS cor0
----
249645
426190
563017

query II rowsort
SELECT col1, 89 FROM tab2 AS cor0
----
51
89
67
89
77
89

query I rowsort
SELECT - - ( + - 45 ) * col0 FROM tab1 AS cor0
----
-2295
-3825
-4095

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT 47 * col2 + + col0 IS NOT NULL
----

query I rowsort
SELECT + - col0 * - - col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 / + 31 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * ( + + col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= col2
----

query I rowsort
SELECT ALL - 21 * - col1 FROM tab2 AS cor0
----
1071
1407
1617

query I rowsort
SELECT ALL - 91 + + col2 * + col2 FROM tab1 AS cor0
----
3390
4533
9125

query I rowsort
SELECT - + ( - + 55 ) AS col1 FROM tab0 AS cor0
----
55
55
55

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT - col1 * col1 * + 96 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT DISTINCT COUNT( col2 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5374
SELECT DISTINCT COUNT ( col2 ) col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > + + col2 * + 87 / + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5376
SELECT col0 DIV - 78 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5376
SELECT col0 / - 78 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT SUM( + col2 ) + - COUNT( * ) FROM tab1
----
220

skipif mysql # not compatible
query I rowsort label-5378
SELECT SUM ( + col2 ) + - COUNT ( * ) FROM tab1
----
220

query III rowsort
SELECT * FROM tab1 WHERE - - 24 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5380
SELECT ALL col1 + - CAST( NULL AS SIGNED ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5380
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT ALL + - SUM( ALL col0 ) + + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-202

skipif mysql # not compatible
query I rowsort label-5381
SELECT ALL + - SUM ( ALL col0 ) + + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-202

query I rowsort
SELECT 16 + - 34 FROM tab2 cor0
----
-18
-18
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-5383
SELECT ALL + - col2 + + - 45 DIV - col1 + + col1 col2 FROM tab1 AS cor0
----
-21
-45
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5383
SELECT ALL + - col2 + + - 45 / - col1 + + col1 col2 FROM tab1 AS cor0
----
-21
-45
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5384
SELECT col1 + - col2 * 58 + - + col2 col0 FROM tab2 AS cor0 WHERE + ( col0 ) NOT BETWEEN - 4 + + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5384
SELECT col1 + - col2 * 58 + - + col2 col0 FROM tab2 AS cor0 WHERE + ( col0 ) NOT BETWEEN - 4 + + CAST ( NULL AS INTEGER ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 81 + + + 15 col0, + 60 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 932205f4ec472a3fe6d61cb7766c577a

query I rowsort
SELECT col0 + + - 38 FROM tab2 AS cor0
----
26
37
8

query I rowsort
SELECT DISTINCT ( - + col1 ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT ALL + 96 * COUNT( * ) FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL + 96 * COUNT ( * ) FROM tab2
----
288

query II rowsort
SELECT DISTINCT - col1, col0 AS col1 FROM tab2
----
-51
46
-67
75
-77
64

query II rowsort
SELECT col1 * - col2 * - col2, + col2 + + 6 + + + 38 AS col0 FROM tab2
----
123200
84
225388
102
26979
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * + col1 col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT 63 * - + 50 AS col0 FROM tab0 AS cor0
----
-3150

query I rowsort
SELECT DISTINCT + + col2 * + + col1 AS col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5394
SELECT + 70 * COUNT( - col2 ) DIV - 3 AS col0 FROM tab2
----
-70

skipif mysql # not compatible
query I rowsort label-5394
SELECT + 70 * COUNT ( - col2 ) / - 3 AS col0 FROM tab2
----
-70

query I rowsort
SELECT ALL 36 * - col1 FROM tab1
----
-1692
-180
-504

query I rowsort
SELECT DISTINCT + 12 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
12

query I rowsort
SELECT + ( - 77 ) * col1 * + - col1 AS col0 FROM tab0
----
33957
505197
77

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5398
SELECT ALL CAST( NULL AS DECIMAL ), + 72 AS col0 FROM tab1
----
NULL
72
NULL
72
NULL
72

skipif mysql # not compatible
query II rowsort label-5398
SELECT ALL CAST ( NULL AS REAL ), + 72 AS col0 FROM tab1
----
NULL
72
NULL
72
NULL
72

query I rowsort
SELECT DISTINCT col2 * + - col1 * + + col1 FROM tab1 AS cor0
----
-1475
-150212
-18816

query I rowsort
SELECT - col0 + - 73 FROM tab1 cor0
----
-124
-158
-164

query I rowsort
SELECT 83 + + col1 * - + col2 AS col2 FROM tab0 AS cor0
----
-127
-16
-3724

query I rowsort
SELECT 72 + - + 51 AS col1 FROM tab2 AS cor0
----
21
21
21

query I rowsort
SELECT + - 15 + 41 - + col0 FROM tab1 AS cor0
----
-25
-59
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + col0 ) col2 FROM tab1 WHERE - col1 * + 31 NOT IN ( col1, 74 * + col1 )
----
-51
-85
-91

query II rowsort
SELECT + col2 * 39 * col2, + col2 AS col1 FROM tab0
----
382239
99
3900
10
86151
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5406
SELECT DISTINCT - MIN( + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT - MIN ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5407
SELECT + col0 DIV ( - - col2 ) DIV + - col2 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5407
SELECT + col0 / ( - - col2 ) / + - col2 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5408
SELECT 43 DIV - COUNT( * ) AS col0 FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-5408
SELECT 43 / - COUNT ( * ) AS col0 FROM tab2
----
-14

query III rowsort
SELECT * FROM tab1 WHERE ( ( NOT ( NOT + col2 + - col1 IN ( + - col0, + col2, col2 * col0 ) ) ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 87 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5411
SELECT ALL 36 + + COUNT( * ), COUNT( * ) AS col0 FROM tab0
----
39
3

skipif mysql # not compatible
query II rowsort label-5411
SELECT ALL 36 + + COUNT ( * ), COUNT ( * ) AS col0 FROM tab0
----
39
3

query II rowsort
SELECT - 66 AS col2, - col1 AS col2 FROM tab1 WHERE col2 <= + - 60
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - 56 AND NULL
----

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT - 47 + + 83 FROM tab0 AS cor0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT - 50 + - + COUNT( ALL + + col0 ) AS col0 FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-5416
SELECT - 50 + - + COUNT ( ALL + + col0 ) AS col0 FROM tab2 AS cor0
----
-53

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 + 93 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5418
SELECT + SUM( + 61 ) + ( - - CAST( NULL AS SIGNED ) ) * - 84 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5418
SELECT + SUM ( + 61 ) + ( - - CAST ( NULL AS INTEGER ) ) * - 84 AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5419
SELECT + col2 + - CAST( + col2 AS SIGNED ) + + col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5419
SELECT + col2 + - CAST ( + col2 AS INTEGER ) + + col2 FROM tab0
----
10
47
99

query I rowsort
SELECT - + 77 AS col0 FROM tab1 WHERE - 9 <> + + col0 + - - col0
----
-77
-77
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT + col0 * + - 44 + col1 * - - col2 > - col0 )
----
46
51
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 - - col0 col1 FROM tab1 AS cor0
----
120
154
160

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT 82 / - col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT 47 * - + ( + + 85 ) * - MIN( 21 ) FROM tab0 AS cor0
----
83895

skipif mysql # not compatible
query I rowsort label-5424
SELECT 47 * - + ( + + 85 ) * - MIN ( 21 ) FROM tab0 AS cor0
----
83895

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5425
SELECT - - CAST( - - MIN( DISTINCT - col1 ) AS SIGNED ) * + ( + 93 ) AS col0 FROM tab1 AS cor0
----
-4371

skipif mysql # not compatible
query I rowsort label-5425
SELECT - - CAST ( - - MIN ( DISTINCT - col1 ) AS INTEGER ) * + ( + 93 ) AS col0 FROM tab1 AS cor0
----
-4371

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5426
SELECT * FROM tab1 AS cor0 WHERE NOT ( - CAST( col2 AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-5426
SELECT * FROM tab1 AS cor0 WHERE NOT ( - CAST ( col2 AS INTEGER ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT ALL + + SUM( DISTINCT col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL + + SUM ( DISTINCT col0 ) FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT MAX( DISTINCT - col2 ) * + 6 FROM tab1 cor0
----
-354

skipif mysql # not compatible
query I rowsort label-5428
SELECT MAX ( DISTINCT - col2 ) * + 6 FROM tab1 cor0
----
-354

query II rowsort
SELECT ALL - col1 * + + col0 AS col1, col1 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 17 FROM tab0 WHERE - 24 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT + SUM( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5431
SELECT + SUM ( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT ALL MIN( DISTINCT 47 ) col0 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5432
SELECT ALL MIN ( DISTINCT 47 ) col0 FROM tab2 AS cor0
----
47

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT 3 * + col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT - + 15 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT DISTINCT + col0 * 32 AS col2 FROM tab0 AS cor0
----
2784
3104
480

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT DISTINCT + - COUNT( * ) * - + MAX( col1 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
231

skipif mysql # not compatible
query I rowsort label-5437
SELECT DISTINCT + - COUNT ( * ) * - + MAX ( col1 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT ( + ( + SUM( - col1 ) ) ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5438
SELECT ( + ( + SUM ( - col1 ) ) ) FROM tab1 AS cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - 58 ) col2 FROM tab1 AS cor0
----
58
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5440
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > NULL OR NOT col1 / + + CAST( NULL AS SIGNED ) - + - CAST( 63 AS SIGNED ) / - - 42 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5440
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > NULL OR NOT col1 / + + CAST ( NULL AS INTEGER ) - + - CAST ( 63 AS INTEGER ) / - - 42 IS NULL
----

query I rowsort
SELECT DISTINCT + 66 + + col2 + - col0 * - + 57 AS col1 FROM tab1 cor0
----
3069
4970
5321

query I rowsort
SELECT DISTINCT + + col0 FROM tab2 AS cor0 WHERE NULL < ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 4 + 89 * - - col0 IS NULL
----

query I rowsort
SELECT DISTINCT 73 + + 97 * col2 FROM tab2 AS cor0
----
2304
3953
5699

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 98 - + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( - ( col1 ) ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT - col2 + col2 + + - 13 FROM tab2
----
-13
-13
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-5448
SELECT + col1 + - 72 DIV 9 FROM tab0
----
-7
13
73

skipif mysql # not compatible
query I rowsort label-5448
SELECT + col1 + - 72 / 9 FROM tab0
----
-7
13
73

query I rowsort
SELECT + ( col2 ) + + 53 FROM tab0
----
100
152
63

query I rowsort
SELECT 53 + - col2 FROM tab2
----
-5
13
30

query III rowsort
SELECT * FROM tab2 WHERE NULL < + col1
----

query I rowsort
SELECT ALL - + ( - col2 ) + + - col1 FROM tab0 AS cor0
----
-11
-34
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 22 * - col2 AS col2, col2 col0 FROM tab1 AS cor0
----
-1298
59
-1496
68
-2112
96

query I rowsort
SELECT + + 5 - col2 + - 76 FROM tab2 AS cor0 WHERE ( NOT - col2 IS NOT NULL )
----

query II rowsort
SELECT + + col2, 89 + col2 FROM tab2 cor0
----
23
112
40
129
58
147

query I rowsort
SELECT ALL - 79 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query II rowsort
SELECT col1 - + 37 AS col0, + col2 AS col0 FROM tab1
----
-23
96
-32
59
10
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( - + col0 ), col1 col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5459
SELECT * FROM tab2 AS cor0 WHERE NOT ( - ( + CAST( col1 AS SIGNED ) ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5459
SELECT * FROM tab2 AS cor0 WHERE NOT ( - ( + CAST ( col1 AS INTEGER ) ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT - col0 / + + 41 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5461
SELECT ALL - CAST( + - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL - CAST ( + - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5463
SELECT ALL - CAST( col0 AS DECIMAL ), col1 * + + col2 + + + col2 * - col2 FROM tab1 WHERE NOT - + 75 NOT BETWEEN + col0 AND NULL
----

skipif mysql # not compatible
query II rowsort label-5463
SELECT ALL - CAST ( col0 AS REAL ), col1 * + + col2 + + + col2 * - col2 FROM tab1 WHERE NOT - + 75 NOT BETWEEN + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5464
SELECT DISTINCT + col1, - CAST( NULL AS SIGNED ) + - CAST( - 87 AS DECIMAL ) * 23 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-5464
SELECT DISTINCT + col1, - CAST ( NULL AS INTEGER ) + - CAST ( - 87 AS REAL ) * 23 FROM tab2
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT ALL + col1 * - ( - + col2 ) FROM tab1
----
1344
295
3196

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT ( NOT NULL IS NOT NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5467
SELECT - CAST( + - col1 AS SIGNED ) FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5467
SELECT - CAST ( + - col1 AS INTEGER ) FROM tab2
----
51
67
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 43 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + 74, col0 FROM tab0 AS cor0
----
74
15
74
87
74
97

query III rowsort
SELECT * FROM tab1 WHERE - col1 IN ( col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col0 + col1 ) BETWEEN col0 * + col0 + col2 AND 37 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5473
SELECT ( + col1 ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5473
SELECT ( + col1 ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT + MAX( DISTINCT col0 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5474
SELECT + MAX ( DISTINCT col0 ) AS col2 FROM tab1
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 col1 FROM tab1
----
41
41
41

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col0 ) NOT IN ( 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT COUNT( ALL + 91 ) * COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5477
SELECT COUNT ( ALL + 91 ) * COUNT ( * ) FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5478
SELECT DISTINCT * FROM tab1 WHERE NULL < + CAST( 95 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5478
SELECT DISTINCT * FROM tab1 WHERE NULL < + CAST ( 95 AS INTEGER )
----

query I rowsort
SELECT ALL col0 + col2 * - 66 FROM tab0
----
-3087
-573
-6437

query III rowsort
SELECT * FROM tab1 WHERE col2 * - col2 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 ) BETWEEN + col0 * - col0 AND + ( - 16 ) - 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT + SUM( + col2 ) AS col0 FROM tab2 WHERE NOT NULL > ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5482
SELECT + SUM ( + col2 ) AS col0 FROM tab2 WHERE NOT NULL > ( + col0 )
----
NULL

query I rowsort
SELECT + col1 * 87 AS col2 FROM tab0
----
1827
7047
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT COUNT( * ) FROM tab0 WHERE NOT + 44 >= col0
----
2

skipif mysql # not compatible
query I rowsort label-5484
SELECT COUNT ( * ) FROM tab0 WHERE NOT + 44 >= col0
----
2

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) > 94
----

query I rowsort
SELECT - col1 * - 18 AS col2 FROM tab2
----
1206
1386
918

query I rowsort
SELECT + 58 * - 82 FROM tab0
----
-4756
-4756
-4756

query I rowsort
SELECT ALL 3 + col2 FROM tab2
----
26
43
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT COUNT( ALL + col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5489
SELECT COUNT ( ALL + col1 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT col2 + col0 IS NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + 98 AS col2 FROM tab1 WHERE NOT col1 * - col2 IS NULL
----
98

query I rowsort
SELECT DISTINCT col2 * - 2 AS col0 FROM tab0
----
-198
-20
-94

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 / - ( + ( 48 ) ) ) IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5494
SELECT DISTINCT - col1 DIV + col0 col1 FROM tab2
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5494
SELECT DISTINCT - col1 / + col0 col1 FROM tab2
----
-1
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + 39 * 25 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 45 + 0 FROM tab0
----
45

query I rowsort
SELECT DISTINCT + col2 + col1 * ( - ( 68 ) * - col0 ) FROM tab1 WHERE NULL <= + 24 + 68
----

query I rowsort
SELECT DISTINCT + ( col2 ) + 90 AS col1 FROM tab2
----
113
130
148

query I rowsort
SELECT col0 * + 70 - + 8 FROM tab0 AS cor0
----
1042
6082
6782

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT COUNT( * ) + - 66 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-5500
SELECT COUNT ( * ) + - 66 FROM tab2 AS cor0
----
-63

query I rowsort
SELECT DISTINCT + 30 + 10 FROM tab2 AS cor0
----
40

query I rowsort
SELECT ALL 2 * - col1 FROM tab0
----
-162
-2
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5503
SELECT DISTINCT COUNT( * ) DIV MAX( col1 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT COUNT ( * ) / MAX ( col1 ) AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-5504
SELECT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0
----
9

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT SUM( 22 ) AS col1 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-5506
SELECT SUM ( 22 ) AS col1 FROM tab0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT SUM( ALL col0 ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-5507
SELECT SUM ( ALL col0 ) FROM tab0 cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5508
SELECT DISTINCT + CAST( 85 AS SIGNED ) FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT + CAST ( 85 AS INTEGER ) FROM tab0 AS cor0
----
85

query I rowsort
SELECT DISTINCT - + 48 AS col0 FROM tab2 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT - COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5510
SELECT - COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5511
SELECT ALL - + CAST( col0 AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL - + CAST ( col0 AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT - col1 * 18 FROM tab0 cor0
----
-1458
-18
-378

query I rowsort
SELECT - + ( + col2 ) * 20 AS col1 FROM tab1 AS cor0
----
-1180
-1360
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT - MAX( 85 ) * - 45 FROM tab1
----
3825

skipif mysql # not compatible
query I rowsort label-5514
SELECT - MAX ( 85 ) * - 45 FROM tab1
----
3825

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5515
SELECT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5515
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 >= - col2 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 8 FROM tab2 WHERE NOT ( + col1 ) IN ( col1 * + col2 )
----
8
8
8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + - col1 NOT BETWEEN ( - col2 ) AND col0
----
51
14
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5519
SELECT DISTINCT CAST( NULL AS SIGNED ) + - MIN( - 75 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - MIN ( - 75 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 97 + - + col1 * + col0 AS col0 FROM tab2 AS cor0
----
-2249
-4831
-4928

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT DISTINCT - SUM( ALL - - 43 ) + 57 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-5521
SELECT DISTINCT - SUM ( ALL - - 43 ) + 57 FROM tab0 AS cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5522
SELECT - col1 * 89 + CAST( - col0 + col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
-185
-1935
-7143

skipif mysql # not compatible
query I rowsort label-5522
SELECT - col1 * 89 + CAST ( - col0 + col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
-185
-1935
-7143

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5523
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) * ( 48 * col0 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5523
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) * ( 48 * col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + - col0 BETWEEN + 56 AND + col0
----

query III rowsort
SELECT * FROM tab1 WHERE ( - + col2 + ( - col2 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT ALL + MIN( ALL + col1 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL + MIN ( ALL + col1 ) AS col2 FROM tab2
----
51

query I rowsort
SELECT ALL + + 93 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT ALL + 70 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT + SUM( - - col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5529
SELECT + SUM ( - - col2 ) FROM tab0 AS cor0
----
156

query I rowsort
SELECT ( - col1 ) * + 73 * col1 AS col1 FROM tab1 AS cor0
----
-14308
-161257
-1825

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT + COUNT( * ) + COUNT( ALL 84 + 50 * - col0 ) FROM tab1 AS cor0 WHERE + col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5532
SELECT + COUNT ( * ) + COUNT ( ALL 84 + 50 * - col0 ) FROM tab1 AS cor0 WHERE + col1 >= NULL
----
0

query I rowsort
SELECT ALL 22 * + - col1 + + 20 + col0 * 68 AS col1 FROM tab0 AS cor0
----
-742
5474
6594

query I rowsort
SELECT + col0 + col0 FROM tab1 AS cor0 WHERE col0 BETWEEN - col0 / col1 AND ( 7 / 49 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5535
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) + - AVG ( ALL + col2 ) + 71 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5535
SELECT DISTINCT - - CAST ( NULL AS REAL ) + - AVG ( ALL + col2 ) + 71 FROM tab0 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col0 ) NOT BETWEEN ( NULL ) AND ( col2 )
----

query I rowsort
SELECT - 33 + + col0 + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-4878
-4963
-6130

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 = - - col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 60 * + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 35 * col1 + + + 74 FROM tab2 AS cor0
----
1859
2419
2769

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT DISTINCT - MAX( ALL + - 91 ) - COUNT( * ) AS col1 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-5541
SELECT DISTINCT - MAX ( ALL + - 91 ) - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5542
SELECT ALL col1 * - ( + 9 ) FROM tab2 WHERE NOT NULL >= - col1 * - col2 + - col1 + CAST( ( - 24 ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL col1 * - ( + 9 ) FROM tab2 WHERE NOT NULL >= - col1 * - col2 + - col1 + CAST ( ( - 24 ) AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT ALL COUNT( * ) - + 98 FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-5543
SELECT ALL COUNT ( * ) - + 98 FROM tab0
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5544
SELECT + MIN( DISTINCT - col0 ) + - CAST( - 36 AS SIGNED ) FROM tab1
----
-55

skipif mysql # not compatible
query I rowsort label-5544
SELECT + MIN ( DISTINCT - col0 ) + - CAST ( - 36 AS INTEGER ) FROM tab1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5545
SELECT CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col0 FROM tab0 WHERE - - col2 * + + col0 * - 54 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5545
SELECT CAST ( NULL AS REAL ) * - COUNT ( * ) AS col0 FROM tab0 WHERE - - col2 * + + col0 * - 54 IS NULL
----
NULL

query I rowsort
SELECT - col1 * col0 * + 62 * 91 FROM tab2
----
-13236132
-27803776
-28351050

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT ALL 26 - + MAX( - col2 ) AS col1 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-5547
SELECT ALL 26 - + MAX ( - col2 ) AS col1 FROM tab1
----
85

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT NULL < + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5549
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT ( NULL ) BETWEEN col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5549
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT ( NULL ) BETWEEN col2 AND NULL
----

query I rowsort
SELECT ALL col2 * + col2 * - col2 FROM tab1
----
-205379
-314432
-884736

onlyif mysql # aggregate syntax: 
query II rowsort label-5551
SELECT 43 col0, 51 * - COUNT( * ) FROM tab0
----
43
-153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5551
SELECT 43 col0, 51 * - COUNT ( * ) FROM tab0
----
43
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT - - MAX( ALL - col2 ) FROM tab0 WHERE NOT NULL IS NOT NULL OR NOT ( NULL ) IS NULL
----
-10

skipif mysql # not compatible
query I rowsort label-5552
SELECT - - MAX ( ALL - col2 ) FROM tab0 WHERE NOT NULL IS NOT NULL OR NOT ( NULL ) IS NULL
----
-10

query III rowsort
SELECT ALL * FROM tab2 WHERE 1 + - - col0 IN ( - 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT ALL - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5554
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT ALL ( - + COUNT( * ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5555
SELECT ALL ( - + COUNT ( * ) ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT DISTINCT SUM( + 84 ) AS col2 FROM tab2 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT SUM ( + 84 ) AS col2 FROM tab2 AS cor0
----
252

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + 49 )
----

query II rowsort
SELECT + col0, - col0 AS col2 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT + SUM( DISTINCT - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5560
SELECT + SUM ( DISTINCT - col1 ) FROM tab1 AS cor0
----
-66

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 97 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT ALL - 34 * + - COUNT( * ) FROM tab2 cor0
----
102

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL - 34 * + - COUNT ( * ) FROM tab2 cor0
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-5565
SELECT DISTINCT + col1 DIV - 72 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5565
SELECT DISTINCT + col1 / - 72 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT DISTINCT - COUNT( * ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5566
SELECT DISTINCT - COUNT ( * ) col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT ALL + 12 * + - COUNT( DISTINCT + + ( + ( col0 ) ) ) + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL + 12 * + - COUNT ( DISTINCT + + ( + ( col0 ) ) ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT 71 + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 70 AS col2 FROM tab0
----
-70
-70
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5570
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NOT ( ( NOT ( col0 / ( + CAST( + col2 AS SIGNED ) ) ) <= 36 ) )
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5570
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NOT ( ( NOT ( col0 / ( + CAST ( + col2 AS INTEGER ) ) ) <= 36 ) )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NOT ( - col1 * - 33 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5571
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( - col1 * - 33 IS NOT NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5572
SELECT ALL - 56 DIV + ( + 90 ) * - col2 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL - 56 / + ( + 90 ) * - col2 AS col2 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL col1, 27 + + col2 FROM tab1
----
14
123
47
95
5
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT ALL + COUNT( * ) * + + COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL + COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 72 col2, col0 FROM tab2
----
72
46
72
64
72
75

query I rowsort
SELECT ALL + col0 * + + col0 + - + col0 AS col0 FROM tab0 cor0
----
210
7482
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT + SUM( + 31 ) col0 FROM tab2 cor0
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5577
SELECT + SUM ( + 31 ) col0 FROM tab2 cor0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5578
SELECT - CAST( 22 AS SIGNED ) FROM tab0 AS cor0
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-5578
SELECT - CAST ( 22 AS INTEGER ) FROM tab0 AS cor0
----
-22
-22
-22

query II rowsort
SELECT col2, 6 * + - col2 FROM tab2 AS cor0
----
23
-138
40
-240
58
-348

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) = 73
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 = NULL
----

query I rowsort
SELECT + ( + ( + col0 ) ) * - - ( col1 ) + - col1 AS col1 FROM tab0
----
1134
1806
96

query I rowsort
SELECT + 50 + - + 8 AS col0 FROM tab2
----
42
42
42

query I rowsort
SELECT col2 * 67 + + + col0 + 78 AS col2 FROM tab2
----
1665
2822
4039

query I rowsort
SELECT DISTINCT - col2 + - - col2 + + + col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5586
SELECT - 96 DIV 90 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5586
SELECT - 96 / 90 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5587
SELECT DISTINCT col2 + CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
118
136
192

skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT col2 + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
118
136
192

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 - col0 = - 62
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT MAX( ALL - + col0 ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5589
SELECT MAX ( ALL - + col0 ) AS col0 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT ALL - 32 - 58 FROM tab2 AS cor0
----
-90
-90
-90

query I rowsort
SELECT + 27 FROM tab1 WHERE - - 1 IS NOT NULL
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT MIN( ( col0 ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5592
SELECT MIN ( ( col0 ) ) FROM tab2
----
46

query I rowsort
SELECT DISTINCT - col0 + col0 AS col1 FROM tab2 WHERE ( + 58 ) <> NULL
----

query I rowsort
SELECT ALL + 23 - col0 * + col0 * col2 AS col1 FROM tab2
----
-163817
-326227
-48645

query II rowsort
SELECT DISTINCT ( - - col1 ) - col0 AS col0, + 47 FROM tab1
----
-37
47
-44
47
-80
47

query I rowsort
SELECT DISTINCT + col0 * col1 - + - ( - 27 ) FROM tab1
----
398
4250
687

query I rowsort
SELECT DISTINCT - col2 * + + 49 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 66 - - - col0 + col1 FROM tab1
----
-14
22
29

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT ALL ( MAX( ALL - ( 11 ) ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL ( MAX ( ALL - ( 11 ) ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT + ( COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT NULL <> - col1
----
0

skipif mysql # not compatible
query I rowsort label-5601
SELECT + ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT NULL <> - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT ALL - SUM( - 25 ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL - SUM ( - 25 ) FROM tab2 cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT + 16 * COUNT( * ) FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-5603
SELECT + 16 * COUNT ( * ) FROM tab0 AS cor0
----
48

query I rowsort
SELECT ALL + 67 * col1 + + col1 FROM tab1 AS cor0
----
3196
340
952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5605
SELECT 15 * + - CAST( - + col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
1215
15
315

skipif mysql # not compatible
query I rowsort label-5605
SELECT 15 * + - CAST ( - + col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
1215
15
315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5606
SELECT ALL - CAST( + - MAX( ALL + 54 ) AS SIGNED ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL - CAST ( + - MAX ( ALL + 54 ) AS INTEGER ) FROM tab2 AS cor0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-5607
SELECT DISTINCT - + 17 DIV - + col2 FROM tab0 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5607
SELECT DISTINCT - + 17 / - + col2 FROM tab0 cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5608
SELECT col2 * 41 * + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT 75 * - 15 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5608
SELECT col2 * 41 * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 75 * - 15 IS NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 col2, - col0 * - 13 / 96 FROM tab2 AS cor0 WHERE NOT ( NULL ) > - - col0
----

query I rowsort
SELECT DISTINCT ( - 48 ) FROM tab0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5611
SELECT DISTINCT 15 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5611
SELECT DISTINCT 15 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT ALL - SUM( ALL - 80 ) FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL - SUM ( ALL - 80 ) FROM tab0
----
240

query I rowsort
SELECT DISTINCT 81 * + + 38 AS col0 FROM tab2
----
3078

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5614
SELECT - 24 + + 40 FROM tab1 WHERE - ( + + CAST( NULL AS SIGNED ) ) < 92 + - col2 + - col0 * col1 / - col2 * + + ( 81 )
----

skipif mysql # not compatible
query I rowsort label-5614
SELECT - 24 + + 40 FROM tab1 WHERE - ( + + CAST ( NULL AS INTEGER ) ) < 92 + - col2 + - col0 * col1 / - col2 * + + ( 81 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5615
SELECT col1 + - CAST( NULL AS SIGNED ) + 10 * col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5615
SELECT col1 + - CAST ( NULL AS INTEGER ) + 10 * col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5616
SELECT + col0 * col2 DIV + + col0 + - col0 FROM tab0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-5616
SELECT + col0 * col2 / + + col0 + - col0 FROM tab0
----
-77
2
32

query I rowsort
SELECT DISTINCT - ( - col1 ) AS col0 FROM tab2
----
51
67
77

query I rowsort
SELECT - col2 + + col0 + + + col0 + + col2 * col1 FROM tab2
----
1242
3168
3978

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= + col2 + 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT ALL COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT COUNT( 5 ) + + 92 FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-5621
SELECT COUNT ( 5 ) + + 92 FROM tab1 AS cor0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-5622
SELECT DISTINCT 61 DIV + col2 + - 91 AS col2 FROM tab2 cor0
----
-89
-90

skipif mysql # not compatible
query I rowsort label-5622
SELECT DISTINCT 61 / + col2 + - 91 AS col2 FROM tab2 cor0
----
-89
-90

query I rowsort
SELECT - - 53 + - col0 + + col0 FROM tab0 AS cor0
----
53
53
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5624
SELECT - col1 + + CAST( + + 73 AS SIGNED ) AS col2, 20 + + + col2 FROM tab2 AS cor0
----
-4
60
22
43
6
78

skipif mysql # not compatible
query II rowsort label-5624
SELECT - col1 + + CAST ( + + 73 AS INTEGER ) AS col2, 20 + + + col2 FROM tab2 AS cor0
----
-4
60
22
43
6
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT DISTINCT MAX( DISTINCT + col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-5625
SELECT DISTINCT MAX ( DISTINCT + col1 ) AS col0 FROM tab1
----
47

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT + 67 * - col2 * - col1 FROM tab0
----
14070
255069
6633

onlyif mysql # DIV for integer division: 
query I rowsort label-5628
SELECT - col0 DIV - + col2 - + + col0 AS col1 FROM tab0
----
-15
-79
-97

skipif mysql # not compatible
query I rowsort label-5628
SELECT - col0 / - + col2 - + + col0 AS col1 FROM tab0
----
-15
-79
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT + MAX( DISTINCT + col1 ) - COUNT( - 41 ) * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-5629
SELECT + MAX ( DISTINCT + col1 ) - COUNT ( - 41 ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
90

query I rowsort
SELECT DISTINCT + ( - 7 ) FROM tab2 AS cor0
----
-7

query I rowsort
SELECT + - col2 - 58 * col0 AS col0 FROM tab0 AS cor0
----
-5056
-5725
-917

query I rowsort
SELECT 58 - 2 FROM tab1 AS cor0
----
56
56
56

query I rowsort
SELECT 94 - + - col0 AS col2 FROM tab0 AS cor0
----
109
181
191

query II rowsort
SELECT ALL + col2 AS col1, + 90 AS col2 FROM tab1 AS cor0
----
59
90
68
90
96
90

query I rowsort
SELECT + col0 + + + col0 FROM tab2 cor0
----
128
150
92

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 32 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT DISTINCT + COUNT( 69 ) - + ( + - COUNT( ALL ( - 33 ) ) ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5638
SELECT DISTINCT + COUNT ( 69 ) - + ( + - COUNT ( ALL ( - 33 ) ) ) FROM tab0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5639
SELECT DISTINCT - col2 - - + 15 DIV + + 25 AS col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-5639
SELECT DISTINCT - col2 - - + 15 / + + 25 AS col2 FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5640
SELECT ALL - MIN( ALL - + CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL - MIN ( ALL - + CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT - MAX( ALL + + col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-5641
SELECT - MAX ( ALL + + col0 ) FROM tab2
----
-75

query I rowsort
SELECT DISTINCT + 20 * + col2 AS col2 FROM tab0
----
1980
200
940

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5643
SELECT ALL + ( + col0 ) AS col2, - col2 / col2 / - col2 * - 82 + - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-5643
SELECT ALL + ( + col0 ) AS col2, - col2 / col2 / - col2 * - 82 + - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5644
SELECT + ( - - SUM( - CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5644
SELECT + ( - - SUM ( - CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < col2 * + col0
----

query I rowsort
SELECT ( + 43 ) AS col1 FROM tab0
----
43
43
43

query II rowsort
SELECT col2, ( - col2 ) FROM tab2
----
23
-23
40
-40
58
-58

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= + - 80 + + - col0 / 86 * 97
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - col2 NOT IN ( - col0, col2 * - 95, - col2 )
----

query I rowsort
SELECT DISTINCT - + 24 * - col1 + + col1 * 21 AS col0 FROM tab0 AS cor0
----
3645
45
945

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT ALL - COUNT( * ) * + 9 AS col1 FROM tab0 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL - COUNT ( * ) * + 9 AS col1 FROM tab0 cor0
----
-27

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 * - col2 * col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 3 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT DISTINCT - + MIN( ALL col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT + 10 IS NULL
----
-59

skipif mysql # not compatible
query I rowsort label-5655
SELECT DISTINCT - + MIN ( ALL col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT + 10 IS NULL
----
-59

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE 21 + - - ( - col1 ) NOT BETWEEN + 76 * 36 / - col0 + - 78 - + - 28 AND NULL
----

query I rowsort
SELECT 26 * + col1 AS col1 FROM tab2
----
1326
1742
2002

onlyif mysql # DIV for integer division: 
query II rowsort label-5658
SELECT DISTINCT col1 * col1 AS col1, col2 - - col2 DIV + + 30 AS col0 FROM tab1
----
196
99
2209
70
25
60

skipif mysql # not compatible
query II rowsort label-5658
SELECT DISTINCT col1 * col1 AS col1, col2 - - col2 / + + 30 AS col0 FROM tab1
----
196
99
2209
70
25
60

query II rowsort
SELECT col2 * - col2 AS col2, 7 FROM tab1
----
-3481
7
-4624
7
-9216
7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < ( + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT - COUNT( * ) * 64 AS col2 FROM tab0
----
-192

skipif mysql # not compatible
query I rowsort label-5661
SELECT - COUNT ( * ) * 64 AS col2 FROM tab0
----
-192

query I rowsort
SELECT ALL - - col1 * col2 FROM tab0 WHERE NOT + ( - col1 ) * + col1 + col1 / + - col0 = NULL
----

query I rowsort
SELECT ALL + - col0 FROM tab2 WHERE 70 * col0 NOT BETWEEN ( NULL ) AND 54
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - - col2 * 39 FROM tab2 AS cor0
----
1560
2262
897

query I rowsort
SELECT DISTINCT + 85 + 65 FROM tab0 AS cor0
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5666
SELECT ALL + + CAST( + col2 AS SIGNED ) + 70 col1 FROM tab2 AS cor0
----
110
128
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5666
SELECT ALL + + CAST ( + col2 AS INTEGER ) + 70 col1 FROM tab2 AS cor0
----
110
128
93

query I rowsort
SELECT + col1 * + col1 + - col2 * 36 FROM tab1 AS cor0
----
-2099
-239
-3260

query I rowsort
SELECT - 87 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND + col2 + + col1 * - 11 - + + 43
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5670
SELECT ALL - CAST( NULL AS DECIMAL ) + - col2 FROM tab2 WHERE NOT + - col1 >= + + col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL - CAST ( NULL AS REAL ) + - col2 FROM tab2 WHERE NOT + - col1 >= + + col1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + col1 ) col0 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + 63 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) < + col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + - - 97 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5674
SELECT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5674
SELECT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 31 + + + 1 AS col1 FROM tab0 AS cor0
----
32

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 * + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5677
SELECT + - col2 * 35 - - 83 DIV - + 28 FROM tab0 AS cor0
----
-1647
-3467
-352

skipif mysql # not compatible
query I rowsort label-5677
SELECT + - col2 * 35 - - 83 / - + 28 FROM tab0 AS cor0
----
-1647
-3467
-352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5678
SELECT - 37 DIV + + MAX( - - col0 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5678
SELECT - 37 / + + MAX ( - - col0 ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL ( + + col0 ) AS col0 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT MAX( - + 44 ) AS col1 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-5680
SELECT MAX ( - + 44 ) AS col1 FROM tab0
----
-44

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * - 96 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT DISTINCT + COUNT( DISTINCT + col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5682
SELECT DISTINCT + COUNT ( DISTINCT + col2 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5683
SELECT ALL COUNT( * ) DIV - COUNT( * ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL COUNT ( * ) / - COUNT ( * ) FROM tab2
----
-1

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT + col0 + col0 IS NOT NULL
----

query II rowsort
SELECT ALL col0, col1 AS col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT DISTINCT - - SUM( + 78 ) FROM tab0 cor0
----
234

skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT - - SUM ( + 78 ) FROM tab0 cor0
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5687
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 79 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + + col1 * - + col0, - 75 AS col1 FROM tab1 AS cor0
----
-425
-75
-4277
-75
-714
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5690
SELECT + CAST( NULL AS SIGNED ) + + 7 / - SUM( 9 ) AS col0 FROM tab1 WHERE NOT - col0 + - ( - col1 ) - 6 NOT BETWEEN - col2 AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5690
SELECT + CAST ( NULL AS INTEGER ) + + 7 / - SUM ( 9 ) AS col0 FROM tab1 WHERE NOT - col0 + - ( - col1 ) - 6 NOT BETWEEN - col2 AND col1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col2 / + 22 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col1 + - col2 AS col0, + col2 AS col0 FROM tab0 AS cor0
----
-100
99
-128
47
-31
10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + + col2 * - col1 * col0 NOT BETWEEN NULL AND - col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - 34 AND ( - 19 - - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5695
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) = - col0 + - col0 * + col1 + - col0 * - + col0 - 9
----
0

skipif mysql # not compatible
query I rowsort label-5695
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) = - col0 + - col0 * + col1 + - col0 * - + col0 - 9
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5697
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + ( COUNT( * ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5697
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + ( COUNT ( * ) ) FROM tab2
----
NULL

query I rowsort
SELECT + 55 + - 55 AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE ( - 82 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT ALL COUNT( ALL + - 26 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5700
SELECT ALL COUNT ( ALL + - 26 ) col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT 34 + 25 AS col0 FROM tab1
----
59

query I rowsort
SELECT - col0 + + + 21 + col0 + col2 AS col1 FROM tab1
----
117
80
89

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + + col0
----

query I rowsort
SELECT ALL + ( + + ( + - ( 43 ) ) ) * + col1 FROM tab1
----
-2021
-215
-602

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5705
SELECT + col1 + - + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5705
SELECT + col1 + - + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col1 ) + - ( + + 34 ) FROM tab0
----
-13
-33
47

query I rowsort
SELECT ALL col0 + - + col2 - - col1 + + - 72 + + + col2 * + - col2 AS col2 FROM tab0
----
-2232
-74
-9874

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5708
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) * + + 63 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5708
SELECT DISTINCT + + CAST ( NULL AS REAL ) * + + 63 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT - col1 AS col0, 61 FROM tab1 AS cor0
----
-14
61
-47
61
-5
61

query I rowsort
SELECT 66 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT ( col0 ) + + col0 FROM tab1 cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT COUNT( ALL + + col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5712
SELECT COUNT ( ALL + + col2 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT DISTINCT ( COUNT( * ) ) + - COUNT( * ) * MAX( col0 ) + + 81 col0 FROM tab0 WHERE NOT + col0 * - 5 * - 86 * + - col1 IS NULL
----
-207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5713
SELECT DISTINCT ( COUNT ( * ) ) + - COUNT ( * ) * MAX ( col0 ) + + 81 col0 FROM tab0 WHERE NOT + col0 * - 5 * - 86 * + - col1 IS NULL
----
-207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5714
SELECT DISTINCT - + col1 FROM tab2 WHERE - + 40 / CAST( NULL AS SIGNED ) + - 66 IS NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5714
SELECT DISTINCT - + col1 FROM tab2 WHERE - + 40 / CAST ( NULL AS INTEGER ) + - 66 IS NULL
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-5715
SELECT - col0 DIV + 62 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5715
SELECT - col0 / + 62 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT ( - COUNT( * ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5716
SELECT ( - COUNT ( * ) ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5717
SELECT DISTINCT - 51 DIV MIN( DISTINCT + col1 ) FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-5717
SELECT DISTINCT - 51 / MIN ( DISTINCT + col1 ) FROM tab1
----
-10

query I rowsort
SELECT ALL + ( - - col1 ) FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT DISTINCT - SUM( DISTINCT - col1 ) AS col1 FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-5719
SELECT DISTINCT - SUM ( DISTINCT - col1 ) AS col1 FROM tab0 cor0
----
103

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL IS NOT NULL )
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query II rowsort
SELECT - 54, col2 AS col0 FROM tab1
----
-54
59
-54
68
-54
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT - - ( - - COUNT( * ) ) + + - 52 AS col0 FROM tab2 WHERE NOT 23 / + + col2 IS NULL
----
-49

skipif mysql # not compatible
query I rowsort label-5722
SELECT - - ( - - COUNT ( * ) ) + + - 52 AS col0 FROM tab2 WHERE NOT 23 / + + col2 IS NULL
----
-49

query I rowsort
SELECT DISTINCT - 47 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT - COUNT( * ) + + COUNT( DISTINCT 50 ) AS col1 FROM tab2 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5724
SELECT - COUNT ( * ) + + COUNT ( DISTINCT 50 ) AS col1 FROM tab2 cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT ALL + MAX( 52 ) AS col1 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-5725
SELECT ALL + MAX ( 52 ) AS col1 FROM tab0 AS cor0
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 * + 90 + col1 col2 FROM tab2 AS cor0
----
3201
3217
3227

query II rowsort
SELECT DISTINCT + col1 + - col1 AS col0, + col1 * + 53 * 99 AS col2 FROM tab1 AS cor0
----
0
246609
0
26235
0
73458

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT - 22 + + MIN( ALL - col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5728
SELECT - 22 + + MIN ( ALL - col1 ) FROM tab0 AS cor0
----
-103

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 11 ) >= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5730
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + + 80 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5730
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + + 80 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT - - 51 + + COUNT( * ) FROM tab2 cor0
----
54

skipif mysql # not compatible
query I rowsort label-5731
SELECT - - 51 + + COUNT ( * ) FROM tab2 cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT ALL + 71 + - - COUNT( * ) AS col1 FROM tab0 cor0
----
74

skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL + 71 + - - COUNT ( * ) AS col1 FROM tab0 cor0
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-5733
SELECT - col1 * - + 61 + 96 + - - col1 DIV - 73 AS col1 FROM tab0 cor0
----
1377
157
5036

skipif mysql # not compatible
query I rowsort label-5733
SELECT - col1 * - + 61 + 96 + - - col1 / - 73 AS col1 FROM tab0 cor0
----
1377
157
5036

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( - + ( - col0 ) ) + + col0 + + + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 + + col1 + + col0 FROM tab2
----
120
181
200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5736
SELECT ALL - - CAST( NULL AS SIGNED ) + col2 + - col0 * CAST( NULL AS SIGNED ) * - - col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL - - CAST ( NULL AS INTEGER ) + col2 + - col0 * CAST ( NULL AS INTEGER ) * - - col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 92 * - + col2 + - 79 - - - 45 FROM tab2
----
-2240
-3804
-5460

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE + - col1 IS NULL
----

query I rowsort
SELECT - col0 * + - 32 AS col1 FROM tab2
----
1472
2048
2400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 63 col1 FROM tab2 WHERE NOT 45 * - ( + 17 ) + col0 - - ( + col2 ) * col1 IS NULL
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT ALL MIN( + 75 ) FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-5741
SELECT ALL MIN ( + 75 ) FROM tab1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT ALL COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5742
SELECT ALL COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT ALL - col0 * + + 29 + 39 + - col1 FROM tab2 cor0
----
-1346
-1894
-2203

query I rowsort
SELECT - ( + col2 ) + + col1 * - + col2 FROM tab0 AS cor0 WHERE - col1 + + col0 = + 69
----

query I rowsort
SELECT ALL col2 * + col2 - + ( + - col0 ) AS col2 FROM tab2
----
1664
3439
575

onlyif mysql # aggregate syntax: 
query I rowsort label-5746
SELECT DISTINCT + + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5746
SELECT DISTINCT + + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT ALL 50 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT MAX( - col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5748
SELECT MAX ( - col0 ) AS col0 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT - + 93 * + - col1 FROM tab0 AS cor0
----
1953
7533
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 77 * - col0 col0 FROM tab2 cor0
----
3542
4928
5775

query II rowsort
SELECT col2 AS col1, + col0 AS col1 FROM tab1 AS cor0
----
59
85
68
91
96
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5752
SELECT DISTINCT - + CAST( AVG ( + + 51 ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( - 38 * - 18 ) NOT IN ( 49, 54 / - + 82, - - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT - + CAST ( AVG ( + + 51 ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( - 38 * - 18 ) NOT IN ( 49, 54 / - + 82, - - col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5753
SELECT DISTINCT - CAST( + - 42 AS SIGNED ) * - + col1 * + + col1 FROM tab0 AS cor0
----
-18522
-275562
-42

skipif mysql # not compatible
query I rowsort label-5753
SELECT DISTINCT - CAST ( + - 42 AS INTEGER ) * - + col1 * + + col1 FROM tab0 AS cor0
----
-18522
-275562
-42

query I rowsort
SELECT - - 23 * - + 64 FROM tab0 AS cor0
----
-1472
-1472
-1472

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 + col0 * + - col0 NOT BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT ALL COUNT( * ) * - - 98 AS col2 FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-5756
SELECT ALL COUNT ( * ) * - - 98 AS col2 FROM tab0
----
294

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 - ( - col2 ) NOT IN ( + - col0 + - 44, ( + - col1 ) + + - 36 )
----

query I rowsort
SELECT ALL - col2 * + - col0 FROM tab0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5759
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN + CAST( NULL AS SIGNED ) + + + col0 AND col2
----

skipif mysql # not compatible
query III rowsort label-5759
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN + CAST ( NULL AS INTEGER ) + + + col0 AND col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5760
SELECT DISTINCT SUM( DISTINCT - + col0 ) AS col0, + COUNT( * ) FROM tab2
----
-185
3

skipif mysql # not compatible
query II rowsort label-5760
SELECT DISTINCT SUM ( DISTINCT - + col0 ) AS col0, + COUNT ( * ) FROM tab2
----
-185
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5761
SELECT 81 DIV - SUM( ALL + + col2 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5761
SELECT 81 / - SUM ( ALL + + col2 ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5762
SELECT ALL + MAX( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT + SUM( DISTINCT + + 27 ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-5763
SELECT + SUM ( DISTINCT + + 27 ) FROM tab2 AS cor0
----
27

query I rowsort
SELECT - col0 + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) = col0
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5765
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( - CAST( NULL AS SIGNED ) ) * - - 1 * - CAST( NULL AS DECIMAL ) + + + 44 / 41 BETWEEN - - col0 * + ( + col1 ) + + 70 * - col0 AND CAST( col0 AS SIGNED ) + - + col0
----

skipif mysql # not compatible
query III rowsort label-5765
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( - CAST ( NULL AS INTEGER ) ) * - - 1 * - CAST ( NULL AS REAL ) + + + 44 / 41 BETWEEN - - col0 * + ( + col1 ) + + 70 * - col0 AND CAST ( col0 AS INTEGER ) + - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5766
SELECT CAST( NULL AS SIGNED ) + + - 79 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5766
SELECT CAST ( NULL AS INTEGER ) + + - 79 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 58 * 56 + - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT ALL SUM( + + ( 4 ) ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-5768
SELECT ALL SUM ( + + ( 4 ) ) FROM tab0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT MAX( - - col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5769
SELECT MAX ( - - col0 ) AS col0 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT MAX( ALL + + 87 ) FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-5770
SELECT MAX ( ALL + + 87 ) FROM tab1 AS cor0
----
87

query I rowsort
SELECT 18 AS col0 FROM tab1 cor0
----
18
18
18

query II rowsort
SELECT col1, - col1 + col2 AS col0 FROM tab2 AS cor0
----
51
-28
67
-9
77
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT ALL + 64 + + 78 + MIN( ALL - col1 ) * + COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5773
SELECT ALL + 64 + + 78 + MIN ( ALL - col1 ) * + COUNT ( * ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT 87 AS col2 FROM tab1 AS cor0 WHERE 63 < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 7 ) + col0 + - + 6 col1 FROM tab2 AS cor0
----
47
65
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - - col2 col0 FROM tab1
----
144
147
159

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( ( - ( - col2 ) ) * + col1 * - col2 )
----

query I rowsort
SELECT ALL - col0 * 25 + ( - 73 ) FROM tab0
----
-2248
-2498
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT DISTINCT COUNT( ALL - col0 ) * + 92 - + 13 AS col1 FROM tab2
----
263

skipif mysql # not compatible
query I rowsort label-5779
SELECT DISTINCT COUNT ( ALL - col0 ) * + 92 - + 13 AS col1 FROM tab2
----
263

query I rowsort
SELECT 87 + col0 * col2 FROM tab2
----
1145
2647
4437

query I rowsort
SELECT DISTINCT + 31 - - + col0 * col0 * + 50 * 41 * col2 FROM tab1
----
1154371431
511876831
873863781

query II rowsort
SELECT ALL + col2 AS col0, col1 AS col0 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT + SUM( DISTINCT 25 ) FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-5783
SELECT + SUM ( DISTINCT 25 ) FROM tab2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5784
SELECT ALL * FROM tab2 cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5784
SELECT ALL * FROM tab2 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT - - 53 AS col1 FROM tab2 AS cor0
----
53
53
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5786
SELECT + + 54 AS col0, - CAST( - - 48 AS SIGNED ) FROM tab0 AS cor0
----
54
-48
54
-48
54
-48

skipif mysql # not compatible
query II rowsort label-5786
SELECT + + 54 AS col0, - CAST ( - - 48 AS INTEGER ) FROM tab0 AS cor0
----
54
-48
54
-48
54
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT ALL + COUNT( * ) + - COUNT( * ) AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5787
SELECT ALL + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT DISTINCT + COUNT( col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5788
SELECT DISTINCT + COUNT ( col0 ) FROM tab0
----
3

query I rowsort
SELECT + col1 * + ( - col2 ) * + - col2 + col1 * 72 * col1 * - col1 * col0 AS col0 FROM tab0 AS cor0
----
-573777351
-58008804
2817

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * - - col0 col1, + col0 * - + col1 col2 FROM tab2 AS cor0
----
2346
-2346
4928
-4928
5025
-5025

query I rowsort
SELECT ALL 66 * 4 AS col1 FROM tab1 cor0
----
264
264
264

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + ( - col0 ) * col1 <= - + 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT + COUNT( ALL + - col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5794
SELECT + COUNT ( ALL + - col1 ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5795
SELECT DISTINCT - CAST( NULL AS SIGNED ) col2, col1 AS col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5795
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col2, col1 AS col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

query II rowsort
SELECT DISTINCT - col0, col2 AS col1 FROM tab1
----
-51
96
-85
59
-91
68

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 5 * col1 * col1 < NULL
----

query I rowsort
SELECT DISTINCT 14 * - col0 FROM tab2
----
-1050
-644
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT DISTINCT MIN( DISTINCT - col2 ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-5799
SELECT DISTINCT MIN ( DISTINCT - col2 ) AS col2 FROM tab0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5800
SELECT COUNT( + CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5800
SELECT COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

query II rowsort
SELECT + 57 AS col1, col0 AS col2 FROM tab2 AS cor0
----
57
46
57
64
57
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT DISTINCT + COUNT( + col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5802
SELECT DISTINCT + COUNT ( + col0 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + + col0 * + 44 AS col2 FROM tab0 AS cor0
----
3828
4268
660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 + - col2 col0 FROM tab2
----
26
43
8

query I rowsort
SELECT ALL col1 * - - 50 AS col2 FROM tab0
----
1050
4050
50

query I rowsort
SELECT DISTINCT - col0 * + col1 + + 20 + - col1 AS col0 FROM tab2 AS cor0
----
-2377
-4985
-5072

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT DISTINCT 17 + - MIN( + col0 ) / - 98 FROM tab1 AS cor0 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5807
SELECT DISTINCT 17 + - MIN ( + col0 ) / - 98 FROM tab1 AS cor0 WHERE + col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT ALL - + COUNT( * ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5808
SELECT ALL - + COUNT ( * ) col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT col2 * - - col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT - MIN( ALL - + col2 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5810
SELECT - MIN ( ALL - + col2 ) AS col1 FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL + col1 + 94 * + + col1 FROM tab2 AS cor0
----
4845
6365
7315

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT COUNT( * ) * + - COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5812
SELECT COUNT ( * ) * + - COUNT ( * ) FROM tab0
----
-9

query I rowsort
SELECT col1 * + - col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT col1 - + + 8 AS col0 FROM tab2
----
43
59
69

query I rowsort
SELECT DISTINCT - 8 AS col1 FROM tab2 cor0
----
-8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - col0 AS col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT - MIN( ALL + col0 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-5818
SELECT - MIN ( ALL + col0 ) AS col0 FROM tab0
----
-15

query I rowsort
SELECT DISTINCT + + col0 AS col1 FROM tab2 WHERE NULL < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + + ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( + 52 ) <> col2 * - + 23 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + + col2 AS col2, + col0 AS col2 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5823
SELECT - col1 * - + 67 * - 21 + - 91 AS col1, - col2 AS col1 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-5823
SELECT - col1 * - + 67 * - 21 + - 91 AS col1, - col2 AS col1 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT ( + - 50 ) * COUNT( * ) FROM tab2 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-5824
SELECT ( + - 50 ) * COUNT ( * ) FROM tab2 AS cor0
----
-150

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE ( NULL ) <> col0
----

query I rowsort
SELECT - + col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT - + MAX( + col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5827
SELECT - + MAX ( + col1 ) AS col2 FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5828
SELECT ALL + CAST( - MIN( - col1 ) AS SIGNED ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5828
SELECT ALL + CAST ( - MIN ( - col1 ) AS INTEGER ) FROM tab2 AS cor0
----
77

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + ( col1 ) IN ( col1, + 77 * - 29 * + + col2, - - col2, + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 + + 7 + + - ( - + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT - MAX( DISTINCT + 52 ) AS col0 FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-5831
SELECT - MAX ( DISTINCT + 52 ) AS col0 FROM tab2 AS cor0
----
-52

query II rowsort
SELECT + - col2 AS col1, + col2 AS col0 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT - SUM( + col2 ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5833
SELECT - SUM ( + col2 ) AS col2 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-5834
SELECT - - COUNT( * ) AS col0, - 92 AS col1 FROM tab1 cor0
----
3
-92

skipif mysql # not compatible
query II rowsort label-5834
SELECT - - COUNT ( * ) AS col0, - 92 AS col1 FROM tab1 cor0
----
3
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-5835
SELECT DISTINCT COUNT( * ) AS col0, MIN( ALL col2 ) AS col2 FROM tab1 AS cor0
----
3
59

skipif mysql # not compatible
query II rowsort label-5835
SELECT DISTINCT COUNT ( * ) AS col0, MIN ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
3
59

query I rowsort
SELECT DISTINCT - 35 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-35

query II rowsort
SELECT + + col1 AS col2, - 12 FROM tab0 cor0
----
1
-12
21
-12
81
-12

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5839
SELECT col2 AS col2 FROM tab1 WHERE NOT CAST( + 38 AS SIGNED ) < - - col2
----

skipif mysql # not compatible
query I rowsort label-5839
SELECT col2 AS col2 FROM tab1 WHERE NOT CAST ( + 38 AS INTEGER ) < - - col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < + col1
----

query II rowsort
SELECT ALL - 87 * col2, - 37 AS col0 FROM tab1
----
-5133
-37
-5916
-37
-8352
-37

query II rowsort
SELECT ALL 42 * col1, + col1 FROM tab2
----
2142
51
2814
67
3234
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT - SUM( DISTINCT + 13 ) + - 35 AS col1 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-5843
SELECT - SUM ( DISTINCT + 13 ) + - 35 AS col1 FROM tab1 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT ALL - 68 * + + COUNT( * ) FROM tab2 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-5844
SELECT ALL - 68 * + + COUNT ( * ) FROM tab2 AS cor0
----
-204

onlyif mysql # DIV for integer division: 
query II rowsort label-5845
SELECT - - col1 + - + 72, col2 DIV - col2 AS col0 FROM tab2 AS cor0
----
-21
-1
-5
-1
5
-1

skipif mysql # not compatible
query II rowsort label-5845
SELECT - - col1 + - + 72, col2 / - col2 AS col0 FROM tab2 AS cor0
----
-21
-1
-5
-1
5
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * + - col2 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL BETWEEN + 40 AND NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 * - - col0 + - 46 * - col2 + - + ( + + col0 ) <= ( + col0 ) * + 23 * - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5850
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * - ( - - col0 ) NOT BETWEEN + CAST( + + 57 AS SIGNED ) + - 12 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5850
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * - ( - - col0 ) NOT BETWEEN + CAST ( + + 57 AS INTEGER ) + - 12 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - + col0 ) * - + ( + - 13 ) - + - col1 FROM tab0 AS cor0
----
-1110
-114
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT ALL MIN( DISTINCT + + col1 ) + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 18 < ( - col1 )
----
54

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL MIN ( DISTINCT + + col1 ) + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 18 < ( - col1 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT MAX( - col1 ) + - + 46 AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5853
SELECT MAX ( - col1 ) + - + 46 AS col1 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT + 45 - + col0 FROM tab0 AS cor0
----
-42
-52
30

query I rowsort
SELECT DISTINCT - col0 + + col0 + + col0 * - + col0 FROM tab0 cor0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5856
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * - col2 * + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5856
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * - col2 * + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT + + col1 FROM tab1 WHERE + col0 + 37 >= 62
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5859
SELECT ALL - SUM( ALL col2 ) - + 10, + 73 AS col2 FROM tab2 WHERE NULL IS NULL
----
-131
73

skipif mysql # not compatible
query II rowsort label-5859
SELECT ALL - SUM ( ALL col2 ) - + 10, + 73 AS col2 FROM tab2 WHERE NULL IS NULL
----
-131
73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5860
SELECT DISTINCT + COUNT( + col1 ) - COUNT( ALL - 49 ) AS col2, - CAST( NULL AS DECIMAL ) * - - COUNT( * ) AS col0 FROM tab1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5860
SELECT DISTINCT + COUNT ( + col1 ) - COUNT ( ALL - 49 ) AS col2, - CAST ( NULL AS REAL ) * - - COUNT ( * ) AS col0 FROM tab1
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5861
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) - - + 84 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) - - + 84 FROM tab0
----
81

query I rowsort
SELECT + + ( - - col2 ) + + col2 FROM tab0 WHERE ( col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5863
SELECT DISTINCT 15 DIV col1 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5863
SELECT DISTINCT 15 / col1 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT MIN( DISTINCT + col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-5864
SELECT MIN ( DISTINCT + col2 ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-5865
SELECT COUNT( * ) * - - COUNT( * ) col1, + COUNT( * ) AS col2 FROM tab2
----
9
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5865
SELECT COUNT ( * ) * - - COUNT ( * ) col1, + COUNT ( * ) AS col2 FROM tab2
----
9
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5866
SELECT DISTINCT + 86 DIV col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5866
SELECT DISTINCT + 86 / col2 FROM tab2
----
1
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT + MAX( ALL 3 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5867
SELECT + MAX ( ALL 3 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5868
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col2 + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col2 + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + 56 < + 51 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5870
SELECT - col0 / col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5870
SELECT - col0 / col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT + 97 NOT BETWEEN + - 39 - 61 AND + - 14
----

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> 43
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 col2 FROM tab1
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5874
SELECT + CAST( NULL AS SIGNED ) AS col0, 25 AS col0 FROM tab1
----
NULL
25
NULL
25
NULL
25

skipif mysql # not compatible
query II rowsort label-5874
SELECT + CAST ( NULL AS INTEGER ) AS col0, 25 AS col0 FROM tab1
----
NULL
25
NULL
25
NULL
25

query I rowsort
SELECT - AVG ( - col2 ) AS col1 FROM tab1 WHERE NOT 83 + + + ( + 24 ) BETWEEN - col0 AND NULL
----
NULL

query I rowsort
SELECT DISTINCT - 74 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-74

query I rowsort
SELECT col0 * 97 * + col1 FROM tab0 AS cor0
----
117855
177219
9409

query II rowsort
SELECT DISTINCT + - col0 AS col1, col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT COUNT( * ) * - COUNT( * ) * + 46 - + - MAX( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-333

skipif mysql # not compatible
query I rowsort label-5879
SELECT COUNT ( * ) * - COUNT ( * ) * + 46 - + - MAX ( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-333

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT DISTINCT - MAX( - + 85 ) AS col0 FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-5880
SELECT DISTINCT - MAX ( - + 85 ) AS col0 FROM tab0 AS cor0
----
85

query I rowsort
SELECT ALL + + 56 FROM tab1 AS cor0
----
56
56
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5882
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( - col0 AS SIGNED ) + - + 38 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5882
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( - col0 AS INTEGER ) + - + 38 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 + + col2 + + 24 AS col1 FROM tab1 AS cor0
----
142
160
216

query I rowsort
SELECT DISTINCT - 79 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5885
SELECT + COUNT( * ) DIV + + 90 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5885
SELECT + COUNT ( * ) / + + 90 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + col1 + - - col1 AS col1 FROM tab2
----
102
134
154

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT + 87 * - col0 * + - col0 FROM tab2
----
184092
356352
489375

query I rowsort
SELECT - 53 * - col2 FROM tab2
----
1219
2120
3074

query II rowsort
SELECT + col2 AS col0, + col2 + + 81 AS col1 FROM tab0
----
10
91
47
128
99
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, col2 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5892
SELECT DISTINCT 55 * + COUNT( * ) + + CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5892
SELECT DISTINCT 55 * + COUNT ( * ) + + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL col2 + 68 AS col0 FROM tab0 AS cor0
----
115
167
78

query I rowsort
SELECT DISTINCT - col2 + - + 25 FROM tab2 AS cor0
----
-48
-65
-83

query I rowsort
SELECT - col0 + - 58 * - + col0 AS col0 FROM tab0 cor0
----
4959
5529
855

query I rowsort
SELECT + col1 + + 86 AS col0 FROM tab0
----
107
167
87

query I rowsort
SELECT - col0 + - - col2 * - - 60 AS col0 FROM tab1
----
3455
3989
5709

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 73 IS NOT NULL
----

query I rowsort
SELECT 53 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + - 3 AS col1, + col2 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
44
47
7
10
96
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT - + ( + + COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5901
SELECT - + ( + + COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - 27 + - col0 + - + 57 * + 63 FROM tab2 AS cor0
----
-3664
-3682
-3693

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT + + COUNT( - - col1 ) * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5903
SELECT + + COUNT ( - - col1 ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
9

query I rowsort
SELECT ALL + + 99 * + col1 - + col1 + col2 FROM tab2 AS cor0
----
5021
6624
7586

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT DISTINCT + + COUNT( 45 ) + + COUNT( + 35 ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5906
SELECT DISTINCT + + COUNT ( 45 ) + + COUNT ( + 35 ) FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-5907
SELECT DISTINCT + COUNT( DISTINCT - + 8 ) - + COUNT( * ) * 78 + COUNT( * ), - 65 AS col1 FROM tab0 AS cor0
----
-230
-65

skipif mysql # not compatible
query II rowsort label-5907
SELECT DISTINCT + COUNT ( DISTINCT - + 8 ) - + COUNT ( * ) * 78 + COUNT ( * ), - 65 AS col1 FROM tab0 AS cor0
----
-230
-65

query I rowsort
SELECT - col1 - - - col1 AS col2 FROM tab2
----
-102
-134
-154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5909
SELECT + CAST( + col0 AS SIGNED ) - 71 AS col1 FROM tab1
----
-20
14
20

skipif mysql # not compatible
query I rowsort label-5909
SELECT + CAST ( + col0 AS INTEGER ) - 71 AS col1 FROM tab1
----
-20
14
20

query I rowsort
SELECT + col0 - - 39 AS col0 FROM tab2
----
103
114
85

query I rowsort
SELECT + 78 - + + 20 AS col2 FROM tab0
----
58
58
58

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + - col2 AND + 41
----

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT + - col1 + + 12 + + 83 IS NOT NULL
----

query II rowsort
SELECT ALL - - 87 AS col2, col0 FROM tab0 cor0
----
87
15
87
87
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 col2 FROM tab2 AS cor0
----
34

query II rowsort
SELECT col1 AS col2, - col0 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5918
SELECT - - col0, CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-5918
SELECT - - col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5919
SELECT COUNT( * ) * - COUNT( * ) AS col2, ( - + MAX( ALL - + 27 ) ) FROM tab0
----
-9
27

skipif mysql # not compatible
query II rowsort label-5919
SELECT COUNT ( * ) * - COUNT ( * ) AS col2, ( - + MAX ( ALL - + 27 ) ) FROM tab0
----
-9
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT MAX( DISTINCT + - col1 ) * - 13 col1 FROM tab2 WHERE NOT ( - col1 = - + col1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5920
SELECT MAX ( DISTINCT + - col1 ) * - 13 col1 FROM tab2 WHERE NOT ( - col1 = - + col1 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5921
SELECT ALL COUNT( * ) DIV - + ( - + CAST( - SUM( DISTINCT - col1 ) AS SIGNED ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5921
SELECT ALL COUNT ( * ) / - + ( - + CAST ( - SUM ( DISTINCT - col1 ) AS INTEGER ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
0

query I rowsort
SELECT ALL + 38 * - 13 + 14 FROM tab0 cor0
----
-480
-480
-480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - 44 ) col0 FROM tab0 AS cor0
----
44

query I rowsort
SELECT DISTINCT col1 * - + col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT ALL - - 52 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) > + + col2
----

query I rowsort
SELECT + - col1 FROM tab2 AS cor0 WHERE NOT NULL >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT ALL + - COUNT( - 28 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5927
SELECT ALL + - COUNT ( - 28 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5928
SELECT - + CAST( + - CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5928
SELECT - + CAST ( + - CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + 14 + col2 AS col1 FROM tab1 AS cor0
----
110
73
82

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NULL IS NULL
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 93 IS NOT NULL
----

query I rowsort
SELECT ALL + ( - 73 ) FROM tab2
----
-73
-73
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5933
SELECT DISTINCT ( + CAST( col2 AS SIGNED ) ) AS col2, col1 AS col1 FROM tab2
----
23
51
40
77
58
67

skipif mysql # not compatible
query II rowsort label-5933
SELECT DISTINCT ( + CAST ( col2 AS INTEGER ) ) AS col2, col1 AS col1 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT + 53 * col0 * - col1 FROM tab0 AS cor0
----
-5141
-64395
-96831

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT ALL - COUNT( * ) - - - 8 * - - 31 - 42 FROM tab0
----
-293

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL - COUNT ( * ) - - - 8 * - - 31 - 42 FROM tab0
----
-293

query I rowsort
SELECT DISTINCT - ( - col2 ) - col1 AS col2 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT DISTINCT ( col2 ) - col0 AS col1 FROM tab1
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT + COUNT( * ) - - 14 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-5938
SELECT + COUNT ( * ) - - 14 FROM tab1 AS cor0
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + col2 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 + col0 + col0 * + - ( col0 ) AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + 93 col1 FROM tab1 AS cor0
----
46
79
88

query I rowsort
SELECT ALL - 20 + + col0 AS col1 FROM tab0 cor0
----
-5
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5943
SELECT DISTINCT + CAST( - + 54 AS SIGNED ) + col1 AS col1 FROM tab0 AS cor0
----
-33
-53
27

skipif mysql # not compatible
query I rowsort label-5943
SELECT DISTINCT + CAST ( - + 54 AS INTEGER ) + col1 AS col1 FROM tab0 AS cor0
----
-33
-53
27

query I rowsort
SELECT - + 91 * col0 + - col2 * col0 * + col2 AS col2 FROM tab1 AS cor0
----
-303620
-429065
-474657

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5945
SELECT DISTINCT 5 DIV + 80 * - - col1 * - - col2 AS col1, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5945
SELECT DISTINCT 5 / + 80 * - - col1 * - - col2 AS col1, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
0
NULL

query I rowsort
SELECT DISTINCT + 73 AS col2 FROM tab0 WHERE NULL > col1
----

query I rowsort
SELECT DISTINCT + 36 AS col2 FROM tab2
----
36

query I rowsort
SELECT ALL col1 * + 42 FROM tab1
----
1974
210
588

query I rowsort
SELECT ALL 82 + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 / 33 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT ALL 25 * + - 97 * + MIN( col0 ) FROM tab0 cor0
----
-36375

skipif mysql # not compatible
query I rowsort label-5950
SELECT ALL 25 * + - 97 * + MIN ( col0 ) FROM tab0 cor0
----
-36375

onlyif mysql # aggregate syntax: 
query II rowsort label-5951
SELECT - 50 AS col2, + MIN( + col2 ) FROM tab1 WHERE NOT - - col0 IS NOT NULL
----
-50
NULL

skipif mysql # not compatible
query II rowsort label-5951
SELECT - 50 AS col2, + MIN ( + col2 ) FROM tab1 WHERE NOT - - col0 IS NOT NULL
----
-50
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5952
SELECT - - CAST( + 7 AS SIGNED ) + col0 col1 FROM tab1 cor0
----
58
92
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5952
SELECT - - CAST ( + 7 AS INTEGER ) + col0 col1 FROM tab1 cor0
----
58
92
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5953
SELECT ALL + COUNT( * ) + - + MIN( - CAST( - 43 AS SIGNED ) ) + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5953
SELECT ALL + COUNT ( * ) + - + MIN ( - CAST ( - 43 AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN col0 + + col0 * - col0 AND col0
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5955
SELECT ALL * FROM tab2 AS cor0 WHERE + 53 NOT IN ( - + 32 + + + col1, + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5955
SELECT ALL * FROM tab2 AS cor0 WHERE + 53 NOT IN ( - + 32 + + + col1, + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col0 + - 80 AS col2 FROM tab1 cor0
----
-29
11
5

query II rowsort
SELECT DISTINCT + 62 AS col2, - col2 AS col0 FROM tab0 AS cor0
----
62
-10
62
-47
62
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT + - MIN( DISTINCT - 88 ) FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-5958
SELECT + - MIN ( DISTINCT - 88 ) FROM tab1 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-5959
SELECT COUNT( * ) * + - COUNT( * ) AS col0, - 93 AS col0 FROM tab0
----
-9
-93

skipif mysql # not compatible
query II rowsort label-5959
SELECT COUNT ( * ) * + - COUNT ( * ) AS col0, - 93 AS col0 FROM tab0
----
-9
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-5960
SELECT col0 * col0 DIV col0 AS col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5960
SELECT col0 * col0 / col0 AS col2 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5961
SELECT col1 DIV + 88 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5961
SELECT col1 / + 88 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + ( + + 78 ) FROM tab2
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT - 65 - + COUNT( * ) FROM tab1 WHERE NULL <> NULL
----
-65

skipif mysql # not compatible
query I rowsort label-5963
SELECT - 65 - + COUNT ( * ) FROM tab1 WHERE NULL <> NULL
----
-65

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT COUNT( * ) - - COUNT( * ) + + MAX( ALL - col0 ) + - COUNT( * ) FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-5966
SELECT COUNT ( * ) - - COUNT ( * ) + + MAX ( ALL - col0 ) + - COUNT ( * ) FROM tab1 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT ALL 85 - - COUNT( ALL - 67 ) AS col1 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL 85 - - COUNT ( ALL - 67 ) AS col1 FROM tab0
----
88

query I rowsort
SELECT - 84 + + 20 FROM tab1, tab2 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT DISTINCT - ( - ( col2 ) ) AS col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL 12 * + col2 FROM tab0 AS cor0
----
1188
120
564

query II rowsort
SELECT col2, - col2 AS col1 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT - 92 * col1 AS col1 FROM tab2 AS cor0
----
-4692
-6164
-7084

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT DISTINCT + COUNT( * ) * SUM( + - 77 ) FROM tab2 AS cor0
----
-693

skipif mysql # not compatible
query I rowsort label-5973
SELECT DISTINCT + COUNT ( * ) * SUM ( + - 77 ) FROM tab2 AS cor0
----
-693

query I rowsort
SELECT ALL + + 68 AS col0 FROM tab1 AS cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT ALL - MIN( - col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL - MIN ( - col1 ) AS col0 FROM tab2
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5976
SELECT 15 * COUNT( * ) DIV - 39 AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5976
SELECT 15 * COUNT ( * ) / - 39 AS col2 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT DISTINCT - MIN( + - col0 ) col0 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5977
SELECT DISTINCT - MIN ( + - col0 ) col0 FROM tab2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5978
SELECT SUM( - 32 ) / + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 + - 39 BETWEEN - CAST( + - ( + - 79 ) AS SIGNED ) + + col1 AND 25 + - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5978
SELECT SUM ( - 32 ) / + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 + - 39 BETWEEN - CAST ( + - ( + - 79 ) AS INTEGER ) + + col1 AND 25 + - - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT DISTINCT - 38 * + 94 * + + COUNT( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
-10716

skipif mysql # not compatible
query I rowsort label-5979
SELECT DISTINCT - 38 * + 94 * + + COUNT ( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
-10716

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 13 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT - ( - COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5981
SELECT - ( - COUNT ( * ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5982
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) FROM tab1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 75 * 2 * col0 / - col2 + 46 = + ( + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * - - col1 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT + COUNT( * ) * - MAX( ALL - + col1 ) AS col2 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5985
SELECT + COUNT ( * ) * - MAX ( ALL - + col1 ) AS col2 FROM tab1 AS cor0
----
15

query I rowsort
SELECT DISTINCT + + col2 * 77 FROM tab2 AS cor0
----
1771
3080
4466

query II rowsort
SELECT ALL - col2 + - - 41, + col2 * + col1 * + col0 + + + 45 AS col2 FROM tab1 AS cor0
----
-18
25120
-27
290881
-55
68589

query I rowsort
SELECT 66 AS col0 FROM tab2 cor0
----
66
66
66

query I rowsort
SELECT DISTINCT - + col2 FROM tab2 AS cor0 WHERE NOT - col2 + - - col0 IS NULL AND col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col0 ) + 95 col2 FROM tab0 cor0
----
110
182
192

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT DISTINCT 23 * COUNT( * ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-5991
SELECT DISTINCT 23 * COUNT ( * ) FROM tab1
----
69

query I rowsort
SELECT ALL col2 + col0 + + col2 * + col0 FROM tab1
----
5043
5159
6347

onlyif mysql # aggregate syntax: 
query II rowsort label-5993
SELECT DISTINCT + COUNT( * ) AS col1, - ( - 44 ) FROM tab2
----
3
44

skipif mysql # not compatible
query II rowsort label-5993
SELECT DISTINCT + COUNT ( * ) AS col1, - ( - 44 ) FROM tab2
----
3
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT COUNT( * ) + + MIN( + col1 ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-5994
SELECT COUNT ( * ) + + MIN ( + col1 ) FROM tab1
----
8

query I rowsort
SELECT ALL col1 * - - 13 * + col0 FROM tab1
----
5525
55601
9282

query I rowsort
SELECT - col0 + + 71 AS col0 FROM tab0
----
-16
-26
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT + 31 + - + COUNT( * ) AS col2 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-5997
SELECT + 31 + - + COUNT ( * ) AS col2 FROM tab1
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 30 col2 FROM tab2 AS cor0
----
-21
-37
-47

query I rowsort
SELECT - 78 AS col1 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN 38 AND NULL
----

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT ( NULL ) <= col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6001
SELECT + COUNT( col1 ) DIV + ( ( + ( - COUNT( * ) ) ) ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-6001
SELECT + COUNT ( col1 ) / + ( ( + ( - COUNT ( * ) ) ) ) AS col2 FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6002
SELECT + col0 DIV 71 AS col1 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6002
SELECT + col0 / 71 AS col1 FROM tab0
----
0
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6003
SELECT - 80 DIV + COUNT( + col1 ) AS col0 FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-6003
SELECT - 80 / + COUNT ( + col1 ) AS col0 FROM tab2
----
-26

query I rowsort
SELECT ALL col2 * 75 AS col1 FROM tab2
----
1725
3000
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT - COUNT( * ) + + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6005
SELECT - COUNT ( * ) + + COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT ALL 41 + + col2 * col0 AS col2 FROM tab2
----
1099
2601
4391

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6007
SELECT DISTINCT * FROM tab0 WHERE ( - ( + CAST( - col0 AS SIGNED ) ) ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-6007
SELECT DISTINCT * FROM tab0 WHERE ( - ( + CAST ( - col0 AS INTEGER ) ) ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 BETWEEN col2 + 54 AND 50
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE + 14 IN ( col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6011
SELECT col0 - col1 col2 FROM tab0 WHERE NOT 95 IN ( 38 + + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6011
SELECT col0 - col1 col2 FROM tab0 WHERE NOT 95 IN ( 38 + + CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT ALL - col1 * + col0 AS col1 FROM tab1 WHERE ( col1 * - col1 - 45 ) BETWEEN NULL AND 68
----

query I rowsort
SELECT - 82 AS col1 FROM tab1
----
-82
-82
-82

query I rowsort
SELECT DISTINCT - 5 + 73 AS col1 FROM tab2
----
68

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 / ( col1 ) + 33 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6016
SELECT + ( CAST( - col0 AS SIGNED ) ) AS col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6016
SELECT + ( CAST ( - col0 AS INTEGER ) ) AS col0 FROM tab1
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 4 = ( ( col2 ) ) / 47 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT ALL SUM( DISTINCT col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL SUM ( DISTINCT col1 ) FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT - MAX( 8 ) FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-6019
SELECT - MAX ( 8 ) FROM tab1
----
-8

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 71 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col2 <= - 83
----

query I rowsort
SELECT ALL - 32 AS col1 FROM tab0
----
-32
-32
-32

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( 33 * col0 ) AND col0
----

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 ) <> + col0
----

query I rowsort
SELECT ALL + col0 * + col1 - col2 AS col0 FROM tab2
----
2323
4888
4967

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6026
SELECT ALL * FROM tab2 WHERE ( CAST( col1 AS SIGNED ) ) >= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-6026
SELECT ALL * FROM tab2 WHERE ( CAST ( col1 AS INTEGER ) ) >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6027
SELECT - CAST( ( + col1 ) AS SIGNED ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6027
SELECT - CAST ( ( + col1 ) AS INTEGER ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT ALL col0 * 82 - col0 FROM tab1
----
4131
6885
7371

query I rowsort
SELECT DISTINCT - 16 * 7 + 94 FROM tab1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT ALL COUNT( DISTINCT 50 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6030
SELECT ALL COUNT ( DISTINCT 50 ) AS col0 FROM tab1
----
1

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT + col2 * - col2 + 59 BETWEEN ( 29 ) AND NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT ALL COUNT( * ) * 33 AS col1 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL COUNT ( * ) * 33 AS col1 FROM tab2 AS cor0
----
99

query I rowsort
SELECT + col0 + 8 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
54
72
83

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-51
-67
-77

query I rowsort
SELECT ALL - 85 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT ALL - MAX( - col2 ) FROM tab1 WHERE ( NULL ) NOT BETWEEN 6 AND ( 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL - MAX ( - col2 ) FROM tab1 WHERE ( NULL ) NOT BETWEEN 6 AND ( 10 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 col2 FROM tab2 cor0 WHERE NULL IS NULL
----
45
45
45

query I rowsort
SELECT ALL - - col1 + - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( 14 ) * 39 col2 FROM tab0 AS cor0
----
546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 88 + col2 * - col1 col0 FROM tab1 AS cor0 WHERE NULL < col0 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + + 13 col1 FROM tab0 cor0
----
112
23
60

query I rowsort
SELECT ALL col1 + + ( ( col0 ) ) * col1 AS col2 FROM tab0
----
1296
1848
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6043
SELECT + 1 * + CAST( NULL AS SIGNED ) * col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6043
SELECT + 1 * + CAST ( NULL AS INTEGER ) * col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + + col1 ) - - col2 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT 48 FROM tab2 WHERE ( NULL ) NOT BETWEEN + 94 + - 64 * col2 AND col2 - + col0
----

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NULL < ( col2 )
----

query I rowsort
SELECT DISTINCT 5 / - col2 AS col0 FROM tab0 WHERE NOT ( - 51 ) < NULL
----

query I rowsort
SELECT + 86 - ( - 24 ) AS col2 FROM tab0
----
110
110
110

query I rowsort
SELECT - 66 FROM tab2 WHERE col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab2 WHERE NOT 50 IN ( col0 )
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6051
SELECT - col2 DIV - - col0 + col2 DIV 40 FROM tab0 AS cor0
----
-2
0
1

skipif mysql # not compatible
query I rowsort label-6051
SELECT - col2 / - - col0 + col2 / 40 FROM tab0 AS cor0
----
-2
0
1

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( ( + 82 ) ) + col2 col1 FROM tab2 AS cor0
----
105
122
140

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 43 + - col1 >= ( - 37 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2, col1 * + 20 FROM tab1
----
59
100
68
940
96
280

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT COUNT( * ) * + 9 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
81

skipif mysql # not compatible
query I rowsort label-6057
SELECT COUNT ( * ) * + 9 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
81

query I rowsort
SELECT + + 45 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 28 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6061
SELECT ALL + - COUNT( * ) AS col2, CAST( + 88 AS SIGNED ) FROM tab2 AS cor0
----
-3
88

skipif mysql # not compatible
query II rowsort label-6061
SELECT ALL + - COUNT ( * ) AS col2, CAST ( + 88 AS INTEGER ) FROM tab2 AS cor0
----
-3
88

query I rowsort
SELECT + 93 AS col2 FROM tab1 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6064
SELECT + col2 * + CAST( 59 AS SIGNED ) + - col2 FROM tab0 AS cor0 WHERE NOT 16 + - CAST( NULL AS SIGNED ) IS NOT NULL
----
2726
5742
580

skipif mysql # not compatible
query I rowsort label-6064
SELECT + col2 * + CAST ( 59 AS INTEGER ) + - col2 FROM tab0 AS cor0 WHERE NOT 16 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
2726
5742
580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6065
SELECT ALL + COUNT( * ) AS col2, + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-6065
SELECT ALL + COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
3
NULL

query I rowsort
SELECT + - ( + + 47 ) AS col0 FROM tab1 AS cor0
----
-47
-47
-47

query I rowsort
SELECT + ( + col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 >= + - col2
----

query I rowsort
SELECT col1 * - col0 - col0 AS col1 FROM tab2 AS cor0
----
-2392
-4992
-5100

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6070
SELECT - col1 DIV col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6070
SELECT - col1 / col2 / + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * 92 AS col2 FROM tab2 WHERE NOT col2 + col0 BETWEEN ( 70 * col1 ) AND - 58
----
4692
6164
7084

query I rowsort
SELECT 74 * - col1 * + 65 FROM tab2
----
-245310
-322270
-370370

query I rowsort
SELECT DISTINCT - - col0 + - col1 FROM tab1 WHERE NOT ( NULL ) > col1
----

query I rowsort
SELECT + + col2 + 74 FROM tab2 WHERE NOT + - 12 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6075
SELECT * FROM tab0 WHERE NOT - col1 * - + CAST( - ( col2 ) AS SIGNED ) - + 89 NOT IN ( 43 )
----

skipif mysql # not compatible
query III rowsort label-6075
SELECT * FROM tab0 WHERE NOT - col1 * - + CAST ( - ( col2 ) AS INTEGER ) - + 89 NOT IN ( 43 )
----

query I rowsort
SELECT DISTINCT col0 * + col1 * + col2 AS col0 FROM tab1
----
25075
290836
68544

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 40 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT - 66 NOT IN ( 71 * ( 17 ) + + col2 / 15 )
----

query I rowsort
SELECT 30 AS col0 FROM tab0 AS cor0 WHERE NOT ( + 41 ) IS NULL
----
30
30
30

query I rowsort
SELECT ALL + 84 + - - 33 FROM tab0 AS cor0
----
117
117
117

query I rowsort
SELECT - 40 + + 33 FROM tab2 AS cor0 WHERE NOT + 51 > ( + col1 )
----
-7
-7
-7

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) IN ( + col1 + + col0 * col2 )
----

query I rowsort
SELECT 67 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6084
SELECT DISTINCT + COUNT( * ) * + ( MAX( ALL CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab0 WHERE NOT NULL BETWEEN ( + 48 / + 84 ) AND - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6084
SELECT DISTINCT + COUNT ( * ) * + ( MAX ( ALL CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab0 WHERE NOT NULL BETWEEN ( + 48 / + 84 ) AND - col2
----
NULL

query I rowsort
SELECT 50 * + col2 * + col0 AS col2 FROM tab2
----
128000
217500
52900

query I rowsort
SELECT + - 82 - + ( 94 ) FROM tab1 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT ALL - COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6087
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6088
SELECT ( + col2 ) * + col0 / - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6088
SELECT ( + col2 ) * + col0 / - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6089
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT CAST( + + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6089
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT CAST ( + + col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT + - COUNT( * ) * 41 AS col1 FROM tab2 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-6090
SELECT + - COUNT ( * ) * 41 AS col1 FROM tab2 AS cor0
----
-123

query I rowsort
SELECT - - 39 - col2 * 33 AS col2 FROM tab2 cor0
----
-1281
-1875
-720

query I rowsort
SELECT 55 * 21 * + - 68 - 0 + col0 + 93 + 12 FROM tab2 AS cor0
----
-78360
-78371
-78389

query I rowsort
SELECT DISTINCT + col2 + + 94 FROM tab0 AS cor0
----
104
141
193

query I rowsort
SELECT + col1 + - + col0 * - 71 AS col2 FROM tab2 cor0
----
3317
4621
5392

query I rowsort
SELECT DISTINCT + ( + 76 ) + - col2 AS col0 FROM tab1 AS cor0
----
-20
17
8

query II rowsort
SELECT ALL + 12 - 16 + + + 41 AS col2, col1 FROM tab1 cor0
----
37
14
37
47
37
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6097
SELECT - 58 * COUNT( * ) FROM tab2 WHERE + 93 NOT BETWEEN NULL AND ( 97 + - + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6097
SELECT - 58 * COUNT ( * ) FROM tab2 WHERE + 93 NOT BETWEEN NULL AND ( 97 + - + CAST ( NULL AS INTEGER ) )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 72 IS NOT NULL
----

query I rowsort
SELECT + col1 * + ( + col1 ) * + 51 * col2 + - - 92 + - col1 FROM tab2
----
12095175
13278487
3051014

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6100
SELECT DISTINCT col1 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6100
SELECT DISTINCT col1 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6101
SELECT - 3 + - - col0 DIV + + col2 FROM tab0
----
-3
-3
5

skipif mysql # not compatible
query I rowsort label-6101
SELECT - 3 + - - col0 / + + col2 FROM tab0
----
-3
-3
5

query I rowsort
SELECT + + col0 FROM tab2 WHERE + - 41 NOT BETWEEN col2 AND + col0
----
46
64
75

query I rowsort
SELECT DISTINCT - + 7 FROM tab2 WHERE NOT + col2 - - col0 > + 78
----
-7

query II rowsort
SELECT 6, col2 FROM tab2
----
6
23
6
40
6
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 8, 23 * + col2 col0 FROM tab0
----
8
1081
8
2277
8
230

query I rowsort
SELECT ALL - 11 AS col2 FROM tab0
----
-11
-11
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6107
SELECT ALL + 17 * - - 35, + 74 DIV - COUNT( * ) AS col1 FROM tab0 cor0
----
595
-24

skipif mysql # not compatible
query II rowsort label-6107
SELECT ALL + 17 * - - 35, + 74 / - COUNT ( * ) AS col1 FROM tab0 cor0
----
595
-24

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT + col0 >= + col1
----
-81

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab0 AS cor1 ON NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL - ( + + col2 ) + - 27 * col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 43 + + 87 AND ( - - col0 + + - 68 )
----

query I rowsort
SELECT DISTINCT 52 AS col1 FROM tab1 cor0
----
52

query I rowsort
SELECT ALL + col0 * + col0 * 83 FROM tab0 AS cor0
----
18675
628227
780947

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( col2, col2 + col2 - - + col1 + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 32 > + - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 80 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * 48 AS col2 FROM tab2
----
2448
3216
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT DISTINCT + COUNT( * ) * MAX( + col0 ) FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-6117
SELECT DISTINCT + COUNT ( * ) * MAX ( + col0 ) FROM tab0
----
291

query II rowsort
SELECT + ( + 82 ) * - col1, + col2 AS col0 FROM tab0
----
-1722
10
-6642
47
-82
99

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NOT + 45 IS NULL
----
10
47
99

query I rowsort
SELECT 43 * + col0 AS col1 FROM tab0
----
3741
4171
645

query I rowsort
SELECT - col0 + + 16 FROM tab2 WHERE NOT 19 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6122
SELECT ALL + ( 13 ) DIV - + 58 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6122
SELECT ALL + ( 13 ) / - + 58 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 * + 77 AS col1 FROM tab0
----
1155
6699
7469

query I rowsort
SELECT + 74 * 99 AS col1 FROM tab1
----
7326
7326
7326

query II rowsort
SELECT 72, col2 AS col1 FROM tab0
----
72
10
72
47
72
99

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 - col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6127
SELECT DISTINCT + COUNT( * ) DIV COUNT( * ) * - + 43 DIV - CAST( COUNT( * ) AS SIGNED ) + + + ( 73 ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-6127
SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) * - + 43 / - CAST ( COUNT ( * ) AS INTEGER ) + + + ( 73 ) FROM tab2
----
87

query II rowsort
SELECT ALL 54, col1 AS col1 FROM tab2 cor0
----
54
51
54
67
54
77

query I rowsort
SELECT + - 39 + - - 80 FROM tab1 AS cor0
----
41
41
41

query I rowsort
SELECT ALL + 69 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query III rowsort
SELECT * FROM tab0 WHERE ( 72 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT ALL MAX( ALL + + col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL MAX ( ALL + + col0 ) AS col2 FROM tab0 AS cor0
----
97

query I rowsort
SELECT DISTINCT + col2 + - - col1 FROM tab2 cor0
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6134
SELECT DISTINCT col0 * - col1 * + CAST( col0 AS SIGNED ) * 92 + col0 FROM tab2 AS cor0
----
-29016000
-34672425
-9928226

skipif mysql # not compatible
query I rowsort label-6134
SELECT DISTINCT col0 * - col1 * + CAST ( col0 AS INTEGER ) * 92 + col0 FROM tab2 AS cor0
----
-29016000
-34672425
-9928226

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 = col0 * col2 + col0 - + col1 + - 40
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6136
SELECT ALL + - CAST( NULL AS SIGNED ) + + + SUM( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6136
SELECT ALL + - CAST ( NULL AS INTEGER ) + + + SUM ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT DISTINCT COUNT( - - col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6137
SELECT DISTINCT COUNT ( - - col2 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6138
SELECT DISTINCT - CAST( - col0 AS SIGNED ) + 34 AS col1 FROM tab0 AS cor0
----
121
131
49

skipif mysql # not compatible
query I rowsort label-6138
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) + 34 AS col1 FROM tab0 AS cor0
----
121
131
49

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 81 IS NULL OR NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT DISTINCT MIN( + 59 ) * + 82 + - - COUNT( * ) FROM tab0 AS cor0
----
4841

skipif mysql # not compatible
query I rowsort label-6140
SELECT DISTINCT MIN ( + 59 ) * + 82 + - - COUNT ( * ) FROM tab0 AS cor0
----
4841

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 7 - + col1 / col2 NOT IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT IN ( col0 )
----

query I rowsort
SELECT DISTINCT - + col0 AS col2 FROM tab2 cor0 WHERE + col2 + col0 <> col1
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6144
SELECT + - COUNT( * ) + + 55 FROM tab0 WHERE ( NULL ) IN ( col2, CAST( NULL AS SIGNED ), col2, 85 )
----
55

skipif mysql # not compatible
query I rowsort label-6144
SELECT + - COUNT ( * ) + + 55 FROM tab0 WHERE ( NULL ) IN ( col2, CAST ( NULL AS INTEGER ), col2, 85 )
----
55

query I rowsort
SELECT + 21 FROM tab1 WHERE - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 - + 85 col0 FROM tab0
----
-85

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 48 * + col1 + - + col0 * + col0 = - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6148
SELECT + ( + COUNT( * ) ) * 91 DIV + 16 FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-6148
SELECT + ( + COUNT ( * ) ) * 91 / + 16 FROM tab0 AS cor0
----
17

query I rowsort
SELECT + + col1 * - + col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 > + - col1
----

query I rowsort
SELECT + - col2 * - + col1 * 96 AS col2 FROM tab1 AS cor0
----
129024
28320
306816

query I rowsort
SELECT col2 FROM tab0 WHERE NOT - 81 IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query II rowsort
SELECT ALL 62 AS col0, - 45 FROM tab0
----
62
-45
62
-45
62
-45

query I rowsort
SELECT DISTINCT - 98 * + col1 FROM tab2 cor0
----
-4998
-6566
-7546

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT ALL COUNT( * ) * + + 30 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL COUNT ( * ) * + + 30 FROM tab1 AS cor0
----
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6157
SELECT - CAST( NULL AS DECIMAL ) * + AVG ( DISTINCT - - col1 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6157
SELECT - CAST ( NULL AS REAL ) * + AVG ( DISTINCT - - col1 ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6158
SELECT DISTINCT - col0 DIV + 19 AS col1 FROM tab0 cor0
----
-4
-5
0

skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT - col0 / + 19 AS col1 FROM tab0 cor0
----
-4
-5
0

query I rowsort
SELECT - - col1 * - + col2 AS col0 FROM tab1 cor0
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT + col2 * + 44 AS col0 FROM tab1 AS cor0
----
2596
2992
4224

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + ( + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1 AS col0, + 0 FROM tab2 AS cor0
----
51
0
67
0
77
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT + + COUNT( * ) * 96 FROM tab2 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-6164
SELECT + + COUNT ( * ) * 96 FROM tab2 AS cor0
----
288

query I rowsort
SELECT DISTINCT + + col1 * - + 71 AS col2 FROM tab2 AS cor0
----
-3621
-4757
-5467

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT - 73 * - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-6166
SELECT - 73 * - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-219

query I rowsort
SELECT ALL col1 + - col0 + col1 * + col0 FROM tab2 AS cor0
----
2351
4941
5017

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT col2 IS NULL )
----

query I rowsort
SELECT col2 + + - col1 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT ALL col2 * - 86 FROM tab0
----
-4042
-8514
-860

query I rowsort
SELECT ALL - col1 + + + col2 FROM tab2 cor0
----
-28
-37
-9

query I rowsort
SELECT DISTINCT col1 * - ( - + 60 ) + - - col0 FROM tab0 AS cor0
----
1347
157
4875

query I rowsort
SELECT DISTINCT - 65 + + 76 FROM tab2 AS cor0
----
11

query I rowsort
SELECT DISTINCT col0 + + 47 FROM tab0 AS cor0
----
134
144
62

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT + col0 * - - col1 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6176
SELECT ALL col0 DIV - + col2 + - col1 + - - col2 * 79 * + - col2 AS col0 FROM tab0 AS cor0
----
-174592
-774280
-7929

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL col0 / - + col2 + - col1 + - - col2 * 79 * + - col2 AS col0 FROM tab0 AS cor0
----
-174592
-774280
-7929

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT ALL 61 + COUNT( * ) FROM tab2 cor0
----
64

skipif mysql # not compatible
query I rowsort label-6177
SELECT ALL 61 + COUNT ( * ) FROM tab2 cor0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6178
SELECT ALL 63 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE + ( - 80 ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-6178
SELECT ALL 63 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE + ( - 80 ) >= NULL
----

query I rowsort
SELECT + 54 * + col0 / + 0 * + - col2 + 33 FROM tab1 AS cor0 WHERE 50 * + col0 * + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT DISTINCT + - MIN( DISTINCT - col0 ) - - 25 FROM tab0 cor0
----
122

skipif mysql # not compatible
query I rowsort label-6180
SELECT DISTINCT + - MIN ( DISTINCT - col0 ) - - 25 FROM tab0 cor0
----
122

query I rowsort
SELECT - ( + 41 ) AS col0 FROM tab0
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT ALL - MIN( DISTINCT - col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6182
SELECT ALL - MIN ( DISTINCT - col1 ) FROM tab0
----
81

query I rowsort
SELECT + col1 * col0 * - col2 AS col1 FROM tab0 AS cor0
----
-18270
-57105
-9603

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6184
SELECT - - col0 * + 83 + - - CAST( NULL AS DECIMAL ) * + col2 col1 FROM tab0 AS cor0 WHERE NOT CAST( + col0 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6184
SELECT - - col0 * + 83 + - - CAST ( NULL AS REAL ) * + col2 col1 FROM tab0 AS cor0 WHERE NOT CAST ( + col0 AS INTEGER ) <= NULL
----

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( col1 - 66 ) IS NULL
----
15
87
97

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT MIN( + col0 ) * - 12 FROM tab0 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-6187
SELECT MIN ( + col0 ) * - 12 FROM tab0 AS cor0
----
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT 75 col1, + col0 * + - 24 AS col0, col0 * - col1 + col1 FROM tab0
----
9 values hashing to ec2dc79a65d8486749b9c1594de0899b

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT + COUNT( * ) col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6189
SELECT + COUNT ( * ) col2 FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 22 + - 22 + - col1 NOT BETWEEN - col0 AND NULL
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT DISTINCT - MIN( ALL - col0 ) + 62 col2 FROM tab0 AS cor0
----
159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6192
SELECT DISTINCT - MIN ( ALL - col0 ) + 62 col2 FROM tab0 AS cor0
----
159

query I rowsort
SELECT + - col0 * - + col0 + + col1 * col2 * + col1 AS col0 FROM tab2 AS cor0
----
241256
265987
61939

query I rowsort
SELECT - col0 * + - 33 FROM tab0
----
2871
3201
495

query I rowsort
SELECT ALL - 84 AS col1 FROM tab2
----
-84
-84
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6196
SELECT + COUNT( * ) DIV ( - - COUNT( * ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6196
SELECT + COUNT ( * ) / ( - - COUNT ( * ) ) FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6197
SELECT col1 DIV + 26 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6197
SELECT col1 / + 26 FROM tab0
----
0
0
3

query I rowsort
SELECT ALL col0 * - + 98 AS col1 FROM tab0
----
-1470
-8526
-9506

onlyif mysql # aggregate syntax: 
query II rowsort label-6199
SELECT ALL COUNT( * ), + 42 AS col0 FROM tab0
----
3
42

skipif mysql # not compatible
query II rowsort label-6199
SELECT ALL COUNT ( * ), + 42 AS col0 FROM tab0
----
3
42

query I rowsort
SELECT DISTINCT + col2 * - 52 AS col2 FROM tab2
----
-1196
-2080
-3016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0, col2 + + + col1 + - - 98 + col2 + col1 * + col1 col2 FROM tab0
----
15
6834
87
580
97
298

query I rowsort
SELECT DISTINCT col0 + - - col0 + + col0 * - 22 AS col2 FROM tab2 AS cor0
----
-1280
-1500
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT COUNT( * ) + - MIN( DISTINCT + col0 ) + COUNT( - - 98 ) FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6203
SELECT COUNT ( * ) + - MIN ( DISTINCT + col0 ) + COUNT ( - - 98 ) FROM tab0 cor0
----
-9

query I rowsort
SELECT col1 * col0 * + col1 + - + 95 * 75 AS col2 FROM tab0 AS cor0
----
-7028
31242
91290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col1 + col1 - - col0 * col1 col1 FROM tab1 AS cor0
----
376
4303
646

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <> 49
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6207
SELECT ALL - 15 DIV - col1 AS col1 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-6207
SELECT ALL - 15 / - col1 AS col1 FROM tab1
----
0
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6208
SELECT + CAST( NULL AS SIGNED ) + 71 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6208
SELECT + CAST ( NULL AS INTEGER ) + 71 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-6209
SELECT DISTINCT + 18 DIV col0 - - 87 * col2 + - + col0 FROM tab0 AS cor0
----
4075
783
8516

skipif mysql # not compatible
query I rowsort label-6209
SELECT DISTINCT + 18 / col0 - - 87 * col2 + - + col0 FROM tab0 AS cor0
----
4075
783
8516

query I rowsort
SELECT DISTINCT + + col0 * - 76 + + - col0 * - 87 AS col2 FROM tab1 AS cor0
----
1001
561
935

query I rowsort
SELECT ALL col2 + - 60 FROM tab0 AS cor0
----
-13
-50
39

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 46 + - 11 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6213
SELECT DISTINCT - 94 DIV SUM( DISTINCT + col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6213
SELECT DISTINCT - 94 / SUM ( DISTINCT + col0 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL 15 * - 13 * - col0 + + col2 FROM tab0 AS cor0
----
16975
19014
2972

query I rowsort
SELECT - col0 * + col2 * col2 FROM tab2 AS cor0
----
-102400
-24334
-252300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + ( - col1 ) col0, - col2 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-6217
SELECT col0 DIV + + col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6217
SELECT col0 / + + col0 FROM tab2
----
1
1
1

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ALL 74 * - + col2 AS col0 FROM tab0
----
-3478
-7326
-740

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6221
SELECT col2 * + CAST( NULL AS SIGNED ) + - col2 + CAST( + - CAST( NULL AS SIGNED ) AS DECIMAL ) * - + 93 + - - CAST( 26 AS SIGNED ) col1 FROM tab0 WHERE NOT + col1 + + ( + col2 ) <> col0 * - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6221
SELECT col2 * + CAST ( NULL AS INTEGER ) + - col2 + CAST ( + - CAST ( NULL AS INTEGER ) AS REAL ) * - + 93 + - - CAST ( 26 AS INTEGER ) col1 FROM tab0 WHERE NOT + col1 + + ( + col2 ) <> col0 * - col1
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE 74 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query II rowsort
SELECT col0 AS col1, - 84 FROM tab2
----
46
-84
64
-84
75
-84

query II rowsort
SELECT DISTINCT + col1 AS col0, + ( 17 ) FROM tab0 AS cor0
----
1
17
21
17
81
17

query II rowsort
SELECT col2 AS col0, col2 AS col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 * + col2 col2 FROM tab0 AS cor0
----
10575
75690
931491

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT - MIN( DISTINCT 36 ) FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-6227
SELECT - MIN ( DISTINCT 36 ) FROM tab2 AS cor0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6228
SELECT ALL CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6228
SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 61 * col0 FROM tab2
----
-2806
-3904
-4575

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT ( - SUM( col2 ) ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-6230
SELECT ( - SUM ( col2 ) ) AS col2 FROM tab1
----
-223

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 69 / + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT SUM( 60 ) AS col2 FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-6232
SELECT SUM ( 60 ) AS col2 FROM tab2 AS cor0
----
180

query I rowsort
SELECT ALL + col1 + + 42 FROM tab0 AS cor0
----
123
43
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT ALL MIN( DISTINCT + - 93 ) + + - COUNT( * ) FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL MIN ( DISTINCT + - 93 ) + + - COUNT ( * ) FROM tab0 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6235
SELECT ALL - ( - 24 ) * + CAST( NULL AS SIGNED ) + - col0 + - col2 * - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6235
SELECT ALL - ( - 24 ) * + CAST ( NULL AS INTEGER ) + - col0 + - col2 * - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 75 FROM tab1 AS cor0 WHERE ( col1 ) = NULL
----

query I rowsort
SELECT ALL - col0 * + 55 * - + ( - 21 ) FROM tab1 AS cor0 WHERE NOT 79 + ( - col0 ) * + - 44 IS NULL
----
-105105
-58905
-98175

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT - MAX( ( - col1 ) ) + + COUNT( * ) FROM tab2 WHERE - - col1 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6238
SELECT - MAX ( ( - col1 ) ) + + COUNT ( * ) FROM tab2 WHERE - - col1 = NULL
----
NULL

query I rowsort
SELECT col0 + - - col2 FROM tab2
----
104
133
69

query I rowsort
SELECT col2 + - ( + col0 ) - col0 AS col1 FROM tab1
----
-111
-114
-6

query III rowsort
SELECT * FROM tab0 WHERE - 20 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( 62 ) * - col1 col0, col2 * - - col1 AS col0 FROM tab1
----
-2914
3196
-310
295
-868
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT ALL 11 * COUNT( * ) FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL 11 * COUNT ( * ) FROM tab0
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6244
SELECT ALL * FROM tab0 WHERE NOT + CAST( NULL AS DECIMAL ) = 19 * col2
----

skipif mysql # not compatible
query III rowsort label-6244
SELECT ALL * FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) = 19 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT DISTINCT COUNT( * ) + - - 61 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-6245
SELECT DISTINCT COUNT ( * ) + - - 61 FROM tab2
----
64

query I rowsort
SELECT ALL - 77 + col1 FROM tab2
----
-10
-26
0

query I rowsort
SELECT - col2 + col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + AVG ( ALL + 24 ) FROM tab2 AS cor0 WHERE NOT + 25 NOT IN ( - - 57 * col0, col2 / + 39, + col2 )
----
NULL

query I rowsort
SELECT ALL 62 + + - col2 FROM tab1 AS cor0
----
-34
-6
3

query I rowsort
SELECT DISTINCT - col2 + + - 61 AS col0 FROM tab2 AS cor0
----
-101
-119
-84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 1 - 81 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6252
SELECT * FROM tab1 WHERE NULL NOT BETWEEN CAST( - col0 AS SIGNED ) AND - + col2
----

skipif mysql # not compatible
query III rowsort label-6252
SELECT * FROM tab1 WHERE NULL NOT BETWEEN CAST ( - col0 AS INTEGER ) AND - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT ALL - COUNT( DISTINCT - col1 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6253
SELECT ALL - COUNT ( DISTINCT - col1 ) AS col2 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 37 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-37

query I rowsort
SELECT col1 + + 91 AS col0 FROM tab0
----
112
172
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, + ( + col1 ) FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6257
SELECT ALL + 76 DIV + col2 FROM tab0 AS cor0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-6257
SELECT ALL + 76 / + col2 FROM tab0 AS cor0
----
0
1
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1, + col0 col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col2 + - col1 col1 FROM tab1 AS cor0
----
-3486
-4671
-9230

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + col2 + - - col2 ) = 69 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL < - col0 * + 90 - + 76
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6262
SELECT col2 DIV col0 DIV - 30 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6262
SELECT col2 / col0 / - 30 AS col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6263
SELECT ALL + col2 DIV 9 AS col1 FROM tab0
----
1
11
5

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL + col2 / 9 AS col1 FROM tab0
----
1
11
5

query II rowsort
SELECT DISTINCT col0 * - col0, + 68 AS col0 FROM tab1
----
-2601
68
-7225
68
-8281
68

query I rowsort
SELECT DISTINCT + col0 + col2 + + 51 + - - col1 FROM tab2 WHERE - col1 - + - 0 > NULL
----

query I rowsort
SELECT DISTINCT + 87 AS col1 FROM tab1 cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT DISTINCT 76 * + MIN( DISTINCT - - col0 ) AS col0 FROM tab2 cor0
----
3496

skipif mysql # not compatible
query I rowsort label-6267
SELECT DISTINCT 76 * + MIN ( DISTINCT - - col0 ) AS col0 FROM tab2 cor0
----
3496

query I rowsort
SELECT DISTINCT - - col0 + 63 + + 78 FROM tab2 AS cor0
----
187
205
216

query I rowsort
SELECT - col0 FROM tab2 cor0 WHERE NOT + col1 >= NULL
----

query I rowsort
SELECT + col0 - - - col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6271
SELECT 72 DIV COUNT( * ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-6271
SELECT 72 / COUNT ( * ) FROM tab0
----
24

query I rowsort
SELECT ALL 16 * - col1 AS col2 FROM tab2
----
-1072
-1232
-816

query I rowsort
SELECT col0 + col1 + - 79 * col1 - - ( - col1 ) FROM tab1
----
-1055
-310
-3622

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 + + col0 col1 FROM tab1 AS cor0
----
203
227
243

query I rowsort
SELECT DISTINCT + - col1 * + + col2 + - col0 - col2 * - - col1 FROM tab0 cor0
----
-295
-507
-7629

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6276
SELECT ALL - col2 * + - CAST( - 57 AS SIGNED ) + + 13 DIV - col1 FROM tab0 AS cor0
----
-2679
-5656
-570

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL - col2 * + - CAST ( - 57 AS INTEGER ) + + 13 / - col1 FROM tab0 AS cor0
----
-2679
-5656
-570

query I rowsort
SELECT DISTINCT - ( + - col1 ) * + col1 FROM tab2 AS cor0
----
2601
4489
5929

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 * + 72 AND - 86
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6280
SELECT * FROM tab1 AS cor0 WHERE 12 NOT BETWEEN + 26 AND - CAST( - + 75 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6280
SELECT * FROM tab1 AS cor0 WHERE 12 NOT BETWEEN + 26 AND - CAST ( - + 75 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 + - 60 FROM tab2 AS cor0
----
-2
-20
-37

query I rowsort
SELECT 76 * + col2 AS col0 FROM tab2
----
1748
3040
4408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6283
SELECT ALL - CAST( NULL AS SIGNED ) + + col1 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6283
SELECT ALL - CAST ( NULL AS INTEGER ) + + col1 col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6284
SELECT - COUNT( DISTINCT + - col2 ) * - - MAX( DISTINCT 48 ) AS col1, 60 * COUNT( * ) * + - 82 * - MAX( DISTINCT - - col0 ) + + 53 FROM tab1
----
-144
1343213

skipif mysql # not compatible
query II rowsort label-6284
SELECT - COUNT ( DISTINCT + - col2 ) * - - MAX ( DISTINCT 48 ) AS col1, 60 * COUNT ( * ) * + - 82 * - MAX ( DISTINCT - - col0 ) + + 53 FROM tab1
----
-144
1343213

query II rowsort
SELECT ALL col0 * - + col1 AS col1, + col2 FROM tab2
----
-2346
23
-4928
40
-5025
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6286
SELECT CAST( + + col2 AS SIGNED ) AS col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6286
SELECT CAST ( + + col2 AS INTEGER ) AS col2 FROM tab2
----
23
40
58

query I rowsort
SELECT 25 * + + 1 AS col1 FROM tab1
----
25
25
25

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) + - - col2 * + - col2 col0 FROM tab1 WHERE 43 + - 96 IS NULL
----

query I rowsort
SELECT DISTINCT 47 - col0 FROM tab0 cor0
----
-40
-50
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT 63 + + - COUNT( * ) FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-6291
SELECT 63 + + - COUNT ( * ) FROM tab1 AS cor0
----
60

query I rowsort
SELECT + 53 + - col2 FROM tab0 cor0
----
-46
43
6

query II rowsort
SELECT 99 + - col2, + col2 FROM tab2 AS cor0
----
41
58
59
40
76
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6294
SELECT + - COUNT( * ) * - COUNT( DISTINCT - + col1 ) AS col2 FROM tab1 AS cor0 WHERE col2 NOT IN ( - col2, col0 * + + CAST( NULL AS SIGNED ), + col1, - + col1 * + col0 * + 12 + col1 - 8 + - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6294
SELECT + - COUNT ( * ) * - COUNT ( DISTINCT - + col1 ) AS col2 FROM tab1 AS cor0 WHERE col2 NOT IN ( - col2, col0 * + + CAST ( NULL AS INTEGER ), + col1, - + col1 * + col0 * + 12 + col1 - 8 + - col1 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> col1 / col2 + - col1
----

query I rowsort
SELECT ALL col0 * + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6297
SELECT + - CAST( + col2 AS SIGNED ) * + - 63 FROM tab0 AS cor0
----
2961
6237
630

skipif mysql # not compatible
query I rowsort label-6297
SELECT + - CAST ( + col2 AS INTEGER ) * + - 63 FROM tab0 AS cor0
----
2961
6237
630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6298
SELECT 23 * + 31 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 <= NULL
----

skipif mysql # not compatible
query I rowsort label-6298
SELECT 23 * + 31 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6299
SELECT + - CAST( NULL AS SIGNED ) / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6299
SELECT + - CAST ( NULL AS INTEGER ) / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6300
SELECT ALL - 0 DIV + COUNT( * ) * COUNT( * ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6300
SELECT ALL - 0 / + COUNT ( * ) * COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6301
SELECT 42 AS col0, 65 * - COUNT( * ) FROM tab0 AS cor0
----
42
-195

skipif mysql # not compatible
query II rowsort label-6301
SELECT 42 AS col0, 65 * - COUNT ( * ) FROM tab0 AS cor0
----
42
-195

onlyif mysql # aggregate syntax: 
query II rowsort label-6302
SELECT COUNT( * ) AS col2, 96 FROM tab1 AS cor0
----
3
96

skipif mysql # not compatible
query II rowsort label-6302
SELECT COUNT ( * ) AS col2, 96 FROM tab1 AS cor0
----
3
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT ALL + COUNT( * ) * SUM( ALL 60 ) + - 28 AS col2 FROM tab1 AS cor0
----
512

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL + COUNT ( * ) * SUM ( ALL 60 ) + - 28 AS col2 FROM tab1 AS cor0
----
512

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 * - col0 > NULL )
----

query I rowsort
SELECT ALL + 48 * col2 AS col0 FROM tab1
----
2832
3264
4608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6306
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - - col2 col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6306
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - - col2 col1 FROM tab0
----
NULL

query I rowsort
SELECT + col0 + - col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
17
23
24

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 = col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col0, col2 FROM tab2
----
46
23
64
40
75
58

query III rowsort
SELECT ALL * FROM tab1 WHERE + 25 - + col1 NOT BETWEEN + + ( + ( - 19 ) ) AND NULL
----
91
47
68

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT + 70 IS NOT NULL
----

query II rowsort
SELECT ALL + 62 AS col1, col0 FROM tab1
----
62
51
62
85
62
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6313
SELECT + CAST( NULL AS SIGNED ), col1 col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6313
SELECT + CAST ( NULL AS INTEGER ), col1 col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT DISTINCT + MAX( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6314
SELECT DISTINCT + MAX ( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
75

query I rowsort
SELECT + ( col1 ) + + 36 FROM tab0 AS cor0
----
117
37
57

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND + col1 * + + 25
----

query I rowsort
SELECT DISTINCT col2 * + + col2 AS col2 FROM tab1 WHERE NOT col1 * - + col1 + + 55 NOT BETWEEN ( + 68 + - col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT ALL + COUNT( * ) + COUNT( * ) AS col2 FROM tab2, tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2, tab0 AS cor0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6319
SELECT ALL + COUNT( * ) + COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab1, tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-6319
SELECT ALL + COUNT ( * ) + COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab1, tab0 AS cor0
----
10

query I rowsort
SELECT ALL + 35 + + col1 FROM tab0 AS cor0
----
116
36
56

query II rowsort
SELECT ALL + + 50, + col0 * col1 AS col2 FROM tab2 cor0 WHERE - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6322
SELECT ALL - col2 * col2 + + 6 * + 62 + - col0 DIV col1 AS col0 FROM tab2 AS cor0
----
-1228
-157
-2993

skipif mysql # not compatible
query I rowsort label-6322
SELECT ALL - col2 * col2 + + 6 * + 62 + - col0 / col1 AS col0 FROM tab2 AS cor0
----
-1228
-157
-2993

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT + - col2 + + + 22 AS col2 FROM tab1 AS cor0
----
-37
-46
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-6325
SELECT DISTINCT + col0 + - col2 DIV + - col1 FROM tab0 AS cor0
----
15
196
87

skipif mysql # not compatible
query I rowsort label-6325
SELECT DISTINCT + col0 + - col2 / + - col1 FROM tab0 AS cor0
----
15
196
87

onlyif mysql # DIV for integer division: 
query I rowsort label-6326
SELECT + 61 DIV + + 3 FROM tab0 WHERE NULL IS NULL
----
20
20
20

skipif mysql # not compatible
query I rowsort label-6326
SELECT + 61 / + + 3 FROM tab0 WHERE NULL IS NULL
----
20
20
20

query I rowsort
SELECT ALL + 15 + + col0 AS col0 FROM tab0
----
102
112
30

query I rowsort
SELECT DISTINCT 50 FROM tab2 WHERE + + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 66 IS NULL
----

query II rowsort
SELECT DISTINCT 91, col1 FROM tab0
----
91
1
91
21
91
81

query I rowsort
SELECT - 20 * col0 * 84 AS col0 FROM tab2
----
-107520
-126000
-77280

query I rowsort
SELECT ( + + ( col0 ) ) FROM tab0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * - 93 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 82 <= 11
----

query I rowsort
SELECT - 65 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - - col0 col2 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT - 52 * + 63 FROM tab0 AS cor0
----
-3276
-3276
-3276

query II rowsort
SELECT ALL + + col2 - + 62, col1 AS col1 FROM tab1 AS cor0 WHERE NOT + 67 = NULL
----

query I rowsort
SELECT ALL + ( - + col1 ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col2 FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6340
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0 cor0
----
-9

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN col2 AND - col2 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT DISTINCT - MAX( ALL - - col0 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-6342
SELECT DISTINCT - MAX ( ALL - - col0 ) AS col2 FROM tab0
----
-97

query I rowsort
SELECT DISTINCT - col2 * 56 AS col1 FROM tab1
----
-3304
-3808
-5376

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT ALL - MIN( DISTINCT - + 12 ) AS col1 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-6344
SELECT ALL - MIN ( DISTINCT - + 12 ) AS col1 FROM tab2
----
12

query II rowsort
SELECT - col0 + col2 * - 87 AS col2, + 34 FROM tab1 cor0 WHERE NOT - 17 <> - col0
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 73 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * - col0 * col0 + - col1 AS col1 FROM tab2
----
107865
315315
376808

onlyif mysql # DIV for integer division: 
query I rowsort label-6348
SELECT - 24 + 56 * - 63 + + ( - col2 ) DIV + + 80 FROM tab0
----
-3552
-3552
-3553

skipif mysql # not compatible
query I rowsort label-6348
SELECT - 24 + 56 * - 63 + + ( - col2 ) / + + 80 FROM tab0
----
-3552
-3552
-3553

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT ALL MIN( DISTINCT + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL MIN ( DISTINCT + col0 ) FROM tab2
----
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6351
SELECT ALL + CAST( NULL AS DECIMAL ) * + col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL + CAST ( NULL AS REAL ) * + col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 94 * + col2 FROM tab1 AS cor0
----
5546
6392
9024

query I rowsort
SELECT DISTINCT - - col2 + + - 84 FROM tab2 AS cor0
----
-26
-44
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6354
SELECT ALL + + col0 * + 94 * col0 + CAST( NULL AS SIGNED ) + - 44 + col0 AS col1, 4 FROM tab0 AS cor0
----
NULL
4
NULL
4
NULL
4

skipif mysql # not compatible
query II rowsort label-6354
SELECT ALL + + col0 * + 94 * col0 + CAST ( NULL AS INTEGER ) + - 44 + col0 AS col1, 4 FROM tab0 AS cor0
----
NULL
4
NULL
4
NULL
4

query I rowsort
SELECT - - col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6356
SELECT - CAST( - + 75 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-6356
SELECT - CAST ( - + 75 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
75
75
75

query II rowsort
SELECT ALL - col1 + + col2, col1 AS col0 FROM tab2 AS cor0
----
-28
51
-37
77
-9
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT - + SUM( ALL - + ( + 6 ) ) AS col1 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-6358
SELECT - + SUM ( ALL - + ( + 6 ) ) AS col1 FROM tab0 AS cor0
----
18

query I rowsort
SELECT ALL col0 - - col2 FROM tab1 cor0
----
144
147
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 45, col0 col1 FROM tab2 cor0
----
45
46
45
64
45
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT DISTINCT - SUM( 63 ) AS col1 FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-6361
SELECT DISTINCT - SUM ( 63 ) AS col1 FROM tab0
----
-189

query III rowsort
SELECT * FROM tab0 WHERE + 66 = NULL
----

query II rowsort
SELECT col0 - + + 38, col2 AS col2 FROM tab2
----
26
40
37
58
8
23

query I rowsort
SELECT ALL + 86 AS col2 FROM tab1 AS cor0
----
86
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 * col0 * - - col2 col0 FROM tab1 AS cor0
----
220320
225675
278460

query I rowsort
SELECT + + 26 * ( + col2 ) FROM tab2 AS cor0
----
1040
1508
598

query I rowsort
SELECT ALL - + 93 AS col0 FROM tab1 AS cor0
----
-93
-93
-93

query I rowsort
SELECT - 96 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT DISTINCT ( - 3 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 * + 86 AS col1 FROM tab0 cor0
----
4042
8514
860

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0, col0, + 0, + 47 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT + ( COUNT( DISTINCT - col2 ) ) * COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6372
SELECT + ( COUNT ( DISTINCT - col2 ) ) * COUNT ( * ) FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6373
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT - MAX( + + col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6374
SELECT - MAX ( + + col1 ) AS col0 FROM tab0 AS cor0
----
-81

query II rowsort
SELECT ALL - - col1, col1 * - + col2 AS col1 FROM tab1 AS cor0
----
14
-1344
47
-3196
5
-295

query II rowsort
SELECT ALL - - col1, 0 AS col1 FROM tab1 AS cor0
----
14
0
47
0
5
0

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT col2 + col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 58, + col2 AS col2 FROM tab0 AS cor0
----
58
10
58
47
58
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT - + ( - COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6379
SELECT - + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6380
SELECT DISTINCT - + 9, - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-6380
SELECT DISTINCT - + 9, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-9
NULL

query I rowsort
SELECT + + ( + col0 ) * col0 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT ALL + SUM( ALL + 17 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-6382
SELECT ALL + SUM ( ALL + 17 ) AS col2 FROM tab2
----
51

query I rowsort
SELECT ALL col1 * - + 26 AS col1 FROM tab1
----
-1222
-130
-364

query I rowsort
SELECT col0 + - ( 61 ) AS col1 FROM tab1
----
-10
24
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT + 40 + + ( - + COUNT( * ) ) FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-6385
SELECT + 40 + + ( - + COUNT ( * ) ) FROM tab1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT - - SUM( DISTINCT - + col0 ) + - - 60 - - MAX( - 76 ) * 67 + - - 47 FROM tab1 AS cor0
----
-5212

skipif mysql # not compatible
query I rowsort label-6386
SELECT - - SUM ( DISTINCT - + col0 ) + - - 60 - - MAX ( - 76 ) * 67 + - - 47 FROM tab1 AS cor0
----
-5212

query I rowsort
SELECT + col2 * + col1 + + + col1 * + - 75 + + col2 + col0 AS col0 FROM tab1 AS cor0
----
-170
441
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) + - ( col2 ) * + 37 col1 FROM tab0 AS cor0
----
-1724
-283
-3566

query I rowsort
SELECT 21 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE - col2 >= + col1 * - col0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + - col1 col2 FROM tab2 cor0
----
28
37
9

query I rowsort
SELECT - col2 - col1 + 93 + ( + ( + - col1 ) ) FROM tab0 AS cor0
----
-116
-8
41

query I rowsort
SELECT + 40 - col0 FROM tab2 AS cor0
----
-24
-35
-6

query I rowsort
SELECT - 42 - - 88 * + 66 + + col0 FROM tab2 AS cor0
----
5812
5830
5841

query I rowsort
SELECT - - col1 * + 4 * col0 + 79 AS col1 FROM tab1 AS cor0
----
17187
1779
2935

query I rowsort
SELECT ALL + + col0 + - 91 AS col2 FROM tab2 AS cor0
----
-16
-27
-45

query I rowsort
SELECT DISTINCT col1 * - - col2 AS col2 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT - - COUNT( * ) + 69 AS col1 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-6398
SELECT - - COUNT ( * ) + 69 AS col1 FROM tab1 AS cor0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-6399
SELECT ALL - 37 DIV + 45 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6399
SELECT ALL - 37 / + 45 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6400
SELECT DISTINCT - 42 DIV - CAST( - - col0 AS SIGNED ) + + col1 AS col0 FROM tab0 AS cor0
----
1
21
83

skipif mysql # not compatible
query I rowsort label-6400
SELECT DISTINCT - 42 / - CAST ( - - col0 AS INTEGER ) + + col1 AS col0 FROM tab0 AS cor0
----
1
21
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * col2 + - 84 + - + 10 col1 FROM tab0 AS cor0
----
2115
6
9707

onlyif mysql # aggregate syntax: 
query II rowsort label-6402
SELECT + - 58 AS col1, MIN( - col0 ) + + - COUNT( * ) AS col2 FROM tab1 cor0 WHERE - col2 IS NULL
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-6402
SELECT + - 58 AS col1, MIN ( - col0 ) + + - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE - col2 IS NULL
----
-58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT - COUNT( DISTINCT + 72 ) * - - 23 + 38 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-6403
SELECT - COUNT ( DISTINCT + 72 ) * - - 23 + 38 FROM tab0
----
15

query I rowsort
SELECT DISTINCT + 70 * - col0 + - col0 FROM tab1
----
-3621
-6035
-6461

query III rowsort
SELECT * FROM tab0 WHERE - col1 * col2 / col1 <= + 13 * 22
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 * col1 - + 41 FROM tab0
----
169
3766
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6407
SELECT ALL 25 DIV + COUNT( * ) AS col2 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-6407
SELECT ALL 25 / + COUNT ( * ) AS col2 FROM tab2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT DISTINCT - COUNT( * ) * - + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-6408
SELECT DISTINCT - COUNT ( * ) * - + COUNT ( * ) FROM tab2
----
9

query II rowsort
SELECT ALL + - 1 AS col0, - col2 - + + 84 AS col0 FROM tab2 cor0
----
-1
-107
-1
-124
-1
-142

query II rowsort
SELECT ALL col2, + 21 AS col1 FROM tab1 AS cor0
----
59
21
68
21
96
21

query I rowsort
SELECT 5 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6412
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6412
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 8 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT COUNT( DISTINCT - col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6414
SELECT COUNT ( DISTINCT - col2 ) AS col1 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 col2 FROM tab0 AS cor0 WHERE 40 IN ( + 1, - ( - - col2 ) / + col2 * 23 + - - 84, + col0, ( - + col2 ) )
----

query I rowsort
SELECT + col1 + col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL BETWEEN + col0 * - col1 * col0 AND 17 + + + col1 * + + col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 82 > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 <= col0
----

query II rowsort
SELECT - 69 AS col2, + col0 * - - 92 AS col2 FROM tab0
----
-69
1380
-69
8004
-69
8924

onlyif mysql # aggregate syntax: 
query II rowsort label-6420
SELECT 43, - MIN( DISTINCT + ( - 37 ) ) AS col2 FROM tab0
----
43
37

skipif mysql # not compatible
query II rowsort label-6420
SELECT 43, - MIN ( DISTINCT + ( - 37 ) ) AS col2 FROM tab0
----
43
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT DISTINCT - COUNT( * ) * + - 54 AS col0 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-6421
SELECT DISTINCT - COUNT ( * ) * + - 54 AS col0 FROM tab1
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6422
SELECT ALL + CAST( NULL AS SIGNED ) col2, COUNT( * ) + - + ( COUNT( * ) ) AS col2 FROM tab1 WHERE NOT NULL <= ( NULL )
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6422
SELECT ALL + CAST ( NULL AS INTEGER ) col2, COUNT ( * ) + - + ( COUNT ( * ) ) AS col2 FROM tab1 WHERE NOT NULL <= ( NULL )
----
NULL
0

query I rowsort
SELECT col1 * - + col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT DISTINCT + MIN( ALL + col1 ) + + 57 AS col2 FROM tab1 cor0
----
62

skipif mysql # not compatible
query I rowsort label-6424
SELECT DISTINCT + MIN ( ALL + col1 ) + + 57 AS col2 FROM tab1 cor0
----
62

query I rowsort
SELECT col2 * col1 + 30 AS col1 FROM tab2 AS cor0
----
1203
3110
3916

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6426
SELECT ( COUNT( * ) ) + + + 50 + CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6426
SELECT ( COUNT ( * ) ) + + + 50 + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + + ( + col1 ) * col2 AS col0 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT ALL + COUNT( * ) + - - MAX( ALL ( - ( col2 ) ) ) FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-6428
SELECT ALL + COUNT ( * ) + - - MAX ( ALL ( - ( col2 ) ) ) FROM tab1 AS cor0
----
-56

query I rowsort
SELECT DISTINCT - col2 * 5 AS col0 FROM tab0
----
-235
-495
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-6430
SELECT DISTINCT - 71 DIV 23 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6430
SELECT DISTINCT - 71 / 23 FROM tab1
----
-3

query II rowsort
SELECT col1 AS col1, col0 * + ( - + 28 ) AS col1 FROM tab2
----
51
-1288
67
-2100
77
-1792

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6432
SELECT ALL * FROM tab1 WHERE + 73 >= - 43 - - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6432
SELECT ALL * FROM tab1 WHERE + 73 >= - 43 - - + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6433
SELECT ALL 22 DIV 14 * + COUNT( DISTINCT - col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL 22 / 14 * + COUNT ( DISTINCT - col0 ) AS col2 FROM tab0
----
3

query II rowsort
SELECT ALL col1 AS col2, - col0 * + col2 + + + col0 FROM tab2
----
51
-1012
67
-4275
77
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT ALL + MIN( ALL col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-6435
SELECT ALL + MIN ( ALL col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6436
SELECT - col1 DIV - + col2 AS col0 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-6436
SELECT - col1 / - + col2 AS col0 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT ALL - + COUNT( * ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL - + COUNT ( * ) AS col1 FROM tab2 cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + - 0 NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT - 21 * - + 29 FROM tab1
----
609
609
609

query I rowsort
SELECT + col2 * - - col1 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT ALL - MAX( col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL - MAX ( col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col2, col1 * - col1 col2 FROM tab0 AS cor0
----
1
-1
21
-441
81
-6561

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 <> NULL
----

query I rowsort
SELECT ALL - 96 + + 45 + + col0 AS col2 FROM tab2 AS cor0
----
-5
13
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT ALL - MIN( col1 ) AS col2 FROM tab2 cor0 WHERE ( + 22 * 81 + ( - + col0 ) ) NOT BETWEEN NULL AND 82
----
-51

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL - MIN ( col1 ) AS col2 FROM tab2 cor0 WHERE ( + 22 * 81 + ( - + col0 ) ) NOT BETWEEN NULL AND 82
----
-51

query II rowsort
SELECT DISTINCT - col2 AS col1, col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query II rowsort
SELECT DISTINCT + col2 AS col0, col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6448
SELECT CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6448
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6449
SELECT - COUNT( * ), + 30 AS col1 FROM tab2 AS cor0
----
-3
30

skipif mysql # not compatible
query II rowsort label-6449
SELECT - COUNT ( * ), + 30 AS col1 FROM tab2 AS cor0
----
-3
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT + MAX( ALL + col1 ) * + 30 AS col0 FROM tab1 AS cor0
----
1410

skipif mysql # not compatible
query I rowsort label-6450
SELECT + MAX ( ALL + col1 ) * + 30 AS col0 FROM tab1 AS cor0
----
1410

query I rowsort
SELECT DISTINCT 8 FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND 58 + col0
----

query I rowsort
SELECT - AVG ( ALL - col2 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6453
SELECT + 74 * - col0 + + col1 - ( 79 ) DIV - col0 AS col0 FROM tab0
----
-1024
-6417
-7177

skipif mysql # not compatible
query I rowsort label-6453
SELECT + 74 * - col0 + + col1 - ( 79 ) / - col0 AS col0 FROM tab0
----
-1024
-6417
-7177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 25 col1 FROM tab0
----
1175
2475
250

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > 54
----

query I rowsort
SELECT + 55 + + 45 * + col1 AS col1 FROM tab0 AS cor0
----
100
1000
3700

query I rowsort
SELECT ( + 79 ) AS col2 FROM tab1 cor0
----
79
79
79

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 27 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col2 ) * ( + 69 ) + - + col1 col0 FROM tab2 AS cor0
----
-1638
-2837
-4069

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col1, col0 + col1 col2 FROM tab2 AS cor0
----
23
97
40
141
58
142

onlyif mysql # DIV for integer division: 
query I rowsort label-6461
SELECT + - col1 * + + ( - 15 ) * col0 + + ( - + 76 ) + + - col0 DIV 12 + + 51 col1 FROM tab2 cor0
----
35162
73890
75344

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6461
SELECT + - col1 * + + ( - 15 ) * col0 + + ( - + 76 ) + + - col0 / 12 + + 51 col1 FROM tab2 cor0
----
35162
73890
75344

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + 59 <= + col2 + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6463
SELECT + col0 DIV + - 8 AS col1 FROM tab2 AS cor0
----
-5
-8
-9

skipif mysql # not compatible
query I rowsort label-6463
SELECT + col0 / + - 8 AS col1 FROM tab2 AS cor0
----
-5
-8
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT - MAX( DISTINCT + col2 ) FROM tab2 AS cor0 WHERE NOT NULL > - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-6464
SELECT - MAX ( DISTINCT + col2 ) FROM tab2 AS cor0 WHERE NOT NULL > - 50
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6465
SELECT ALL - col0 * ( + - col2 ) DIV col1 * 2 FROM tab2 cor0
----
128
40
66

skipif mysql # not compatible
query I rowsort label-6465
SELECT ALL - col0 * ( + - col2 ) / col1 * 2 FROM tab2 cor0
----
128
40
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT + SUM( - - col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-6466
SELECT + SUM ( - - col1 ) FROM tab0 AS cor0
----
103

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + + col2 / + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6468
SELECT + MIN( ALL - - col0 ) AS col0, + 10 AS col2 FROM tab2
----
46
10

skipif mysql # not compatible
query II rowsort label-6468
SELECT + MIN ( ALL - - col0 ) AS col0, + 10 AS col2 FROM tab2
----
46
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6469
SELECT CAST( 41 AS SIGNED ) * 48 * col2 FROM tab0
----
194832
19680
92496

skipif mysql # not compatible
query I rowsort label-6469
SELECT CAST ( 41 AS INTEGER ) * 48 * col2 FROM tab0
----
194832
19680
92496

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT ALL COUNT( * ) * + SUM( DISTINCT col2 ) FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL COUNT ( * ) * + SUM ( DISTINCT col2 ) FROM tab1
----
669

query I rowsort
SELECT ALL - col2 * - ( + 95 ) * col2 * + - col1 * col1 + - 19 + - - ( + ( + col0 ) ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 65 * - col1 < - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 84 AS col1 FROM tab0 cor0
----
-84
-84
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 30 * - - col2 col0, - col1 FROM tab1 AS cor0
----
-1770
-5
-2040
-47
-2880
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6475
SELECT DISTINCT + CAST( + 37 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL = - col2 * - + col0 * - col2 * + ( + col0 ) - + CAST( + - 83 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6475
SELECT DISTINCT + CAST ( + 37 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL = - col2 * - + col0 * - col2 * + ( + col0 ) - + CAST ( + - 83 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6476
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6477
SELECT + CAST( col1 AS SIGNED ) * col2 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-6477
SELECT + CAST ( col1 AS INTEGER ) * col2 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query II rowsort label-6478
SELECT + COUNT( * ) + + - ( COUNT( * ) ) AS col1, + COUNT( ALL + 10 ) FROM tab1 cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-6478
SELECT + COUNT ( * ) + + - ( COUNT ( * ) ) AS col1, + COUNT ( ALL + 10 ) FROM tab1 cor0
----
0
3

query I rowsort
SELECT + ( + + 92 ) FROM tab2 AS cor0
----
92
92
92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( + 95 ) <> + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 44 * + 53 AS col1 FROM tab1 AS cor0 WHERE + col2 * - + 2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6482
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST( + 50 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-6482
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( + 50 AS INTEGER ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT ( MAX( DISTINCT - - col2 ) ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-6483
SELECT ( MAX ( DISTINCT - - col2 ) ) FROM tab2
----
58

query I rowsort
SELECT ALL ( - ( + col0 ) ) FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6485
SELECT ALL * FROM tab2 WHERE NOT col1 = + + 61 * - ( - col2 ) + + CAST( + col0 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6485
SELECT ALL * FROM tab2 WHERE NOT col1 = + + 61 * - ( - col2 ) + + CAST ( + col0 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6486
SELECT - CAST( NULL AS SIGNED ) * + 59, - 19 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-6486
SELECT - CAST ( NULL AS INTEGER ) * + 59, - 19 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL 43 AS col2, + 76 + - 47 AS col0 FROM tab1
----
43
29
43
29
43
29

query II rowsort
SELECT ALL col1 * 19 + - col0 + - - col2 * col2 * col2, - ( 41 ) AS col2 FROM tab2
----
13090
-41
196310
-41
65399
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 29 col1 FROM tab2 cor0
----
29
29
29

query I rowsort
SELECT - - col1 + - col0 + col0 * - - col0 FROM tab1 cor0
----
2564
7145
8237

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + + col0 ) IS NULL
----

query I rowsort
SELECT ALL 95 + + col2 AS col1 FROM tab2 AS cor0
----
118
135
153

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6493
SELECT col1 + CAST( NULL AS SIGNED ) AS col2, - col1 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-6493
SELECT col1 + CAST ( NULL AS INTEGER ) AS col2, - col1 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 51 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 50 * + ( + - col1 ) * 78 FROM tab0 AS cor0
----
315900
3900
81900

query I rowsort
SELECT + + col1 * + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-1
-531441
-9261

query I rowsort
SELECT + - ( + ( - 89 ) ) AS col0 FROM tab1 cor0
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT ALL + 91 * + SUM( - - col2 ) FROM tab0 AS cor0
----
14196

skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL + 91 * + SUM ( - - col2 ) FROM tab0 AS cor0
----
14196

query I rowsort
SELECT - + col2 * + col1 * 37 + - col0 FROM tab1 AS cor0
----
-11000
-118343
-49779

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT DISTINCT - COUNT( DISTINCT col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT - 81 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6501
SELECT DISTINCT - COUNT ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT - 81 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT + MAX( ALL + col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-6502
SELECT + MAX ( ALL + col0 ) AS col1 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT DISTINCT SUM( ALL + + 40 ) AS col0 FROM tab0
----
120

skipif mysql # not compatible
query I rowsort label-6503
SELECT DISTINCT SUM ( ALL + + 40 ) AS col0 FROM tab0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT + SUM( ALL + 33 ) col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6504
SELECT + SUM ( ALL + 33 ) col0 FROM tab0 AS cor0
----
99

query I rowsort
SELECT - 84 * + col0 AS col2 FROM tab1 AS cor0
----
-4284
-7140
-7644

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 32 / + 11 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT - SUM( 72 ) FROM tab2
----
-216

skipif mysql # not compatible
query I rowsort label-6507
SELECT - SUM ( 72 ) FROM tab2
----
-216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab0 WHERE + col0 * 99 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 + ( - col1 ) > + 56
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT ALL 39 + + MAX( - 6 ) AS col0 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-6510
SELECT ALL 39 + + MAX ( - 6 ) AS col0 FROM tab2
----
33

query I rowsort
SELECT DISTINCT 0 FROM tab2 WHERE ( col0 ) NOT BETWEEN - col0 - + ( col2 ) * - 38 AND col2 - col0 * + col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6512
SELECT COUNT( * ) - 89 col0 FROM tab1 WHERE NOT + CAST( NULL AS DECIMAL ) + + 18 > col0
----
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6512
SELECT COUNT ( * ) - 89 col0 FROM tab1 WHERE NOT + CAST ( NULL AS REAL ) + + 18 > col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6513
SELECT ALL MAX( col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-6513
SELECT ALL MAX ( col2 ) FROM tab0
----
99

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT NULL NOT IN ( col2 * 98 + + 88 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT DISTINCT + COUNT( DISTINCT 8 ) * 19 AS col0 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-6515
SELECT DISTINCT + COUNT ( DISTINCT 8 ) * 19 AS col0 FROM tab0
----
19

query I rowsort
SELECT + 93 AS col2 FROM tab2 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT 50 * - 72 AS col2 FROM tab2
----
-3600
-3600
-3600

query I rowsort
SELECT DISTINCT 72 FROM tab1 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT col1 * 51 FROM tab2
----
2601
3417
3927

query I rowsort
SELECT ALL 95 + 84 AS col0 FROM tab0
----
179
179
179

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE - 83 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT ALL COUNT( * ) + 85 AS col0 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-6522
SELECT ALL COUNT ( * ) + 85 AS col0 FROM tab0
----
88

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT col0 + - col0 * col0 AS col0 FROM tab2 WHERE 27 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT 30 * MAX( col2 ) AS col2 FROM tab1
----
2880

skipif mysql # not compatible
query I rowsort label-6525
SELECT 30 * MAX ( col2 ) AS col2 FROM tab1
----
2880

query I rowsort
SELECT DISTINCT + ( col1 ) + + 87 FROM tab1
----
101
134
92

query I rowsort
SELECT 10 * 64 FROM tab2 cor0
----
640
640
640

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT COUNT( * ) col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 + 49 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6528
SELECT COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 + 49 )
----
0

query I rowsort
SELECT ALL 13 AS col2 FROM tab2 cor0 WHERE NOT col2 IS NULL
----
13
13
13

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 * col2 NOT IN ( 82 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT ALL + 74 - 92 * COUNT( * ) FROM tab0 AS cor0
----
-202

skipif mysql # not compatible
query I rowsort label-6531
SELECT ALL + 74 - 92 * COUNT ( * ) FROM tab0 AS cor0
----
-202

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 tab2 AS cor0 WHERE col1 * col1 = 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT ( - 89 ) + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
-98

skipif mysql # not compatible
query I rowsort label-6534
SELECT ( - 89 ) + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
-98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + col2 < ( 64 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 19 AS col2 FROM tab0 cor0
----
-19
-19
-19

query I rowsort
SELECT ALL - 8 FROM tab1 cor0
----
-8
-8
-8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 NOT IN ( + col2 + 99 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 col2 FROM tab0 AS cor0
----
66
66
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6540
SELECT * FROM tab0 AS cor0 WHERE NOT 88 + + CAST( + col1 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6540
SELECT * FROM tab0 AS cor0 WHERE NOT 88 + + CAST ( + col1 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - col1 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 53 FROM tab1 AS cor0 WHERE NOT - col1 + + col0 NOT IN ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 19 + col1 ) BETWEEN col1 AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6544
SELECT - 93 * - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6544
SELECT - 93 * - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( + 38 )
----

query I rowsort
SELECT + col1 * ( ( 33 ) ) AS col0 FROM tab2
----
1683
2211
2541

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT MIN( ALL - - col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-6547
SELECT MIN ( ALL - - col1 ) FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT DISTINCT - MAX( - - col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT - MAX ( - - col1 ) FROM tab1
----
-47

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE + col0 = - ( + ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT + MIN( col2 ) AS col0 FROM tab2 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6550
SELECT + MIN ( col2 ) AS col0 FROM tab2 WHERE NOT NULL < NULL
----
NULL

query I rowsort
SELECT ALL - 57 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN 45 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - 50 AS col2 FROM tab1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT MIN( - col1 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-6553
SELECT MIN ( - col1 ) AS col2 FROM tab2
----
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6554
SELECT CAST( NULL AS DECIMAL ) / col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6554
SELECT CAST ( NULL AS REAL ) / col1 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT + MAX( DISTINCT + 38 ) * + COUNT( * ) FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-6555
SELECT + MAX ( DISTINCT + 38 ) * + COUNT ( * ) FROM tab0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT + 59 * + COUNT( ALL - 45 ) AS col0 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-6556
SELECT + 59 * + COUNT ( ALL - 45 ) AS col0 FROM tab1
----
177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6557
SELECT DISTINCT - - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6557
SELECT DISTINCT - - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 * - - col1 AS col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT ALL - 90 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

onlyif mysql # DIV for integer division: 
query I rowsort label-6560
SELECT ALL col2 * + 24 DIV + - 3 FROM tab2
----
-184
-320
-464

skipif mysql # not compatible
query I rowsort label-6560
SELECT ALL col2 * + 24 / + - 3 FROM tab2
----
-184
-320
-464

query I rowsort
SELECT + col2 + + col0 * - 8 FROM tab1
----
-312
-621
-660

query I rowsort
SELECT DISTINCT 4 FROM tab1 WHERE ( NULL ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6563
SELECT ALL - MAX( + + CAST( + 99 AS SIGNED ) ) * SUM( ALL col1 ) AS col0 FROM tab0 AS cor0
----
-10197

skipif mysql # not compatible
query I rowsort label-6563
SELECT ALL - MAX ( + + CAST ( + 99 AS INTEGER ) ) * SUM ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
-10197

query I rowsort
SELECT + col1 + - 46 * + col2 FROM tab2 AS cor0 WHERE ( + 48 ) IS NOT NULL
----
-1007
-1763
-2601

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6565
SELECT + + 83 AS col2, 12 - - col1 * ( CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
83
NULL
83
NULL
83
NULL

skipif mysql # not compatible
query II rowsort label-6565
SELECT + + 83 AS col2, 12 - - col1 * ( CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
83
NULL
83
NULL
83
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT DISTINCT + 0 + - COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6566
SELECT DISTINCT + 0 + - COUNT ( * ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( + col0 / + + col2 + col2 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( + col0 / + + col2 + col2 ) AND NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * 62 * 77 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 AS cor0 WHERE + 1 IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT 3 + - col2 FROM tab1 cor0
----
-56
-65
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6571
SELECT + CAST( NULL AS SIGNED ) * 86 + - - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6571
SELECT + CAST ( NULL AS INTEGER ) * 86 + - - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT - MIN( ALL - 95 ) FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-6572
SELECT - MIN ( ALL - 95 ) FROM tab2 AS cor0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6573
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) + + 96 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= + col1 OR NOT ( col2 ) NOT BETWEEN - col1 * + col0 AND NULL
----
96

skipif mysql # not compatible
query I rowsort label-6573
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) + + 96 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= + col1 OR NOT ( col2 ) NOT BETWEEN - col1 * + col0 AND NULL
----
96

query I rowsort
SELECT DISTINCT 17 * col0 * col1 * col2 - - col0 FROM tab2
----
3351104
4954725
917332

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - col1 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6576
SELECT - CAST( + ( + SUM( ALL + col0 ) ) AS SIGNED ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-6576
SELECT - CAST ( + ( + SUM ( ALL + col0 ) ) AS INTEGER ) FROM tab0
----
-199

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 + - col1 / ( + col2 ) IS NULL
----

query II rowsort
SELECT ALL - 33 * + - col2 AS col0, - col2 AS col0 FROM tab1
----
1947
-59
2244
-68
3168
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT MAX( DISTINCT - - 14 ) FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-6579
SELECT MAX ( DISTINCT - - 14 ) FROM tab0
----
14

query I rowsort
SELECT DISTINCT - col0 + + ( + col2 ) AS col1 FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-6581
SELECT DISTINCT COUNT( * ) - + - 49 AS col2, 73 FROM tab2
----
52
73

skipif mysql # not compatible
query II rowsort label-6581
SELECT DISTINCT COUNT ( * ) - + - 49 AS col2, 73 FROM tab2
----
52
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6582
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6582
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6583
SELECT DISTINCT 30 DIV + SUM( - 45 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6583
SELECT DISTINCT 30 / + SUM ( - 45 ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE + - col1 BETWEEN - 66 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6585
SELECT ALL COUNT( * ) DIV - 71 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL COUNT ( * ) / - 71 AS col2 FROM tab2
----
0

query I rowsort
SELECT ( - col1 ) - 57 AS col2 FROM tab0
----
-138
-58
-78

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 / 89 + + col0 - col0 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 col2 FROM tab0 cor0 WHERE NOT ( - col0 ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6589
SELECT - 58 DIV ( + - 86 ) AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6589
SELECT - 58 / ( + - 86 ) AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT + COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT ( col1 + ( + col0 ) + col1 ) >= - 41
----
0

skipif mysql # not compatible
query I rowsort label-6590
SELECT + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT ( col1 + ( + col0 ) + col1 ) >= - 41
----
0

query I rowsort
SELECT 31 / - col1 + col1 AS col1 FROM tab0 AS cor0 WHERE col0 * + ( col1 ) NOT BETWEEN ( NULL ) AND ( NULL ) AND col1 NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT SUM( DISTINCT - + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-6592
SELECT SUM ( DISTINCT - + col1 ) FROM tab0 AS cor0
----
-103

query II rowsort
SELECT - + col1, col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT ALL + 67 FROM tab1 AS cor0 WHERE NOT + col2 - col2 * - col1 + + - col0 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT - 78 NOT BETWEEN - col2 * - col1 AND ( - col0 * - 90 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= ( 62 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6597
SELECT CAST( NULL AS SIGNED ) + - 32 AS col1 FROM tab2 WHERE NOT NULL <> - - col0
----

skipif mysql # not compatible
query I rowsort label-6597
SELECT CAST ( NULL AS INTEGER ) + - 32 AS col1 FROM tab2 WHERE NOT NULL <> - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT COUNT( - col0 ) * + 72 + 71 AS col0 FROM tab2
----
287

skipif mysql # not compatible
query I rowsort label-6598
SELECT COUNT ( - col0 ) * + 72 + 71 AS col0 FROM tab2
----
287

query II rowsort
SELECT col2, + col2 AS col2 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6600
SELECT * FROM tab0 WHERE NOT + col2 + + 95 NOT BETWEEN - + CAST( NULL AS SIGNED ) * - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6600
SELECT * FROM tab0 WHERE NOT + col2 + + 95 NOT BETWEEN - + CAST ( NULL AS INTEGER ) * - col0 AND NULL
----

query I rowsort
SELECT - 40 * + col2 + col2 + 23 - - col0 * 20 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-257
-739
46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6602
SELECT DISTINCT - 7 + + col2 + CAST( NULL AS DECIMAL ) * - col1 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6602
SELECT DISTINCT - 7 + + col2 + CAST ( NULL AS REAL ) * - col1 AS col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 - col1 * + col1 * + 75 + + 96 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 56 + - 11 + - col1 FROM tab0 AS cor0
----
-36
24
44

query I rowsort
SELECT + 92 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6606
SELECT ALL + CAST( - col1 AS SIGNED ) + - - ( - + col0 ) AS col1 FROM tab2 AS cor0
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL + CAST ( - col1 AS INTEGER ) + - - ( - + col0 ) AS col1 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT ALL - 18 FROM tab0 cor0 WHERE NULL > ( col0 )
----

query I rowsort
SELECT + 70 + 45 FROM tab0 AS cor0
----
115
115
115

query I rowsort
SELECT ALL + 92 + - col1 * - - 29 AS col1 FROM tab2 AS cor0
----
-1387
-1851
-2141

query I rowsort
SELECT DISTINCT 46 + + - col1 * + ( 28 ) FROM tab1 AS cor0
----
-1270
-346
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6611
SELECT + - CAST( NULL AS SIGNED ) AS col1, - col1 AS col0 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-6611
SELECT + - CAST ( NULL AS INTEGER ) AS col1, - col1 AS col0 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

query II rowsort
SELECT col2, - col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6613
SELECT ALL - col2 + - CAST( NULL AS SIGNED ) * 40 * - - 86 * col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6613
SELECT ALL - col2 + - CAST ( NULL AS INTEGER ) * 40 * - - 86 * col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE - + col2 IN ( - col1 * - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT ALL + COUNT( * ) AS col2 FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT + - 2 - - + 48 AS col1 FROM tab1 AS cor0
----
46
46
46

query I rowsort
SELECT ALL col0 * + 92 + 33 FROM tab1 AS cor0
----
4725
7853
8405

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT ALL MIN( DISTINCT - col0 ) + 83 AS col2 FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL MIN ( DISTINCT - col0 ) + 83 AS col2 FROM tab0 AS cor0
----
-14

query I rowsort
SELECT + ( - col0 ) + col1 AS col1 FROM tab0 cor0
----
-66
-96
66

query I rowsort
SELECT ALL col1 * - 96 + + 23 AS col1 FROM tab2 AS cor0
----
-4873
-6409
-7369

query II rowsort
SELECT DISTINCT + ( + col0 ) * + col0 + + col0 + col0, + 63 AS col2 FROM tab2 AS cor0
----
2208
63
4224
63
5775
63

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
51
85
91

query I rowsort
SELECT - - col1 + - 20 + + 7 * 27 FROM tab1 AS cor0
----
174
183
216

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 <= - col1 + - 5
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col2 * + col2 AND + col1 * col2 / - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - 48 col2 FROM tab2
----
-112
-123
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT - COUNT( * ) + - COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-6627
SELECT - COUNT ( * ) + - COUNT ( * ) FROM tab1
----
-6

query I rowsort
SELECT DISTINCT col0 - + 83 FROM tab2
----
-19
-37
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-6629
SELECT ALL - SUM( + ( + col1 ) ) col1, - COUNT( * ) AS col1 FROM tab1
----
-66
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6629
SELECT ALL - SUM ( + ( + col1 ) ) col1, - COUNT ( * ) AS col1 FROM tab1
----
-66
-3

query I rowsort
SELECT ALL 27 - - 94 AS col2 FROM tab1
----
121
121
121

onlyif mysql # DIV for integer division: 
query I rowsort label-6631
SELECT 51 DIV + col2 AS col2 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-6631
SELECT 51 / + col2 AS col2 FROM tab0
----
0
1
5

query I rowsort
SELECT col2 * - col0 * + + 24 * + col0 * ( - 38 ) AS col2 FROM tab1
----
227722752
388762800
513554496

query III rowsort
SELECT * FROM tab2 WHERE + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( - + col0 ) AS col2 FROM tab2 cor0 WHERE NOT - 38 + - 59 + + + 78 IN ( 95 )
----
46
64
75

query II rowsort
SELECT 61 * col2, col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1403
23
2440
40
3538
58

query II rowsort
SELECT DISTINCT - - col2 AS col2, - col0 AS col1 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

query II rowsort
SELECT DISTINCT + + 47 AS col0, col0 FROM tab1 AS cor0
----
47
51
47
85
47
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6638
SELECT ( col2 ) * 52 - - col1 FROM tab1 AS cor0 WHERE NOT + 17 IS NOT NULL AND - col0 NOT BETWEEN + CAST( col0 AS SIGNED ) AND + ( col2 ) + col0 * + col2
----

skipif mysql # not compatible
query I rowsort label-6638
SELECT ( col2 ) * 52 - - col1 FROM tab1 AS cor0 WHERE NOT + 17 IS NOT NULL AND - col0 NOT BETWEEN + CAST ( col0 AS INTEGER ) AND + ( col2 ) + col0 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT - SUM( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-6639
SELECT - SUM ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
-199

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT ALL 80 * COUNT( ALL - 34 ) FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-6642
SELECT ALL 80 * COUNT ( ALL - 34 ) FROM tab1
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT + ( SUM( DISTINCT - + 91 ) ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-6643
SELECT + ( SUM ( DISTINCT - + 91 ) ) FROM tab1
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6644
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) * COUNT( * ) + 97 FROM tab1 AS cor0 WHERE NULL IS NULL
----
106

skipif mysql # not compatible
query I rowsort label-6644
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) * COUNT ( * ) + 97 FROM tab1 AS cor0 WHERE NULL IS NULL
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT ALL + SUM( ALL col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL + SUM ( ALL col1 ) FROM tab0 AS cor0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( - col1 ) AS col1, col0 col0 FROM tab2 cor0
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6647
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 NOT IN ( - - col2 / - 13, + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6647
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 NOT IN ( - - col2 / - 13, + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL + col1 * - - ( + 57 ) - + col1 AS col0 FROM tab1 AS cor0
----
2632
280
784

query II rowsort
SELECT DISTINCT - col0, col1 + - - col2 FROM tab0 AS cor0 WHERE NOT NULL >= + col1 / - col0
----

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT - - 12 IN ( - + col2 )
----
51
67
77

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE + + col2 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT - ( + - COUNT( * ) ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6652
SELECT - ( + - COUNT ( * ) ) col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT + COUNT( ALL - 93 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6653
SELECT + COUNT ( ALL - 93 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT 22 FROM tab2 WHERE NOT + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6655
SELECT DISTINCT + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6655
SELECT DISTINCT + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + col2 + + 68 AS col1 FROM tab0 AS cor0
----
-31
21
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + - col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 col1 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT DISTINCT ( MIN( DISTINCT 10 ) ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-6660
SELECT DISTINCT ( MIN ( DISTINCT 10 ) ) FROM tab1
----
10

query I rowsort
SELECT ALL + + col2 + - + col0 - + col0 - 39 - + col1 + + + 21 * - - col2 + col2 AS col1 FROM tab2 AS cor0
----
1078
347
676

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < 36
----

query I rowsort
SELECT - ( 37 ) AS col0 FROM tab1 AS cor0
----
-37
-37
-37

query I rowsort
SELECT ALL col1 + + 73 - + col1 AS col2 FROM tab0 AS cor0
----
73
73
73

query I rowsort
SELECT DISTINCT + 2 + col0 FROM tab2 AS cor0
----
48
66
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6666
SELECT CAST( NULL AS SIGNED ) - - 82 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6666
SELECT CAST ( NULL AS INTEGER ) - - 82 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6667
SELECT ALL + col0 DIV - 88 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6667
SELECT ALL + col0 / - 88 FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL 13 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT DISTINCT MAX( ALL 41 ) FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT MAX ( ALL 41 ) FROM tab2
----
41

query I rowsort
SELECT - - col1 FROM tab1 WHERE NOT + col1 IS NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 50 NOT IN ( 89 * - col2, 23 )
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - - 12 * 81 * col1 FROM tab0 AS cor0
----
20412
78732
972

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6674
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * 20 * + 2 NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6674
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * 20 * + 2 NOT IN ( + CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - col2 + - - 69 + + 10 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + + col1 * ( + col2 ) * + col0 + col1 AS col2 FROM tab1 AS cor0
----
25080
290883
68558

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6679
SELECT ALL COUNT( DISTINCT - + 90 ) + + + CAST( NULL AS SIGNED ) * - COUNT( * ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6679
SELECT ALL COUNT ( DISTINCT - + 90 ) + + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 47 <= col0 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6681
SELECT DISTINCT + CAST( - + col1 AS SIGNED ) + + col2 FROM tab0 AS cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-6681
SELECT DISTINCT + CAST ( - + col1 AS INTEGER ) + + col2 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6682
SELECT ALL - COUNT( * ) DIV 60 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6682
SELECT ALL - COUNT ( * ) / 60 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT ALL - - COUNT( * ) FROM tab2 cor0 WHERE ( col0 + + + col2 / + + col2 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6683
SELECT ALL - - COUNT ( * ) FROM tab2 cor0 WHERE ( col0 + + + col2 / + + col2 IS NULL )
----
0

query I rowsort
SELECT - 36 * + col0 AS col1 FROM tab0 AS cor0
----
-3132
-3492
-540

query I rowsort
SELECT DISTINCT col0 + - - col1 FROM tab2 AS cor0
----
141
142
97

query III rowsort
SELECT * FROM tab2 WHERE NOT - 42 * + + ( - - col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + 65 ) OR NULL NOT BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6688
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6688
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * - col0 * + + col1 + col1 + col2 * col0 AS col1 FROM tab1 AS cor0
----
14906
207254
7145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6690
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6691
SELECT DISTINCT ( - + COUNT( * ) ) col0 FROM tab0 WHERE NOT CAST( NULL AS DECIMAL ) - - - col2 - - col2 * + col2 NOT IN ( + 63 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6691
SELECT DISTINCT ( - + COUNT ( * ) ) col0 FROM tab0 WHERE NOT CAST ( NULL AS REAL ) - - - col2 - - col2 * + col2 NOT IN ( + 63 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6692
SELECT * FROM tab2 WHERE + - col1 * col2 * - - col0 * + - col1 * CAST( - + col0 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-6692
SELECT * FROM tab2 WHERE + - col1 * col2 * - - col0 * + - col1 * CAST ( - + col0 AS INTEGER ) <= NULL
----

query I rowsort
SELECT - col2 - - col0 * + col2 - - 24 + + col0 FROM tab2
----
1105
2608
4391

query I rowsort
SELECT - + 33 + - + col2 AS col2 FROM tab0 AS cor0
----
-132
-43
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-6695
SELECT DISTINCT - 44 DIV 21 + + - 65 AS col1 FROM tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-6695
SELECT DISTINCT - 44 / 21 + + - 65 AS col1 FROM tab0 AS cor0
----
-67

query I rowsort
SELECT + col2 + - col2 * - 6 FROM tab1 AS cor0
----
413
476
672

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT ALL MAX( DISTINCT 35 ) AS col1 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-6697
SELECT ALL MAX ( DISTINCT 35 ) AS col1 FROM tab0 AS cor0
----
35

query I rowsort
SELECT ALL - col0 + + + 90 FROM tab2 AS cor0
----
15
26
44

query II rowsort
SELECT DISTINCT - 61 AS col0, col0 AS col1 FROM tab2 AS cor0
----
-61
46
-61
64
-61
75

query I rowsort
SELECT ALL - + col1 AS col0 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT ALL + ( 21 ) + + COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
24

skipif mysql # not compatible
query I rowsort label-6701
SELECT ALL + ( 21 ) + + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + ( + 15 ) col1, + 93 FROM tab2 AS cor0
----
-25
93
-43
93
-8
93

query I rowsort
SELECT col2 * - ( 13 ) + ( - col2 ) + col1 FROM tab1 cor0 WHERE NOT col2 * - + 71 IS NULL
----
-1330
-821
-905

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 46 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT + MIN( DISTINCT + col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-6705
SELECT + MIN ( DISTINCT + col0 ) AS col0 FROM tab1
----
51

query III rowsort
SELECT * FROM tab1 WHERE NOT 53 IS NOT NULL
----

query II rowsort
SELECT + 80 AS col2, + 99 - col0 + + col0 FROM tab1
----
80
99
80
99
80
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT COUNT( DISTINCT - - 66 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6708
SELECT COUNT ( DISTINCT - - 66 ) AS col1 FROM tab2
----
1

query II rowsort
SELECT DISTINCT col1 AS col2, + col0 + - 20 AS col0 FROM tab2
----
51
26
67
55
77
44

query II rowsort
SELECT col1 AS col1, ( + ( col1 ) ) * col2 * 64 FROM tab1
----
14
86016
47
204544
5
18880

onlyif mysql # aggregate syntax: 
query II rowsort label-6711
SELECT ALL + 63 AS col1, MIN( ALL + + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----
63
NULL

skipif mysql # not compatible
query II rowsort label-6711
SELECT ALL + 63 AS col1, MIN ( ALL + + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----
63
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6712
SELECT col1 DIV ( + 74 ) FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6712
SELECT col1 / ( + 74 ) FROM tab0 cor0
----
0
0
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 41 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( + 93 ) AS col0 FROM tab0
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT DISTINCT + ( - + COUNT( * ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6715
SELECT DISTINCT + ( - + COUNT ( * ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT ALL COUNT( ALL + col1 ) AS col1 FROM tab0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL COUNT ( ALL + col1 ) AS col1 FROM tab0 WHERE NOT NULL <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT - COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6717
SELECT - COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6718
SELECT ALL - COUNT( * ) + - 96 + - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6718
SELECT ALL - COUNT ( * ) + - 96 + - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + col0 * - col1 + - 69 col1, + 7 * - col2 col1 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6720
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( ( + + col1 ), 93, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6720
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( ( + + col1 ), 93, - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT + 42 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-6721
SELECT + 42 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT DISTINCT ( + + COUNT( + col1 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6722
SELECT DISTINCT ( + + COUNT ( + col1 ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 30 + - col0 + + 0 AS col1 FROM tab1 cor0
----
-115
-121
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6724
SELECT ALL ( + + ( col0 ) ) / + col0 * - - CAST( col1 AS SIGNED ) FROM tab1 AS cor0 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL ( + + ( col0 ) ) / + col0 * - - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL col0 + + - 80 + + col1 FROM tab1 AS cor0
----
-15
10
58

query I rowsort
SELECT DISTINCT - 0 + - + ( - col1 ) FROM tab0 AS cor0
----
1
21
81

query II rowsort
SELECT ALL - + col0, col1 FROM tab0 AS cor0 WHERE NOT 32 < NULL
----

query I rowsort
SELECT col0 * - 15 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6729
SELECT ALL - + col1 + + 94 DIV - 51 + - 85 * - col1 AS col2 FROM tab0 cor0
----
1763
6803
83

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL - + col1 + + 94 / - 51 + - 85 * - col1 AS col2 FROM tab0 cor0
----
1763
6803
83

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE 35 IN ( - col0 * + col1 - - 98 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6731
SELECT 94 DIV 74 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6731
SELECT 94 / 74 AS col1 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6732
SELECT - + 83 AS col2 FROM tab0 WHERE - - 16 * - 55 + + col1 / CAST( - - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6732
SELECT - + 83 AS col2 FROM tab0 WHERE - - 16 * - 55 + + col1 / CAST ( - - col0 AS INTEGER ) IS NULL
----

query I rowsort
SELECT 1 * + col2 AS col2 FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT col2 * col2 FROM tab1 WHERE col1 IS NULL
----

query II rowsort
SELECT - col1 AS col0, - col1 + - 78 AS col1 FROM tab1
----
-14
-92
-47
-125
-5
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT ALL - 1 + + COUNT( * ) * - + 91 + - COUNT( * ) FROM tab1
----
-277

skipif mysql # not compatible
query I rowsort label-6736
SELECT ALL - 1 + + COUNT ( * ) * - + 91 + - COUNT ( * ) FROM tab1
----
-277

query I rowsort
SELECT DISTINCT 88 * - - 19 FROM tab1 AS cor0
----
1672

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6738
SELECT - + 10 - + col2 + + col2 AS col1, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-10
NULL
-10
NULL
-10
NULL

skipif mysql # not compatible
query II rowsort label-6738
SELECT - + 10 - + col2 + + col2 AS col1, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-10
NULL
-10
NULL
-10
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 0 - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT ALL 93 - - + 57 + + + COUNT( * ) AS col2 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL 93 - - + 57 + + + COUNT ( * ) AS col2 FROM tab0
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6741
SELECT ALL COUNT( * ) DIV + - CAST( + ( ( 22 ) ) AS SIGNED ) + + MIN( ALL + - 20 ), 18 AS col0 FROM tab2
----
-20
18

skipif mysql # not compatible
query II rowsort label-6741
SELECT ALL COUNT ( * ) / + - CAST ( + ( ( 22 ) ) AS INTEGER ) + + MIN ( ALL + - 20 ), 18 AS col0 FROM tab2
----
-20
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6742
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6742
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6743
SELECT - - CAST( - + MIN( + col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-6743
SELECT - - CAST ( - + MIN ( + col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-46

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 45 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT ALL MIN( + 40 ) FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL MIN ( + 40 ) FROM tab1
----
40

query II rowsort
SELECT DISTINCT + 8 AS col1, 19 FROM tab0
----
8
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT ALL SUM( DISTINCT - + ( col1 ) ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-6747
SELECT ALL SUM ( DISTINCT - + ( col1 ) ) AS col1 FROM tab2
----
-195

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 <= 9
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 IN ( ( - col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 34 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6751
SELECT ALL col1, - col1 DIV 94 * col1 AS col1 FROM tab0 AS cor0
----
1
0
21
0
81
0

skipif mysql # not compatible
query II rowsort label-6751
SELECT ALL col1, - col1 / 94 * col1 AS col1 FROM tab0 AS cor0
----
1
0
21
0
81
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 BETWEEN + col0 AND + 20 * 6 )
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT ALL + SUM( col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-6753
SELECT ALL + SUM ( col1 ) FROM tab2
----
195

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 52 + - + col2 FROM tab0 AS cor0
----
-151
-62
-99

query II rowsort
SELECT + col0, 4 FROM tab1 AS cor0
----
51
4
85
4
91
4

query I rowsort
SELECT ALL 96 + - - 53 FROM tab1 AS cor0
----
149
149
149

query I rowsort
SELECT - - col0 + + col1 * 32 + - 93 AS col1 FROM tab0 AS cor0
----
2514
36
666

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT + ( - + COUNT( * ) ) + + - COUNT( * ) AS col0 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-6759
SELECT + ( - + COUNT ( * ) ) + + - COUNT ( * ) AS col0 FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT DISTINCT 2 * - ( + MIN( ALL + - col0 ) ) FROM tab0
----
194

skipif mysql # not compatible
query I rowsort label-6760
SELECT DISTINCT 2 * - ( + MIN ( ALL + - col0 ) ) FROM tab0
----
194

query I rowsort
SELECT + ( - + col1 ) + - + col2 AS col1 FROM tab0
----
-100
-128
-31

query III rowsort
SELECT * FROM tab0 WHERE - + col1 IS NULL
----

query I rowsort
SELECT ( + col2 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6764
SELECT - 90 DIV - col0 col1, - col1 * col0 * col1 AS col0 FROM tab0 AS cor0
----
0
-97
1
-38367
6
-98415

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6764
SELECT - 90 / - col0 col1, - col1 * col0 * col1 AS col0 FROM tab0 AS cor0
----
0
-97
1
-38367
6
-98415

query I rowsort
SELECT DISTINCT - 97 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = col1 * + col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 > + col2 / - + ( - + 74 ) + 5
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE + 12 + - 5 * + - 23 * - ( + - col0 ) BETWEEN - + 22 * col2 AND NULL
----

query I rowsort
SELECT - - 98 FROM tab1 WHERE NOT - + col1 IS NULL
----
98
98
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6770
SELECT AVG ( ALL - + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6770
SELECT AVG ( ALL - + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + col2, col0 AS col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 37 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT MIN( ALL col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-6773
SELECT MIN ( ALL col2 ) FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6774
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + SUM( ALL 70 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6774
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + SUM ( ALL 70 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT ( - + COUNT( * ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6775
SELECT ( - + COUNT ( * ) ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT DISTINCT COUNT( ALL + - 42 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6776
SELECT DISTINCT COUNT ( ALL + - 42 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT ( MAX( col2 ) ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-6777
SELECT ( MAX ( col2 ) ) AS col1 FROM tab2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6778
SELECT CAST( - + col2 AS SIGNED ) FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6778
SELECT CAST ( - + col2 AS INTEGER ) FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT DISTINCT + COUNT( * ) * 87 AS col0 FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-6779
SELECT DISTINCT + COUNT ( * ) * 87 AS col0 FROM tab1
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE 15 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-6780
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE 15 > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6781
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + CAST( NULL AS DECIMAL ) + CAST( col2 AS SIGNED ) AND 71 + + ( - - col1 )
----

skipif mysql # not compatible
query III rowsort label-6781
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + CAST ( NULL AS REAL ) + CAST ( col2 AS INTEGER ) AND 71 + + ( - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT COUNT( * ) col2 FROM tab0 WHERE NOT 29 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6782
SELECT COUNT ( * ) col2 FROM tab0 WHERE NOT 29 BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT + 74 + + COUNT( * ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-6783
SELECT + 74 + + COUNT ( * ) FROM tab2
----
77

query I rowsort
SELECT ( col2 ) + ( - - 77 ) FROM tab1
----
136
145
173

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE 12 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT ALL - + col2 + - col2 + + + col0 * col1 FROM tab0 AS cor0
----
-101
1121
1807

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT ALL + 52 + COUNT( * ) FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL + 52 + COUNT ( * ) FROM tab1 AS cor0
----
55

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( - col2 ) <> + col2
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 * - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6790
SELECT ALL + col2 - + col2 + - + col2 DIV + - col0 AS col0 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-6790
SELECT ALL + col2 - + col2 + - + col2 / + - col0 AS col0 FROM tab0
----
0
1
3

query II rowsort
SELECT ALL 76 AS col2, - col2 * - col1 * + - col2 FROM tab1
----
76
-129024
76
-17405
76
-217328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6792
SELECT DISTINCT 99 * MAX( DISTINCT col2 ) DIV MIN( 93 ) col2 FROM tab2
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6792
SELECT DISTINCT 99 * MAX ( DISTINCT col2 ) / MIN ( 93 ) col2 FROM tab2
----
61

query I rowsort
SELECT 73 - col0 * - 53 * - 97 + + - ( - - col2 ) + - - col2 + + + 25 * - col1 AS col1 FROM tab1
----
-262468
-437037
-468933

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6794
SELECT DISTINCT + col0 col2 FROM tab0 WHERE NOT + col1 * CAST( - col2 AS SIGNED ) IS NULL
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6794
SELECT DISTINCT + col0 col2 FROM tab0 WHERE NOT + col1 * CAST ( - col2 AS INTEGER ) IS NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6795
SELECT ALL + - CAST( NULL AS DECIMAL ) + col0 / - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6795
SELECT ALL + - CAST ( NULL AS REAL ) + col0 / - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT DISTINCT + COUNT( * ) - 21 - - COUNT( * ) + 14 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6796
SELECT DISTINCT + COUNT ( * ) - 21 - - COUNT ( * ) + 14 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6797
SELECT CAST( SUM( - col0 ) AS SIGNED ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-6797
SELECT CAST ( SUM ( - col0 ) AS INTEGER ) AS col2 FROM tab2
----
-185

query I rowsort
SELECT DISTINCT 11 AS col0 FROM tab1 cor0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6799
SELECT DISTINCT + + CAST( MIN( DISTINCT - + 37 ) AS SIGNED ) * COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col2 < - 94
----
-74

skipif mysql # not compatible
query I rowsort label-6799
SELECT DISTINCT + + CAST ( MIN ( DISTINCT - + 37 ) AS INTEGER ) * COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col2 < - 94
----
-74

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6800
SELECT ALL - CAST( NULL AS SIGNED ) * CAST( + 75 AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6800
SELECT ALL - CAST ( NULL AS INTEGER ) * CAST ( + 75 AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT ( + COUNT( * ) ) - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6801
SELECT ( + COUNT ( * ) ) - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----
0

query I rowsort
SELECT - col1 * ( + col2 ) - + ( - col2 ) AS col1 FROM tab2 AS cor0
----
-1150
-3040
-3828

query I rowsort
SELECT + - ( + col2 ) * - - 25 * - - 30 FROM tab0 AS cor0
----
-35250
-74250
-7500

query I rowsort
SELECT DISTINCT - col0 * + + col1 AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6805
SELECT + CAST( - AVG ( DISTINCT + 49 ) AS SIGNED ) * COUNT( * ) * 32 AS col2 FROM tab2 AS cor0
----
-4704

skipif mysql # not compatible
query I rowsort label-6805
SELECT + CAST ( - AVG ( DISTINCT + 49 ) AS INTEGER ) * COUNT ( * ) * 32 AS col2 FROM tab2 AS cor0
----
-4704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6806
SELECT ALL 69 * + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
3519
4623
5313

skipif mysql # not compatible
query I rowsort label-6806
SELECT ALL 69 * + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
3519
4623
5313

query I rowsort
SELECT ALL + 8 * + col0 AS col0 FROM tab0 AS cor0
----
120
696
776

query I rowsort
SELECT + - col1 + + + 55 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND - 20
----

query I rowsort
SELECT DISTINCT - ( + ( + col0 ) ) * - - col0 AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query III rowsort
SELECT * FROM tab2 WHERE NOT 52 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 * - 66 + + col0 + - col0 + + - col1 NOT BETWEEN - col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * + col0 IS NOT NULL
----

query II rowsort
SELECT ALL col1, - col2 AS col2 FROM tab1
----
14
-96
47
-68
5
-59

query I rowsort
SELECT - col2 + - + 78 AS col2 FROM tab1 WHERE NOT - 46 IS NOT NULL
----

query II rowsort
SELECT + 51 AS col2, + col1 AS col0 FROM tab0
----
51
1
51
21
51
81

query I rowsort
SELECT - col0 + + col1 - col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-195
-76
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT - - 37 * + - 27 + 9 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-987

skipif mysql # not compatible
query I rowsort label-6817
SELECT - - 37 * + - 27 + 9 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-987

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, + col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT - col0 + + + col1 FROM tab2 AS cor0
----
-8
13
5

query II rowsort
SELECT ALL - + 15 AS col0, - col1 FROM tab2 AS cor0
----
-15
-51
-15
-67
-15
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col2, + 39 col1 FROM tab2 AS cor0
----
-51
39
-67
39
-77
39

query I rowsort
SELECT - col0 FROM tab0 WHERE + col2 IS NOT NULL
----
-15
-87
-97

query II rowsort
SELECT + col0 + - col0, + col0 AS col2 FROM tab2 AS cor0
----
0
46
0
64
0
75

query I rowsort
SELECT + ( - col1 ) + 67 AS col2 FROM tab0 AS cor0
----
-14
46
66

onlyif mysql # DIV for integer division: 
query I rowsort label-6825
SELECT - + 39 + 49 DIV + + 70 AS col2 FROM tab1 AS cor0
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-6825
SELECT - + 39 + 49 / + + 70 AS col2 FROM tab1 AS cor0
----
-39
-39
-39

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6827
SELECT DISTINCT - 80 * - + CAST( col2 AS SIGNED ) + - col0 FROM tab1 AS cor0
----
4635
5349
7629

skipif mysql # not compatible
query I rowsort label-6827
SELECT DISTINCT - 80 * - + CAST ( col2 AS INTEGER ) + - col0 FROM tab1 AS cor0
----
4635
5349
7629

query I rowsort
SELECT + + col1 AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( + col2 * - ( ( + 26 ) ) + - + col2, + col2 * + + col2 * + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT - + COUNT( * ) FROM tab0 WHERE NULL BETWEEN - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6829
SELECT - + COUNT ( * ) FROM tab0 WHERE NULL BETWEEN - col2 AND NULL
----
0

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE ( NULL = NULL )
----

query II rowsort
SELECT DISTINCT col0, - col0 * col0 FROM tab1
----
51
-2601
85
-7225
91
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6832
SELECT ALL - col0 + + col0 FROM tab2 WHERE ( NOT CAST( NULL AS SIGNED ) * col2 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL - col0 + + col0 FROM tab2 WHERE ( NOT CAST ( NULL AS INTEGER ) * col2 IS NULL )
----

query I rowsort
SELECT col1 * 20 AS col1 FROM tab0
----
1620
20
420

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT ( - - COUNT( * ) ) * 5 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-6834
SELECT ( - - COUNT ( * ) ) * 5 FROM tab2
----
15

query I rowsort
SELECT DISTINCT - 78 - - col1 FROM tab0
----
-57
-77
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT + COUNT( DISTINCT - 82 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6836
SELECT + COUNT ( DISTINCT - 82 ) FROM tab2
----
1

query I rowsort
SELECT ALL + ( + 15 ) AS col1 FROM tab1 cor0
----
15
15
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col0 FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT - MAX( ALL + 73 ) FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-6839
SELECT - MAX ( ALL + 73 ) FROM tab2
----
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT + ( - + 62 ) FROM tab0
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6843
SELECT - 72 * - 9 / - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6843
SELECT - 72 * - 9 / - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * 16 FROM tab2 AS cor0
----
1024
1200
736

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( + + col0 ) IS NOT NULL )
----

query II rowsort
SELECT - col1, 50 AS col1 FROM tab2 AS cor0
----
-51
50
-67
50
-77
50

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - col2 * - + col2 >= + col2
----

query II rowsort
SELECT DISTINCT - col0 AS col1, - col0 FROM tab1 AS cor0
----
-51
-51
-85
-85
-91
-91

query I rowsort
SELECT DISTINCT - col1 * col2 + - col2 FROM tab0 AS cor0
----
-198
-220
-3854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6850
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) * - 79 / - - 81 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6850
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) * - 79 / - - 81 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT ALL + COUNT( * ) * 56 AS col1 FROM tab2 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL + COUNT ( * ) * 56 AS col1 FROM tab2 AS cor0
----
168

onlyif mysql # DIV for integer division: 
query II rowsort label-6852
SELECT col2 DIV + col1, col2 FROM tab0
----
0
10
0
47
99
99

skipif mysql # not compatible
query II rowsort label-6852
SELECT col2 / + col1, col2 FROM tab0
----
0
10
0
47
99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6853
SELECT col1 DIV 78 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6853
SELECT col1 / 78 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL + ( - 37 ) FROM tab2
----
-37
-37
-37

query I rowsort
SELECT ALL + 62 * + col0 FROM tab1
----
3162
5270
5642

query I rowsort
SELECT - 4 AS col0 FROM tab1
----
-4
-4
-4

query I rowsort
SELECT 72 + + col0 AS col2 FROM tab0 cor0 WHERE col0 + - 97 - + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6859
SELECT ALL - col0 DIV + + CAST( 32 AS SIGNED ) + + col0 col2 FROM tab1
----
50
83
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6859
SELECT ALL - col0 / + + CAST ( 32 AS INTEGER ) + + col0 col2 FROM tab1
----
50
83
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT DISTINCT COUNT( * ) + 2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
11

skipif mysql # not compatible
query I rowsort label-6860
SELECT DISTINCT COUNT ( * ) + 2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6861
SELECT * FROM tab0 cor0 CROSS JOIN tab1 cor1 WHERE NOT CAST( + + 59 AS SIGNED ) <> 99
----

skipif mysql # not compatible
query IIIIII rowsort label-6861
SELECT * FROM tab0 cor0 CROSS JOIN tab1 cor1 WHERE NOT CAST ( + + 59 AS INTEGER ) <> 99
----

query I rowsort
SELECT DISTINCT + + col1 + col0 AS col2 FROM tab0 AS cor0
----
108
96
98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT - 47 AS col0 FROM tab1 AS cor0 WHERE - 36 BETWEEN NULL AND 56
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6865
SELECT + COUNT( * ) * - 48 * - COUNT( * ) * + COUNT( * ) DIV + 36 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6865
SELECT + COUNT ( * ) * - 48 * - COUNT ( * ) * + COUNT ( * ) / + 36 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6866
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS REAL ) + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - col0 ) - - col2 * - ( col0 ) AS col0 FROM tab1 AS cor0
----
-4947
-5100
-6279

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT + MAX( - col2 ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6868
SELECT + MAX ( - col2 ) FROM tab0 cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT ALL COUNT( * ) - - COUNT( + ( + ( - - col0 ) ) ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-6869
SELECT ALL COUNT ( * ) - - COUNT ( + ( + ( - - col0 ) ) ) FROM tab0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6870
SELECT 16 - + col2 + 94 DIV ( + - 62 ) - col1 FROM tab0
----
-113
-16
-85

skipif mysql # not compatible
query I rowsort label-6870
SELECT 16 - + col2 + 94 / ( + - 62 ) - col1 FROM tab0
----
-113
-16
-85

query I rowsort
SELECT + col0 - + ( + 75 ) FROM tab2
----
-11
-29
0

query I rowsort
SELECT 24 - + - col1 + - 82 FROM tab1
----
-11
-44
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-6873
SELECT DISTINCT col0 DIV + col1 - 47 FROM tab2
----
-46
-47

skipif mysql # not compatible
query I rowsort label-6873
SELECT DISTINCT col0 / + col1 - 47 FROM tab2
----
-46
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 12 col0 FROM tab0
----
-3
-75
-85

query I rowsort
SELECT 76 * - 8 + 16 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 * - col0 >= col2 * - 94
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6876
SELECT - + 22 DIV COUNT( * ) + + 32 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-6876
SELECT - + 22 / COUNT ( * ) + + 32 FROM tab0 AS cor0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6877
SELECT + CAST( ( + 45 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
45
45
45

skipif mysql # not compatible
query I rowsort label-6877
SELECT + CAST ( ( + 45 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
45
45
45

query I rowsort
SELECT DISTINCT - + 79 AS col0 FROM tab0 AS cor0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT DISTINCT + COUNT( * ) * - + MIN( + col2 ) AS col2 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-6879
SELECT DISTINCT + COUNT ( * ) * - + MIN ( + col2 ) AS col2 FROM tab2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT SUM( ALL + - col2 ) * - COUNT( * ) AS col0 FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-6880
SELECT SUM ( ALL + - col2 ) * - COUNT ( * ) AS col0 FROM tab1
----
669

query II rowsort
SELECT DISTINCT + col1, + 51 FROM tab1
----
14
51
47
51
5
51

query I rowsort
SELECT + AVG ( - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> + 42 - col1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 61 col2, col2 FROM tab2 AS cor0
----
-61
23
-61
40
-61
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 37 * - col0 NOT BETWEEN + 40 - - - col1 * - col1 AND + 88 / + 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT ALL - - COUNT( * ) * - 22 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-6885
SELECT ALL - - COUNT ( * ) * - 22 FROM tab2 AS cor0
----
-66

query I rowsort
SELECT DISTINCT + - 25 AS col2 FROM tab1 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT DISTINCT - MAX( + col2 ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-6887
SELECT DISTINCT - MAX ( + col2 ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
288

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 74 * - - col1 * - 74 + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6889
SELECT + CAST( NULL AS SIGNED ) * 55 + col1 col0, - col1 + + + col2 AS col0 FROM tab2 AS cor0
----
NULL
-28
NULL
-37
NULL
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6889
SELECT + CAST ( NULL AS INTEGER ) * 55 + col1 col0, - col1 + + + col2 AS col0 FROM tab2 AS cor0
----
NULL
-28
NULL
-37
NULL
-9

query II rowsort
SELECT DISTINCT col0, col2 + + 42 FROM tab2 AS cor0
----
46
65
64
82
75
100

query II rowsort
SELECT + 90 AS col2, + col0 FROM tab2 WHERE NOT 10 + col2 + + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT ALL COUNT( * ) * + - COUNT( * ) * - + 31 col2 FROM tab2
----
279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6892
SELECT ALL COUNT ( * ) * + - COUNT ( * ) * - + 31 col2 FROM tab2
----
279

query I rowsort
SELECT - 98 + + 69 FROM tab2
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT - + COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6894
SELECT - + COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-6895
SELECT ALL col1 DIV - 61 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6895
SELECT ALL col1 / - 61 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6896
SELECT DISTINCT + col1 * CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) * col1 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6896
SELECT DISTINCT + col1 * CAST ( CAST ( NULL AS REAL ) AS INTEGER ) * col1 AS col2 FROM tab0 cor0
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 79 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * - col1 col2, - col2 FROM tab0
----
-210
-10
-3807
-47
-99
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = col0 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6900
SELECT ALL - SUM( 56 ) FROM tab2
----
-168

skipif mysql # not compatible
query I rowsort label-6900
SELECT ALL - SUM ( 56 ) FROM tab2
----
-168

query I rowsort
SELECT - 32 FROM tab2 AS cor0 WHERE NULL BETWEEN col2 AND - ( + col0 )
----

query I rowsort
SELECT + col1 + - - col0 + - col2 - - col0 AS col0 FROM tab0 AS cor0
----
185
64
96

query I rowsort
SELECT ALL + col2 * - 97 + col0 AS col0 FROM tab0 AS cor0
----
-4544
-883
-9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 89 + col2 * - col2 * + + col1 col1 FROM tab1 AS cor0
----
-129113
-17494
-217417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6905
SELECT DISTINCT col0 / + 2 / - CAST( NULL AS SIGNED ) - - ( col0 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6905
SELECT DISTINCT col0 / + 2 / - CAST ( NULL AS INTEGER ) - - ( col0 ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT BETWEEN col1 - + + col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6907
SELECT - 48 * 17 + - ( - + SUM( - ( - - 93 ) ) ) + + COUNT( * ) + - COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6907
SELECT - 48 * 17 + - ( - + SUM ( - ( - - 93 ) ) ) + + COUNT ( * ) + - COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 49 col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
100
116
126

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT ALL - COUNT( * ) col1 FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6909
SELECT ALL - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND NULL
----
0

query I rowsort
SELECT + col0 * - + col0 AS col2 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT + MAX( DISTINCT + 56 ) AS col0 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-6911
SELECT + MAX ( DISTINCT + 56 ) AS col0 FROM tab2
----
56

query I rowsort
SELECT - col0 * 60 FROM tab0
----
-5220
-5820
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT ( - + COUNT( * ) ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6913
SELECT ( - + COUNT ( * ) ) col0 FROM tab1
----
-3

query II rowsort
SELECT DISTINCT + col0, col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 9 col0 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT ALL ( + - col0 ) AS col0 FROM tab0 cor0
----
-15
-87
-97

query I rowsort
SELECT col2 + - + 29 AS col2 FROM tab1 AS cor0
----
30
39
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
51
85
91

query I rowsort
SELECT ALL - + col1 FROM tab1 AS cor0 WHERE NOT - 37 IS NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6921
SELECT * FROM tab0 AS cor0 WHERE NOT col0 = + ( CAST( - + col0 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6921
SELECT * FROM tab0 AS cor0 WHERE NOT col0 = + ( CAST ( - + col0 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( - + col2 ) AS col2 FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6923
SELECT ALL * FROM tab0 WHERE NOT + + CAST( + + 19 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6923
SELECT ALL * FROM tab0 WHERE NOT + + CAST ( + + 19 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6924
SELECT + 55 DIV + + COUNT( * ) AS col1 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-6924
SELECT + 55 / + + COUNT ( * ) AS col1 FROM tab1
----
18

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6926
SELECT + MIN( - col1 ) DIV - 81 + + ( COUNT( * ) ) + + 35 AS col0 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-6926
SELECT + MIN ( - col1 ) / - 81 + + ( COUNT ( * ) ) + + 35 AS col0 FROM tab0
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - 38 ) * + col2 col1 FROM tab2
----
1520
2204
874

query I rowsort
SELECT ALL + col2 * + 91 FROM tab1
----
5369
6188
8736

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT DISTINCT + COUNT( * ) * COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-6929
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0
----
9

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + - - col2 FROM tab1 cor0
----
110
115
64

query I rowsort
SELECT ALL + col1 + - - col1 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT DISTINCT col0 + + + col1 AS col0 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT DISTINCT - + MAX( + col2 ) AS col0 FROM tab2 AS cor0 WHERE 42 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6934
SELECT DISTINCT - + MAX ( + col2 ) AS col0 FROM tab2 AS cor0 WHERE 42 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6935
SELECT ALL + CAST( NULL AS SIGNED ) * - col0 + 19 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6935
SELECT ALL + CAST ( NULL AS INTEGER ) * - col0 + 19 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE - + col2 NOT BETWEEN + col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6937
SELECT ALL CAST( NULL AS SIGNED ) - - 90 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6937
SELECT ALL CAST ( NULL AS INTEGER ) - - 90 col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( 83 ) FROM tab0
----
83
83
83

query I rowsort
SELECT ALL - col0 * - col2 + + - 54 FROM tab2 cor0
----
1004
2506
4296

query I rowsort
SELECT DISTINCT - + 85 AS col1 FROM tab0 AS cor0
----
-85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6941
SELECT DISTINCT + col2 DIV + + ( - CAST( ( - 93 ) AS SIGNED ) ) + + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6941
SELECT DISTINCT + col2 / + + ( - CAST ( ( - 93 ) AS INTEGER ) ) + + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL + AVG ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL < col0
----
NULL

query I rowsort
SELECT + col1 - + 0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + + col2 FROM tab2 AS cor0 WHERE + 27 IS NOT NULL
----
23
40
58

query II rowsort
SELECT DISTINCT + col0, + col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT ALL + + 83 * - 13 AS col2 FROM tab0 AS cor0
----
-1079
-1079
-1079

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT MAX( DISTINCT 74 ) FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-6947
SELECT MAX ( DISTINCT 74 ) FROM tab0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6948
SELECT + COUNT( * ) AS col0 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6948
SELECT + COUNT ( * ) AS col0 FROM tab0, tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT + MIN( - + col1 ) * COUNT( * ) FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-6949
SELECT + MIN ( - + col1 ) * COUNT ( * ) FROM tab1
----
-141

query I rowsort
SELECT ALL + 14 AS col1 FROM tab1
----
14
14
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6951
SELECT + CAST( 76 AS SIGNED ) * - col1 * + CAST( - - col0 AS SIGNED ) FROM tab0 AS cor0
----
-138852
-7372
-92340

skipif mysql # not compatible
query I rowsort label-6951
SELECT + CAST ( 76 AS INTEGER ) * - col1 * + CAST ( - - col0 AS INTEGER ) FROM tab0 AS cor0
----
-138852
-7372
-92340

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT 12 * - + 82 + 28 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 18 * - 29 AS col0 FROM tab0
----
-522
-522
-522

onlyif mysql # DIV for integer division: 
query II rowsort label-6954
SELECT DISTINCT col1 DIV + ( + - 40 ) AS col1, 0 AS col2 FROM tab2
----
-1
0

skipif mysql # not compatible
query II rowsort label-6954
SELECT DISTINCT col1 / + ( + - 40 ) AS col1, 0 AS col2 FROM tab2
----
-1
0

query I rowsort
SELECT ALL 84 * + - col2 AS col1 FROM tab0
----
-3948
-8316
-840

query I rowsort
SELECT - + ( 55 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT DISTINCT - - col0 * + col2 AS col0 FROM tab2 WHERE - col1 <> + - col1 + - 3
----
1058
2560
4350

query II rowsort
SELECT DISTINCT 10 + col2 * + - 93 AS col1, + col0 AS col1 FROM tab1 AS cor0
----
-5477
85
-6314
91
-8918
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT + SUM( + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-6959
SELECT + SUM ( + col1 ) FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT - - COUNT( * ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6960
SELECT - - COUNT ( * ) col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col0 + 84 * - col0 AS col1 FROM tab1 AS cor0
----
-4233
-7055
-7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 54 col1 FROM tab0 AS cor0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-6963
SELECT DISTINCT + col2 DIV ( - 94 ) + 37 FROM tab0 AS cor0
----
36
37

skipif mysql # not compatible
query I rowsort label-6963
SELECT DISTINCT + col2 / ( - 94 ) + 37 FROM tab0 AS cor0
----
36
37

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL <= 60 * + 7
----

query I rowsort
SELECT - 47 + + 39 FROM tab1 AS cor0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT MIN( ALL - + col2 ) * 7 + + 3 FROM tab2
----
-403

skipif mysql # not compatible
query I rowsort label-6966
SELECT MIN ( ALL - + col2 ) * 7 + + 3 FROM tab2
----
-403

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 - + 83 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6970
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * + CAST( + col1 AS SIGNED ) * 35 / + + col0 + + + 9 + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6970
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + CAST ( + col1 AS INTEGER ) * 35 / + + col0 + + + 9 + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6971
SELECT * FROM tab2 WHERE NULL BETWEEN col1 * + CAST( - 9 AS SIGNED ) + - + col1 AND + col1 * - 62
----

skipif mysql # not compatible
query III rowsort label-6971
SELECT * FROM tab2 WHERE NULL BETWEEN col1 * + CAST ( - 9 AS INTEGER ) + - + col1 AND + col1 * - 62
----

query III rowsort
SELECT * FROM tab0 WHERE + - 39 + - + col0 NOT BETWEEN + + ( - + col2 ) * - ( col2 ) AND 91
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 31 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
31

query I rowsort
SELECT 63 + 97 FROM tab1
----
160
160
160

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT ALL SUM( - col0 ) + 56 FROM tab1
----
-171

skipif mysql # not compatible
query I rowsort label-6975
SELECT ALL SUM ( - col0 ) + 56 FROM tab1
----
-171

query I rowsort
SELECT DISTINCT + ( - 24 ) AS col1 FROM tab2 AS cor0
----
-24

query I rowsort
SELECT - col1 * - - 93 AS col2 FROM tab2 AS cor0
----
-4743
-6231
-7161

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT DISTINCT + + COUNT( * ) * 18 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-6978
SELECT DISTINCT + + COUNT ( * ) * 18 FROM tab1 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6979
SELECT ALL col2, + 74 + + - ( - CAST( NULL AS SIGNED ) ) / ( - col0 ) FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-6979
SELECT ALL col2, + 74 + + - ( - CAST ( NULL AS INTEGER ) ) / ( - col0 ) FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT + SUM( ALL + col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-6980
SELECT + SUM ( ALL + col0 ) AS col2 FROM tab2
----
185

query I rowsort
SELECT col0 * ( + + col0 ) AS col0 FROM tab0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query II rowsort label-6982
SELECT DISTINCT 48 AS col1, + MAX( + 68 ) + - 4 AS col1 FROM tab0
----
48
64

skipif mysql # not compatible
query II rowsort label-6982
SELECT DISTINCT 48 AS col1, + MAX ( + 68 ) + - 4 AS col1 FROM tab0
----
48
64

query I rowsort
SELECT DISTINCT col1 * + + col0 * + 68 FROM tab2
----
159528
335104
341700

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6984
SELECT - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT - COUNT( * ) + - + COUNT( * ) + SUM( + 46 ) FROM tab1 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-6985
SELECT - COUNT ( * ) + - + COUNT ( * ) + SUM ( + 46 ) FROM tab1 AS cor0
----
132

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE col1 BETWEEN - + 27 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT - MIN( + + 2 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-2

skipif mysql # not compatible
query I rowsort label-6987
SELECT - MIN ( + + 2 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT - MIN( ALL + 84 ) AS col0 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-6988
SELECT - MIN ( ALL + 84 ) AS col0 FROM tab2
----
-84

query I rowsort
SELECT col2 * + - col0 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT ALL - SUM( DISTINCT - col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-6990
SELECT ALL - SUM ( DISTINCT - col0 ) AS col2 FROM tab1
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6991
SELECT CAST( - 67 AS SIGNED ) FROM tab2
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-6991
SELECT CAST ( - 67 AS INTEGER ) FROM tab2
----
-67
-67
-67

query I rowsort
SELECT ALL col0 - - - 95 FROM tab2
----
-20
-31
-49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT 10 * - 88 - + 95 * - MAX( DISTINCT col0 ) FROM tab2
----
6245

skipif mysql # not compatible
query I rowsort label-6994
SELECT 10 * - 88 - + 95 * - MAX ( DISTINCT col0 ) FROM tab2
----
6245

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT ALL - - 66 + + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-6996
SELECT ALL - - 66 + + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
63

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 16 / + col1 < - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6998
SELECT CAST( + - col2 AS SIGNED ) * col0 + + - col1 FROM tab2 AS cor0
----
-1109
-2637
-4417

skipif mysql # not compatible
query I rowsort label-6998
SELECT CAST ( + - col2 AS INTEGER ) * col0 + + - col1 FROM tab2 AS cor0
----
-1109
-2637
-4417

query I rowsort
SELECT ALL 74 AS col0 FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT COUNT( DISTINCT - 66 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7000
SELECT COUNT ( DISTINCT - 66 ) AS col2 FROM tab0
----
1

query I rowsort
SELECT col1 * - col2 + - 86 AS col1 FROM tab2
----
-1259
-3166
-3972

onlyif mysql # DIV for integer division: 
query I rowsort label-7002
SELECT DISTINCT + col2 DIV 95 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7002
SELECT DISTINCT + col2 / 95 AS col2 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 41 NOT IN ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 43 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 61 / + 41 col2 FROM tab1 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT - col2 * + col0 FROM tab0 WHERE NOT ( + col0 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7007
SELECT - CAST( - AVG ( ALL + col0 ) AS SIGNED ) AS col2 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-7007
SELECT - CAST ( - AVG ( ALL + col0 ) AS INTEGER ) AS col2 FROM tab0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT DISTINCT + MIN( DISTINCT col1 ) + 21 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-7008
SELECT DISTINCT + MIN ( DISTINCT col1 ) + 21 FROM tab0
----
22

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 30 + 56 * + col1 ) = NULL
----

query I rowsort
SELECT ALL - col2 + 35 FROM tab0
----
-12
-64
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT DISTINCT COUNT( * ) col0 FROM tab0 WHERE ( col0 * 4 ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7011
SELECT DISTINCT COUNT ( * ) col0 FROM tab0 WHERE ( col0 * 4 ) IS NULL
----
0

query I rowsort
SELECT 42 - + col0 * + col1 FROM tab1
----
-383
-4235
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT SUM( col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-7013
SELECT SUM ( col2 ) FROM tab0
----
156

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7015
SELECT DISTINCT col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col2
----

skipif mysql # not compatible
query I rowsort label-7015
SELECT DISTINCT col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT ALL + ( col2 ) * 6 FROM tab1 AS cor0
----
354
408
576

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT + MAX( - col1 ) AS col0 FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7017
SELECT + MAX ( - col1 ) AS col0 FROM tab2 cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 70 * col0 FROM tab0 AS cor0
----
1050
6090
6790

query I rowsort
SELECT + col0 * ( 44 ) AS col0 FROM tab2 AS cor0
----
2024
2816
3300

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 cor0 WHERE NOT col1 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT DISTINCT - ( - MAX( DISTINCT ( - col2 ) ) ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7022
SELECT DISTINCT - ( - MAX ( DISTINCT ( - col2 ) ) ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT - 18 * ( col2 ) AS col1 FROM tab0
----
-1782
-180
-846

query I rowsort
SELECT DISTINCT 51 FROM tab1 cor0 CROSS JOIN tab1
----
51

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) <= ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT - MIN( col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7026
SELECT - MIN ( col0 ) AS col1 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE col0 <= ( col2 )
----

query I rowsort
SELECT DISTINCT + col2 + + col0 * + col2 AS col0 FROM tab1 AS cor0
----
4992
5074
6256

query I rowsort
SELECT ALL - + 76 * - col2 FROM tab1 AS cor0
----
4484
5168
7296

query I rowsort
SELECT DISTINCT - 50 + col0 AS col0 FROM tab0 AS cor0
----
-35
37
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7031
SELECT - + col2 + col2 DIV col0 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7031
SELECT - + col2 + col2 / col0 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7032
SELECT DISTINCT + - AVG ( DISTINCT col2 ) * + 32 + AVG ( DISTINCT + col0 + CAST( NULL AS SIGNED ) ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7032
SELECT DISTINCT + - AVG ( DISTINCT col2 ) * + 32 + AVG ( DISTINCT + col0 + CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 6 * col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7034
SELECT - col1 + CAST( 7 AS SIGNED ) AS col0 FROM tab0 cor0
----
-14
-74
6

skipif mysql # not compatible
query I rowsort label-7034
SELECT - col1 + CAST ( 7 AS INTEGER ) AS col0 FROM tab0 cor0
----
-14
-74
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE - col1 * col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE - col1 * col2 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT + + ( - MIN( 11 ) ) + + 82 FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-7036
SELECT + + ( - MIN ( 11 ) ) + + 82 FROM tab2 AS cor0
----
71

query I rowsort
SELECT + col2 + - 63 * col1 FROM tab1 AS cor0
----
-256
-2893
-786

onlyif mysql # DIV for integer division: 
query I rowsort label-7038
SELECT ALL + - col2 + 1 DIV col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7038
SELECT ALL + - col2 + 1 / col1 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT col1 + 35 * col2 AS col0 FROM tab0 AS cor0
----
1726
3466
371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 col2 FROM tab2 AS cor0 WHERE NULL > ( 97 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 * 65 col2 FROM tab1 AS cor0
----
3411
5584
5983

onlyif mysql # DIV for integer division: 
query I rowsort label-7042
SELECT DISTINCT 79 - + + col0 DIV + col2 FROM tab0
----
71
79

skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT 79 - + + col0 / + col2 FROM tab0
----
71
79

query I rowsort
SELECT ALL - col1 * + col1 * + col1 FROM tab1
----
-103823
-125
-2744

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 IN ( col1 )
----

query I rowsort
SELECT + 59 * + 4 * col1 AS col2 FROM tab0
----
19116
236
4956

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT COUNT( * ) * - - 37 AS col2 FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-7046
SELECT COUNT ( * ) * - - 37 AS col2 FROM tab2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT MIN( DISTINCT + + 87 ) AS col1 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-7047
SELECT MIN ( DISTINCT + + 87 ) AS col1 FROM tab1
----
87

query I rowsort
SELECT DISTINCT + 61 AS col2 FROM tab0 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT COUNT( 84 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7049
SELECT COUNT ( 84 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7051
SELECT + COUNT( * ) * SUM( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7051
SELECT + COUNT ( * ) * SUM ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7052
SELECT + - CAST( ( col0 ) AS SIGNED ) FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7052
SELECT + - CAST ( ( col0 ) AS INTEGER ) FROM tab0 cor0
----
-15
-87
-97

query I rowsort
SELECT ALL ( 80 ) FROM tab1
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT DISTINCT + + COUNT( * ) + + 97 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
106

skipif mysql # not compatible
query I rowsort label-7054
SELECT DISTINCT + + COUNT ( * ) + + 97 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
106

query I rowsort
SELECT + 58 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT 84 AS col2 FROM tab2 cor0
----
84
84
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7057
SELECT col1 * col0 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7057
SELECT col1 * col0 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 42 FROM tab1 AS cor0 WHERE NOT 37 * - + col1 BETWEEN NULL AND ( 40 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7059
SELECT + CAST( NULL AS SIGNED ) * + - 21 * - col2 * + 0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7059
SELECT + CAST ( NULL AS INTEGER ) * + - 21 * - col2 * + 0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + col2 * col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 IN ( 16 )
----
196
297
3822

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7061
SELECT DISTINCT MIN( DISTINCT + 55 ) FROM tab0 AS cor0 WHERE NOT 11 BETWEEN NULL AND 3 + col1 * CAST( - col2 AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-7061
SELECT DISTINCT MIN ( DISTINCT + 55 ) FROM tab0 AS cor0 WHERE NOT 11 BETWEEN NULL AND 3 + col1 * CAST ( - col2 AS INTEGER )
----
55

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT + col2 * - col0 * col1 - col1 * col1 IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7063
SELECT ALL ( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7063
SELECT ALL ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7064
SELECT CAST( NULL AS SIGNED ) * + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7064
SELECT CAST ( NULL AS INTEGER ) * + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT SUM( ALL col1 ) * COUNT( * ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-7065
SELECT SUM ( ALL col1 ) * COUNT ( * ) FROM tab1
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT DISTINCT 16 * + - COUNT( * ) * - 68 FROM tab0
----
3264

skipif mysql # not compatible
query I rowsort label-7066
SELECT DISTINCT 16 * + - COUNT ( * ) * - 68 FROM tab0
----
3264

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - + col0 ) > + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( - 32 ) * + + col0 + + col1 + + col1 AS col0 FROM tab0
----
2826
3106
642

onlyif mysql # DIV for integer division: 
query II rowsort label-7069
SELECT DISTINCT + col2 * + + col2 AS col1, 49 DIV + col1 AS col1 FROM tab2
----
1600
0
3364
0
529
0

skipif mysql # not compatible
query II rowsort label-7069
SELECT DISTINCT + col2 * + + col2 AS col1, 49 / + col1 AS col1 FROM tab2
----
1600
0
3364
0
529
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7070
SELECT ALL col0 * - CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7070
SELECT ALL col0 * - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7071
SELECT col0 DIV + 34 FROM tab2 AS cor0 WHERE NOT + 97 IN ( - col0 - - ( col2 ) )
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7071
SELECT col0 / + 34 FROM tab2 AS cor0 WHERE NOT + 97 IN ( - col0 - - ( col2 ) )
----
1
1
2

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 83 AND - col0
----

query II rowsort
SELECT DISTINCT col2 + col1 AS col1, + col0 AS col2 FROM tab2 cor0
----
117
64
125
75
74
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT DISTINCT + MIN( + + col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7074
SELECT DISTINCT + MIN ( + + col2 ) AS col0 FROM tab2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-7075
SELECT - col0 + + col1 + + - col0 DIV - 43 FROM tab1
----
-36
-42
-79

skipif mysql # not compatible
query I rowsort label-7075
SELECT - col0 + + col1 + + - col0 / - 43 FROM tab1
----
-36
-42
-79

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( 47 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7077
SELECT DISTINCT + col1 + 76 DIV + + col2 FROM tab0 AS cor0
----
1
28
82

skipif mysql # not compatible
query I rowsort label-7077
SELECT DISTINCT + col1 + 76 / + + col2 FROM tab0 AS cor0
----
1
28
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7078
SELECT * FROM tab0 AS cor0 WHERE col0 + - + CAST( - col0 AS SIGNED ) * - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7078
SELECT * FROM tab0 AS cor0 WHERE col0 + - + CAST ( - col0 AS INTEGER ) * - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL - 92 * + - col0 + - col1 AS col2 FROM tab0 cor0
----
1299
7983
8923

query I rowsort
SELECT ALL + 63 + + + 13 AS col0 FROM tab2 AS cor0
----
76
76
76

onlyif mysql # DIV for integer division: 
query I rowsort label-7081
SELECT + col0 DIV - - 46 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7081
SELECT + col0 / - - 46 FROM tab1 AS cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 + - col1 NOT BETWEEN - - 37 AND + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 + ( + col2 ) FROM tab0 AS cor0
----
100
128
31

query II rowsort
SELECT - 2 AS col0, ( + 99 ) FROM tab1
----
-2
99
-2
99
-2
99

query I rowsort
SELECT DISTINCT col0 * + + col1 * col0 FROM tab1
----
36125
36414
389207

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7086
SELECT - col0 - - col0 DIV - - CAST( 20 AS SIGNED ) FROM tab1
----
-49
-81
-87

skipif mysql # not compatible
query I rowsort label-7086
SELECT - col0 - - col0 / - - CAST ( 20 AS INTEGER ) FROM tab1
----
-49
-81
-87

query I rowsort
SELECT DISTINCT + ( + + col0 ) - col2 FROM tab1
----
-45
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 - + + 62 col2, 7 AS col1 FROM tab0
----
-149
7
-159
7
-77
7

query I rowsort
SELECT ALL 89 * - + col1 AS col2 FROM tab0
----
-1869
-7209
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7090
SELECT DISTINCT col2 + + col0 AS col1 FROM tab0 WHERE NOT ( CAST( - + ( + 35 ) AS SIGNED ) <> ( col2 ) )
----

skipif mysql # not compatible
query I rowsort label-7090
SELECT DISTINCT col2 + + col0 AS col1 FROM tab0 WHERE NOT ( CAST ( - + ( + 35 ) AS INTEGER ) <> ( col2 ) )
----

query II rowsort
SELECT + 67 - + + col1 AS col2, + col2 * + col1 FROM tab1
----
20
3196
53
1344
62
295

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7092
SELECT ALL + 3 - + 92 * - 60 * + 68 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7092
SELECT ALL + 3 - + 92 * - 60 * + 68 - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN col1 + + + col1 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT ALL + + 54 * - ( + COUNT( + col2 ) ) FROM tab1 cor0
----
-162

skipif mysql # not compatible
query I rowsort label-7094
SELECT ALL + + 54 * - ( + COUNT ( + col2 ) ) FROM tab1 cor0
----
-162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7095
SELECT + + COUNT( * ) AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7095
SELECT + + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
NULL

query I rowsort
SELECT - - 77 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 10 < 43 * - + 94
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 * + col1 * + col0 > ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT - 62 * COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-558

skipif mysql # not compatible
query I rowsort label-7099
SELECT - 62 * COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-558

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 81 ) = - col0 / + col1 * + col2 / col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + 14 FROM tab1 cor0
----
14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 + + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7103
SELECT SUM( - - col0 ) DIV COUNT( * ) col2 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7103
SELECT SUM ( - - col0 ) / COUNT ( * ) col2 FROM tab0 AS cor0
----
66

query I rowsort
SELECT + ( - + col2 ) FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * + col0 * + col1 FROM tab0 AS cor0
----
-158949
-18225
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-7107
SELECT col1 * + col0 * + col0 + 96 - - + col1 DIV col2 AS col2 FROM tab2 AS cor0
----
108014
315489
376972

skipif mysql # not compatible
query I rowsort label-7107
SELECT col1 * + col0 * + col0 + 96 - - + col1 / col2 AS col2 FROM tab2 AS cor0
----
108014
315489
376972

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7108
SELECT COUNT( * ) DIV + ( 30 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7108
SELECT COUNT ( * ) / + ( 30 ) FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab1 WHERE NOT ( 89 ) + + col1 BETWEEN - + 54 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col0 < + col2 + - col2 + col1 + + col2
----

query I rowsort
SELECT DISTINCT + 70 * + col0 FROM tab2
----
3220
4480
5250

query I rowsort
SELECT - - 12 AS col2 FROM tab1 WHERE NOT - - col1 <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT ALL + MAX( - col0 ) FROM tab1 WHERE ( + col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7114
SELECT ALL + MAX ( - col0 ) FROM tab1 WHERE ( + col2 ) IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7115
SELECT + 64 * - COUNT( * ) + + 72 - + ( 73 ) * + - COUNT( * ) * + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7115
SELECT + 64 * - COUNT ( * ) + + 72 - + ( 73 ) * + - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT COUNT( * ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7116
SELECT COUNT ( * ) AS col1 FROM tab2 cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( col2, col0 )
----

query II rowsort
SELECT - col0, + ( - + ( + + col2 ) ) AS col1 FROM tab2 AS cor0
----
-46
-23
-64
-40
-75
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 29 * col1 + - 37 + + col2 * + col2 col2 FROM tab1 AS cor0
----
3589
5950
9585

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 76 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

onlyif mysql # DIV for integer division: 
query II rowsort label-7122
SELECT DISTINCT col2 DIV + col0, col1 FROM tab1 AS cor0
----
0
47
0
5
1
14

skipif mysql # not compatible
query II rowsort label-7122
SELECT DISTINCT col2 / + col0, col1 FROM tab1 AS cor0
----
0
47
0
5
1
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7123
SELECT - - col0 DIV + col0 + - - 96 + 74 * - col1 + - 32 - col2 + - - 3 FROM tab2 AS cor0
----
-3729
-4948
-5670

skipif mysql # not compatible
query I rowsort label-7123
SELECT - - col0 / + col0 + - - 96 + 74 * - col1 + - 32 - col2 + - - 3 FROM tab2 AS cor0
----
-3729
-4948
-5670

query I rowsort
SELECT DISTINCT + ( + 8 ) + - - 3 AS col0 FROM tab0 AS cor0
----
11

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 88 AS col2 FROM tab2 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT - - col0 + - + col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7128
SELECT - + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NULL BETWEEN col0 / + col1 * col1 AND + col0
----

skipif mysql # not compatible
query I rowsort label-7128
SELECT - + CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NULL BETWEEN col0 / + col1 * col1 AND + col0
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE - col0 + - 57 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7130
SELECT + - col1 + - 18 / CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7130
SELECT + - col1 + - 18 / CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + + + col2 * - col0 FROM tab1
----
-4800
-4956
-6120

query I rowsort
SELECT ALL + ( + - 48 ) + - + 55 * + 58 * + - 59 AS col1 FROM tab0
----
188162
188162
188162

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 37 - col0 FROM tab1
----
-14
-48
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT ALL SUM( ALL - - col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL SUM ( ALL - - col2 ) AS col2 FROM tab0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 col0 FROM tab2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7137
SELECT CAST( + MIN( + 42 ) AS SIGNED ) * + - 29 col2 FROM tab0
----
-1218

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7137
SELECT CAST ( + MIN ( + 42 ) AS INTEGER ) * + - 29 col2 FROM tab0
----
-1218

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT DISTINCT - ( - - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7138
SELECT DISTINCT - ( - - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7139
SELECT 55 * - CAST( col0 AS SIGNED ), + 68 - + - col1 col0 FROM tab1 AS cor0
----
-2805
82
-4675
73
-5005
115

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7139
SELECT 55 * - CAST ( col0 AS INTEGER ), + 68 - + - col1 col0 FROM tab1 AS cor0
----
-2805
82
-4675
73
-5005
115

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7141
SELECT 6 * + + col0 + - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7141
SELECT 6 * + + col0 + - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7142
SELECT DISTINCT - col2 AS col1, + 29 * + + CAST( - 45 AS SIGNED ) + col2 * 60 * + - col0 FROM tab1
----
-59
-302205
-68
-372585
-96
-295065

skipif mysql # not compatible
query II rowsort label-7142
SELECT DISTINCT - col2 AS col1, + 29 * + + CAST ( - 45 AS INTEGER ) + col2 * 60 * + - col0 FROM tab1
----
-59
-302205
-68
-372585
-96
-295065

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE ( - 9 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT - - SUM( - col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7144
SELECT - - SUM ( - col1 ) AS col1 FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7145
SELECT ALL - CAST( + + COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL - CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT - + col1, col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query II rowsort
SELECT ALL - - 87 AS col0, - col2 * - col0 AS col1 FROM tab2 AS cor0
----
87
1058
87
2560
87
4350

query I rowsort
SELECT ALL 54 * - col1 AS col2 FROM tab1 cor0
----
-2538
-270
-756

query I rowsort
SELECT + + 17 * 15 FROM tab0 cor0
----
255
255
255

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT DISTINCT - ( - + 61 ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-7150
SELECT DISTINCT - ( - + 61 ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
64

query II rowsort
SELECT + col1 * col1 AS col0, - col1 FROM tab1
----
196
-14
2209
-47
25
-5

query I rowsort
SELECT - 41 FROM tab2 WHERE NOT ( - 4 <> - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7154
SELECT col2 DIV + - 96 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7154
SELECT col2 / + - 96 AS col2 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7155
SELECT 90 DIV 1 AS col1 FROM tab0
----
90
90
90

skipif mysql # not compatible
query I rowsort label-7155
SELECT 90 / 1 AS col1 FROM tab0
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT - SUM( - col1 ) FROM tab1 WHERE NULL IS NULL
----
66

skipif mysql # not compatible
query I rowsort label-7156
SELECT - SUM ( - col1 ) FROM tab1 WHERE NULL IS NULL
----
66

query I rowsort
SELECT ALL + col1 + ( + 15 ) + col2 FROM tab2 cor0
----
132
140
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7158
SELECT MIN( ALL - 48 ) + MAX( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-7158
SELECT MIN ( ALL - 48 ) + MAX ( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
29

query II rowsort
SELECT DISTINCT + + col0 + col0 * + - 78 AS col2, - 67 FROM tab1 AS cor0
----
-3927
-67
-6545
-67
-7007
-67

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 29 + col1 - - - 52 FROM tab1
----
-18
-9
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7162
SELECT DISTINCT col2 FROM tab2 WHERE NOT + - 83 / - + 53 * + 14 * + - CAST( NULL AS SIGNED ) + - - col1 * + 73 IN ( - 96 * - 5 * - - CAST( + 56 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7162
SELECT DISTINCT col2 FROM tab2 WHERE NOT + - 83 / - + 53 * + 14 * + - CAST ( NULL AS INTEGER ) + - - col1 * + 73 IN ( - 96 * - 5 * - - CAST ( + 56 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - + 55 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT - COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-7164
SELECT - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

query III rowsort
SELECT * FROM tab1 WHERE - + 83 * - 60 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7166
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 - + + 70 / + - col0 + 70 / - - 18 / CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7166
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 - + + 70 / + - col0 + 70 / - - 18 / CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 AS cor0 WHERE ( + + col2 ) + - 19 IS NOT NULL
----
51
85
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col1 - ( - col2 ) ) IS NULL
----

query I rowsort
SELECT ALL + + col2 * + + 79 + col0 AS col1 FROM tab2 AS cor0
----
1863
3224
4657

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT + + 64 - COUNT( * ) AS col1 FROM tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-7170
SELECT + + 64 - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
61

query I rowsort
SELECT - - col2 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 54 - - 75 AS col1 FROM tab1
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7173
SELECT - CAST( NULL AS SIGNED ) - + - MAX( - col0 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7173
SELECT - CAST ( NULL AS INTEGER ) - + - MAX ( - col0 ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT - col0 - - - col1 * + col2 FROM tab0
----
-196
-297
-3822

query I rowsort
SELECT DISTINCT + 9 + + + col1 AS col1 FROM tab1
----
14
23
56

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 60 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 - + col2 + - - col0 + - + 6 FROM tab0
----
81
9
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT + MIN( ALL - 36 ) FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-7178
SELECT + MIN ( ALL - 36 ) FROM tab2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT ALL + COUNT( * ) * + - 88 * + SUM( - + col0 ) FROM tab0
----
52536

skipif mysql # not compatible
query I rowsort label-7179
SELECT ALL + COUNT ( * ) * + - 88 * + SUM ( - + col0 ) FROM tab0
----
52536

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col1 * + 77 * + 95
----

query II rowsort
SELECT ALL 90 * + 71 * + col2 * + col0, col2 FROM tab0 AS cor0
----
4504950
47
5559300
10
61363170
99

query I rowsort
SELECT DISTINCT - 72 * - col2 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT NULL >= ( NULL ) )
----

query II rowsort
SELECT ALL + col1 AS col0, col1 FROM tab0
----
1
1
21
21
81
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 50 * col0 >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 col0 FROM tab0 AS cor0
----
-9
-9
-9

query I rowsort
SELECT - col2 * + - 31 FROM tab2 AS cor0
----
1240
1798
713

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT DISTINCT + 10 * + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-7191
SELECT DISTINCT + 10 * + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-30

query I rowsort
SELECT ALL + ( col0 ) * + - 15 + - + col2 FROM tab2 AS cor0
----
-1000
-1183
-713

query I rowsort
SELECT + col2 * col2 + + 29 FROM tab1 AS cor0
----
3510
4653
9245

onlyif mysql # DIV for integer division: 
query I rowsort label-7194
SELECT DISTINCT col1 DIV + + 94 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7194
SELECT DISTINCT col1 / + + 94 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - + ( - + 12 ) FROM tab0 AS cor0
----
12
12
12

query II rowsort
SELECT DISTINCT - + col2, col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT DISTINCT 64 + COUNT( * ) FROM tab0 WHERE NOT NULL IN ( - - col0 )
----
64

skipif mysql # not compatible
query I rowsort label-7197
SELECT DISTINCT 64 + COUNT ( * ) FROM tab0 WHERE NOT NULL IN ( - - col0 )
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7198
SELECT DISTINCT - 2 DIV - MAX( ALL - 61 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7198
SELECT DISTINCT - 2 / - MAX ( ALL - 61 ) AS col0 FROM tab0
----
0

query I rowsort
SELECT - col0 + 14 AS col1 FROM tab0
----
-1
-73
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT ALL - ( COUNT( * ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7200
SELECT ALL - ( COUNT ( * ) ) FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-7201
SELECT ALL col0 AS col0, - 27 DIV + - 71 FROM tab2
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-7201
SELECT ALL col0 AS col0, - 27 / + - 71 FROM tab2
----
46
0
64
0
75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT DISTINCT - ( COUNT( DISTINCT - - 9 ) ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT - ( COUNT ( DISTINCT - - 9 ) ) FROM tab1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7203
SELECT COUNT( * ) DIV - COUNT( * ) + - 37 + - 21 AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-7203
SELECT COUNT ( * ) / - COUNT ( * ) + - 37 + - 21 AS col0 FROM tab1
----
-59

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 + 88 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <= + 7
----

query I rowsort
SELECT col0 + + - ( col1 ) AS col1 FROM tab0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query II rowsort label-7207
SELECT ALL COUNT( * ) col1, COUNT( * ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7207
SELECT ALL COUNT ( * ) col1, COUNT ( * ) AS col1 FROM tab2
----
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7208
SELECT - COUNT( * ), CAST( 12 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3
12

skipif mysql # not compatible
query II rowsort label-7208
SELECT - COUNT ( * ), CAST ( 12 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7209
SELECT + CAST( NULL AS SIGNED ) * + col2 - - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7209
SELECT + CAST ( NULL AS INTEGER ) * + col2 - - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT + COUNT( + - col1 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7210
SELECT + COUNT ( + - col1 ) AS col2 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT DISTINCT 27 * + COUNT( DISTINCT + col2 ) + - 19 AS col0 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-7211
SELECT DISTINCT 27 * + COUNT ( DISTINCT + col2 ) + - 19 AS col0 FROM tab0 AS cor0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7212
SELECT DISTINCT col0 - + CAST( ( + col1 ) AS SIGNED ) FROM tab1
----
37
44
80

skipif mysql # not compatible
query I rowsort label-7212
SELECT DISTINCT col0 - + CAST ( ( + col1 ) AS INTEGER ) FROM tab1
----
37
44
80

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NULL BETWEEN col0 AND - 80
----

query I rowsort
SELECT ALL - 45 AS col1 FROM tab1 WHERE NOT col2 IS NULL
----
-45
-45
-45

query I rowsort
SELECT DISTINCT + - 57 + + 46 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-11

query I rowsort
SELECT + 47 + 21 FROM tab1 AS cor0
----
68
68
68

query II rowsort
SELECT col2 + - + 58, col0 FROM tab2 AS cor0
----
-18
64
-35
46
0
75

query I rowsort
SELECT DISTINCT - 46 + - + col0 AS col0 FROM tab1 AS cor0
----
-131
-137
-97

query I rowsort
SELECT DISTINCT + 36 + - 21 AS col1 FROM tab1 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7220
SELECT ALL col0 + + CAST( + + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
174
194
30

skipif mysql # not compatible
query I rowsort label-7220
SELECT ALL col0 + + CAST ( + + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7221
SELECT DISTINCT - CAST( - col0 AS DECIMAL ) + - col1 FROM tab0 AS cor0 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-7221
SELECT DISTINCT - CAST ( - col0 AS REAL ) + - col1 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 78 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col1 col1 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT DISTINCT MIN( DISTINCT + col0 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7224
SELECT DISTINCT MIN ( DISTINCT + col0 ) AS col1 FROM tab2
----
46

query II rowsort
SELECT col2, - 60 FROM tab2
----
23
-60
40
-60
58
-60

query I rowsort
SELECT ALL 33 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
33
33
33

query II rowsort
SELECT DISTINCT - 64, - col1 AS col1 FROM tab0 AS cor0
----
-64
-1
-64
-21
-64
-81

query I rowsort
SELECT - ( - ( col1 ) ) FROM tab2
----
51
67
77

query I rowsort
SELECT 3 + col0 FROM tab1
----
54
88
94

onlyif mysql # DIV for integer division: 
query I rowsort label-7230
SELECT - - ( ( col2 ) ) DIV + col0 + + col0 AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7230
SELECT - - ( ( col2 ) ) / + col0 + + col0 AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT 20 * + + 1 + - col2 + + col0 AS col1 FROM tab2 cor0
----
37
43
44

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + + - 39 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 BETWEEN ( 33 * + col1 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 46 AS col1, - 69 FROM tab0
----
46
-69

query I rowsort
SELECT 41 * - + col0 FROM tab0
----
-3567
-3977
-615

query I rowsort
SELECT ALL col1 * + - col1 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT ( col0 ) * - col1 + col1 AS col1 FROM tab1
----
-420
-4230
-700

query I rowsort
SELECT 6 FROM tab2 WHERE NULL <> col1
----

query I rowsort
SELECT DISTINCT col0 * + + col1 AS col2 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT 90 * + 99 FROM tab2
----
8910
8910
8910

query I rowsort
SELECT col1 * - 46 FROM tab1
----
-2162
-230
-644

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT SUM( DISTINCT + col0 ) + + ( 39 ) AS col0 FROM tab2
----
224

skipif mysql # not compatible
query I rowsort label-7243
SELECT SUM ( DISTINCT + col0 ) + + ( 39 ) AS col0 FROM tab2
----
224

query I rowsort
SELECT col0 + - + 50 FROM tab0 cor0
----
-35
37
47

query I rowsort
SELECT - 49 * - 34 - + col0 * + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-7937
796
961

query I rowsort
SELECT + 49 * + 72 FROM tab0
----
3528
3528
3528

query I rowsort
SELECT - 16 * col0 * + + 26 FROM tab0
----
-36192
-40352
-6240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7248
SELECT DISTINCT - COUNT( + 40 ) * - CAST( + - 40 AS SIGNED ) AS col0, 28 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-360
28

skipif mysql # not compatible
query II rowsort label-7248
SELECT DISTINCT - COUNT ( + 40 ) * - CAST ( + - 40 AS INTEGER ) AS col0, 28 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-360
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT - 15 + - COUNT( * ) * - 36 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
309

skipif mysql # not compatible
query I rowsort label-7249
SELECT - 15 + - COUNT ( * ) * - 36 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
309

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 96 * + col2 + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT - 36 IS NULL
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + - col2, + col2 * + + col1 AS col2 FROM tab2 AS cor0
----
-23
1173
-40
3080
-58
3886

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + - + 97 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT DISTINCT MAX( DISTINCT - 65 ) col1 FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7255
SELECT DISTINCT MAX ( DISTINCT - 65 ) col1 FROM tab0 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT ALL + COUNT( DISTINCT + - ( + col0 ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7256
SELECT ALL + COUNT ( DISTINCT + - ( + col0 ) ) FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT + 76 IS NOT NULL
----

query I rowsort
SELECT + - 95 AS col2 FROM tab0 AS cor0
----
-95
-95
-95

query II rowsort
SELECT - + 96 AS col1, 54 FROM tab2 AS cor0
----
-96
54
-96
54
-96
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7260
SELECT + - CAST( NULL AS SIGNED ), col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-7260
SELECT + - CAST ( NULL AS INTEGER ), col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) < col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 <> ( 54 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT - MIN( DISTINCT - 86 ) AS col0 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-7263
SELECT - MIN ( DISTINCT - 86 ) AS col0 FROM tab2
----
86

query I rowsort
SELECT + - col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT DISTINCT - COUNT( col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7265
SELECT DISTINCT - COUNT ( col2 ) FROM tab2
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) < ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= - + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7269
SELECT - SUM( DISTINCT 73 ) AS col2 FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-7269
SELECT - SUM ( DISTINCT 73 ) AS col2 FROM tab0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT ALL COUNT( * ) * - ( + COUNT( ALL 68 ) ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL COUNT ( * ) * - ( + COUNT ( ALL 68 ) ) FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7271
SELECT ALL + - CAST( - col1 AS SIGNED ) * 31 * + col2 + + col0 AS col1 FROM tab0 WHERE + col2 * + 79 <> NULL
----

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL + - CAST ( - col1 AS INTEGER ) * 31 * + col2 + + col0 AS col1 FROM tab0 WHERE + col2 * + 79 <> NULL
----

query I rowsort
SELECT ALL + col0 * + + col2 * + 47 FROM tab2
----
120320
204450
49726

query I rowsort
SELECT ALL + 37 * - + col2 FROM tab2 WHERE NULL <> + ( + col2 ) + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + ( - - col1 ) ) col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7275
SELECT CAST( NULL AS SIGNED ) AS col1, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-7275
SELECT CAST ( NULL AS INTEGER ) AS col1, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT ALL + col1 + + + ( + ( col2 ) ) FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= col0
----

query II rowsort
SELECT ALL + col0 + 46 - + col0, col0 AS col1 FROM tab2 AS cor0
----
46
46
46
64
46
75

query I rowsort
SELECT ALL - col2 + + - col0 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT ( + COUNT( * ) ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7280
SELECT ( + COUNT ( * ) ) col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT 34 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
34
34
34

query I rowsort
SELECT col2 + 82 FROM tab1 AS cor0
----
141
150
178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 16 + + - col1 col2 FROM tab1 AS cor0
----
-31
11
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 / col2 * + col0 * - 55 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - col0 + - col1 + + 2 + 54 * - 36 + col0 FROM tab2 AS cor0
----
-4293
-6883
-6959

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + - - col2 col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT 10 + - MIN( DISTINCT 66 ) AS col1 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-7287
SELECT 10 + - MIN ( DISTINCT 66 ) AS col1 FROM tab1 AS cor0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT ALL MAX( + col2 ) / - MIN( + col2 ) FROM tab2 cor0 WHERE NOT 45 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7288
SELECT ALL MAX ( + col2 ) / - MIN ( + col2 ) FROM tab2 cor0 WHERE NOT 45 NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT DISTINCT 94 * - + col2 AS col1 FROM tab1
----
-5546
-6392
-9024

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT ALL + COUNT( * ) AS col1 FROM tab1 WHERE NOT - 91 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7290
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 WHERE NOT - 91 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 * + + col1 col0 FROM tab2
----
3009
3953
4543

query I rowsort
SELECT ALL + 30 * - col2 FROM tab2
----
-1200
-1740
-690

query I rowsort
SELECT ALL - 61 * + - col0 AS col2 FROM tab1 AS cor0
----
3111
5185
5551

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7294
SELECT ( 51 ) AS col0, - col0 * - - CAST( col2 AS SIGNED ) + - col0 AS col1 FROM tab1 AS cor0
----
51
-4947
51
-5100
51
-6279

skipif mysql # not compatible
query II rowsort label-7294
SELECT ( 51 ) AS col0, - col0 * - - CAST ( col2 AS INTEGER ) + - col0 AS col1 FROM tab1 AS cor0
----
51
-4947
51
-5100
51
-6279

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= - 35
----

query I rowsort
SELECT + 33 + - + 66 FROM tab0
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT 84 * + COUNT( DISTINCT + col1 ) FROM tab0 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-7297
SELECT 84 * + COUNT ( DISTINCT + col1 ) FROM tab0 AS cor0
----
252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7298
SELECT + + AVG ( + col0 ) * 76 / - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7298
SELECT + + AVG ( + col0 ) * 76 / - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col2 / col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> ( - 16 )
----

query I rowsort
SELECT DISTINCT 12 + col0 AS col0 FROM tab1 AS cor0 WHERE NOT col0 * + + col2 BETWEEN NULL AND - 53 + - 96
----
103
63
97

query I rowsort
SELECT DISTINCT 68 * 93 AS col0 FROM tab0 AS cor0
----
6324

query I rowsort
SELECT + 6 + + + 63 / col2 - - + 75 * - + col0 FROM tab0 AS cor0 WHERE NOT NULL <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7303
SELECT - ( + col2 ) AS col0 FROM tab2 WHERE NOT CAST( - - col0 AS SIGNED ) <= + ( + + 52 )
----
-40
-58

skipif mysql # not compatible
query I rowsort label-7303
SELECT - ( + col2 ) AS col0 FROM tab2 WHERE NOT CAST ( - - col0 AS INTEGER ) <= + ( + + 52 )
----
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 col1 FROM tab2
----
76
76
76

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 24 + + 90 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT ALL COUNT( + - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7306
SELECT ALL COUNT ( + - col2 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT MAX( - col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-7307
SELECT MAX ( - col2 ) AS col2 FROM tab0
----
-10

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 <> + col2 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7309
SELECT ALL * FROM tab2 WHERE + + CAST( - col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7309
SELECT ALL * FROM tab2 WHERE + + CAST ( - col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7310
SELECT DISTINCT 32 DIV - col0 * col0 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7310
SELECT DISTINCT 32 / - col0 * col0 col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7311
SELECT + COUNT( * ) col1, + 63 AS col1 FROM tab2
----
3
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7311
SELECT + COUNT ( * ) col1, + 63 AS col1 FROM tab2
----
3
63

query II rowsort
SELECT - col2, 51 AS col0 FROM tab0 AS cor0
----
-10
51
-47
51
-99
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7313
SELECT + + col1 * - 65 * + 21 AS col2 FROM tab0 WHERE col1 * col1 + col1 * - - ( 5 ) + + CAST( - 48 AS SIGNED ) + + - 30 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7313
SELECT + + col1 * - 65 * + 21 AS col2 FROM tab0 WHERE col1 * col1 + col1 * - - ( 5 ) + + CAST ( - 48 AS INTEGER ) + + - 30 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7314
SELECT ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7314
SELECT ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT 64 + col0, + 52 + col1 AS col1 FROM tab1 AS cor0
----
115
66
149
57
155
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT ALL + + ( + COUNT( DISTINCT - col0 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7316
SELECT ALL + + ( + COUNT ( DISTINCT - col0 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7317
SELECT DISTINCT - + 2 * - col0 + + ( - + col1 ) DIV col1 AS col2, 60 FROM tab0 AS cor0
----
173
60
193
60
29
60

skipif mysql # not compatible
query II rowsort label-7317
SELECT DISTINCT - + 2 * - col0 + + ( - + col1 ) / col1 AS col2, 60 FROM tab0 AS cor0
----
173
60
193
60
29
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT DISTINCT - COUNT( * ) col2 FROM tab0 AS cor0 WHERE NULL = ( - 0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7318
SELECT DISTINCT - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NULL = ( - 0 )
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 3 IS NULL
----

query I rowsort
SELECT ALL + + 91 + - col1 FROM tab2 AS cor0
----
14
24
40

query I rowsort
SELECT DISTINCT - ( ( + + col0 ) ) * + - col0 + + - col2 FROM tab2 cor0
----
2093
4056
5567

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 83 col0 FROM tab1 AS cor0
----
-83
-83
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - 42 + + col0 col2 FROM tab1 AS cor0
----
107
132
180

query I rowsort
SELECT ALL + + col0 * + + col1 AS col1 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7325
SELECT * FROM tab0 WHERE + col2 NOT BETWEEN - + CAST( NULL AS SIGNED ) AND + col0
----
15
81
47
97
1
99

skipif mysql # not compatible
query III rowsort label-7325
SELECT * FROM tab0 WHERE + col2 NOT BETWEEN - + CAST ( NULL AS INTEGER ) AND + col0
----
15
81
47
97
1
99

query II rowsort
SELECT - col1 - - ( - - 88 ), + 56 AS col0 FROM tab2
----
11
56
21
56
37
56

query I rowsort
SELECT ALL col0 * + - col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT ALL + 81 AS col1 FROM tab1 WHERE - 85 IS NOT NULL AND NOT col1 <> - 28
----

query I rowsort
SELECT - col0 + + 4 * - + col0 FROM tab2
----
-230
-320
-375

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 39 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 15 - - col2 AS col1 FROM tab2 AS cor0
----
25
43
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 + col0 col2 FROM tab2 AS cor0
----
-5
13
24

query I rowsort
SELECT DISTINCT - 63 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + 15 col1 FROM tab0
----
-1215
-15
-315

query I rowsort
SELECT ALL - 15 AS col2 FROM tab0
----
-15
-15
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 41 col2 FROM tab0 AS cor0
----
3321
41
861

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT 8 + col1 <= + - col2
----
59
68
96

query I rowsort
SELECT ALL + - 85 AS col0 FROM tab2 cor0
----
-85
-85
-85

query I rowsort
SELECT - 52 * - col0 + + col2 FROM tab1 AS cor0
----
2748
4479
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT + MAX( DISTINCT + col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7340
SELECT + MAX ( DISTINCT + col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7341
SELECT DISTINCT - + 57 * - 92 + - CAST( - 88 AS SIGNED ) FROM tab1 AS cor0
----
5332

skipif mysql # not compatible
query I rowsort label-7341
SELECT DISTINCT - + 57 * - 92 + - CAST ( - 88 AS INTEGER ) FROM tab1 AS cor0
----
5332

query I rowsort
SELECT + col0 * 23 * + col2 FROM tab1 AS cor0
----
112608
115345
142324

onlyif mysql # DIV for integer division: 
query I rowsort label-7343
SELECT + + ( + ( col1 ) ) DIV - - col0 AS col2 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-7343
SELECT + + ( + ( col1 ) ) / - - col0 AS col2 FROM tab0 AS cor0
----
0
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT - COUNT( * ) * + 85 + 83 col2 FROM tab1 AS cor0
----
-172

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7344
SELECT - COUNT ( * ) * + 85 + 83 col2 FROM tab1 AS cor0
----
-172

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 < - col2 * - + col0
----

query I rowsort
SELECT ALL + 23 AS col2 FROM tab0 WHERE NOT + + col2 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 NOT BETWEEN + col2 AND NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7348
SELECT DISTINCT 96 DIV - SUM( + + 5 ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-7348
SELECT DISTINCT 96 / - SUM ( + + 5 ) FROM tab1
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7349
SELECT + 74 DIV + col2 col2 FROM tab2
----
1
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7349
SELECT + 74 / + col2 col2 FROM tab2
----
1
1
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7350
SELECT - CAST( NULL AS SIGNED ) * 36 + - SUM( ALL - col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7350
SELECT - CAST ( NULL AS INTEGER ) * 36 + - SUM ( ALL - col0 ) FROM tab2
----
NULL

query II rowsort
SELECT - col0, - 26 AS col0 FROM tab2 AS cor0
----
-46
-26
-64
-26
-75
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT ALL MIN( - + col0 ) + ( - + 25 ) AS col2 FROM tab1 AS cor0
----
-116

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL MIN ( - + col0 ) + ( - + 25 ) AS col2 FROM tab1 AS cor0
----
-116

query II rowsort
SELECT DISTINCT col1 AS col2, col1 AS col1 FROM tab1
----
14
14
47
47
5
5

query III rowsort
SELECT * FROM tab1 WHERE - col0 BETWEEN + + 11 * col1 * col2 - 91 AND + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT DISTINCT 43 + - COUNT( * ) FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-7355
SELECT DISTINCT 43 + - COUNT ( * ) FROM tab2 AS cor0
----
40

query I rowsort
SELECT DISTINCT ( - col1 ) + col2 AS col2 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT - + col0 + - ( - - col0 ) AS col0 FROM tab0 AS cor0
----
-174
-194
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 4 col1 FROM tab0 AS cor0 WHERE - col2 <> NULL
----

query I rowsort
SELECT - + 47 + - 56 FROM tab1 cor0
----
-103
-103
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7360
SELECT DISTINCT COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7360
SELECT DISTINCT COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7361
SELECT + + CAST( - 62 AS SIGNED ) + 27 FROM tab1 AS cor0
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-7361
SELECT + + CAST ( - 62 AS INTEGER ) + 27 FROM tab1 AS cor0
----
-35
-35
-35

query III rowsort
SELECT * FROM tab0 WHERE - - col0 * - col0 * + 51 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 * + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 BETWEEN col2 AND NULL
----

query II rowsort
SELECT - 20 * col1 AS col1, col1 AS col0 FROM tab2
----
-1020
51
-1340
67
-1540
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7366
SELECT - col2 * + CAST( NULL AS DECIMAL ) * + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7366
SELECT - col2 * + CAST ( NULL AS REAL ) * + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7367
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * - col2 / + - 1 + - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7367
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * - col2 / + - 1 + - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 - col0 col1 FROM tab1 AS cor0
----
-149
-183
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT DISTINCT - ( + 79 ) * - COUNT( * ) FROM tab2 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-7369
SELECT DISTINCT - ( + 79 ) * - COUNT ( * ) FROM tab2 AS cor0
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7370
SELECT DISTINCT - ( - CAST( + - 67 AS SIGNED ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-67

skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT - ( - CAST ( + - 67 AS INTEGER ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-67

query I rowsort
SELECT ALL - 63 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT 53 FROM tab2, tab2 cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # aggregate syntax: 
query II rowsort label-7373
SELECT ALL - 38 col0, MAX( DISTINCT + col0 ) * + + COUNT( * ) + 96 FROM tab0
----
-38
387

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7373
SELECT ALL - 38 col0, MAX ( DISTINCT + col0 ) * + + COUNT ( * ) + 96 FROM tab0
----
-38
387

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7374
SELECT col0 + - - col2 + - CAST( NULL AS SIGNED ), col0 FROM tab1 cor0 WHERE NOT col0 > col2
----
NULL
51

skipif mysql # not compatible
query II rowsort label-7374
SELECT col0 + - - col2 + - CAST ( NULL AS INTEGER ), col0 FROM tab1 cor0 WHERE NOT col0 > col2
----
NULL
51

query I rowsort
SELECT - col2 * + - ( - 49 ) AS col2 FROM tab0 cor0
----
-2303
-4851
-490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7376
SELECT + MIN( DISTINCT + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7376
SELECT + MIN ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 33 * - col2 + + col0 AS col0 FROM tab0 AS cor0
----
1566
3364
417

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT ALL COUNT( * ) * + ( + 31 ) - + 47 + - COUNT( * ) AS col0 FROM tab2 cor0
----
43

skipif mysql # not compatible
query I rowsort label-7378
SELECT ALL COUNT ( * ) * + ( + 31 ) - + 47 + - COUNT ( * ) AS col0 FROM tab2 cor0
----
43

query I rowsort
SELECT DISTINCT - + col1 AS col0 FROM tab1 AS cor0 WHERE NOT col0 + + + col2 >= - - col1
----

query I rowsort
SELECT ( + 57 ) AS col1 FROM tab0 WHERE NOT col2 IS NULL
----
57
57
57

query II rowsort
SELECT ALL col0 * - 74, - col1 AS col2 FROM tab0
----
-1110
-81
-6438
-21
-7178
-1

query II rowsort
SELECT + col0 AS col0, col0 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7383
SELECT 73 * SUM( ALL - col1 ) FROM tab1
----
-4818

skipif mysql # not compatible
query I rowsort label-7383
SELECT 73 * SUM ( ALL - col1 ) FROM tab1
----
-4818

query III rowsort
SELECT * FROM tab1 WHERE NOT - 14 * col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7385
SELECT ALL - SUM( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7385
SELECT ALL - SUM ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 14 AS col0 FROM tab1
----
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - ( - 53 ) col1 FROM tab0
----
-2491
-5247
-530

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT DISTINCT - MIN( + + col1 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7388
SELECT DISTINCT - MIN ( + + col1 ) AS col1 FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7389
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN + col2 + - - CAST( col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7389
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN + col2 + - - CAST ( col2 AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT + MAX( 41 ) AS col2 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-7390
SELECT + MAX ( 41 ) AS col2 FROM tab2 AS cor0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7391
SELECT ALL + CAST( col1 AS SIGNED ) * - 84 AS col0 FROM tab2
----
-4284
-5628
-6468

skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL + CAST ( col1 AS INTEGER ) * - 84 AS col0 FROM tab2
----
-4284
-5628
-6468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7392
SELECT + col2 / - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7392
SELECT + col2 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7393
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT + col2 + - + 75 FROM tab0 AS cor0
----
-28
-65
24

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7396
SELECT ALL + - COUNT( * ) + + - 41 / + - MAX( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7396
SELECT ALL + - COUNT ( * ) + + - 41 / + - MAX ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 13 * col2 <= NULL
----

query I rowsort
SELECT + + ( + col2 ) AS col0 FROM tab1 AS cor0 WHERE + 15 * - col1 * 93 NOT BETWEEN - col2 AND col0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7399
SELECT ALL + COUNT( * ) + - 87 AS col2 FROM tab0 cor0
----
-84

skipif mysql # not compatible
query I rowsort label-7399
SELECT ALL + COUNT ( * ) + - 87 AS col2 FROM tab0 cor0
----
-84

query I rowsort
SELECT 70 * + col2 - ( + + ( + + col2 ) ) FROM tab1 AS cor0
----
4071
4692
6624

query I rowsort
SELECT DISTINCT col2 - + - 80 AS col2 FROM tab2 AS cor0
----
103
120
138

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT - 12 - - MIN( ALL + 5 ) FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-7402
SELECT - 12 - - MIN ( ALL + 5 ) FROM tab2
----
-7

query I rowsort
SELECT DISTINCT + col2 - - 14 FROM tab2
----
37
54
72

query I rowsort
SELECT ALL col0 - 56 * + + col1 * - col1 FROM tab1
----
11027
123795
1485

query I rowsort
SELECT - 96 - - - col2 * - col0 AS col2 FROM tab2
----
2464
4254
962

query I rowsort
SELECT DISTINCT col0 - - 80 FROM tab0
----
167
177
95

query II rowsort
SELECT DISTINCT 54 AS col1, ( - ( + - col0 ) ) AS col2 FROM tab2 AS cor0
----
54
46
54
64
54
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7408
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 + + col0 * - - col0 = - + CAST( NULL AS SIGNED ) - col0
----

skipif mysql # not compatible
query III rowsort label-7408
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 + + col0 * - - col0 = - + CAST ( NULL AS INTEGER ) - col0
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT - col1 + 5 AS col2 FROM tab2 cor0 WHERE NOT - ( col0 ) < NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 74 * col2 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0 * + + 98 AS col1, col2 AS col0 FROM tab2 cor0
----
4508
23
6272
40
7350
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT ALL - MAX( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL - MAX ( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
-58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 >= + col2 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7416
SELECT - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT + 7 = + + 78 + + 32
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT + 7 = + + 78 + + 32
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - 10 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + + 91 + - - ( 70 ) col0 FROM tab0 AS cor0
----
1435
7987
8897

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col1 / + col0 IN ( ( + 58 ), - col2, - ( + col2 ) )
----

query I rowsort
SELECT - col1 * 42 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
-1974
-210
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT ALL - 52 + + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-7421
SELECT ALL - 52 + + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT ALL col0 * + col2 * - col2 + + col0 AS col0 FROM tab0 WHERE + col2 + + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 57 >= 21 - + 31
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( ( 3 ) ) FROM tab2
----
3
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7426
SELECT ALL 36 DIV col2 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL 36 / col2 AS col2 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL 75 * - col0 AS col0 FROM tab0
----
-1125
-6525
-7275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 9 col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT + col0 + + 24 AS col1 FROM tab0 AS cor0
----
111
121
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7430
SELECT - MIN( DISTINCT + ( - CAST( + - col1 AS SIGNED ) ) ) + - 33 AS col0 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-7430
SELECT - MIN ( DISTINCT + ( - CAST ( + - col1 AS INTEGER ) ) ) + - 33 AS col0 FROM tab0 AS cor0
----
-34

query I rowsort
SELECT + col2 * col1 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT ALL - 18 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7432
SELECT ALL - 18 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7433
SELECT CAST( NULL AS SIGNED ) * - - col0 - - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7433
SELECT CAST ( NULL AS INTEGER ) * - - col0 - - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7434
SELECT ALL - col0 * + + 14 - - CAST( NULL AS SIGNED ) + - + 76 - - col0 * - 80 * + - ( + + 90 ) FROM tab1 AS cor0 WHERE + 15 * ( + col2 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7434
SELECT ALL - col0 * + + 14 - - CAST ( NULL AS INTEGER ) + - + 76 - - col0 * - 80 * + - ( + + 90 ) FROM tab1 AS cor0 WHERE + 15 * ( + col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 <> 59
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= - + ( - 3 ) * - col0 + + col1
----

query I rowsort
SELECT - 12 * col2 AS col1 FROM tab1
----
-1152
-708
-816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7438
SELECT - 21 * + 39 DIV - COUNT( * ) AS col1 FROM tab2
----
273

skipif mysql # not compatible
query I rowsort label-7438
SELECT - 21 * + 39 / - COUNT ( * ) AS col1 FROM tab2
----
273

onlyif mysql # DIV for integer division: 
query I rowsort label-7439
SELECT DISTINCT - col0 DIV 41 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-7439
SELECT DISTINCT - col0 / 41 FROM tab0
----
-2
0

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 33 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7441
SELECT * FROM tab2 WHERE NOT + + col1 * - - CAST( NULL AS SIGNED ) - col1 * + - 3 * col0 NOT BETWEEN - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7441
SELECT * FROM tab2 WHERE NOT + + col1 * - - CAST ( NULL AS INTEGER ) - col1 * + - 3 * col0 NOT BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7442
SELECT DISTINCT - CAST( - 18 AS SIGNED ) AS col1 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-7442
SELECT DISTINCT - CAST ( - 18 AS INTEGER ) AS col1 FROM tab2
----
18

query I rowsort
SELECT ALL + col0 / - ( - ( - + col2 ) ) AS col2 FROM tab1 cor0 WHERE NULL NOT IN ( - col0 + - col1 )
----

query I rowsort
SELECT col0 * + + 9 * + 30 FROM tab2
----
12420
17280
20250

query I rowsort
SELECT DISTINCT + 33 * col1 FROM tab1
----
1551
165
462

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL = NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7447
SELECT col1 DIV - - col0 AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7447
SELECT col1 / - - col0 AS col0 FROM tab2
----
0
1
1

query I rowsort
SELECT DISTINCT - col0 * + - col1 AS col1 FROM tab1
----
425
4277
714

query II rowsort
SELECT 81 * - col0, col1 FROM tab0
----
-1215
81
-7047
21
-7857
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7450
SELECT - CAST( + ( - 96 ) AS SIGNED ) * + ( + col2 ) + + col0 FROM tab2
----
2254
3904
5643

skipif mysql # not compatible
query I rowsort label-7450
SELECT - CAST ( + ( - 96 ) AS INTEGER ) * + ( + col2 ) + + col0 FROM tab2
----
2254
3904
5643

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT MAX( ALL + ( - col1 ) ) col0 FROM tab2 AS cor0 WHERE + ( + col0 ) IS NOT NULL
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7451
SELECT MAX ( ALL + ( - col1 ) ) col0 FROM tab2 AS cor0 WHERE + ( + col0 ) IS NOT NULL
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7452
SELECT * FROM tab0 AS cor0 WHERE CAST( + 72 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7452
SELECT * FROM tab0 AS cor0 WHERE CAST ( + 72 AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7453
SELECT DISTINCT - 15 - + - col0 DIV col2 + + - col0 AS col1 FROM tab2 cor0
----
-59
-78
-89

skipif mysql # not compatible
query I rowsort label-7453
SELECT DISTINCT - 15 - + - col0 / col2 + + - col0 AS col1 FROM tab2 cor0
----
-59
-78
-89

query I rowsort
SELECT + col1 + - + col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col2 col2 FROM tab2 cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT ALL - + COUNT( * ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7456
SELECT ALL - + COUNT ( * ) col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT col1 - 26 AS col0 FROM tab0 AS cor0
----
-25
-5
55

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL > col0 - + ( col0 ) + - col2 + + - col0 * - 76 + 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT DISTINCT + COUNT( ALL + 99 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7459
SELECT DISTINCT + COUNT ( ALL + 99 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT DISTINCT - COUNT( * ) - - - 2 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7460
SELECT DISTINCT - COUNT ( * ) - - - 2 FROM tab0 AS cor0
----
-5

query II rowsort
SELECT + 57 AS col2, 6 FROM tab1 cor0
----
57
6
57
6
57
6

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT + col0 * - + 9 * + - col1 AS col2 FROM tab0 AS cor0
----
10935
16443
873

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( 91 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 80 * - col1 FROM tab2 AS cor0
----
-4080
-5360
-6160

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT SUM( 9 ) AS col1 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-7467
SELECT SUM ( 9 ) AS col1 FROM tab0 AS cor0
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 col2 FROM tab2
----
47

query I rowsort
SELECT DISTINCT + ( ( col2 ) ) FROM tab0
----
10
47
99

query III rowsort
SELECT ALL * FROM tab0 WHERE - 56 NOT IN ( col1, - ( + col0 ), 92, col0 * + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * - ( 16 ) FROM tab0
----
-1296
-16
-336

query I rowsort
SELECT ALL 3 * - 21 AS col0 FROM tab0
----
-63
-63
-63

query I rowsort
SELECT DISTINCT + 89 AS col2 FROM tab1
----
89

query I rowsort
SELECT ALL ( ( + + col0 ) ) FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT 39 * + + ( + col2 ) FROM tab1 AS cor0
----
2301
2652
3744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + + + col1 col1 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT DISTINCT + + 52 AS col2 FROM tab1 cor0
----
52

query I rowsort
SELECT ALL 57 + + 43 * - - col2 FROM tab1 AS cor0
----
2594
2981
4185

query I rowsort
SELECT ALL + col1 + + - col0 AS col2 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT + 47 + - 35 AS col0 FROM tab2 AS cor0
----
12
12
12

onlyif mysql # DIV for integer division: 
query I rowsort label-7481
SELECT DISTINCT + col2 DIV - 26 + - 43 FROM tab2 cor0
----
-43
-44
-45

skipif mysql # not compatible
query I rowsort label-7481
SELECT DISTINCT + col2 / - 26 + - 43 FROM tab2 cor0
----
-43
-44
-45

query I rowsort
SELECT ALL - 39 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT 79 * COUNT( * ) + - 96 FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-7483
SELECT 79 * COUNT ( * ) + - 96 FROM tab0
----
141

query III rowsort
SELECT * FROM tab2 WHERE + col0 * col1 * ( - + col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7485
SELECT - col2 + + - col0 AS col2 FROM tab2 WHERE ( - CAST( - col1 AS SIGNED ) ) IS NOT NULL
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-7485
SELECT - col2 + + - col0 AS col2 FROM tab2 WHERE ( - CAST ( - col1 AS INTEGER ) ) IS NOT NULL
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT - ( - - ( + - COUNT( * ) ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7486
SELECT - ( - - ( + - COUNT ( * ) ) ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL - ( - + col1 ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT - col1 * + 73 * + col1 + - col2 AS col1 FROM tab2 AS cor0
----
-189896
-327755
-432857

query II rowsort
SELECT + col0 AS col1, 14 FROM tab0 cor0
----
15
14
87
14
97
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT ALL - 44 - MIN( col2 ) col1 FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7490
SELECT ALL - 44 - MIN ( col2 ) col1 FROM tab2 AS cor0
----
-67

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 89 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7492
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 13 AS col0 FROM tab0 cor0
----
-13
-13
-13

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 = col2 + + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 * + 49 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT COUNT( 36 ) * - + COUNT( * ) col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7497
SELECT COUNT ( 36 ) * - + COUNT ( * ) col0 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = 5
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7499
SELECT ALL - 34 DIV + - COUNT( * ) + + ( - + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL - 34 / + - COUNT ( * ) + + ( - + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7500
SELECT DISTINCT col1 DIV 99 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7500
SELECT DISTINCT col1 / 99 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - + ( col1 ) * col0 * - 22 + + + 44 FROM tab1 AS cor0
----
15752
9394
94138

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT ALL 1 * - COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7502
SELECT ALL 1 * - COUNT ( * ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT DISTINCT + SUM( - - col1 ) * + COUNT( * ) * - 19 + + 52 col0 FROM tab2
----
-11063

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7503
SELECT DISTINCT + SUM ( - - col1 ) * + COUNT ( * ) * - 19 + + 52 col0 FROM tab2
----
-11063

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < col2 + - col0 + col2 * col2
----

query I rowsort
SELECT 92 * - + 21 FROM tab0
----
-1932
-1932
-1932

query II rowsort
SELECT ALL col0 AS col0, - ( + 57 ) AS col1 FROM tab0
----
15
-57
87
-57
97
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT ALL - SUM( DISTINCT - 94 ) FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL - SUM ( DISTINCT - 94 ) FROM tab0
----
94

query II rowsort
SELECT DISTINCT - col2 * - col0 * + col0, col0 AS col2 FROM tab2
----
163840
64
326250
75
48668
46

onlyif mysql # DIV for integer division: 
query II rowsort label-7509
SELECT DISTINCT - - 34 DIV + + ( col2 ), + col1 * + col2 AS col1 FROM tab1 AS cor0
----
0
1344
0
295
0
3196

skipif mysql # not compatible
query II rowsort label-7509
SELECT DISTINCT - - 34 / + + ( col2 ), + col1 * + col2 AS col1 FROM tab1 AS cor0
----
0
1344
0
295
0
3196

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT ALL SUM( col1 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-7511
SELECT ALL SUM ( col1 ) AS col1 FROM tab1
----
66

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7513
SELECT ALL + col1 DIV - col0 + + 25 FROM tab0 WHERE ( col1 ) IS NOT NULL
----
20
25
25

skipif mysql # not compatible
query I rowsort label-7513
SELECT ALL + col1 / - col0 + + 25 FROM tab0 WHERE ( col1 ) IS NOT NULL
----
20
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 98 col2 FROM tab2
----
121
138
156

query I rowsort
SELECT - 57 * col0 FROM tab1
----
-2907
-4845
-5187

query I rowsort
SELECT col0 * 90 - col0 AS col0 FROM tab0 WHERE + 39 + + col1 * col2 BETWEEN NULL AND - col1 * - 19
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7517
SELECT + CAST( NULL AS DECIMAL ) * + ( 29 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7517
SELECT + CAST ( NULL AS REAL ) * + ( 29 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT COUNT( * ) * 10 FROM tab2 WHERE + col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7518
SELECT COUNT ( * ) * 10 FROM tab2 WHERE + col2 > NULL
----
0

query I rowsort
SELECT col2 + - col2 FROM tab0 WHERE col0 >= col0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + 28 AS col1 FROM tab0
----
127
38
75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( 88 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 * col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 NOT BETWEEN NULL AND col0 / col1 - - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7526
SELECT * FROM tab1 WHERE NOT 12 IN ( + CAST( 9 AS DECIMAL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7526
SELECT * FROM tab1 WHERE NOT 12 IN ( + CAST ( 9 AS REAL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 51 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 79 AS col0 FROM tab1 WHERE NOT - col1 + - col1 <> - 14
----

query I rowsort
SELECT + col0 * col0 + - 10 FROM tab1
----
2591
7215
8271

query III rowsort
SELECT * FROM tab2 WHERE ( + col0 * - 28 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT DISTINCT MIN( - col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-7531
SELECT DISTINCT MIN ( - col1 ) FROM tab2
----
-77

query I rowsort
SELECT - col2 * ( col1 * - 68 ) AS col1 FROM tab0
----
14280
258876
6732

query I rowsort
SELECT + col0 * 74 AS col1 FROM tab1
----
3774
6290
6734

query I rowsort
SELECT DISTINCT - col2 + - 53 FROM tab2 WHERE NULL IN ( col2 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT + COUNT( * ) * 94 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-7535
SELECT + COUNT ( * ) * 94 FROM tab1
----
282

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 44 + col0 AS col1 FROM tab0 AS cor0
----
131
141
59

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE ( col2 ) BETWEEN ( NULL ) AND 8
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7539
SELECT ALL - 50 / ( col2 ) FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) > NULL
----

skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL - 50 / ( col2 ) FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) > NULL
----

query I rowsort
SELECT col1 + 25 FROM tab2 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT SUM( col1 ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7541
SELECT SUM ( col1 ) AS col1 FROM tab2
----
195

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NOT - ( 96 ) IS NOT NULL
----

query I rowsort
SELECT - - col0 * + 22 FROM tab0 cor0
----
1914
2134
330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7544
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7544
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN NULL AND ( ( - col2 ) * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT - 27 * + COUNT( col0 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7546
SELECT - 27 * + COUNT ( col0 ) AS col1 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7547
SELECT - col1 + ( - CAST( 86 AS SIGNED ) ) AS col2 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) + - col0 IS NOT NULL
----
-107
-167
-87

skipif mysql # not compatible
query I rowsort label-7547
SELECT - col1 + ( - CAST ( 86 AS INTEGER ) ) AS col2 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) + - col0 IS NOT NULL
----
-107
-167
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-7548
SELECT ALL 2 DIV + col1 col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7548
SELECT ALL 2 / + col1 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT DISTINCT + COUNT( * ) * + 31 FROM tab0 cor0
----
93

skipif mysql # not compatible
query I rowsort label-7549
SELECT DISTINCT + COUNT ( * ) * + 31 FROM tab0 cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7550
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7551
SELECT ( + CAST( 81 AS SIGNED ) ) DIV + MIN( DISTINCT - col2 * - 88 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7551
SELECT ( + CAST ( 81 AS INTEGER ) ) / + MIN ( DISTINCT - col2 * - 88 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + ( - col1 ) * - ( col0 / 48 - + 79 * + 52 ) FROM tab2 AS cor0 WHERE NOT NULL <= - col1 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT - + MIN( ALL + 89 ) * 65 FROM tab1 AS cor0
----
-5785

skipif mysql # not compatible
query I rowsort label-7553
SELECT - + MIN ( ALL + 89 ) * 65 FROM tab1 AS cor0
----
-5785

query I rowsort
SELECT DISTINCT - 22 * - ( - col2 * 94 ) AS col1 FROM tab2 AS cor0
----
-119944
-47564
-82720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 * col0 col0 FROM tab2
----
4232
5888
6900

query I rowsort
SELECT - ( - ( col0 ) ) FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT + MAX( - + col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7557
SELECT + MAX ( - + col1 ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT DISTINCT + MAX( ALL + 9 ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT + MAX ( ALL + 9 ) AS col1 FROM tab2
----
9

query I rowsort
SELECT ALL + col2 - 92 AS col2 FROM tab1 WHERE 78 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN ( - ( 69 ) ) * + col0 + ( + 74 ) AND ( col0 )
----

query I rowsort
SELECT ( + 68 ) AS col2 FROM tab1 AS cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT DISTINCT - - 41 + COUNT( * ) * 78 FROM tab2 cor0
----
275

skipif mysql # not compatible
query I rowsort label-7562
SELECT DISTINCT - - 41 + COUNT ( * ) * 78 FROM tab2 cor0
----
275

query I rowsort
SELECT + + 2 * - + col1 + 59 * col1 FROM tab1 AS cor0
----
2679
285
798

query I rowsort
SELECT ALL - col0 + + - col0 AS col1 FROM tab1 AS cor0
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT ( NOT col2 * + col0 + col1 BETWEEN col0 AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7565
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( NOT col2 * + col0 + col1 BETWEEN col0 AND NULL )
----
0

query I rowsort
SELECT ALL - 67 + 79 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 33, + 25 col1 FROM tab1
----
33
25
33
25
33
25

query I rowsort
SELECT ALL + 41 * + col2 FROM tab1 AS cor0
----
2419
2788
3936

query I rowsort
SELECT - + col1 + + 57 * - 16 FROM tab1 AS cor0
----
-917
-926
-959

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT - - 57 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-7570
SELECT - - 57 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT + + 24 * ( + 28 ) + MIN( DISTINCT - ( col2 ) + + col1 ) * 41 FROM tab2 AS cor0
----
1041

skipif mysql # not compatible
query I rowsort label-7571
SELECT + + 24 * ( + 28 ) + MIN ( DISTINCT - ( col2 ) + + col1 ) * 41 FROM tab2 AS cor0
----
1041

query I rowsort
SELECT ALL - col2 + + 1 * col2 + 29 AS col0 FROM tab2 AS cor0
----
29
29
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7573
SELECT + CAST( NULL AS SIGNED ) + + ( 3 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7573
SELECT + CAST ( NULL AS INTEGER ) + + ( 3 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7574
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7574
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT DISTINCT - 91 + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( col1 ) IS NOT NULL
----
-88

skipif mysql # not compatible
query I rowsort label-7575
SELECT DISTINCT - 91 + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( col1 ) IS NOT NULL
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT ALL MIN( ALL - 10 ) AS col0 FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL MIN ( ALL - 10 ) AS col0 FROM tab1 AS cor0
----
-10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + 19 AND 40
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> - 14
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 = ( - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7581
SELECT DISTINCT - SUM( + + 3 ) - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7581
SELECT DISTINCT - SUM ( + + 3 ) - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7582
SELECT CAST( NULL AS SIGNED ) * - ( + 44 ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7582
SELECT CAST ( NULL AS INTEGER ) * - ( + 44 ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7583
SELECT ALL col2 FROM tab2 WHERE NOT + - col2 BETWEEN ( - + col0 + - 73 ) AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7583
SELECT ALL col2 FROM tab2 WHERE NOT + - col2 BETWEEN ( - + col0 + - 73 ) AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7584
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - CAST( - - col0 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7584
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - CAST ( - - col0 AS INTEGER ) AND NULL
----

query I rowsort
SELECT col0 - + + 75 FROM tab2 AS cor0
----
-11
-29
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - - col2 col2 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT DISTINCT - col1 + 37 AS col0 FROM tab2 cor0
----
-14
-30
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT + SUM( DISTINCT + col0 ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-7588
SELECT + SUM ( DISTINCT + col0 ) AS col0 FROM tab1
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT SUM( 77 ) FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-7589
SELECT SUM ( 77 ) FROM tab2
----
231

onlyif mysql # DIV for integer division: 
query II rowsort label-7590
SELECT + - 53 DIV + - ( - 62 ), + col0 AS col2 FROM tab1 AS cor0
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-7590
SELECT + - 53 / + - ( - 62 ), + col0 AS col2 FROM tab1 AS cor0
----
0
51
0
85
0
91

query I rowsort
SELECT DISTINCT - col2 / ( col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN NULL AND 69 - - col2 + - + col2 + - col0
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL > col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + - 65 col1 FROM tab2 AS cor0
----
-2990
-4160
-4875

onlyif mysql # DIV for integer division: 
query I rowsort label-7594
SELECT + ( 12 ) DIV ( + 72 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7594
SELECT + ( 12 ) / ( + 72 ) FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT ALL col1 * - + 6 + - col0 AS col1, ( 36 ) AS col0 FROM tab2 AS cor0
----
-352
36
-477
36
-526
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7596
SELECT + - CAST( NULL AS SIGNED ) * - 45 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7596
SELECT + - CAST ( NULL AS INTEGER ) * - 45 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + + col2 - + - 45 ) = ( ( ( - ( - col1 ) ) ) + col2 ) AND NOT ( NULL ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7599
SELECT + col1 * 83 DIV + ( + col0 ) FROM tab2
----
74
92
99

skipif mysql # not compatible
query I rowsort label-7599
SELECT + col1 * 83 / + ( + col0 ) FROM tab2
----
74
92
99

query II rowsort
SELECT col2 AS col2, + col0 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT 3 AS col0 FROM tab0 WHERE ( 30 + - col1 ) >= + col2 / - + 53
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7602
SELECT DISTINCT COUNT( * ) * + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7602
SELECT DISTINCT COUNT ( * ) * + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7603
SELECT DISTINCT + col0 DIV + 51 FROM tab0 WHERE NULL IS NULL
----
0
1

skipif mysql # not compatible
query I rowsort label-7603
SELECT DISTINCT + col0 / + 51 FROM tab0 WHERE NULL IS NULL
----
0
1

query I rowsort
SELECT ( - ( + col1 ) ) AS col2 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + - 81 * - - col0 AND col0
----

query II rowsort
SELECT 8 AS col0, 18 FROM tab0
----
8
18
8
18
8
18

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col0 + 20 + + col0 > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + ( + col0 ) AS col2, ( 85 ) AS col2 FROM tab2 AS cor0
----
46
85
64
85
75
85

query I rowsort
SELECT DISTINCT - 45 + col2 * + 77 FROM tab2 cor0
----
1726
3035
4421

query I rowsort
SELECT DISTINCT col2 + - + 10 * col2 FROM tab2 cor0
----
-207
-360
-522

query I rowsort
SELECT DISTINCT 46 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
46

query I rowsort
SELECT DISTINCT col1 * + - col0 + + + col2 AS col0 FROM tab0 cor0
----
-1168
-1817
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT COUNT( * ) + 11 + + COUNT( * ) AS col0 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-7613
SELECT COUNT ( * ) + 11 + + COUNT ( * ) AS col0 FROM tab0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7614
SELECT col0 + col2 - + - col1 + + - col0 * + CAST( - - col1 AS SIGNED ) AS col0 FROM tab0
----
-1072
-1709
100

skipif mysql # not compatible
query I rowsort label-7614
SELECT col0 + col2 - + - col1 + + - col0 * + CAST ( - - col1 AS INTEGER ) AS col0 FROM tab0
----
-1072
-1709
100

query III rowsort
SELECT * FROM tab1 WHERE - + col2 >= + 99
----

query I rowsort
SELECT DISTINCT 81 * + col2 * + + 13 FROM tab1
----
101088
62127
71604

query III rowsort
SELECT * FROM tab1 WHERE col0 NOT BETWEEN - + col0 + - - 27 + 44 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7618
SELECT ALL col2 + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT + - 80 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL col2 + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT + - 80 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7620
SELECT - - SUM( ALL - 6 ) AS col0, + 99 * + COUNT( * ) FROM tab1 AS cor0
----
-18
297

skipif mysql # not compatible
query II rowsort label-7620
SELECT - - SUM ( ALL - 6 ) AS col0, + 99 * + COUNT ( * ) FROM tab1 AS cor0
----
-18
297

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT DISTINCT COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7622
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT + + SUM( + 90 ) * 62 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7623
SELECT + + SUM ( + 90 ) * 62 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 + - 97 FROM tab1
----
-12
-46
-6

query I rowsort
SELECT DISTINCT ( col1 ) + + 54 AS col0 FROM tab1
----
101
59
68

onlyif mysql # DIV for integer division: 
query I rowsort label-7626
SELECT ALL - ( + col1 ) DIV + ( - 18 ) - + - col1 - + 21 * col1 FROM tab0
----
-1616
-20
-419

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL - ( + col1 ) / + ( - 18 ) - + - col1 - + 21 * col1 FROM tab0
----
-1616
-20
-419

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT COUNT( - - 69 ) + + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-7627
SELECT COUNT ( - - 69 ) + + COUNT ( * ) FROM tab1
----
6

query I rowsort
SELECT DISTINCT - col0 - + 31 FROM tab2
----
-106
-77
-95

onlyif mysql # DIV for integer division: 
query II rowsort label-7629
SELECT DISTINCT ( - col0 ) DIV col1, - col0 AS col2 FROM tab1
----
-1
-91
-17
-85
-3
-51

skipif mysql # not compatible
query II rowsort label-7629
SELECT DISTINCT ( - col0 ) / col1, - col0 AS col2 FROM tab1
----
-1
-91
-17
-85
-3
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7630
SELECT ALL - ( - - COUNT( * ) ) * + MIN( DISTINCT + + col0 ) + + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL - ( - - COUNT ( * ) ) * + MIN ( DISTINCT + + col0 ) + + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL 5 * - + col1 + - - col0 * + - col2 * + - col2 AS col2 FROM tab0
----
32730
8595
950692

query II rowsort
SELECT DISTINCT - col0 AS col0, 69 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7633
SELECT DISTINCT - + COUNT( * ) DIV + - COUNT( * ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7633
SELECT DISTINCT - + COUNT ( * ) / + - COUNT ( * ) FROM tab0 cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7634
SELECT + 78 AS col1, CAST( + 98 AS SIGNED ) FROM tab1 AS cor0
----
78
98
78
98
78
98

skipif mysql # not compatible
query II rowsort label-7634
SELECT + 78 AS col1, CAST ( + 98 AS INTEGER ) FROM tab1 AS cor0
----
78
98
78
98
78
98

query I rowsort
SELECT + - 34 AS col0 FROM tab0 AS cor0
----
-34
-34
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 41 AS col1, + 38 + + + 63 + col2 col0 FROM tab2 AS cor0
----
41
124
41
141
41
159

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT ALL - 78 * - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-7637
SELECT ALL - 78 * - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-234

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT col0 NOT BETWEEN - col0 AND - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT ( - SUM( DISTINCT - - col2 ) ) AS col1 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-7639
SELECT ( - SUM ( DISTINCT - - col2 ) ) AS col1 FROM tab1
----
-223

query I rowsort
SELECT + 13 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT DISTINCT - 49 AS col1 FROM tab2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT DISTINCT MAX( DISTINCT 78 ) AS col0 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-7642
SELECT DISTINCT MAX ( DISTINCT 78 ) AS col0 FROM tab2
----
78

query I rowsort
SELECT ALL - - 26 * + - 22 FROM tab1 cor0
----
-572
-572
-572

query I rowsort
SELECT - ( + + col0 ) FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7645
SELECT 87 * + ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7645
SELECT 87 * + ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7646
SELECT + - MIN( ALL + 35 ) DIV SUM( DISTINCT - col0 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7646
SELECT + - MIN ( ALL + 35 ) / SUM ( DISTINCT - col0 ) FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7647
SELECT 2 * COUNT( * ) * - MIN( DISTINCT + - col1 ) * + CAST( 31 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
8742

skipif mysql # not compatible
query I rowsort label-7647
SELECT 2 * COUNT ( * ) * - MIN ( DISTINCT + - col1 ) * + CAST ( 31 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
8742

query I rowsort
SELECT 97 * col0 AS col0 FROM tab2
----
4462
6208
7275

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT ALL MIN( - 22 ) AS col0 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL MIN ( - 22 ) AS col0 FROM tab1
----
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 col2 FROM tab2
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT MIN( DISTINCT + + 73 ) * - 94 + + COUNT( * ) FROM tab1
----
-6859

skipif mysql # not compatible
query I rowsort label-7651
SELECT MIN ( DISTINCT + + 73 ) * - 94 + + COUNT ( * ) FROM tab1
----
-6859

query I rowsort
SELECT ALL + 82 + 95 / + 24 AS col2 FROM tab0 WHERE NOT + + col1 IS NOT NULL
----

query I rowsort
SELECT col2 * - - 16 FROM tab2
----
368
640
928

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT DISTINCT + 95 * - - COUNT( * ) col2 FROM tab2
----
285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7654
SELECT DISTINCT + 95 * - - COUNT ( * ) col2 FROM tab2
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT DISTINCT + SUM( - + 37 ) col2 FROM tab1
----
-111

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7655
SELECT DISTINCT + SUM ( - + 37 ) col2 FROM tab1
----
-111

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT DISTINCT + COUNT( ALL - + 52 ) AS col0 FROM tab0 WHERE - col1 <= - 3
----
2

skipif mysql # not compatible
query I rowsort label-7658
SELECT DISTINCT + COUNT ( ALL - + 52 ) AS col0 FROM tab0 WHERE - col1 <= - 3
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-7659
SELECT DISTINCT - SUM( DISTINCT + col1 ) * - 36, - 6 AS col0 FROM tab2
----
7020
-6

skipif mysql # not compatible
query II rowsort label-7659
SELECT DISTINCT - SUM ( DISTINCT + col1 ) * - 36, - 6 AS col0 FROM tab2
----
7020
-6

query I rowsort
SELECT ALL + 88 + col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) >= - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7661
SELECT ALL + col0 + - + col0 + col2 DIV - + ( - 20 ) AS col2 FROM tab2 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL + col0 + - + col0 + col2 / - + ( - 20 ) AS col2 FROM tab2 AS cor0
----
1
2
2

query II rowsort
SELECT + - 89 AS col2, col0 FROM tab2 AS cor0
----
-89
46
-89
64
-89
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7663
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL - ( col1 ) * + col1 FROM tab0
----
-1
-441
-6561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7665
SELECT CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7665
SELECT CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL

query I rowsort
SELECT DISTINCT - 49 * - 19 AS col2 FROM tab0
----
931

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 3 NOT IN ( col0 + + - col2 * - col0 * col2 + + col1 )
----

query I rowsort
SELECT DISTINCT col0 * - + col1 AS col2 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7669
SELECT ALL CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7669
SELECT ALL CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7670
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col2 * - + col2 - + - 50, col0 * + col1 AS col2 FROM tab0 AS cor0
----
NULL
1215
NULL
1827
NULL
97

skipif mysql # not compatible
query II rowsort label-7670
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col2 * - + col2 - + - 50, col0 * + col1 AS col2 FROM tab0 AS cor0
----
NULL
1215
NULL
1827
NULL
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + - col1 + + col0 + - 42 col0 FROM tab1 AS cor0
----
1353
3245
338

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE NULL < NULL
----

query I rowsort
SELECT ALL + + col1 - + 16 * col1 AS col0 FROM tab0 AS cor0
----
-1215
-15
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT COUNT( * ) + - + 68 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-7674
SELECT COUNT ( * ) + - + 68 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT DISTINCT + SUM( + col0 ) * 72 + + ( - 99 ) FROM tab0 AS cor0
----
14229

skipif mysql # not compatible
query I rowsort label-7675
SELECT DISTINCT + SUM ( + col0 ) * 72 + + ( - 99 ) FROM tab0 AS cor0
----
14229

query III rowsort
SELECT * FROM tab0 WHERE NULL < - 30
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7677
SELECT DISTINCT CAST( - col1 AS SIGNED ) * + + 88 - col1 col0 FROM tab1
----
-1246
-4183
-445

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7677
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * + + 88 - col1 col0 FROM tab1
----
-1246
-4183
-445

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT ALL - SUM( col1 ) * + 37 - - + COUNT( * ) AS col0 FROM tab0
----
-3808

skipif mysql # not compatible
query I rowsort label-7678
SELECT ALL - SUM ( col1 ) * + 37 - - + COUNT ( * ) AS col0 FROM tab0
----
-3808

query II rowsort
SELECT + 75 * - col1, 5 AS col1 FROM tab1
----
-1050
5
-3525
5
-375
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7680
SELECT COUNT( * ) DIV + MIN( + + col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7680
SELECT COUNT ( * ) / + MIN ( + + col0 ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7681
SELECT DISTINCT col1 DIV - 25 AS col1, + 60 FROM tab2 AS cor0
----
-2
60
-3
60

skipif mysql # not compatible
query II rowsort label-7681
SELECT DISTINCT col1 / - 25 AS col1, + 60 FROM tab2 AS cor0
----
-2
60
-3
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT DISTINCT COUNT( + col2 ) FROM tab2 cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7682
SELECT DISTINCT COUNT ( + col2 ) FROM tab2 cor0 WHERE NULL IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + col0 col0 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT DISTINCT - + 11 * - - col2 * - col2 * col1 FROM tab2 AS cor0
----
1355200
2479268
296769

query I rowsort
SELECT ALL - - 19 AS col2 FROM tab2 AS cor0
----
19
19
19

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - - col1
----

query I rowsort
SELECT ALL - + col0 * - 33 AS col2 FROM tab1 AS cor0
----
1683
2805
3003

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT - SUM( DISTINCT + 26 ) col0 FROM tab1
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7689
SELECT - SUM ( DISTINCT + 26 ) col0 FROM tab1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT - COUNT( - col2 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7690
SELECT - COUNT ( - col2 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + ( 27 ) AS col1 FROM tab1 cor0
----
27
27
27

query I rowsort
SELECT ALL + 70 AS col2 FROM tab1 AS cor0
----
70
70
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + col2 + - 57 col2 FROM tab1 cor0
----
-1401
-3253
-352

query I rowsort
SELECT ALL - col0 * - 20 + + 3 FROM tab2 AS cor0 WHERE NOT + 33 <= - + 96
----
1283
1503
923

onlyif mysql # DIV for integer division: 
query I rowsort label-7695
SELECT ALL - col1 * + col1 DIV + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( ( NOT NULL IS NULL ) )
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7695
SELECT ALL - col1 * + col1 / + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( ( NOT NULL IS NULL ) )
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7696
SELECT + 6 FROM tab1 WHERE NOT 71 + + + 97 + + CAST( NULL AS SIGNED ) NOT BETWEEN col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-7696
SELECT + 6 FROM tab1 WHERE NOT 71 + + + 97 + + CAST ( NULL AS INTEGER ) NOT BETWEEN col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * col0 IN ( - - col1, 3, - 61 / col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT + COUNT( * ) FROM tab2 WHERE - - 56 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7698
SELECT + COUNT ( * ) FROM tab2 WHERE - - 56 IS NULL
----
0

query I rowsort
SELECT - ( + - ( - + col2 ) ) FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-7700
SELECT ALL MIN( ALL 85 ) col0, SUM( + 71 ) FROM tab2
----
85
213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7700
SELECT ALL MIN ( ALL 85 ) col0, SUM ( + 71 ) FROM tab2
----
85
213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7701
SELECT CAST( + col2 AS SIGNED ) AS col2 FROM tab2 WHERE - - ( - + col1 ) * col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7701
SELECT CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 WHERE - - ( - + col1 ) * col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + - - col0 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT col1 + + - col0 AS col1 FROM tab0
----
-66
-96
66

query IIIIII rowsort
SELECT ALL * FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # DIV for integer division: 
query I rowsort label-7706
SELECT + ( - col0 ) + + col1 DIV + 46 AS col0 FROM tab0
----
-14
-87
-97

skipif mysql # not compatible
query I rowsort label-7706
SELECT + ( - col0 ) + + col1 / + 46 AS col0 FROM tab0
----
-14
-87
-97

query II rowsort
SELECT DISTINCT - col0, col0 AS col2 FROM tab0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT 83 * + - 59 FROM tab0
----
-4897
-4897
-4897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 23 ) col0 FROM tab0
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT DISTINCT MAX( + col1 ) col0 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7710
SELECT DISTINCT MAX ( + col1 ) col0 FROM tab2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7711
SELECT DISTINCT - col2 * + - CAST( col0 AS SIGNED ) * - + col1 + + 21 * 13 + ( - - ( - col0 ) ) + + ( col0 ) AS col1 FROM tab1 cor0
----
-24802
-290563
-68271

skipif mysql # not compatible
query I rowsort label-7711
SELECT DISTINCT - col2 * + - CAST ( col0 AS INTEGER ) * - + col1 + + 21 * 13 + ( - - ( - col0 ) ) + + ( col0 ) AS col1 FROM tab1 cor0
----
-24802
-290563
-68271

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 47 + - + col1 <= NULL
----

query I rowsort
SELECT + ( 52 ) - 38 FROM tab1 AS cor0
----
14
14
14

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT + - col2 + - ( - ( col1 ) ) FROM tab2 AS cor0
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7716
SELECT ( - CAST( NULL AS SIGNED ) ) - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7716
SELECT ( - CAST ( NULL AS INTEGER ) ) - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT DISTINCT COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7717
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + col1 col2 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT + col2 - ( + col1 ) AS col1 FROM tab1
----
21
54
82

query I rowsort
SELECT - 95 AS col0 FROM tab0 WHERE NOT NULL > NULL
----

query II rowsort
SELECT col2, col0 + - col0 + - col0 FROM tab2
----
23
-46
40
-64
58
-75

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT - col1 IS NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7723
SELECT SUM( + + CAST( + col0 AS SIGNED ) ) col2 FROM tab1
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7723
SELECT SUM ( + + CAST ( + col0 AS INTEGER ) ) col2 FROM tab1
----
227

query I rowsort
SELECT ALL - 66 * - ( col0 ) * + 71 + + + 9 FROM tab2
----
215565
299913
351459

onlyif mysql # aggregate syntax: 
query II rowsort label-7725
SELECT DISTINCT + COUNT( * ), + 19 AS col0 FROM tab1
----
3
19

skipif mysql # not compatible
query II rowsort label-7725
SELECT DISTINCT + COUNT ( * ), + 19 AS col0 FROM tab1
----
3
19

query I rowsort
SELECT DISTINCT - col1 * - col0 * - col1 AS col1 FROM tab2
----
-119646
-336675
-379456

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 64 * + - col1 + col0 + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT 83 = ( col0 + + 28 )
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7729
SELECT ( + col0 ) DIV col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7729
SELECT ( + col0 ) / col1 FROM tab2 AS cor0
----
0
0
1

query II rowsort
SELECT ALL - col1 AS col2, 65 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - ( + + col2 ) AS col2 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT - ( - 5 ) AS col0 FROM tab2 AS cor0
----
5
5
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7733
SELECT CAST( - COUNT( * ) AS SIGNED ) col0, + 99 AS col2 FROM tab0 AS cor0
----
-3
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7733
SELECT CAST ( - COUNT ( * ) AS INTEGER ) col0, + 99 AS col2 FROM tab0 AS cor0
----
-3
99

query I rowsort
SELECT ALL - + 21 * + + 9 + col2 + + + 98 FROM tab1 AS cor0
----
-23
-32
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7735
SELECT DISTINCT CAST( - + col1 AS SIGNED ) FROM tab2 WHERE NOT - + col2 IS NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7735
SELECT DISTINCT CAST ( - + col1 AS INTEGER ) FROM tab2 WHERE NOT - + col2 IS NULL
----
-51
-67
-77

query I rowsort
SELECT 22 * - 20 FROM tab2 WHERE + 80 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 / col2 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL 62 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT - MAX( ALL + 19 ) FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-7740
SELECT - MAX ( ALL + 19 ) FROM tab2
----
-19

query II rowsort
SELECT col2 AS col2, col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7742
SELECT ALL col1 - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL col1 - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7743
SELECT COUNT( * ) DIV MAX( col0 ) + + - 30 AS col1 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-7743
SELECT COUNT ( * ) / MAX ( col0 ) + + - 30 AS col1 FROM tab0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7744
SELECT + ( - CAST( - 17 AS SIGNED ) ) + col0 AS col2 FROM tab2
----
63
81
92

skipif mysql # not compatible
query I rowsort label-7744
SELECT + ( - CAST ( - 17 AS INTEGER ) ) + col0 AS col2 FROM tab2
----
63
81
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 23 col2 FROM tab2 AS cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-7746
SELECT DISTINCT + - 8 * col0 + - col1 + + col2 DIV + + ( + col2 ) FROM tab1 AS cor0
----
-421
-684
-774

skipif mysql # not compatible
query I rowsort label-7746
SELECT DISTINCT + - 8 * col0 + - col1 + + col2 / + + ( + col2 ) FROM tab1 AS cor0
----
-421
-684
-774

query I rowsort
SELECT col0 + col1 + + col1 * - col0 FROM tab2 AS cor0
----
-2249
-4787
-4883

query I rowsort
SELECT + col1 + + col0 + 2 AS col1 FROM tab1 AS cor0
----
140
67
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT SUM( + col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-7749
SELECT SUM ( + col1 ) FROM tab1 cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL = - col0 - + + 62 )
----
0

skipif mysql # not compatible
query I rowsort label-7750
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL = - col0 - + + 62 )
----
0

query I rowsort
SELECT + - 88 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 83 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT DISTINCT + MIN( ALL - col1 ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7753
SELECT DISTINCT + MIN ( ALL - col1 ) AS col2 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT ALL - COUNT( - + col2 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7754
SELECT ALL - COUNT ( - + col2 ) AS col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7755
SELECT + CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7755
SELECT + CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
1
21
81

query II rowsort
SELECT ( + + 29 ) * + col1, - col2 AS col0 FROM tab1
----
1363
-68
145
-59
406
-96

query I rowsort
SELECT DISTINCT + col0 * - - col1 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

query II rowsort
SELECT ALL - - col1, col0 * - - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL = col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7759
SELECT 21 DIV - ( + 45 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7759
SELECT 21 / - ( + 45 ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT ALL + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query II rowsort
SELECT ALL col0 AS col1, 37 AS col1 FROM tab1
----
51
37
85
37
91
37

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab1 AS cor1 ON NOT NULL IS NULL
----

query I rowsort
SELECT ALL + - col1 + 29 AS col0 FROM tab1 AS cor0
----
-18
15
24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 0 < ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) * col1 col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * + col2 - - col2 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 82 * - col1 - - 69 FROM tab1 AS cor0
----
1217
3923
479

query II rowsort
SELECT + 55 * 17 AS col2, + col0 FROM tab2
----
935
46
935
64
935
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7769
SELECT + col1 * col2 DIV col2 AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7769
SELECT + col1 * col2 / col2 AS col2 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7770
SELECT - 21 + - + 37 + + 19 + MAX( DISTINCT + col2 ) DIV + + MIN( ALL + col2 ) AS col1 FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-7770
SELECT - 21 + - + 37 + + 19 + MAX ( DISTINCT + col2 ) / + + MIN ( ALL + col2 ) AS col1 FROM tab1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT DISTINCT - 40 * - ( - 62 ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-7440

skipif mysql # not compatible
query I rowsort label-7771
SELECT DISTINCT - 40 * - ( - 62 ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-7440

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - 32 + - + col1, + col1 AS col0 FROM tab1 AS cor0
----
-37
5
-46
14
-79
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7774
SELECT DISTINCT MIN( DISTINCT - - CAST( NULL AS DECIMAL ) ) - + 87 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7774
SELECT DISTINCT MIN ( DISTINCT - - CAST ( NULL AS REAL ) ) - + 87 AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT ALL SUM( + col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7775
SELECT ALL SUM ( + col1 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT ALL + 0 + - col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7777
SELECT ALL + COUNT( * ) AS col1, 53 FROM tab0 AS cor0
----
3
53

skipif mysql # not compatible
query II rowsort label-7777
SELECT ALL + COUNT ( * ) AS col1, 53 FROM tab0 AS cor0
----
3
53

query I rowsort
SELECT ALL + ( + 77 ) * + - col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) = 62
----

query II rowsort
SELECT DISTINCT - col1, col2 AS col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query II rowsort
SELECT + - col0, col1 AS col2 FROM tab0 cor0
----
-15
81
-87
21
-97
1

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col2 * + col1 + + - 28 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7782
SELECT - - ( col2 ) DIV + 63 - - col0 col0 FROM tab0 AS cor0
----
15
87
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7782
SELECT - - ( col2 ) / + 63 - - col0 col0 FROM tab0 AS cor0
----
15
87
98

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col2 NOT BETWEEN - col2 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT - ( - COUNT( * ) ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7784
SELECT - ( - COUNT ( * ) ) col0 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 col2 FROM tab2
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7786
SELECT DISTINCT CAST( - + col2 AS SIGNED ) AS col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7786
SELECT DISTINCT CAST ( - + col2 AS INTEGER ) AS col0 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT DISTINCT - COUNT( ALL - - ( + col1 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7787
SELECT DISTINCT - COUNT ( ALL - - ( + col1 ) ) FROM tab2
----
-3

query I rowsort
SELECT ALL + 27 * - + col0 + + + col2 FROM tab1 AS cor0
----
-1281
-2236
-2389

query I rowsort
SELECT - ( - + 58 ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT - - col0 AS col2 FROM tab0 AS cor0 WHERE 75 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 79 + + col0 NOT BETWEEN 38 + + - 3 / - 82 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + - ( + 12 ) col1, ( - 2 ) AS col2 FROM tab1 AS cor0
----
-108
-2
-71
-2
-80
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT DISTINCT - MIN( - 27 ) AS col0 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-7793
SELECT DISTINCT - MIN ( - 27 ) AS col0 FROM tab0 AS cor0
----
27

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 / - 83 IS NULL
----

query I rowsort
SELECT 17 + + ( col2 ) AS col1 FROM tab2 AS cor0
----
40
57
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7796
SELECT CAST( NULL AS SIGNED ) / - 10 * 48 + - MAX( - col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7796
SELECT CAST ( NULL AS INTEGER ) / - 10 * 48 + - MAX ( - col2 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT DISTINCT + 57 * - SUM( DISTINCT - + col1 ) + - + COUNT( ALL - - 31 ) + MAX( DISTINCT + 81 ) AS col2 FROM tab0 AS cor0
----
5949

skipif mysql # not compatible
query I rowsort label-7797
SELECT DISTINCT + 57 * - SUM ( DISTINCT - + col1 ) + - + COUNT ( ALL - - 31 ) + MAX ( DISTINCT + 81 ) AS col2 FROM tab0 AS cor0
----
5949

query I rowsort
SELECT + 65 + - 18 AS col0 FROM tab0
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7799
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT DISTINCT + 23 * + COUNT( * ) FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-7800
SELECT DISTINCT + 23 * + COUNT ( * ) FROM tab0
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7801
SELECT ALL 19 - - 43 + + - COUNT( * ) DIV ( + 19 ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL 19 - - 43 + + - COUNT ( * ) / ( + 19 ) FROM tab1
----
62

query I rowsort
SELECT ALL + - 74 + 82 AS col2 FROM tab2 WHERE NOT + col2 IS NULL
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT DISTINCT + 88 * MAX( + col1 ) AS col1 FROM tab0
----
7128

skipif mysql # not compatible
query I rowsort label-7803
SELECT DISTINCT + 88 * MAX ( + col1 ) AS col1 FROM tab0
----
7128

query I rowsort
SELECT DISTINCT ( + col2 ) + - + 12 FROM tab1
----
47
56
84

query I rowsort
SELECT ALL - col1 * + 99 AS col1 FROM tab2
----
-5049
-6633
-7623

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7806
SELECT col1 / + CAST( NULL AS SIGNED ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7806
SELECT col1 / + CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 44 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT + + COUNT( - col1 ) * SUM( - - 6 ) AS col1 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7808
SELECT + + COUNT ( - col1 ) * SUM ( - - 6 ) AS col1 FROM tab1 AS cor0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-7809
SELECT DISTINCT col0 DIV + - col0 + - ( + 44 ) FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-7809
SELECT DISTINCT col0 / + - col0 + - ( + 44 ) FROM tab2 AS cor0
----
-45

query I rowsort
SELECT col0 * - col0 + 44 * + col0 * col2 FROM tab0 AS cor0
----
30711
30795
413123

query I rowsort
SELECT + + 98 AS col1 FROM tab2 cor0
----
98
98
98

query I rowsort
SELECT + ( - - 92 ) FROM tab1 AS cor0
----
92
92
92

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + col0 ) col0 FROM tab0
----
15
87
97

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 21 * - + col2 >= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7816
SELECT ALL col0 * ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7816
SELECT ALL col0 * ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7817
SELECT ALL - ( - 14 ) DIV 4 * COUNT( * ) - + 14 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL - ( - 14 ) / 4 * COUNT ( * ) - + 14 FROM tab2
----
-5

query II rowsort
SELECT col2 AS col1, - 71 * - - col2 AS col2 FROM tab1
----
59
-4189
68
-4828
96
-6816

query I rowsort
SELECT 98 * col2 AS col0 FROM tab2
----
2254
3920
5684

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT ( MAX( DISTINCT col0 ) ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-7820
SELECT ( MAX ( DISTINCT col0 ) ) AS col0 FROM tab1
----
91

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> - 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT DISTINCT ( - + COUNT( * ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7822
SELECT DISTINCT ( - + COUNT ( * ) ) AS col0 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7823
SELECT * FROM tab2 WHERE NOT ( + CAST( col1 AS SIGNED ) ) NOT BETWEEN 15 + - col1 AND - col0 * col1
----

skipif mysql # not compatible
query III rowsort label-7823
SELECT * FROM tab2 WHERE NOT ( + CAST ( col1 AS INTEGER ) ) NOT BETWEEN 15 + - col1 AND - col0 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT ALL + SUM( DISTINCT - 13 ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL + SUM ( DISTINCT - 13 ) FROM tab0
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-7825
SELECT ALL COUNT( * ), COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-7825
SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab0
----
3
3

query II rowsort
SELECT col2, + col1 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT MAX( - + col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7827
SELECT MAX ( - + col1 ) FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * - col0 + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 51 * - ( - 38 ) * + + col0 ) <= + col0 * - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 13 / + + ( + + 81 ) - + col0 + - + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7831
SELECT - CAST( - - COUNT( * ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7831
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7832
SELECT - COUNT( * ) DIV - MIN( - - 71 ) - 99 + + ( - + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-7832
SELECT - COUNT ( * ) / - MIN ( - - 71 ) - 99 + + ( - + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-102

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7834
SELECT DISTINCT CAST( - 77 AS SIGNED ) col1 FROM tab0 cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7834
SELECT DISTINCT CAST ( - 77 AS INTEGER ) col1 FROM tab0 cor0
----
-77

query I rowsort
SELECT ALL ( col2 ) + col1 FROM tab1 cor0
----
110
115
64

query I rowsort
SELECT DISTINCT - - col1 + col2 + - col1 FROM tab2 cor0
----
23
40
58

query II rowsort
SELECT ALL - col0 AS col1, col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 37 + - 32 * 3 AS col2 FROM tab1 AS cor0
----
-59
-59
-59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 70 BETWEEN col0 AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7840
SELECT ALL col1 DIV + + 38 AS col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL col1 / + + 38 AS col2 FROM tab2
----
1
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + col2 col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND - + col1 + + - col2 + + col0
----

query I rowsort
SELECT + col0 - 41 AS col0 FROM tab1
----
10
44
50

query I rowsort
SELECT 97 - - - 87 FROM tab1
----
10
10
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 + + 96 col1 FROM tab2
----
136
136
136

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT ALL - 22 * - COUNT( * ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL - 22 * - COUNT ( * ) AS col1 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT ALL SUM( DISTINCT - 91 ) * COUNT( * ) + + COUNT( * ) FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-7847
SELECT ALL SUM ( DISTINCT - 91 ) * COUNT ( * ) + + COUNT ( * ) FROM tab1
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT DISTINCT + COUNT( DISTINCT col0 ) AS col0 FROM tab0 WHERE NOT ( col0 NOT IN ( + col0 + col2, 57 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7848
SELECT DISTINCT + COUNT ( DISTINCT col0 ) AS col0 FROM tab0 WHERE NOT ( col0 NOT IN ( + col0 + col2, 57 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT DISTINCT - COUNT( * ) + 33 AS col2 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-7849
SELECT DISTINCT - COUNT ( * ) + 33 AS col2 FROM tab2
----
30

query I rowsort
SELECT - + 83 + col1 FROM tab1 WHERE ( ( NULL ) >= - 84 * - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 * - 47 col1 FROM tab0 AS cor0
----
-4089
-4089
-4089

query I rowsort
SELECT ALL - 32 AS col1 FROM tab2
----
-32
-32
-32

query I rowsort
SELECT + 21 * - col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( col2 * - col0 IS NOT NULL )
----

query I rowsort
SELECT ALL - 17 AS col1 FROM tab2 AS cor0
----
-17
-17
-17

query II rowsort
SELECT - 71, + 87 AS col2 FROM tab1 AS cor0
----
-71
87
-71
87
-71
87

query I rowsort
SELECT + col2 * + - 70 AS col1 FROM tab0 AS cor0
----
-3290
-6930
-700

query II rowsort
SELECT DISTINCT + col0, col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7859
SELECT + col2 AS col0, - CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-7859
SELECT + col2 AS col0, - CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT DISTINCT - col2 * + 53 FROM tab2
----
-1219
-2120
-3074

onlyif mysql # DIV for integer division: 
query I rowsort label-7861
SELECT col0 DIV - ( 59 ) FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7861
SELECT col0 / - ( 59 ) FROM tab2
----
-1
-1
0

query II rowsort
SELECT 18 + - col2 AS col2, + col1 FROM tab1
----
-41
5
-50
47
-78
14

query III rowsort
SELECT * FROM tab1 WHERE NOT + 92 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE - - ( + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + col2 * col2 + - col0 FROM tab0 AS cor0
----
-187
-2224
-9898

query I rowsort
SELECT DISTINCT - + 44 AS col2 FROM tab2 AS cor0
----
-44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7867
SELECT CAST( NULL AS DECIMAL ) + 28 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7867
SELECT CAST ( NULL AS REAL ) + 28 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT ALL + - COUNT( ALL - - 26 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL + - COUNT ( ALL - - 26 ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT ( 71 ) + + col0 AS col2, - col0 FROM tab1 cor0
----
122
-51
156
-85
162
-91

query I rowsort
SELECT ALL ( + - 43 ) - - col0 FROM tab0
----
-28
44
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT COUNT( ALL 5 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7871
SELECT COUNT ( ALL 5 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 WHERE - 54 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 38 - - col2 FROM tab2
----
61
78
96

query I rowsort
SELECT col2 * - 34 AS col2 FROM tab0
----
-1598
-3366
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - 14 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7875
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - 14 IS NULL
----
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN col0 AND + - ( - col0 )
----

query I rowsort
SELECT DISTINCT - 36 * - col1 FROM tab0 AS cor0
----
2916
36
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 0, - col2 + 43 - + + 2 col0 FROM tab0
----
0
-58
0
-6
0
31

query I rowsort
SELECT ALL ( - + col2 ) AS col1 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7880
SELECT - CAST( NULL AS SIGNED ) AS col0, - col1 + + ( - - col2 ) * 22 * + 95 AS col1 FROM tab0
----
NULL
206909
NULL
20879
NULL
98149

skipif mysql # not compatible
query II rowsort label-7880
SELECT - CAST ( NULL AS INTEGER ) AS col0, - col1 + + ( - - col2 ) * 22 * + 95 AS col1 FROM tab0
----
NULL
206909
NULL
20879
NULL
98149

query I rowsort
SELECT DISTINCT - col0 * 12 FROM tab0 AS cor0
----
-1044
-1164
-180

query I rowsort
SELECT ALL col0 * - + 94 AS col2 FROM tab0 AS cor0
----
-1410
-8178
-9118

query I rowsort
SELECT ALL - + 43 * + col1 AS col1 FROM tab0 cor0
----
-3483
-43
-903

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 99 + + col2 IN ( - col2 * - 84 - + col2 + + col2, col1 / + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 68, - 26 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col1 - 16 + + + col1 * - col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + ( - ( - 84 ) ) * + + col1 FROM tab1 AS cor0
----
1176
3948
420

query I rowsort
SELECT ALL 10 * ( - 77 ) AS col2 FROM tab1 AS cor0
----
-770
-770
-770

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7889
SELECT + COUNT( * ) DIV + 11 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7889
SELECT + COUNT ( * ) / + 11 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT + COUNT( DISTINCT - + 54 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7890
SELECT + COUNT ( DISTINCT - + 54 ) FROM tab2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7891
SELECT COUNT( * ) DIV 11 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7891
SELECT COUNT ( * ) / 11 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 + + + 2 - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col0 AS col2, ( + col1 ) AS col2 FROM tab0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT SUM( 91 ) FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-7894
SELECT SUM ( 91 ) FROM tab0
----
273

onlyif mysql # aggregate syntax: 
query II rowsort label-7895
SELECT + 25 AS col2, - 16 * + COUNT( * ) + - 60 col1 FROM tab1
----
25
-108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7895
SELECT + 25 AS col2, - 16 * + COUNT ( * ) + - 60 col1 FROM tab1
----
25
-108

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7896
SELECT + ( + CAST( + - CAST( + + col2 AS DECIMAL ) AS SIGNED ) ) FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-7896
SELECT + ( + CAST ( + - CAST ( + + col2 AS REAL ) AS INTEGER ) ) FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 ) IS NULL
----

query II rowsort
SELECT + col1 * col2 AS col0, + 49 + 49 AS col1 FROM tab2
----
1173
98
3080
98
3886
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7899
SELECT COUNT( * ) AS col2 FROM tab0 WHERE + - CAST( NULL AS SIGNED ) * - col1 * - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7899
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE + - CAST ( NULL AS INTEGER ) * - col1 * - col2 IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 15 + + + ( + col1 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT DISTINCT COUNT( ALL + - col1 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7901
SELECT DISTINCT COUNT ( ALL + - col1 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT ALL + 98 + + + COUNT( * ) col1 FROM tab1 AS cor0
----
101

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7902
SELECT ALL + 98 + + + COUNT ( * ) col1 FROM tab1 AS cor0
----
101

query I rowsort
SELECT - - col1 - + + col2 + + col2 AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT DISTINCT + SUM( ALL - col2 ) + + 37 AS col1 FROM tab0 AS cor0
----
-119

skipif mysql # not compatible
query I rowsort label-7904
SELECT DISTINCT + SUM ( ALL - col2 ) + + 37 AS col1 FROM tab0 AS cor0
----
-119

onlyif mysql # DIV for integer division: 
query I rowsort label-7905
SELECT + col1 - + - 34 DIV col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7905
SELECT + col1 - + - 34 / col0 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT ALL - + MAX( - ( - col0 ) ) - - + 2 AS col0 FROM tab2 cor0
----
-73

skipif mysql # not compatible
query I rowsort label-7907
SELECT ALL - + MAX ( - ( - col0 ) ) - - + 2 AS col0 FROM tab2 cor0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT ALL - MIN( - - 42 ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL - MIN ( - - 42 ) FROM tab2
----
-42

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 / + + col1 + - 21 + - col0 * - 47 * 49 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7910
SELECT ALL + 44 * + + COUNT( * ) * + CAST( - 41 AS SIGNED ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-5412

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL + 44 * + + COUNT ( * ) * + CAST ( - 41 AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-5412

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT DISTINCT - COUNT( + 89 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7911
SELECT DISTINCT - COUNT ( + 89 ) FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, col2 AS col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT - ( + - ( - + col2 ) ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query II rowsort
SELECT DISTINCT + col1 AS col2, col0 * - 5 * + col1 * - 68 AS col2 FROM tab1 AS cor0
----
14
242760
47
1454180
5
144500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7915
SELECT CAST( NULL AS SIGNED ) * - - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7915
SELECT CAST ( NULL AS INTEGER ) * - - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT + ( + MIN( ALL 20 ) ) FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-7916
SELECT + ( + MIN ( ALL 20 ) ) FROM tab1
----
20

query I rowsort
SELECT - 83 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7918
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7918
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT col2 * 27 * + - col1 FROM tab2 AS cor0
----
-104922
-31671
-83160

query I rowsort
SELECT - 13 * col2 AS col0 FROM tab1 AS cor0
----
-1248
-767
-884

query I rowsort
SELECT 15 + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT col2 + + 3 - col2 IN ( + 74, 32, + col2, - col2 * + - 96, col0, col1 * - col2, - col0, - col1 )
----
61
79
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7922
SELECT DISTINCT + - 22 + + COUNT( * ), + CAST( ( COUNT( * ) ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-19
3

skipif mysql # not compatible
query II rowsort label-7922
SELECT DISTINCT + - 22 + + COUNT ( * ), + CAST ( ( COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-19
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col2 - - - 54 - - col0 AND - col0
----

query I rowsort
SELECT - - ( + col0 ) * ( - 39 ) FROM tab0 AS cor0
----
-3393
-3783
-585

query I rowsort
SELECT col1 * - 37 AS col2 FROM tab0 AS cor0
----
-2997
-37
-777

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7927
SELECT + + col0 + - - CAST( NULL AS SIGNED ) * + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7927
SELECT + + col0 + - - CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT + 6 + + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7928
SELECT + 6 + + COUNT ( * ) FROM tab0
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-7929
SELECT ALL 4 AS col1, + col1 DIV 32 FROM tab1
----
4
0
4
0
4
1

skipif mysql # not compatible
query II rowsort label-7929
SELECT ALL 4 AS col1, + col1 / 32 FROM tab1
----
4
0
4
0
4
1

query I rowsort
SELECT - + 98 AS col2 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT + 1 * - 18 + + + col2 + - col2 FROM tab2
----
-18
-18
-18

query I rowsort
SELECT ALL + col2 / - 63 AS col2 FROM tab0 WHERE NOT + 80 <= col1 * + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7933
SELECT ALL COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7933
SELECT ALL COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT col2 FROM tab0 WHERE ( NULL ) IS NULL AND NOT NULL IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT - ( + 56 ) * - col2 + - + col2 + col1 + + ( - + col2 ) + col0 FROM tab2 WHERE NOT NULL <= 23
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7936
SELECT - - 83 DIV 10 FROM tab0 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-7936
SELECT - - 83 / 10 FROM tab0 AS cor0
----
8
8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 + - + col1 col2 FROM tab0 AS cor0
----
-114
-34
-54

query I rowsort
SELECT ALL + + ( - col1 ) + 39 AS col0 FROM tab1 AS cor0
----
-8
25
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7939
SELECT ALL - + col0 + + col1 * + - CAST( - col2 AS SIGNED ) + - 13 FROM tab2 AS cor0
----
1114
3003
3798

skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL - + col0 + + col1 * + - CAST ( - col2 AS INTEGER ) + - 13 FROM tab2 AS cor0
----
1114
3003
3798

query I rowsort
SELECT - ( - 0 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 95 + - 4 AS col2 FROM tab0 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT DISTINCT ( - COUNT( * ) ) + COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7942
SELECT DISTINCT ( - COUNT ( * ) ) + COUNT ( * ) FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7943
SELECT * FROM tab1 WHERE - CAST( - col2 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7943
SELECT * FROM tab1 WHERE - CAST ( - col2 AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT + + COUNT( * ) - - 79 AS col0 FROM tab0 WHERE NULL < + 20
----
79

skipif mysql # not compatible
query I rowsort label-7944
SELECT + + COUNT ( * ) - - 79 AS col0 FROM tab0 WHERE NULL < + 20
----
79

query I rowsort
SELECT ALL 46 + - - 80 AS col0 FROM tab2
----
126
126
126

query II rowsort
SELECT 54 + - 91, + 65 AS col2 FROM tab2 AS cor0
----
-37
65
-37
65
-37
65

query I rowsort
SELECT - - col1 + - - col1 AS col2 FROM tab0 cor0
----
162
2
42

query I rowsort
SELECT 90 + + + col2 AS col1 FROM tab0 AS cor0
----
100
137
189

query I rowsort
SELECT DISTINCT 85 * col1 + col0 AS col1 FROM tab1 AS cor0
----
1241
4086
510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7950
SELECT DISTINCT - COUNT( * ) DIV - + ( + 12 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7950
SELECT DISTINCT - COUNT ( * ) / - + ( + 12 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + 70 + + + col1 FROM tab1 AS cor0
----
117
75
84

query I rowsort
SELECT ALL col2 + 52 + + - col0 + - + col1 FROM tab0 AS cor0
----
-46
3
53

query I rowsort
SELECT - + col1 * - - 56 * - col2 + + + col1 * - + 88 AS col1 FROM tab2 AS cor0
----
165704
211720
61200

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT + + MAX( ALL ( - ( - + col0 ) ) ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7954
SELECT + + MAX ( ALL ( - ( - + col0 ) ) ) AS col0 FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7955
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7955
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT DISTINCT COUNT( * ) + + ( + - COUNT( * ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7956
SELECT DISTINCT COUNT ( * ) + + ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT - + COUNT( * ) col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7957
SELECT - + COUNT ( * ) col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT + + col0 FROM tab1 WHERE NOT + 3 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7959
SELECT - CAST( + 8 AS SIGNED ) * + 39 AS col2 FROM tab2
----
-312
-312
-312

skipif mysql # not compatible
query I rowsort label-7959
SELECT - CAST ( + 8 AS INTEGER ) * + 39 AS col2 FROM tab2
----
-312
-312
-312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7960
SELECT + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7960
SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7961
SELECT + COUNT( * ) * + - 55 * 93 DIV - COUNT( * ) col2 FROM tab0
----
5115

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7961
SELECT + COUNT ( * ) * + - 55 * 93 / - COUNT ( * ) col2 FROM tab0
----
5115

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT MAX( DISTINCT - 34 ) AS col0 FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-7962
SELECT MAX ( DISTINCT - 34 ) AS col0 FROM tab1
----
-34

query I rowsort
SELECT DISTINCT + col0 * - + col2 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT ALL - MIN( ALL + ( col1 ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL - MIN ( ALL + ( col1 ) ) FROM tab1
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7965
SELECT 47 DIV col1 AS col0 FROM tab0
----
0
2
47

skipif mysql # not compatible
query I rowsort label-7965
SELECT 47 / col1 AS col0 FROM tab0
----
0
2
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7966
SELECT - col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7966
SELECT - col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7967
SELECT ALL * FROM tab1 WHERE CAST( + 53 AS SIGNED ) + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7967
SELECT ALL * FROM tab1 WHERE CAST ( + 53 AS INTEGER ) + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 * + - col1 AS col2 FROM tab1 AS cor0
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 - + col1 AS col0, + col0 - + - col1 col1 FROM tab2 WHERE NOT - col2 * + 13 BETWEEN - 64 AND NULL
----
-102
97
-134
142
-154
141

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT + SUM( + 16 ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-7970
SELECT + SUM ( + 16 ) FROM tab2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT 31 * + - MAX( DISTINCT 46 ) FROM tab2
----
-1426

skipif mysql # not compatible
query I rowsort label-7971
SELECT 31 * + - MAX ( DISTINCT 46 ) FROM tab2
----
-1426

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT ALL + MIN( ALL 22 ) AS col0 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL + MIN ( ALL 22 ) AS col0 FROM tab1
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-7973
SELECT - ( + col0 ) DIV 23 * ( + - 55 ) * 64 AS col0 FROM tab1
----
10560
10560
7040

skipif mysql # not compatible
query I rowsort label-7973
SELECT - ( + col0 ) / 23 * ( + - 55 ) * 64 AS col0 FROM tab1
----
10560
10560
7040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7974
SELECT DISTINCT 10 + + + COUNT( * ) DIV + 8 AS col2 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-7974
SELECT DISTINCT 10 + + + COUNT ( * ) / + 8 AS col2 FROM tab2
----
10

query I rowsort
SELECT DISTINCT + - 46 + - + 62 * - col0 * + 77 FROM tab0 AS cor0
----
415292
463032
71564

onlyif mysql # DIV for integer division: 
query I rowsort label-7976
SELECT DISTINCT + + 47 DIV - + 41 AS col0 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT + + 47 / - + 41 AS col0 FROM tab1 cor0
----
-1

query II rowsort
SELECT DISTINCT ( - col2 ) - - + col2, + col2 * + - col0 * + - col1 AS col0 FROM tab1
----
0
25075
0
290836
0
68544

onlyif mysql # aggregate syntax: 
query II rowsort label-7978
SELECT 55 AS col2, + MAX( DISTINCT + 98 ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
55
98

skipif mysql # not compatible
query II rowsort label-7978
SELECT 55 AS col2, + MAX ( DISTINCT + 98 ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
55
98

query I rowsort
SELECT DISTINCT - col0 + - + 77 FROM tab1 cor0
----
-128
-162
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT + - 93 * + 71 * MAX( DISTINCT + col1 ) FROM tab1 AS cor0
----
-310341

skipif mysql # not compatible
query I rowsort label-7980
SELECT + - 93 * + 71 * MAX ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-310341

query II rowsort
SELECT ALL + col0 AS col0, - col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT SUM( ALL - + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7982
SELECT SUM ( ALL - + col2 ) FROM tab0 AS cor0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 45 AS col0, + col0 + 28 + + - 95 col2 FROM tab1 AS cor0
----
45
-16
45
18
45
24

query II rowsort
SELECT + 9 AS col2, col2 FROM tab2 AS cor0
----
9
23
9
40
9
58

query I rowsort
SELECT ALL ( + col2 ) * - 42 + col1 AS col1 FROM tab1
----
-2473
-2809
-4018

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 6 NOT BETWEEN - ( col2 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, + 0 + - col1 FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT DISTINCT 29 * + + COUNT( * ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-7988
SELECT DISTINCT 29 * + + COUNT ( * ) FROM tab0
----
87

query I rowsort
SELECT ALL - col1 - - 91 AS col2 FROM tab0 WHERE NULL IS NULL
----
10
70
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7990
SELECT DISTINCT + COUNT( * ) DIV - + 37 * + + SUM( ALL col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7990
SELECT DISTINCT + COUNT ( * ) / - + 37 * + + SUM ( ALL col2 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7991
SELECT ALL COUNT( * ) DIV - + ( + 95 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7991
SELECT ALL COUNT ( * ) / - + ( + 95 ) AS col2 FROM tab2
----
0

query II rowsort
SELECT DISTINCT - 30, + 61 - - col0 AS col1 FROM tab2
----
-30
107
-30
125
-30
136

query I rowsort
SELECT ALL + - col2 * - 69 + + + ( + col1 ) FROM tab1 AS cor0
----
4076
4739
6638

query I rowsort
SELECT + - col1 * - col0 + - + col2 AS col1 FROM tab2 AS cor0
----
2323
4888
4967

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7995
SELECT + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + col1 + - + col0 * col1 AS col2 FROM tab0 AS cor0
----
-1134
-1806
-96

query I rowsort
SELECT ALL + col1 * + col2 + ( - + col2 ) + - 34 * - 2 + + col2 FROM tab0 AS cor0
----
167
278
3875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7999
SELECT ALL - COUNT( * ) + + + CAST( + + ( - 19 ) AS SIGNED ) AS col0 FROM tab1 cor0
----
-22

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL - COUNT ( * ) + + + CAST ( + + ( - 19 ) AS INTEGER ) AS col0 FROM tab1 cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT ALL - 1 * - - COUNT( * ) * - MAX( 87 ) AS col2 FROM tab1 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL - 1 * - - COUNT ( * ) * - MAX ( 87 ) AS col2 FROM tab1 AS cor0
----
261

query I rowsort
SELECT + col1 + + + col2 AS col0 FROM tab1 AS cor0
----
110
115
64

query II rowsort
SELECT DISTINCT 92 AS col1, col0 * + 56 AS col1 FROM tab0
----
92
4872
92
5432
92
840

query III rowsort
SELECT * FROM tab0 WHERE col1 * - col1 * col0 NOT IN ( + 21, ( - + 93 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT DISTINCT COUNT( * ) * + + 72 AS col0 FROM tab2
----
216

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT COUNT ( * ) * + + 72 AS col0 FROM tab2
----
216

query I rowsort
SELECT DISTINCT - col1 - + - col0 FROM tab1 WHERE NOT 29 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 4 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + + col1, col2 FROM tab0 cor0
----
1
99
21
10
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8009
SELECT - col2 DIV + col1 + - - 24 AS col1 FROM tab0 AS cor0
----
-75
24
24

skipif mysql # not compatible
query I rowsort label-8009
SELECT - col2 / + col1 + - - 24 AS col1 FROM tab0 AS cor0
----
-75
24
24

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) = ( + 66 ) + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8011
SELECT ALL - - col2 DIV + + col0 + + col2 FROM tab1 AS cor0
----
59
68
97

skipif mysql # not compatible
query I rowsort label-8011
SELECT ALL - - col2 / + + col0 + + col2 FROM tab1 AS cor0
----
59
68
97

query I rowsort
SELECT col2 - + col2 * col0 - col0 - - + 70 AS col2 FROM tab2 AS cor0
----
-1011
-2514
-4297

onlyif mysql # DIV for integer division: 
query I rowsort label-8013
SELECT 6 DIV - ( 59 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8013
SELECT 6 / - ( 59 ) FROM tab1
----
0
0
0

query I rowsort
SELECT 75 + - col0 FROM tab2
----
0
11
29

query I rowsort
SELECT ALL 54 * col2 FROM tab2
----
1242
2160
3132

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - 23 + 75 * + 16 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 50 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * 96 AS col0 FROM tab1
----
-4896
-8160
-8736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8019
SELECT 68 * CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8019
SELECT 68 * CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT SUM( - col2 ) * - COUNT( * ) FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-8020
SELECT SUM ( - col2 ) * - COUNT ( * ) FROM tab2
----
363

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 ) * + col0 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8022
SELECT + CAST( - SUM( col0 ) AS SIGNED ) FROM tab2 WHERE NOT ( - col1 + col2 ) IN ( + col0 )
----
-185

skipif mysql # not compatible
query I rowsort label-8022
SELECT + CAST ( - SUM ( col0 ) AS INTEGER ) FROM tab2 WHERE NOT ( - col1 + col2 ) IN ( + col0 )
----
-185

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT + MIN( ALL col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-8024
SELECT + MIN ( ALL col1 ) FROM tab1
----
5

query I rowsort
SELECT DISTINCT col0 * col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-8026
SELECT ALL - col2 DIV ( + 48 ) + col1 FROM tab1
----
12
4
46

skipif mysql # not compatible
query I rowsort label-8026
SELECT ALL - col2 / ( + 48 ) + col1 FROM tab1
----
12
4
46

query I rowsort
SELECT col0 * col0 AS col1 FROM tab1 WHERE NOT ( + col2 / - 2 ) NOT BETWEEN ( col1 ) AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT ( COUNT( * ) ) FROM tab2 WHERE col2 BETWEEN ( - col1 ) AND ( + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-8028
SELECT ( COUNT ( * ) ) FROM tab2 WHERE col2 BETWEEN ( - col1 ) AND ( + col1 )
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 11 / col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT MIN( ALL col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-8030
SELECT MIN ( ALL col2 ) FROM tab0
----
10

query I rowsort
SELECT - col1 FROM tab0 WHERE - col1 <> ( + col2 )
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - 80 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8033
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( - col2 * - col0 ) AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8033
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( - col2 * - col0 ) AND CAST ( NULL AS REAL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 * 76 > + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT DISTINCT 24 * - COUNT( * ) AS col2 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT 24 * - COUNT ( * ) AS col2 FROM tab0
----
-72

query I rowsort
SELECT - col1 * - col1 FROM tab1 WHERE ( col0 ) IS NOT NULL
----
196
2209
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 49 col2 FROM tab0 cor0 WHERE NOT NULL BETWEEN col2 AND - 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT - + ( COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8040
SELECT - + ( COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 7 AS col2 FROM tab0 cor0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8042
SELECT DISTINCT - CAST( + ( col1 ) AS SIGNED ) + 48 FROM tab0 AS cor0
----
-33
27
47

skipif mysql # not compatible
query I rowsort label-8042
SELECT DISTINCT - CAST ( + ( col1 ) AS INTEGER ) + 48 FROM tab0 AS cor0
----
-33
27
47

query I rowsort
SELECT DISTINCT 83 * - 55 - 16 AS col1 FROM tab0 AS cor0 WHERE 33 = ( NULL )
----

query I rowsort
SELECT ALL - col1 + + ( 29 ) * - col2 AS col1 FROM tab2 AS cor0
----
-1237
-1749
-718

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT DISTINCT - COUNT( + 1 ) * 88 AS col1 FROM tab1 AS cor0 WHERE NOT 80 + col2 / - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8045
SELECT DISTINCT - COUNT ( + 1 ) * 88 AS col1 FROM tab1 AS cor0 WHERE NOT 80 + col2 / - col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8046
SELECT - CAST( 98 AS SIGNED ) - + col1 FROM tab2 AS cor0 WHERE ( col2 / - 53 ) IN ( ( + CAST( 98 AS DECIMAL ) ) )
----

skipif mysql # not compatible
query I rowsort label-8046
SELECT - CAST ( 98 AS INTEGER ) - + col1 FROM tab2 AS cor0 WHERE ( col2 / - 53 ) IN ( ( + CAST ( 98 AS REAL ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8047
SELECT COUNT( * ) - CAST( COUNT( * ) AS SIGNED ) FROM tab1 WHERE ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8047
SELECT COUNT ( * ) - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 WHERE ( NULL ) IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 25 + - col1 * + 80 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8049
SELECT * FROM tab0 WHERE CAST( - col2 AS SIGNED ) / + col1 + + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8049
SELECT * FROM tab0 WHERE CAST ( - col2 AS INTEGER ) / + col1 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT 23 - + COUNT( * ) FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-8050
SELECT 23 - + COUNT ( * ) FROM tab0
----
20

query I rowsort
SELECT ALL - col2 - + ( col2 ) + - ( col0 ) AS col0 FROM tab1
----
-203
-227
-243

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE NOT ( 56 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT ALL MAX( ALL - 98 ) AS col0 FROM tab2
----
-98

skipif mysql # not compatible
query I rowsort label-8053
SELECT ALL MAX ( ALL - 98 ) AS col0 FROM tab2
----
-98

query III rowsort
SELECT * FROM tab2 WHERE 79 NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 + 59 + - col1 FROM tab0
----
157
25
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT + MAX( - col0 ) + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( 96 ) AND 67
----
NULL

skipif mysql # not compatible
query I rowsort label-8056
SELECT + MAX ( - col0 ) + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( 96 ) AND 67
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 = - col2 * 67
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8058
SELECT DISTINCT - 29 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8058
SELECT DISTINCT - 29 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 31 col0 FROM tab1 AS cor0
----
31
31
31

query I rowsort
SELECT ALL + 85 - + col0 FROM tab0
----
-12
-2
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT + COUNT( * ) FROM tab1 WHERE col0 NOT BETWEEN NULL AND col2
----
2

skipif mysql # not compatible
query I rowsort label-8061
SELECT + COUNT ( * ) FROM tab1 WHERE col0 NOT BETWEEN NULL AND col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT - COUNT( ALL - ( - 9 ) ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8062
SELECT - COUNT ( ALL - ( - 9 ) ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT 92 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8064
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1, tab0 cor0
----
9

query I rowsort
SELECT + 52 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT + ( + 72 ) AS col2 FROM tab0
----
72
72
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8067
SELECT + COUNT( DISTINCT col1 ) / COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8067
SELECT + COUNT ( DISTINCT col1 ) / COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8068
SELECT CAST( + 16 AS SIGNED ) * - + col0 FROM tab1 AS cor0
----
-1360
-1456
-816

skipif mysql # not compatible
query I rowsort label-8068
SELECT CAST ( + 16 AS INTEGER ) * - + col0 FROM tab1 AS cor0
----
-1360
-1456
-816

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN ( - col2 + + col0 ) AND + col0
----
75
67
58

query I rowsort
SELECT 18 * 29 AS col0 FROM tab0 AS cor0
----
522
522
522

query I rowsort
SELECT DISTINCT + col0 * - 2 + + 69 + 50 AS col0 FROM tab1 AS cor0
----
-51
-63
17

query I rowsort
SELECT - + 87 FROM tab1 cor0
----
-87
-87
-87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( + 27 ) AND 70 * ( - col1 * + col1 )
----

query I rowsort
SELECT + + 88 AS col1 FROM tab0 cor0
----
88
88
88

query I rowsort
SELECT DISTINCT 88 AS col2 FROM tab1 WHERE NOT - + 59 * + col1 <= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8076
SELECT - COUNT( * ) DIV 91 * + 85 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8076
SELECT - COUNT ( * ) / 91 * + 85 AS col2 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 + - 52 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT MIN( col0 ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8078
SELECT MIN ( col0 ) AS col1 FROM tab2
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 col2 FROM tab1
----
82
82
82

query I rowsort
SELECT ALL col0 FROM tab1 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL 23 / - col0 FROM tab2 AS cor0 WHERE col1 * col2 + + col2 NOT BETWEEN 81 + col2 AND NULL
----

query I rowsort
SELECT DISTINCT + 94 * + col1 AS col0 FROM tab1 AS cor0
----
1316
4418
470

query I rowsort
SELECT DISTINCT - 46 * + 65 AS col1 FROM tab2 cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT - SUM( col2 ) AS col0 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8084
SELECT - SUM ( col2 ) AS col0 FROM tab0 cor0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8085
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) <= + 39 + - col0
----

skipif mysql # not compatible
query III rowsort label-8085
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) <= + 39 + - col0
----

query I rowsort
SELECT 76 * col1 + + col1 AS col1 FROM tab0 AS cor0
----
1617
6237
77

query I rowsort
SELECT ALL - 85 AS col1 FROM tab2 AS cor0 WHERE NOT - ( ( col0 ) ) / - col0 + col0 NOT IN ( col1 + 47 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT DISTINCT - MIN( - - col2 ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8088
SELECT DISTINCT - MIN ( - - col2 ) AS col0 FROM tab1
----
-59

query I rowsort
SELECT - col1 * + 50 FROM tab0
----
-1050
-4050
-50

query I rowsort
SELECT 75 + - ( col2 + - col2 * col1 ) AS col2 FROM tab0 WHERE ( + - 43 / col2 * + ( + col2 ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8091
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT + col2 - + col2 BETWEEN NULL AND + 70 * - col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8091
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT + col2 - + col2 BETWEEN NULL AND + 70 * - col0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 73 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT DISTINCT + MAX( ALL + - 39 ) FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-8093
SELECT DISTINCT + MAX ( ALL + - 39 ) FROM tab2
----
-39

query I rowsort
SELECT DISTINCT 68 + + ( - col2 ) / col0 FROM tab2 WHERE NOT NULL BETWEEN ( ( + ( + ( col0 ) ) ) * col0 ) AND + 60 + + 86
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT DISTINCT + MIN( ALL - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8096
SELECT DISTINCT + MIN ( ALL - col0 ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT + col2 + + - 57 AS col0 FROM tab2 AS cor0
----
-17
-34
1

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE col0 BETWEEN ( col0 ) AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8099
SELECT DISTINCT + 59 DIV - col0 + + col0 AS col0 FROM tab0 AS cor0
----
12
87
97

skipif mysql # not compatible
query I rowsort label-8099
SELECT DISTINCT + 59 / - col0 + + col0 AS col0 FROM tab0 AS cor0
----
12
87
97

query I rowsort
SELECT 15 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND NOT ( NULL IS NOT NULL )
----
15
15
15

query I rowsort
SELECT ALL 26 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - ( - - 30 ) + 69 FROM tab1 AS cor0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT - ( - MAX( - col0 ) ) + + 56 FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8103
SELECT - ( - MAX ( - col0 ) ) + + 56 FROM tab2 AS cor0
----
10

query III rowsort
SELECT * FROM tab1 WHERE ( + 86 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * - 95 + - col0 * + 84 * + col1 + - - 7 FROM tab2
----
-192687
-407865
-414968

query III rowsort
SELECT * FROM tab0 WHERE + 19 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL NOT BETWEEN ( - + col1 ) + + - 84 AND ( - col0 * - 53 ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * - col0 NOT BETWEEN + col2 AND col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT ALL MIN( ALL - col2 ) AS col1 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL MIN ( ALL - col2 ) AS col1 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, - col2 * + col2 col0 FROM tab2
----
51
-529
67
-3364
77
-1600

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 * - 83 NOT BETWEEN NULL AND col0 - - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + - ( 80 ) AND ( - col2 * - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT 19 - col1 * - + col0 + - col2 FROM tab2 AS cor0
----
2342
4907
4986

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( + col1 * + 67 - + - 14 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 12 * - + col0 AS col0 FROM tab0 AS cor0
----
-1044
-1164
-180

query II rowsort
SELECT + - 90 * - + col2 AS col2, - 17 AS col2 FROM tab0 AS cor0
----
4230
-17
8910
-17
900
-17

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 3 IS NULL
----

query I rowsort
SELECT ( + 57 ) + + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + - 19 + - + 55 + + - col1 AND ( NULL )
----

query I rowsort
SELECT - 94 * + - 99 FROM tab1 AS cor0
----
9306
9306
9306

query I rowsort
SELECT ALL - col1 + + + ( + 4 ) FROM tab1 AS cor0 WHERE NOT ( NULL NOT IN ( - col0 + col0 ) )
----

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( + col2 - + col2 IS NULL )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT DISTINCT + COUNT( + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8124
SELECT DISTINCT + COUNT ( + col2 ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8125
SELECT ( col2 ) * col0 DIV - + col2 AS col1 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8125
SELECT ( col2 ) * col0 / - + col2 AS col1 FROM tab1
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 WHERE NOT 65 + col2 + - 38 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8127
SELECT ALL 39 AS col2, COUNT( * ) + 37 FROM tab2
----
39
40

skipif mysql # not compatible
query II rowsort label-8127
SELECT ALL 39 AS col2, COUNT ( * ) + 37 FROM tab2
----
39
40

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8128
SELECT ALL 50, CAST( NULL AS DECIMAL ) - + 94 AS col0 FROM tab1
----
50
NULL
50
NULL
50
NULL

skipif mysql # not compatible
query II rowsort label-8128
SELECT ALL 50, CAST ( NULL AS REAL ) - + 94 AS col0 FROM tab1
----
50
NULL
50
NULL
50
NULL

query I rowsort
SELECT DISTINCT col0 * + ( + col1 ) AS col0 FROM tab0
----
1215
1827
97

query II rowsort
SELECT DISTINCT + col0 AS col2, - col1 FROM tab2
----
46
-51
64
-77
75
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT ALL + COUNT( - 27 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8131
SELECT ALL + COUNT ( - 27 ) FROM tab2
----
3

query I rowsort
SELECT ALL col1 * 37 AS col1 FROM tab0 cor0
----
2997
37
777

query I rowsort
SELECT DISTINCT - ( - + col2 ) AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT DISTINCT COUNT( * ) + + - 84 col0 FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN NULL AND NULL
----
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8134
SELECT DISTINCT COUNT ( * ) + + - 84 col0 FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN NULL AND NULL
----
-84

query II rowsort
SELECT - + col2, + col1 AS col2 FROM tab2 AS cor0 WHERE 1 IS NOT NULL
----
-23
51
-40
77
-58
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8136
SELECT ALL CAST( - - COUNT( * ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8136
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab0
----
3

query I rowsort
SELECT + 48 * - col1 + - col0 AS col2 FROM tab2
----
-2494
-3291
-3760

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT DISTINCT COUNT( * ) * - 34 AS col0 FROM tab1
----
-102

skipif mysql # not compatible
query I rowsort label-8138
SELECT DISTINCT COUNT ( * ) * - 34 AS col0 FROM tab1
----
-102

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8139
SELECT col1 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8139
SELECT col1 * - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8140
SELECT DISTINCT 86 + CAST( 69 AS SIGNED ) + + col2 AS col2 FROM tab1 AS cor0
----
214
223
251

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT 86 + CAST ( 69 AS INTEGER ) + + col2 AS col2 FROM tab1 AS cor0
----
214
223
251

query I rowsort
SELECT DISTINCT col0 * + - 20 AS col0 FROM tab1 cor0
----
-1020
-1700
-1820

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 39 + + 60 - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT DISTINCT + + SUM( ALL 65 ) * + + COUNT( * ) - - + 77 col1 FROM tab2 AS cor0
----
662

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8143
SELECT DISTINCT + + SUM ( ALL 65 ) * + + COUNT ( * ) - - + 77 col1 FROM tab2 AS cor0
----
662

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8145
SELECT - - AVG ( + col1 ) FROM tab0 AS cor0 WHERE - ( - col2 ) IS NULL OR NOT - - CAST( NULL AS DECIMAL ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8145
SELECT - - AVG ( + col1 ) FROM tab0 AS cor0 WHERE - ( - col2 ) IS NULL OR NOT - - CAST ( NULL AS REAL ) >= NULL
----
NULL

query I rowsort
SELECT DISTINCT - 19 - + 32 AS col0 FROM tab0
----
-51

query III rowsort
SELECT * FROM tab0 WHERE col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + + + col2 AS col0 FROM tab2
----
117
125
74

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN col2 AND col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8150
SELECT - CAST( NULL AS DECIMAL ) + + AVG ( ALL - + 4 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8150
SELECT - CAST ( NULL AS REAL ) + + AVG ( ALL - + 4 ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT DISTINCT SUM( ALL - col0 ) * + + COUNT( * ) AS col0 FROM tab2
----
-555

skipif mysql # not compatible
query I rowsort label-8151
SELECT DISTINCT SUM ( ALL - col0 ) * + + COUNT ( * ) AS col0 FROM tab2
----
-555

query I rowsort
SELECT ALL 37 - ( - col2 ) AS col0 FROM tab2
----
60
77
95

query III rowsort
SELECT * FROM tab0 WHERE col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8154
SELECT DISTINCT - 12 DIV - - col1 FROM tab0
----
-12
0

skipif mysql # not compatible
query I rowsort label-8154
SELECT DISTINCT - 12 / - - col1 FROM tab0
----
-12
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8155
SELECT - 3 + + COUNT( * ) + - MAX( col1 ) * COUNT( * ) DIV + - 61 + + COUNT( DISTINCT - ( + 17 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8155
SELECT - 3 + + COUNT ( * ) + - MAX ( col1 ) * COUNT ( * ) / + - 61 + + COUNT ( DISTINCT - ( + 17 ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8156
SELECT ALL - SUM( ALL + ( - 91 ) ) AS col1, COUNT( DISTINCT col2 ) col0 FROM tab1
----
273
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8156
SELECT ALL - SUM ( ALL + ( - 91 ) ) AS col1, COUNT ( DISTINCT col2 ) col0 FROM tab1
----
273
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * + col0 + 79 / - col0 < NULL
----

query I rowsort
SELECT - col1 + col0 - col1 * - + col1 AS col2 FROM tab2
----
2596
4497
5916

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8159
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query II rowsort
SELECT DISTINCT col0 AS col0, - col2 + + ( - col0 ) AS col0 FROM tab1
----
51
-147
85
-144
91
-159

query I rowsort
SELECT DISTINCT 8 * 97 AS col1 FROM tab2
----
776

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8162
SELECT * FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND col2
----

skipif mysql # not compatible
query III rowsort label-8162
SELECT * FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND col2
----

query II rowsort
SELECT DISTINCT col1 AS col1, col2 FROM tab1
----
14
96
47
68
5
59

query II rowsort
SELECT DISTINCT - col2 AS col1, col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query I rowsort
SELECT + 49 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
49
49
49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * col0 - - - 78 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - 75 col1 FROM tab0 AS cor0
----
3525
7425
750

query I rowsort
SELECT ( + + col1 ) * - col2 * + - col0 AS col1 FROM tab2
----
197120
291450
53958

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( 64 / - + ( - + col2 ) ) NOT BETWEEN + 2 AND + 26 )
----
64
77
40
75
67
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col1 + col0 * 37 * + - 87 <= - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + 26 + - 84 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT DISTINCT + 91 * - 64 * + - 83 * - - MIN( DISTINCT + 52 ) * + 84 FROM tab0
----
2111456256

skipif mysql # not compatible
query I rowsort label-8172
SELECT DISTINCT + 91 * - 64 * + - 83 * - - MIN ( DISTINCT + 52 ) * + 84 FROM tab0
----
2111456256

query I rowsort
SELECT DISTINCT + col2 + + col2 + + + col1 AS col1 FROM tab2 WHERE col0 IS NOT NULL
----
157
183
97

onlyif mysql # DIV for integer division: 
query II rowsort label-8174
SELECT ALL + + 53 * - 54 AS col2, 36 DIV + col1 + + 28 FROM tab2 AS cor0
----
-2862
28
-2862
28
-2862
28

skipif mysql # not compatible
query II rowsort label-8174
SELECT ALL + + 53 * - 54 AS col2, 36 / + col1 + + 28 FROM tab2 AS cor0
----
-2862
28
-2862
28
-2862
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT ALL - 74 * COUNT( * ) FROM tab2
----
-222

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL - 74 * COUNT ( * ) FROM tab2
----
-222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 + col1 col1 FROM tab2
----
114
124
98

query I rowsort
SELECT ALL - col2 * - - col0 AS col1 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT - col0 + - - col2 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # DIV for integer division: 
query I rowsort label-8179
SELECT DISTINCT col2 DIV 69 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8179
SELECT DISTINCT col2 / 69 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + 36 - col0 FROM tab0 cor0
----
-51
-61
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8181
SELECT DISTINCT CAST( - + 9 AS SIGNED ) - col2 FROM tab0 AS cor0
----
-108
-19
-56

skipif mysql # not compatible
query I rowsort label-8181
SELECT DISTINCT CAST ( - + 9 AS INTEGER ) - col2 FROM tab0 AS cor0
----
-108
-19
-56

query I rowsort
SELECT + 35 + col1 AS col2 FROM tab2 cor0
----
102
112
86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8183
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + - 79 + + col1 > 22 + + col2 + + - ( CAST( + col1 AS SIGNED ) ) * + - col2 * ( + col2 ) )
----

skipif mysql # not compatible
query III rowsort label-8183
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + - 79 + + col1 > 22 + + col2 + + - ( CAST ( + col1 AS INTEGER ) ) * + - col2 * ( + col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8184
SELECT - - 7 DIV - col0 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8184
SELECT - - 7 / - col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 + + + col1 AS col1 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT ALL - 78 - - + col0 FROM tab1
----
-27
13
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8187
SELECT DISTINCT + MAX( + - col1 ) + CAST( + 38 AS SIGNED ) AS col0 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-8187
SELECT DISTINCT + MAX ( + - col1 ) + CAST ( + 38 AS INTEGER ) AS col0 FROM tab2
----
-13

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 43 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT ALL 1 - + MAX( ALL col1 ) + - 15 FROM tab1
----
-61

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL 1 - + MAX ( ALL col1 ) + - 15 FROM tab1
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-8190
SELECT ALL - 52 DIV - - col2 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-8190
SELECT ALL - 52 / - - col2 FROM tab0
----
-1
-5
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8191
SELECT DISTINCT MAX( - col1 ) * - - MIN( - + 61 ), - COUNT( * ) AS col2 FROM tab0
----
61
-3

skipif mysql # not compatible
query II rowsort label-8191
SELECT DISTINCT MAX ( - col1 ) * - - MIN ( - + 61 ), - COUNT ( * ) AS col2 FROM tab0
----
61
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8192
SELECT - CAST( + + 23 AS SIGNED ) AS col2, + col0 + - - 98 AS col2 FROM tab2
----
-23
144
-23
162
-23
173

skipif mysql # not compatible
query II rowsort label-8192
SELECT - CAST ( + + 23 AS INTEGER ) AS col2, + col0 + - - 98 AS col2 FROM tab2
----
-23
144
-23
162
-23
173

query I rowsort
SELECT 92 * + + col2 AS col0 FROM tab0
----
4324
9108
920

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 IN ( + 74 * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( - - 35 ) AS col1 FROM tab2
----
-35
-35
-35

query I rowsort
SELECT DISTINCT - - col2 + 90 AS col0 FROM tab1 AS cor0
----
149
158
186

query I rowsort
SELECT DISTINCT + col1 - - col1 FROM tab0 AS cor0 WHERE NULL < + col0 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8198
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT DISTINCT + - COUNT( + col1 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8199
SELECT DISTINCT + - COUNT ( + col1 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8200
SELECT DISTINCT SUM( ALL + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8200
SELECT DISTINCT SUM ( ALL + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

query II rowsort
SELECT col0 AS col2, 65 * + col1 * - col0 + + + 30 FROM tab2
----
46
-152460
64
-320290
75
-326595

query II rowsort
SELECT - col2 AS col1, - 78 FROM tab0
----
-10
-78
-47
-78
-99
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8203
SELECT + col2 * - col2 * CAST( - col0 AS SIGNED ) col2 FROM tab2
----
102400
24334
252300

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8203
SELECT + col2 * - col2 * CAST ( - col0 AS INTEGER ) col2 FROM tab2
----
102400
24334
252300

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT DISTINCT COUNT( * ) + + COUNT( DISTINCT + col1 ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT COUNT ( * ) + + COUNT ( DISTINCT + col1 ) FROM tab2 AS cor0
----
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + - col0 * + 30 * 74 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8206
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query II rowsort
SELECT col2 + + 82 AS col2, - 20 * 95 AS col0 FROM tab2
----
105
-1900
122
-1900
140
-1900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8208
SELECT - col1 - - - CAST( - col0 AS SIGNED ) col1 FROM tab0 AS cor0
----
-66
66
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8208
SELECT - col1 - - - CAST ( - col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
-66
66
96

query II rowsort
SELECT DISTINCT - col1 - + 18 AS col1, - col1 FROM tab1 AS cor0
----
-23
-5
-32
-14
-65
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8210
SELECT ALL + CAST( NULL AS SIGNED ) * + col0 / - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL + CAST ( NULL AS INTEGER ) * + col0 / - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 24 * - 22 FROM tab0
----
528
528
528

query III rowsort
SELECT * FROM tab0 WHERE NOT 53 + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL + ( + + 26 ) AS col2 FROM tab0
----
26
26
26

query II rowsort
SELECT ALL col0 AS col2, col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT + col1 * + col2 * col2 FROM tab0 cor0
----
178929
2100
9801

query I rowsort
SELECT - - 92 AS col2 FROM tab2 AS cor0 WHERE NOT ( - col1 + 22 + + - col1 ) BETWEEN col0 AND col1 * col0 * + 54
----
92
92
92

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT + ( - + col2 ) + col2 IS NULL OR NOT NULL IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8218
SELECT ALL ( + + COUNT( * ) ) DIV COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL ( + + COUNT ( * ) ) / COUNT ( * ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT - COUNT( + - 29 ) FROM tab1 AS cor0 WHERE NOT NULL = 69 + - col0 + - - col2
----
0

skipif mysql # not compatible
query I rowsort label-8219
SELECT - COUNT ( + - 29 ) FROM tab1 AS cor0 WHERE NOT NULL = 69 + - col0 + - - col2
----
0

query I rowsort
SELECT - 4 + + - col1 FROM tab0 AS cor0
----
-25
-5
-85

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT col0 + - 13 AS col0 FROM tab0 AS cor0
----
2
74
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT ALL - ( SUM( DISTINCT col0 ) ) + + + 61 AS col2 FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL - ( SUM ( DISTINCT col0 ) ) + + + 61 AS col2 FROM tab0 AS cor0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT ALL + COUNT( + - col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL + COUNT ( + - col0 ) FROM tab1
----
3

query I rowsort
SELECT 45 + + 73 + + + col2 + + 25 AS col2 FROM tab1
----
202
211
239

query II rowsort
SELECT - 77 AS col2, - col2 FROM tab0 WHERE 68 + + col2 IS NOT NULL
----
-77
-10
-77
-47
-77
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT DISTINCT - COUNT( * ) col0 FROM tab0 WHERE NOT - 26 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8227
SELECT DISTINCT - COUNT ( * ) col0 FROM tab0 WHERE NOT - 26 IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 col1 FROM tab1
----
-72
-72
-72

query III rowsort
SELECT * FROM tab2 WHERE NULL < - col2 + - col1 + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 + - + col1 + - col2 col2 FROM tab0 AS cor0
----
-99
410
6433

query I rowsort
SELECT ALL + - col2 * - col2 FROM tab1 WHERE - + col2 + + col0 IS NOT NULL
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8232
SELECT ALL 37 * + ( + CAST( NULL AS SIGNED ) ) / - 6 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8232
SELECT ALL 37 * + ( + CAST ( NULL AS INTEGER ) ) / - 6 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 7 + + col1 FROM tab2
----
44
60
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8234
SELECT ALL - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT DISTINCT SUM( ALL - col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-8235
SELECT DISTINCT SUM ( ALL - col0 ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT + col0 + col2 * - ( col2 ) * - - 3 * + col2 AS col0 FROM tab0 AS cor0
----
-2910800
-2913
-311454

onlyif mysql # DIV for integer division: 
query I rowsort label-8237
SELECT ALL + col1 DIV - 20 + - - col1 + - + col2 col2 FROM tab1 AS cor0
----
-23
-54
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8237
SELECT ALL + col1 / - 20 + - - col1 + - + col2 col2 FROM tab1 AS cor0
----
-23
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8238
SELECT - - col1 * - - col0 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8238
SELECT - - col1 * - - col0 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT + MIN( ALL - - col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8239
SELECT + MIN ( ALL - - col0 ) FROM tab2 AS cor0
----
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + + 65 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8241
SELECT CAST( NULL AS SIGNED ) / - COUNT( * ) - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8241
SELECT CAST ( NULL AS INTEGER ) / - COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT col1, + col1 AS col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

query III rowsort
SELECT * FROM tab2 WHERE NOT 11 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8244
SELECT DISTINCT + col2 DIV + 28 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-8244
SELECT DISTINCT + col2 / + 28 FROM tab0
----
0
1
3

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT - 27 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT + 73 * - + COUNT( * ) AS col2 FROM tab2
----
-219

skipif mysql # not compatible
query I rowsort label-8246
SELECT + 73 * - + COUNT ( * ) AS col2 FROM tab2
----
-219

query II rowsort
SELECT col0 * + 39, - 10 + col2 - col2 AS col1 FROM tab2
----
1794
-10
2496
-10
2925
-10

query I rowsort
SELECT - 40 * + 39 FROM tab0
----
-1560
-1560
-1560

query I rowsort
SELECT ALL - - col1 FROM tab0 AS cor0 WHERE - col2 * - ( + ( + 82 ) ) + + ( col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 34 = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8251
SELECT DISTINCT col2 DIV col0 AS col2, + 98 FROM tab1 cor0
----
0
98
1
98

skipif mysql # not compatible
query II rowsort label-8251
SELECT DISTINCT col2 / col0 AS col2, + 98 FROM tab1 cor0
----
0
98
1
98

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 61 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8254
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( 60 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8254
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( 60 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT col2 + + + col0 * - col2 AS col1 FROM tab1
----
-4800
-4956
-6120

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT MAX( DISTINCT + - 74 ) FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-8256
SELECT MAX ( DISTINCT + - 74 ) FROM tab1 AS cor0
----
-74

query I rowsort
SELECT ALL - col0 + - 78 + 99 AS col2 FROM tab0 AS cor0
----
-66
-76
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT ALL + ( - 70 ) * - COUNT( * ) + + + MIN( ALL + col0 ) AS col1 FROM tab0 cor0
----
225

skipif mysql # not compatible
query I rowsort label-8258
SELECT ALL + ( - 70 ) * - COUNT ( * ) + + + MIN ( ALL + col0 ) AS col1 FROM tab0 cor0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT DISTINCT - - COUNT( ALL + - 5 ) + - 27 AS col2 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-8259
SELECT DISTINCT - - COUNT ( ALL + - 5 ) + - 27 AS col2 FROM tab0 AS cor0
----
-24

query I rowsort
SELECT + col1 * + col0 + + col2 + - - col1 * - col0 FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8261
SELECT DISTINCT - 21, COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-21
3

skipif mysql # not compatible
query II rowsort label-8261
SELECT DISTINCT - 21, COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-21
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8262
SELECT COUNT( * ) AS col1, + COUNT( * ) * + + AVG ( - 18 ) * CAST( NULL AS SIGNED ) + + - COUNT( * ) FROM tab1 WHERE + - col1 IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8262
SELECT COUNT ( * ) AS col1, + COUNT ( * ) * + + AVG ( - 18 ) * CAST ( NULL AS INTEGER ) + + - COUNT ( * ) FROM tab1 WHERE + - col1 IS NULL
----
0
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col0 + + 41 >= 93 / - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * + 88 FROM tab0
----
4136
8712
880

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 94 * col0 - - - col2 - + 85 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8266
SELECT col1 + - col0 + - - 83 + - CAST( - 33 AS SIGNED ) * + 17 FROM tab0
----
548
578
710

skipif mysql # not compatible
query I rowsort label-8266
SELECT col1 + - col0 + - - 83 + - CAST ( - 33 AS INTEGER ) * + 17 FROM tab0
----
548
578
710

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT ALL + MAX( - - 26 ) - COUNT( * ) FROM tab1 WHERE NOT NULL <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8267
SELECT ALL + MAX ( - - 26 ) - COUNT ( * ) FROM tab1 WHERE NOT NULL <= ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT DISTINCT - 74 + COUNT( * ) FROM tab0
----
-71

skipif mysql # not compatible
query I rowsort label-8268
SELECT DISTINCT - 74 + COUNT ( * ) FROM tab0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT + + COUNT( * ) FROM tab0 WHERE col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8269
SELECT + + COUNT ( * ) FROM tab0 WHERE col1 >= NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8270
SELECT ALL + col1 + col0 + + ( + col1 ) DIV - - col0 + - col2 * + + col2 FROM tab2
----
-1458
-3222
-431

skipif mysql # not compatible
query I rowsort label-8270
SELECT ALL + col1 + col0 + + ( + col1 ) / - - col0 + - col2 * + + col2 FROM tab2
----
-1458
-3222
-431

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT - 44 + - - ( - ( + - ( + SUM( + 48 ) ) ) ) FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-8271
SELECT - 44 + - - ( - ( + - ( + SUM ( + 48 ) ) ) ) FROM tab0
----
100

query III rowsort
SELECT * FROM tab1 WHERE + + 13 BETWEEN + col0 + - + col0 + col1 - - 19 AND 53
----

query II rowsort
SELECT + col1 + - col2, ( + + col2 ) AS col0 FROM tab0 AS cor0
----
-98
99
11
10
34
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT - + COUNT( * ) + + - COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8274
SELECT - + COUNT ( * ) + + - COUNT ( * ) FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT DISTINCT 99 - COUNT( * ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8275
SELECT DISTINCT 99 - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT DISTINCT - + MIN( - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8276
SELECT DISTINCT - + MIN ( - col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT + + COUNT( ALL col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8277
SELECT + + COUNT ( ALL col2 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT col0 + - 75 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( - 32, col2, col0, - col1 / + col0 + - + 2 )
----

query I rowsort
SELECT DISTINCT col0 * + col2 * + - 91 * - col1 AS col2 FROM tab1 AS cor0
----
2281825
26466076
6237504

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 < NULL
----

query II rowsort
SELECT DISTINCT 85 AS col0, - ( + - col0 ) AS col2 FROM tab2
----
85
46
85
64
85
75

query I rowsort
SELECT ALL - 56 AS col1 FROM tab1 WHERE NULL <= NULL
----

query II rowsort
SELECT 50 AS col1, + 14 FROM tab0
----
50
14
50
14
50
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 64 col1 FROM tab1
----
-64
-64
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, + 54 col0 FROM tab0
----
1
54
21
54
81
54

query II rowsort
SELECT DISTINCT 92, col2 + + + col0 * - col2 AS col2 FROM tab0
----
92
-658
92
-860
92
-9504

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT ALL - COUNT( - col2 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8288
SELECT ALL - COUNT ( - col2 ) AS col0 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 69 * - 24 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT DISTINCT + MAX( - col2 ) AS col1 FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8290
SELECT DISTINCT + MAX ( - col2 ) AS col1 FROM tab2 cor0
----
-23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 ) IN ( + 0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col1 AS col1, + col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT ALL MAX( DISTINCT - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8293
SELECT ALL MAX ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT DISTINCT + 20 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
20

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 34 + col2 * + + 24 * - 69 <= 62
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8296
SELECT ( ( - col0 ) ) DIV col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8296
SELECT ( ( - col0 ) ) / col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col0 * + ( + col1 ) AS col0 FROM tab0 cor0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8298
SELECT - col1 + + - 14 DIV + 58 - - CAST( - col1 AS SIGNED ) AS col1, col1 AS col0 FROM tab2 AS cor0
----
-102
51
-134
67
-154
77

skipif mysql # not compatible
query II rowsort label-8298
SELECT - col1 + + - 14 / + 58 - - CAST ( - col1 AS INTEGER ) AS col1, col1 AS col0 FROM tab2 AS cor0
----
-102
51
-134
67
-154
77

query I rowsort
SELECT col2 + ( + - col2 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT + ( + - COUNT( * ) ) + - SUM( ALL - 54 ) FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-8300
SELECT + ( + - COUNT ( * ) ) + - SUM ( ALL - 54 ) FROM tab1 AS cor0
----
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 12 + + + col0 + + col2 col0 FROM tab1 AS cor0
----
204
315
723

query I rowsort
SELECT ALL - + col0 + - 9 FROM tab0 AS cor0
----
-106
-24
-96

query I rowsort
SELECT DISTINCT + - ( + + col2 ) + + col1 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT - 29 FROM tab1 AS cor0 WHERE col2 * col1 IS NOT NULL
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-8305
SELECT ALL 41 * - + ( 77 ) col1, SUM( DISTINCT + 34 ) + COUNT( * ) FROM tab2 AS cor0
----
-3157
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8305
SELECT ALL 41 * - + ( 77 ) col1, SUM ( DISTINCT + 34 ) + COUNT ( * ) FROM tab2 AS cor0
----
-3157
37

query I rowsort
SELECT col0 * 65 + + 63 AS col0 FROM tab1 AS cor0
----
3378
5588
5978

query I rowsort
SELECT col0 + 16 FROM tab1 cor0
----
101
107
67

query I rowsort
SELECT ALL + col2 + 33 + + - 8 AS col2 FROM tab1 WHERE NOT + ( + col0 ) - + - col2 NOT BETWEEN col2 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT 39 * - COUNT( * ) FROM tab0 WHERE - - ( - ( - col0 ) ) - ( + 70 ) + - + 30 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8309
SELECT 39 * - COUNT ( * ) FROM tab0 WHERE - - ( - ( - col0 ) ) - ( + 70 ) + - + 30 >= NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8310
SELECT - COUNT( DISTINCT + - CAST( + 85 AS DECIMAL ) ) * + ( - + COUNT( * ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8310
SELECT - COUNT ( DISTINCT + - CAST ( + 85 AS REAL ) ) * + ( - + COUNT ( * ) ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ALL + 13 * + 52 AS col2 FROM tab2
----
676
676
676

query I rowsort
SELECT ALL col0 * + + col2 FROM tab2
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-8313
SELECT ALL 96 DIV + 37 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-8313
SELECT ALL 96 / + 37 FROM tab1
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT DISTINCT 4 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-8314
SELECT DISTINCT 4 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
7

query I rowsort
SELECT DISTINCT + - col1 + - col1 + - col0 * + - col2 AS col0 FROM tab1 AS cor0
----
4868
5005
6094

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8316
SELECT ( - col2 ) * col2 * 65 + - col1 - + CAST( - + ( 93 ) AS SIGNED ) + col1 - + 74 FROM tab2 AS cor0
----
-103981
-218641
-34366

skipif mysql # not compatible
query I rowsort label-8316
SELECT ( - col2 ) * col2 * 65 + - col1 - + CAST ( - + ( 93 ) AS INTEGER ) + col1 - + 74 FROM tab2 AS cor0
----
-103981
-218641
-34366

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8317
SELECT 21 * + 1 * - + CAST( - + 44 AS SIGNED ) AS col2, col1 * + - 38 * + col2 FROM tab2
----
924
-117040
924
-147668
924
-44574

skipif mysql # not compatible
query II rowsort label-8317
SELECT 21 * + 1 * - + CAST ( - + 44 AS INTEGER ) AS col2, col1 * + - 38 * + col2 FROM tab2
----
924
-117040
924
-147668
924
-44574

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 col0 FROM tab1
----
74
74
74

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - - col1 / col2 + - + 52 + + col1 AND NULL
----

query I rowsort
SELECT 29 AS col2 FROM tab1 AS cor0
----
29
29
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8322
SELECT DISTINCT MIN( + - 85 ) AS col2, 32 DIV MIN( - col0 ) AS col2 FROM tab1 AS cor0
----
-85
0

skipif mysql # not compatible
query II rowsort label-8322
SELECT DISTINCT MIN ( + - 85 ) AS col2, 32 / MIN ( - col0 ) AS col2 FROM tab1 AS cor0
----
-85
0

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT + - MIN( 18 ) FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-8324
SELECT + - MIN ( 18 ) FROM tab2 AS cor0
----
-18

query II rowsort
SELECT col1 AS col2, + 83 FROM tab1
----
14
83
47
83
5
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 col0 FROM tab2
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8327
SELECT - 1 DIV col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8327
SELECT - 1 / col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT COUNT( * ) FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8329
SELECT COUNT ( * ) FROM tab2, tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 72 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT DISTINCT SUM( DISTINCT + 20 ) AS col1 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-8332
SELECT DISTINCT SUM ( DISTINCT + 20 ) AS col1 FROM tab1 AS cor0
----
20

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 54 <> NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT DISTINCT + COUNT( * ) + MAX( ALL - 45 ) FROM tab0 cor0
----
-42

skipif mysql # not compatible
query I rowsort label-8336
SELECT DISTINCT + COUNT ( * ) + MAX ( ALL - 45 ) FROM tab0 cor0
----
-42

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
23
40
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 97 > 91
----

query I rowsort
SELECT ALL ( + col0 ) - - col1 * - col2 FROM tab0
----
-123
-2
-3792

query I rowsort
SELECT - col1 - - + ( - + ( - col0 ) ) FROM tab1
----
37
44
80

query II rowsort
SELECT DISTINCT 6 - col0 AS col0, col0 AS col1 FROM tab2
----
-40
46
-58
64
-69
75

query I rowsort
SELECT ALL + 51 * + + 98 + 67 AS col1 FROM tab2
----
5065
5065
5065

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT DISTINCT - - COUNT( - + 31 ) AS col1 FROM tab1 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8343
SELECT DISTINCT - - COUNT ( - + 31 ) AS col1 FROM tab1 WHERE NOT NULL < NULL
----
0

query I rowsort
SELECT DISTINCT col1 * + 37 * col1 FROM tab0
----
16317
242757
37

onlyif mysql # DIV for integer division: 
query II rowsort label-8345
SELECT DISTINCT 18 DIV - col2 AS col2, col2 * 12 FROM tab0
----
-1
120
0
1188
0
564

skipif mysql # not compatible
query II rowsort label-8345
SELECT DISTINCT 18 / - col2 AS col2, col2 * 12 FROM tab0
----
-1
120
0
1188
0
564

query I rowsort
SELECT + col2 + - + ( + + col0 ) + + 97 AS col1 FROM tab1
----
142
71
74

query I rowsort
SELECT ALL + + 8 AS col2 FROM tab2 WHERE NOT NULL < - col2
----

query I rowsort
SELECT DISTINCT - + 65 FROM tab1 cor0
----
-65

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 / col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT + COUNT( * ) * + + 50 * - - COUNT( * ) * - 43 FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col2
----
0

skipif mysql # not compatible
query I rowsort label-8350
SELECT + COUNT ( * ) * + + 50 * - - COUNT ( * ) * - 43 FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col2
----
0

query I rowsort
SELECT col2 * - + col0 AS col0 FROM tab1
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 - + col2 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 41 ) col1 FROM tab0 cor0
----
41
41
41

query II rowsort
SELECT - + col1, - col1 FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT SUM( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8355
SELECT SUM ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
195

query I rowsort
SELECT DISTINCT col0 * + 85 * + col1 FROM tab2
----
199410
418880
427125

query III rowsort
SELECT * FROM tab2 WHERE NOT + 9 + - 13 = ( 27 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT COUNT( - - col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8358
SELECT COUNT ( - - col2 ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8359
SELECT ALL - CAST( + CAST( - col0 AS SIGNED ) AS SIGNED ) AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8359
SELECT ALL - CAST ( + CAST ( - col0 AS INTEGER ) AS INTEGER ) AS col1 FROM tab1
----
51
85
91

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE NULL IS NULL
----
51
67
77

query I rowsort
SELECT + col2 + - 38 AS col0 FROM tab2
----
-15
2
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT ALL SUM( DISTINCT + - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-8363
SELECT ALL SUM ( DISTINCT + - col2 ) FROM tab2
----
-121

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 32 * + + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 82 AS col0 FROM tab2 AS cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT ALL 2 * - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL 2 * - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 37 IS NOT NULL
----

query I rowsort
SELECT + col1 + - - 84 AS col0 FROM tab2 cor0
----
135
151
161

onlyif mysql # DIV for integer division: 
query I rowsort label-8369
SELECT - + ( + 32 ) DIV - + ( 16 ) + - - col2 DIV + 73 AS col2 FROM tab0 AS cor0
----
2
2
3

skipif mysql # not compatible
query I rowsort label-8369
SELECT - + ( + 32 ) / - + ( 16 ) + - - col2 / + 73 AS col2 FROM tab0 AS cor0
----
2
2
3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + ( + col1 ) + + + col0 + - col1 < + col2
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8371
SELECT CAST( + + col0 AS SIGNED ) * - 28 + 71 - + col2 + - col0 * 63 DIV + col2 - + + col0 - col0 AS col2 FROM tab2 AS cor0
----
-1458
-1989
-2318

skipif mysql # not compatible
query I rowsort label-8371
SELECT CAST ( + + col0 AS INTEGER ) * - 28 + 71 - + col2 + - col0 * 63 / + col2 - + + col0 - col0 AS col2 FROM tab2 AS cor0
----
-1458
-1989
-2318

query I rowsort
SELECT + col2 + ( - 22 ) AS col2 FROM tab2 cor0
----
1
18
36

query I rowsort
SELECT - col0 + - 43 FROM tab2 AS cor0
----
-107
-118
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT + 0 + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8374
SELECT + 0 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT ALL - - 9 + + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL - - 9 + + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
6

query I rowsort
SELECT col2 + + 14 FROM tab2 AS cor0
----
37
54
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8377
SELECT ALL 10 + - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8377
SELECT ALL 10 + - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + 69 FROM tab1 WHERE + + 17 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT + 69 * + COUNT( DISTINCT col1 ) AS col1 FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-8379
SELECT + 69 * + COUNT ( DISTINCT col1 ) AS col1 FROM tab2
----
207

query I rowsort
SELECT + 36 - - col0 FROM tab2
----
100
111
82

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE NOT + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8382
SELECT * FROM tab2 WHERE ( NOT 31 >= - - col1 / + 65 * + - col0 - 30 + - col2 + col0 + - - 16 + + + col0 * - ( - 7 ) + - CAST( + col0 AS SIGNED ) + + - CAST( - col2 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8382
SELECT * FROM tab2 WHERE ( NOT 31 >= - - col1 / + 65 * + - col0 - 30 + - col2 + col0 + - - 16 + + + col0 * - ( - 7 ) + - CAST ( + col0 AS INTEGER ) + + - CAST ( - col2 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8383
SELECT + CAST( NULL AS SIGNED ) - - col2 * + col0 + - ( + - col0 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8383
SELECT + CAST ( NULL AS INTEGER ) - - col2 * + col0 + - ( + - col0 ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT COUNT( DISTINCT 96 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8384
SELECT COUNT ( DISTINCT 96 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 >= NULL
----

query I rowsort
SELECT - 63 + - + 19 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0, - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 col1 FROM tab0
----
-61
-61
-61

query I rowsort
SELECT ALL + ( + + col0 ) * - 84 FROM tab0 AS cor0
----
-1260
-7308
-8148

query I rowsort
SELECT + ( - col2 ) * col1 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8390
SELECT + - CAST( NULL AS SIGNED ) * - - 53 + 29 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8390
SELECT + - CAST ( NULL AS INTEGER ) * - - 53 + 29 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8392
SELECT ALL + col1 + + col0 DIV + - 67 FROM tab2 AS cor0
----
51
66
77

skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL + col1 + + col0 / + - 67 FROM tab2 AS cor0
----
51
66
77

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8393
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 < - 90 * + ( - + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-8393
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 < - 90 * + ( - + CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT DISTINCT + col0 * - - ( + col2 ) FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT - 45 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT DISTINCT + ( - COUNT( * ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8396
SELECT DISTINCT + ( - COUNT ( * ) ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT DISTINCT COUNT( ALL - + col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8397
SELECT DISTINCT COUNT ( ALL - + col2 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT - ( - + MAX( ALL 35 ) ) FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-8398
SELECT - ( - + MAX ( ALL 35 ) ) FROM tab1
----
35

query II rowsort
SELECT DISTINCT - col2, + col0 AS col0 FROM tab1
----
-59
85
-68
91
-96
51

query I rowsort
SELECT ( + + col2 ) AS col2 FROM tab2
----
23
40
58

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT + MAX( DISTINCT + 32 ) FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-8402
SELECT + MAX ( DISTINCT + 32 ) FROM tab2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT + MIN( DISTINCT - + 71 ) FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-8403
SELECT + MIN ( DISTINCT - + 71 ) FROM tab2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT ALL - - SUM( + col0 ) + - 36 col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8404
SELECT ALL - - SUM ( + col0 ) + - 36 col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT MAX( ALL + 43 ) AS col0 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-8405
SELECT MAX ( ALL + 43 ) AS col0 FROM tab0 AS cor0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8406
SELECT COUNT( * ) DIV 23 + + + CAST( - + ( MAX( ALL + + ( - - 53 ) ) ) AS SIGNED ) FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-8406
SELECT COUNT ( * ) / 23 + + + CAST ( - + ( MAX ( ALL + + ( - - 53 ) ) ) AS INTEGER ) FROM tab1 AS cor0
----
-53

query I rowsort
SELECT DISTINCT + - 35 * - col2 + + col2 * col0 AS col1 FROM tab0 AS cor0
----
1220
13068
2350

query I rowsort
SELECT + col0 + 84 AS col1 FROM tab0 AS cor0
----
171
181
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT ALL - MIN( 51 ) FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-8410
SELECT ALL - MIN ( 51 ) FROM tab0
----
-51

query I rowsort
SELECT ALL + + 22 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 65 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( + 77 ) AS col1, + 1 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to aab29f26ecec585a4b0ce12e436bc90e

query I rowsort
SELECT DISTINCT + + col1 * - col1 + + col1 + - 0 AS col0 FROM tab2 AS cor0
----
-2550
-4422
-5852

query I rowsort
SELECT DISTINCT - + col0 + 36 + - col1 * + col1 * - - 65 FROM tab1 cor0
----
-12755
-143640
-1674

query I rowsort
SELECT ALL 97 - - + 48 AS col1 FROM tab0 AS cor0
----
145
145
145

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 62 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT - ( + 85 ) + - 48 * 53 * - + MIN( + 85 ) AS col2 FROM tab1 AS cor0
----
216155

skipif mysql # not compatible
query I rowsort label-8418
SELECT - ( + 85 ) + - 48 * 53 * - + MIN ( + 85 ) AS col2 FROM tab1 AS cor0
----
216155

onlyif mysql # DIV for integer division: 
query I rowsort label-8419
SELECT DISTINCT col2 DIV - col2 - - col0 - + + 61 FROM tab1
----
-11
23
29

skipif mysql # not compatible
query I rowsort label-8419
SELECT DISTINCT col2 / - col2 - - col0 - + + 61 FROM tab1
----
-11
23
29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8420
SELECT DISTINCT * FROM tab2 WHERE - - CAST( 62 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8420
SELECT DISTINCT * FROM tab2 WHERE - - CAST ( 62 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8421
SELECT ALL CAST( + + col1 AS SIGNED ) FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8421
SELECT ALL CAST ( + + col1 AS INTEGER ) FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT MIN( ALL + ( - col0 ) ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8422
SELECT MIN ( ALL + ( - col0 ) ) FROM tab2 AS cor0
----
-75

query II rowsort
SELECT ALL - + 33 * col2 + - col0 AS col1, 46 + - + col2 * + + col1 + col1 + + + col2 * + - 15 FROM tab2 AS cor0
----
-1384
-3557
-1989
-4643
-805
-1421

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 29 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8425
SELECT ALL - - col1 * + CAST( + col1 AS SIGNED ) + 57 AS col0 FROM tab1 cor0
----
2266
253
82

skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL - - col1 * + CAST ( + col1 AS INTEGER ) + 57 AS col0 FROM tab1 cor0
----
2266
253
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8426
SELECT + col2 DIV col1 * - col1 + col1 AS col1 FROM tab0 AS cor0
----
-98
21
81

skipif mysql # not compatible
query I rowsort label-8426
SELECT + col2 / col1 * - col1 + col1 AS col1 FROM tab0 AS cor0
----
-98
21
81

query I rowsort
SELECT DISTINCT + - 85 AS col1 FROM tab1 AS cor0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT MIN( 0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8428
SELECT MIN ( 0 ) FROM tab1 AS cor0
----
0

query II rowsort
SELECT - 9 AS col1, 68 AS col1 FROM tab0 AS cor0
----
-9
68
-9
68
-9
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT ALL SUM( - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8430
SELECT ALL SUM ( - col1 ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT + + 17 + - 26 FROM tab2 AS cor0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT + - COUNT( * ) + - MAX( 32 ) AS col2 FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-8432
SELECT + - COUNT ( * ) + - MAX ( 32 ) AS col2 FROM tab2 AS cor0
----
-35

query I rowsort
SELECT - + col2 * + col2 + + 3 * - - col2 * - col1 AS col2 FROM tab1 AS cor0
----
-13248
-14212
-4366

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT ALL + + MAX( 80 ) AS col0 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL + + MAX ( 80 ) AS col0 FROM tab1 AS cor0
----
80

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 + + 69 + - - col1 <> - - col1 * - - 29 / col2
----

query I rowsort
SELECT col0 + + 0 - - + 98 FROM tab0
----
113
185
195

query I rowsort
SELECT + col0 * col1 + + 12 AS col2 FROM tab0
----
109
1227
1839

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8438
SELECT ( + col0 ) * - ( CAST( + 77 AS SIGNED ) ) + - + 96 + + col1 * - + col0 + - 66 AS col1 FROM tab1
----
-11446
-4803
-7132

skipif mysql # not compatible
query I rowsort label-8438
SELECT ( + col0 ) * - ( CAST ( + 77 AS INTEGER ) ) + - + 96 + + col1 * - + col0 + - 66 AS col1 FROM tab1
----
-11446
-4803
-7132

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT - + MIN( + col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8439
SELECT - + MIN ( + col2 ) AS col2 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT ALL + 33 + + 37 AS col2 FROM tab0 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT DISTINCT + COUNT( ALL - col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8441
SELECT DISTINCT + COUNT ( ALL - col2 ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8442
SELECT ALL - MIN( - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL - MIN ( - CAST ( NULL AS REAL ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL < 14
----

query I rowsort
SELECT ALL + 32 + + + col0 AS col1 FROM tab0 AS cor0
----
119
129
47

query I rowsort
SELECT - - col1 + - ( col0 ) FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT - SUM( - - col2 ) col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8446
SELECT - SUM ( - - col2 ) col1 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT MAX( + col1 ) * - 8 AS col0 FROM tab0 AS cor0
----
-648

skipif mysql # not compatible
query I rowsort label-8447
SELECT MAX ( + col1 ) * - 8 AS col0 FROM tab0 AS cor0
----
-648

query I rowsort
SELECT ALL - + col1 AS col2 FROM tab0 AS cor0 WHERE NOT - 65 * - - col2 + + col0 IS NULL
----
-1
-21
-81

query II rowsort
SELECT DISTINCT - ( + col2 ) + ( + col2 ) AS col2, 0 + + + col0 AS col0 FROM tab2 AS cor0
----
0
46
0
64
0
75

query I rowsort
SELECT ( + - col2 ) * - + 32 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT ALL COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
6

query I rowsort
SELECT DISTINCT col1 * + col0 + 74 + - col2 AS col1 FROM tab1 AS cor0
----
4283
440
692

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, + col0 col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT DISTINCT + col1 * - 65 FROM tab1 cor0
----
-3055
-325
-910

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 < col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT DISTINCT - MIN( - col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8456
SELECT DISTINCT - MIN ( - col1 ) FROM tab0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 col2 FROM tab2 AS cor0
----
32
32
32

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 <= + 96
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( 84 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT SUM( + col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-8460
SELECT SUM ( + col0 ) AS col1 FROM tab0 AS cor0
----
199

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8462
SELECT ALL + - col0 + - col0 * - - col1 col2, 12 DIV - - 58 AS col2 FROM tab2 AS cor0
----
-2392
0
-4992
0
-5100
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8462
SELECT ALL + - col0 + - col0 * - - col1 col2, 12 / - - 58 AS col2 FROM tab2 AS cor0
----
-2392
0
-4992
0
-5100
0

query I rowsort
SELECT DISTINCT - - 24 AS col0 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8464
SELECT DISTINCT + 26 * col2 DIV - 62 + + + col1 FROM tab1 AS cor0
----
-19
-26
19

skipif mysql # not compatible
query I rowsort label-8464
SELECT DISTINCT + 26 * col2 / - 62 + + + col1 FROM tab1 AS cor0
----
-19
-26
19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 45, 76 )
----

query I rowsort
SELECT ALL col2 + + col1 AS col1 FROM tab1 cor0
----
110
115
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8467
SELECT 7 DIV - MAX( DISTINCT + 26 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8467
SELECT 7 / - MAX ( DISTINCT + 26 ) FROM tab1
----
0

query II rowsort
SELECT col1, ( + col1 ) AS col2 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8469
SELECT ALL + 15 AS col0, + COUNT( * ) AS col1 FROM tab1
----
15
3

skipif mysql # not compatible
query II rowsort label-8469
SELECT ALL + 15 AS col0, + COUNT ( * ) AS col1 FROM tab1
----
15
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT DISTINCT + COUNT( * ) * - 80 AS col1 FROM tab0
----
-240

skipif mysql # not compatible
query I rowsort label-8470
SELECT DISTINCT + COUNT ( * ) * - 80 AS col1 FROM tab0
----
-240

query I rowsort
SELECT - col1 * + - col2 FROM tab1
----
1344
295
3196

query II rowsort
SELECT DISTINCT col0 AS col2, col0 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT ALL col2 * + 72 * - col1 AS col1 FROM tab0
----
-15120
-274104
-7128

query I rowsort
SELECT col0 * - col0 + ( 50 ) FROM tab1
----
-2551
-7175
-8231

query I rowsort
SELECT 56 + - + col0 FROM tab0
----
-31
-41
41

onlyif mysql # DIV for integer division: 
query I rowsort label-8476
SELECT col0 + - col2 DIV + + 21 + - col2 AS col2 FROM tab2
----
15
22
23

skipif mysql # not compatible
query I rowsort label-8476
SELECT col0 + - col2 / + + 21 + - col2 AS col2 FROM tab2
----
15
22
23

query III rowsort
SELECT * FROM tab2 WHERE + + col2 > + col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8478
SELECT DISTINCT + CAST( - col1 AS SIGNED ) DIV + col2 * + + col2 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8478
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) / + col2 * + + col2 AS col2 FROM tab1
----
0

query I rowsort
SELECT ( 58 ) + + 10 + col0 + - col1 AS col0 FROM tab0
----
134
164
2

query I rowsort
SELECT ALL + 31 * + - col0 * col0 * + 80 + + + 15 AS col0 FROM tab1
----
-17917985
-20536865
-6450465

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT DISTINCT - 39 * + COUNT( * ) * + - 13 FROM tab1 AS cor0
----
1521

skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT - 39 * + COUNT ( * ) * + - 13 FROM tab1 AS cor0
----
1521

onlyif mysql # aggregate syntax: 
query II rowsort label-8482
SELECT DISTINCT 97 + - COUNT( * ), + COUNT( * ) AS col0 FROM tab0 AS cor0
----
94
3

skipif mysql # not compatible
query II rowsort label-8482
SELECT DISTINCT 97 + - COUNT ( * ), + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
94
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 36 col0 FROM tab1 AS cor0
----
-36
-36
-36

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 63 AND col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8486
SELECT - - MIN( DISTINCT + 11 ), + 66 * - 12 AS col0 FROM tab2 AS cor0
----
11
-792

skipif mysql # not compatible
query II rowsort label-8486
SELECT - - MIN ( DISTINCT + 11 ), + 66 * - 12 AS col0 FROM tab2 AS cor0
----
11
-792

query I rowsort
SELECT col2 * + 75 FROM tab2
----
1725
3000
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT ALL SUM( ALL + 90 ) AS col2 FROM tab1
----
270

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL SUM ( ALL + 90 ) AS col2 FROM tab1
----
270

onlyif mysql # DIV for integer division: 
query II rowsort label-8489
SELECT ALL col0 AS col2, 6 DIV 5 + + 21 FROM tab0
----
15
22
87
22
97
22

skipif mysql # not compatible
query II rowsort label-8489
SELECT ALL col0 AS col2, 6 / 5 + + 21 FROM tab0
----
15
22
87
22
97
22

query I rowsort
SELECT - 39 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND + - ( + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col0, - col2 AS col0 FROM tab0 AS cor0
----
-15
-47
-87
-10
-97
-99

query III rowsort
SELECT * FROM tab1 WHERE NULL = + 12
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NOT - 60 IS NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 13 >= col2 * col1 + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN ( col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8497
SELECT DISTINCT CAST( + ( col2 ) AS SIGNED ) FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8497
SELECT DISTINCT CAST ( + ( col2 ) AS INTEGER ) FROM tab0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * ( col0 ) col2 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT DISTINCT SUM( ( 20 ) ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-8499
SELECT DISTINCT SUM ( ( 20 ) ) FROM tab2
----
60

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 - col0 BETWEEN 86 * - 8 + - col2 AND NULL
----

query I rowsort
SELECT 72 + 47 * + col0 AS col2 FROM tab2
----
2234
3080
3597

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 ) <= NULL
----

query I rowsort
SELECT DISTINCT + col0 - - col0 AS col0 FROM tab0
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8504
SELECT ALL - 5 * - col1 - + 56 * col2 AS col1 FROM tab2 WHERE - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) = 50
----

skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL - 5 * - col1 - + 56 * col2 AS col1 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) = 50
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 38 IS NULL
----

query I rowsort
SELECT + 29 * + col1 FROM tab0
----
2349
29
609

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 > col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 <= NULL
----

query I rowsort
SELECT - 18 * col1 AS col1 FROM tab2
----
-1206
-1386
-918

query I rowsort
SELECT + col0 * + 24 FROM tab1
----
1224
2040
2184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8511
SELECT DISTINCT - col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8511
SELECT DISTINCT - col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - col2 + 77 AS col2 FROM tab1 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * - 99 AS col1 FROM tab0
----
-4653
-9801
-990

query III rowsort
SELECT * FROM tab1 WHERE 8 / + col1 IS NULL
----

query I rowsort
SELECT 38 * - 73 AS col1 FROM tab1
----
-2774
-2774
-2774

query I rowsort
SELECT col0 * 20 FROM tab1
----
1020
1700
1820

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 WHERE NOT col2 IS NULL
----
23
40
58

query I rowsort
SELECT ALL + col2 * + col1 + col0 FROM tab1
----
1395
3287
380

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT ALL + COUNT( * ) * - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8520
SELECT ALL + COUNT ( * ) * - COUNT ( * ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT + SUM( + col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8521
SELECT + SUM ( + col2 ) AS col2 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT COUNT( ( 2 ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8522
SELECT COUNT ( ( 2 ) ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT DISTINCT ( - 57 ) * COUNT( * ) + 3 FROM tab0 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-8523
SELECT DISTINCT ( - 57 ) * COUNT ( * ) + 3 FROM tab0 AS cor0
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8524
SELECT col1 * + CAST( NULL AS SIGNED ) - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8524
SELECT col1 * + CAST ( NULL AS INTEGER ) - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT - MIN( ALL col0 ) - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-8525
SELECT - MIN ( ALL col0 ) - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-8526
SELECT DISTINCT - col2 DIV 7 + col0 FROM tab2 AS cor0
----
43
59
67

skipif mysql # not compatible
query I rowsort label-8526
SELECT DISTINCT - col2 / 7 + col0 FROM tab2 AS cor0
----
43
59
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT 7 - + ( COUNT( col2 ) ) FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-8527
SELECT 7 - + ( COUNT ( col2 ) ) FROM tab2 AS cor0
----
4

query I rowsort
SELECT ALL - 10 + + col0 AS col0 FROM tab2 AS cor0
----
36
54
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT DISTINCT COUNT( * ) * + ( COUNT( * ) ) - - 48 AS col0 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-8529
SELECT DISTINCT COUNT ( * ) * + ( COUNT ( * ) ) - - 48 AS col0 FROM tab1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8530
SELECT DISTINCT CAST( NULL AS SIGNED ) * + COUNT( ALL col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8530
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + COUNT ( ALL col0 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT COUNT( * ) + 51 AS col2 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-8531
SELECT COUNT ( * ) + 51 AS col2 FROM tab2
----
54

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) < + col0 * - 98
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8533
SELECT ALL 96 DIV 76 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8533
SELECT ALL 96 / 76 FROM tab1
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) <> ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT MAX( - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8535
SELECT MAX ( - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8536
SELECT - col0 * CAST( + col1 * - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
107916
315392
376875

skipif mysql # not compatible
query I rowsort label-8536
SELECT - col0 * CAST ( + col1 * - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
107916
315392
376875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8537
SELECT ALL + + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) / 29 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8537
SELECT ALL + + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) / 29 AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL <= col1 * + col2
----

query I rowsort
SELECT - 20 * - 41 AS col0 FROM tab0 AS cor0
----
820
820
820

onlyif mysql # DIV for integer division: 
query I rowsort label-8540
SELECT - 21 DIV + 69 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8540
SELECT - 21 / + 69 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - 73 * + col1 FROM tab0 AS cor0
----
-1533
-5913
-73

query I rowsort
SELECT DISTINCT - - 97 AS col2 FROM tab1 AS cor0
----
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 48 + - col2 >= NULL
----

query I rowsort
SELECT col2 * + 40 AS col0 FROM tab2 cor0
----
1600
2320
920

query I rowsort
SELECT DISTINCT + 75 * - col0 AS col1 FROM tab2 cor0
----
-3450
-4800
-5625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8546
SELECT MIN( CAST( - 33 AS SIGNED ) ) * COUNT( * ) AS col0 FROM tab1 WHERE NOT ( + 34 ) NOT IN ( + ( - col1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8546
SELECT MIN ( CAST ( - 33 AS INTEGER ) ) * COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( + 34 ) NOT IN ( + ( - col1 ) )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN ( 90 / col0 ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT COUNT( * ) + ( COUNT( ALL - 99 ) ) AS col2 FROM tab1 WHERE NOT - col1 * col1 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8548
SELECT COUNT ( * ) + ( COUNT ( ALL - 99 ) ) AS col2 FROM tab1 WHERE NOT - col1 * col1 <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8549
SELECT * FROM tab0 WHERE NOT + col0 IN ( col0 + 81 * + CAST( - col2 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8549
SELECT * FROM tab0 WHERE NOT + col0 IN ( col0 + 81 * + CAST ( - col2 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT + COUNT( * ) + COUNT( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN + 40 AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-8550
SELECT + COUNT ( * ) + COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN + 40 AND - col0
----
0

query I rowsort
SELECT DISTINCT - ( - + col1 ) FROM tab0
----
1
21
81

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT col2 IS NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 * + col1 BETWEEN + col2 * col1 AND ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE NOT + 34 * col0 + 22 * col2 NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8554
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + 34 * col0 + 22 * col2 NOT IN ( col1 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col0 FROM tab1
----
-13
-13
-13

query I rowsort
SELECT DISTINCT - 47 AS col1 FROM tab2
----
-47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 37 / 31 = 95
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < ( col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 IS NULL AND NOT 22 = + 9 + col1 / - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 20 BETWEEN NULL AND + 42
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < 85 - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT ALL - COUNT( ALL col1 ) AS col1 FROM tab0 WHERE NOT NULL IN ( + + col2 - + col2 * 23 )
----
0

skipif mysql # not compatible
query I rowsort label-8562
SELECT ALL - COUNT ( ALL col1 ) AS col1 FROM tab0 WHERE NOT NULL IN ( + + col2 - + col2 * 23 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8563
SELECT DISTINCT - COUNT( * ) DIV + + 29 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8563
SELECT DISTINCT - COUNT ( * ) / + + 29 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT MAX( + 41 ) * COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
378

skipif mysql # not compatible
query I rowsort label-8564
SELECT MAX ( + 41 ) * COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
378

query I rowsort
SELECT - col0 + col1 + + col0 - col1 * col0 AS col0 FROM tab1
----
-420
-4230
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT MIN( ALL + + 85 ) * 23 FROM tab0
----
1955

skipif mysql # not compatible
query I rowsort label-8566
SELECT MIN ( ALL + + 85 ) * 23 FROM tab0
----
1955

onlyif mysql # DIV for integer division: 
query I rowsort label-8567
SELECT - 12 * - ( - 28 ) + col1 DIV + col0 FROM tab2 cor0
----
-335
-335
-336

skipif mysql # not compatible
query I rowsort label-8567
SELECT - 12 * - ( - 28 ) + col1 / + col0 FROM tab2 cor0
----
-335
-335
-336

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> + col1 + + col0 / - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8569
SELECT DISTINCT - - col0 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT - - col0 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 14 * ( - - 48 ) + col1 + - ( - col2 ) AS col2 FROM tab0 AS cor0
----
703
772
800

query I rowsort
SELECT ALL 94 + - col1 * + 51 FROM tab0 AS cor0 WHERE - col0 + - 68 NOT IN ( col2 + col0 * - 38 )
----
-4037
-977
43

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 < - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8573
SELECT - CAST( col1 AS SIGNED ) * + col2 AS col1 FROM tab1 AS cor0 WHERE 20 BETWEEN ( - 51 + 96 ) AND ( 18 / col0 )
----

skipif mysql # not compatible
query I rowsort label-8573
SELECT - CAST ( col1 AS INTEGER ) * + col2 AS col1 FROM tab1 AS cor0 WHERE 20 BETWEEN ( - 51 + 96 ) AND ( 18 / col0 )
----

query II rowsort
SELECT + col2 AS col0, col1 * - col2 FROM tab0 AS cor0
----
10
-210
47
-3807
99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8575
SELECT - CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8575
SELECT - CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + col1 * 65 FROM tab0
----
1365
5265
65

query I rowsort
SELECT 53 AS col0 FROM tab2 WHERE ( 4 ) NOT IN ( - ( + col2 ) * + col0 )
----
53
53
53

query I rowsort
SELECT + col1 - + + 21 FROM tab0
----
-20
0
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT - ( + COUNT( * ) ) + + COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8579
SELECT - ( + COUNT ( * ) ) + + COUNT ( * ) AS col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8580
SELECT col2 * - + col0 * col2 + + 87 + + col0 DIV + col1 FROM tab1
----
-295781
-420696
-469926

skipif mysql # not compatible
query I rowsort label-8580
SELECT col2 * - + col0 * col2 + + 87 + + col0 / + col1 FROM tab1
----
-295781
-420696
-469926

query III rowsort
SELECT * FROM tab1 WHERE ( col0 + - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 + col1 AS col0 FROM tab0 WHERE + col1 IS NULL AND col0 * + col1 NOT IN ( ( 25 ) - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT DISTINCT - COUNT( DISTINCT 45 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8583
SELECT DISTINCT - COUNT ( DISTINCT 45 ) FROM tab1
----
-1

query I rowsort
SELECT 83 * - + col1 * + ( col1 ) + - 23 AS col1 FROM tab1
----
-16291
-183370
-2098

query I rowsort
SELECT 20 + + - col0 - - col0 AS col0 FROM tab1
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT DISTINCT - MAX( ALL - - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8586
SELECT DISTINCT - MAX ( ALL - - col0 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT ALL - 79 AS col2 FROM tab2 AS cor0
----
-79
-79
-79

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 IN ( col1 / 46 / - - col2 + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8590
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * 89 + - 59 - + col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8590
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * 89 + - 59 - + col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT + col0 + + col0 FROM tab1 AS cor0 WHERE NOT NULL < 50 * - - 3
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT + 23 * col2 + + col0 NOT BETWEEN col2 * col0 + - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT DISTINCT + SUM( - col2 ) col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8593
SELECT DISTINCT + SUM ( - col2 ) col0 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT ALL + COUNT( * ) * + COUNT( * ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL + COUNT ( * ) * + COUNT ( * ) FROM tab2 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT + + 47 * - MAX( 9 ) FROM tab1 AS cor0
----
-423

skipif mysql # not compatible
query I rowsort label-8595
SELECT + + 47 * - MAX ( 9 ) FROM tab1 AS cor0
----
-423

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8596
SELECT DISTINCT + col2 * - - 81 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8596
SELECT DISTINCT + col2 * - - 81 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 68 * - col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 * + col2 AND NULL
----

query II rowsort
SELECT + col0 AS col0, + col2 - col1 + + - ( col2 ) + - - ( - col0 ) AS col1 FROM tab1
----
51
-65
85
-90
91
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT + 92 * MIN( - col0 ) AS col1 FROM tab2
----
-6900

skipif mysql # not compatible
query I rowsort label-8599
SELECT + 92 * MIN ( - col0 ) AS col1 FROM tab2
----
-6900

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT + SUM( ALL + col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-8600
SELECT + SUM ( ALL + col0 ) FROM tab1
----
227

query I rowsort
SELECT + ( - + 80 ) AS col2 FROM tab2
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT ALL + MIN( 64 ) AS col2 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL + MIN ( 64 ) AS col2 FROM tab2
----
64

query II rowsort
SELECT DISTINCT + col2 AS col1, col0 FROM tab2
----
23
46
40
64
58
75

query I rowsort
SELECT DISTINCT + 64 + col0 FROM tab1 WHERE - col2 + + 77 / - col1 + + col0 IS NOT NULL
----
115
149
155

query II rowsort
SELECT - col2 AS col0, + col2 FROM tab0
----
-10
10
-47
47
-99
99

query III rowsort
SELECT ALL * FROM tab0 WHERE + - ( + 29 ) / + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col2, - col0 + - 26 AS col1 FROM tab2 AS cor0
----
23
-72
40
-90
58
-101

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8608
SELECT ALL + col0 + - CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8608
SELECT ALL + col0 + - CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT MAX( ALL + col2 ) AS col0 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-8609
SELECT MAX ( ALL + col2 ) AS col0 FROM tab0 cor0
----
99

query II rowsort
SELECT 3 AS col0, col1 + - - col0 AS col0 FROM tab0 AS cor0
----
3
108
3
96
3
98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col0 / + 21 ) < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8612
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8612
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 * + ( + + col2 ) ) = 22 * col1 + 27
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT - - 83 * 95 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
7882

skipif mysql # not compatible
query I rowsort label-8614
SELECT - - 83 * 95 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
7882

query III rowsort
SELECT * FROM tab2 WHERE - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 ) <> - col0 * - + ( + 39 ) + - 99
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( + 0 + - 30 / - col0 ) AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT + MAX( - col1 ) AS col0 FROM tab1 AS cor0 WHERE ( - 95 + 89 ) BETWEEN NULL AND ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8618
SELECT + MAX ( - col1 ) AS col0 FROM tab1 AS cor0 WHERE ( - 95 + 89 ) BETWEEN NULL AND ( - col2 )
----
NULL

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NULL >= + ( - 24 )
----

query I rowsort
SELECT ALL + + 39 + 10 FROM tab1 AS cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT ALL + 23 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-8621
SELECT ALL + 23 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
20

query I rowsort
SELECT ALL - col2 / - - 41 AS col0 FROM tab1 cor0 WHERE NULL > - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 col0 FROM tab2 AS cor0
----
17
17
17

query I rowsort
SELECT DISTINCT - 10 + col1 FROM tab2
----
41
57
67

query I rowsort
SELECT ALL + 23 * - 10 / + 26 + + + col1 + + col2 + - col1 * col2 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT ALL - col1, + col2 * + + col1 + - col2 AS col0 FROM tab2
----
-51
1150
-67
3828
-77
3040

query II rowsort
SELECT DISTINCT 21 AS col2, + 47 AS col1 FROM tab1 AS cor0
----
21
47

query II rowsort
SELECT + col2, col1 + + col0 FROM tab1 AS cor0
----
59
90
68
138
96
65

query I rowsort
SELECT DISTINCT - 57 AS col0 FROM tab2 WHERE NOT + col2 + - col2 + + col2 / - col1 IS NULL
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT ALL - 85 * + - COUNT( * ) AS col2 FROM tab0, tab0 AS cor0
----
765

skipif mysql # not compatible
query I rowsort label-8630
SELECT ALL - 85 * + - COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0
----
765

query I rowsort
SELECT col2 * - - col0 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT + - 84 FROM tab2 cor0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT ALL COUNT( DISTINCT + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8633
SELECT ALL COUNT ( DISTINCT + col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT DISTINCT COUNT( * ) * - 90 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-270

skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT COUNT ( * ) * - 90 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-270

query I rowsort
SELECT - 57 * - col0 AS col1 FROM tab2 AS cor0
----
2622
3648
4275

query I rowsort
SELECT DISTINCT col0 * - + col1 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + - ( + - 31 ) IS NOT NULL
----

query I rowsort
SELECT ALL 7 AS col2 FROM tab0 AS cor0 WHERE - 43 / 26 * - 25 + - col0 IS NOT NULL OR NOT NULL IS NULL
----
7
7
7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = 16
----

query I rowsort
SELECT col0 * - 24 AS col1 FROM tab2
----
-1104
-1536
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT MIN( DISTINCT + col1 ) * + 18 col1 FROM tab0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8641
SELECT MIN ( DISTINCT + col1 ) * + 18 col1 FROM tab0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT ALL MAX( ALL - col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL MAX ( ALL - col2 ) AS col2 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT MAX( + - 81 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-8643
SELECT MAX ( + - 81 ) FROM tab0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8644
SELECT + 70 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8644
SELECT + 70 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8645
SELECT 64, - MIN( + col0 ) AS col0 FROM tab0
----
64
-15

skipif mysql # not compatible
query II rowsort label-8645
SELECT 64, - MIN ( + col0 ) AS col0 FROM tab0
----
64
-15

query I rowsort
SELECT DISTINCT 4 + col2 - + - col2 FROM tab0 cor0
----
202
24
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8647
SELECT DISTINCT col1 * col1 + + col0 + + - 73 DIV + - 13 + - - col1 * col0 - col0 FROM tab1 cor0
----
455
6491
915

skipif mysql # not compatible
query I rowsort label-8647
SELECT DISTINCT col1 * col1 + + col0 + + - 73 / + - 13 + - - col1 * col0 - col0 FROM tab1 cor0
----
455
6491
915

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT DISTINCT - + ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8648
SELECT DISTINCT - + ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - + ( 11 ) * + col0 + + col1 FROM tab0 AS cor0
----
-1066
-84
-936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8650
SELECT - 88 * COUNT( * ) / CAST( NULL AS SIGNED ) + - 54 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8650
SELECT - 88 * COUNT ( * ) / CAST ( NULL AS INTEGER ) + - 54 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + 61 * + - col0 AS col2 FROM tab2
----
-2806
-3904
-4575

query I rowsort
SELECT DISTINCT + 6 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
6

query I rowsort
SELECT ALL + + ( + - col1 ) + col0 AS col1 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query II rowsort label-8654
SELECT DISTINCT + COUNT( * ) + 67 AS col0, - COUNT( * ) * + 56 FROM tab0 cor0
----
70
-168

skipif mysql # not compatible
query II rowsort label-8654
SELECT DISTINCT + COUNT ( * ) + 67 AS col0, - COUNT ( * ) * + 56 FROM tab0 cor0
----
70
-168

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8655
SELECT DISTINCT + col2 + - col1 AS col2, col2 * CAST( - 45 AS SIGNED ) FROM tab0 AS cor0
----
-11
-450
-34
-2115
98
-4455

skipif mysql # not compatible
query II rowsort label-8655
SELECT DISTINCT + col2 + - col1 AS col2, col2 * CAST ( - 45 AS INTEGER ) FROM tab0 AS cor0
----
-11
-450
-34
-2115
98
-4455

query I rowsort
SELECT ALL + + col2 + + col2 * + 43 - - ( + 18 ) + + 1 AS col1 FROM tab2 cor0
----
1031
1779
2571

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE + 19 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT + ( + MAX( + + 17 ) ) FROM tab1 AS cor0 WHERE + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8658
SELECT + ( + MAX ( + + 17 ) ) FROM tab1 AS cor0 WHERE + col2 IS NULL
----
NULL

query I rowsort
SELECT ALL 43 + col2 * - col2 FROM tab2 AS cor0
----
-1557
-3321
-486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8660
SELECT + + 43 * - col0 + - ( - 30 ) + + CAST( - ( - + col2 ) AS SIGNED ) - - 83 AS col2 FROM tab2 cor0
----
-1842
-2599
-3054

skipif mysql # not compatible
query I rowsort label-8660
SELECT + + 43 * - col0 + - ( - 30 ) + + CAST ( - ( - + col2 ) AS INTEGER ) - - 83 AS col2 FROM tab2 cor0
----
-1842
-2599
-3054

query I rowsort
SELECT col2 * - 39 + - col2 AS col2 FROM tab0
----
-1880
-3960
-400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 78 ) col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col2 - - col2 + 78 + - col0 AS col1 FROM tab0
----
11
157
179

query I rowsort
SELECT DISTINCT col0 + 9 - - col1 FROM tab0
----
105
107
117

query I rowsort
SELECT DISTINCT + 76 - - ( col1 ) FROM tab2
----
127
143
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8666
SELECT col1 * - 94 + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8666
SELECT col1 * - 94 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 68 + col0 AS col1 FROM tab0
----
155
165
83

query I rowsort
SELECT ALL + 82 - - col2 * 71 FROM tab1
----
4271
4910
6898

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 74 * col1 * + col0 * - col0 NOT IN ( + + 85 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 > + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 62 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 42 * col0 - + 17 - + col2 AS col0 FROM tab2 AS cor0
----
1892
2631
3075

query II rowsort
SELECT ALL 63, - col2 AS col2 FROM tab1 AS cor0
----
63
-59
63
-68
63
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 col0 FROM tab1 cor0
----
1344
295
3196

query II rowsort
SELECT + 99 AS col2, col1 AS col0 FROM tab2 AS cor0
----
99
51
99
67
99
77

query I rowsort
SELECT + col1 * - - col1 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT - 44 * - + COUNT( * ) FROM tab0 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-8677
SELECT - 44 * - + COUNT ( * ) FROM tab0 AS cor0
----
132

query I rowsort
SELECT - 48 + col1 * - 91 AS col2 FROM tab2 AS cor0
----
-4689
-6145
-7055

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 15 col2 FROM tab2 AS cor0
----
15

query I rowsort
SELECT - 15 * col2 * + + col0 + - - col0 * - col1 AS col1 FROM tab0
----
-11790
-144142
-14877

query I rowsort
SELECT - - col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND 90 * - - col0 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT ALL + 49 * + COUNT( * ) FROM tab0
----
147

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL + 49 * + COUNT ( * ) FROM tab0
----
147

query I rowsort
SELECT + col2 FROM tab1 WHERE + - col0 * col0 = + col2
----

query I rowsort
SELECT ALL 43 + - col1 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT - col1 - - 14 + + col1 * - 10 AS col0 FROM tab1
----
-140
-41
-503

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8686
SELECT COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( - ( - - col2 ) ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT - SUM( - + 8 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
72

skipif mysql # not compatible
query I rowsort label-8688
SELECT - SUM ( - + 8 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
72

query I rowsort
SELECT + 77 * + - col0 - - col0 + - col2 + + col1 * - + 23 + 33 * + col2 * - - col0 * - col2 AS col2 FROM tab0 AS cor0
----
-1096505
-294205
-31380495

onlyif mysql # DIV for integer division: 
query I rowsort label-8690
SELECT DISTINCT + + col2 DIV 17 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-8690
SELECT DISTINCT + + col2 / 17 FROM tab2 AS cor0
----
1
2
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= col2 * - col1 - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col2 col1 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT DISTINCT - 43 + + MIN( DISTINCT 99 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8693
SELECT DISTINCT - 43 + + MIN ( DISTINCT 99 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + col0 + + + col2 AS col0 FROM tab0 AS cor0
----
196
62
97

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 IS NULL
----

query II rowsort
SELECT - col0 AS col1, + ( - col2 ) * - col1 AS col2 FROM tab0
----
-15
3807
-87
210
-97
99

query I rowsort
SELECT ALL 92 - - - 1 FROM tab1
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8698
SELECT col1 * - col1 - - + CAST( col2 AS SIGNED ) AS col0, + col0, + col1 AS col1 FROM tab0 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query III rowsort label-8698
SELECT col1 * - col1 - - + CAST ( col2 AS INTEGER ) AS col0, + col0, + col1 AS col1 FROM tab0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT 77 * + col0 * + 63 AS col1 FROM tab0
----
422037
470547
72765

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 BETWEEN - 79 AND + col1
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT MIN( ALL + + col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8701
SELECT MIN ( ALL + + col1 ) AS col0 FROM tab0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 < - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + + col2 AS col1, col1 + + col1 AS col0 FROM tab1 AS cor0
----
59
10
68
94
96
28

query I rowsort
SELECT DISTINCT - 34 AS col1 FROM tab1 cor0 WHERE ( + 40 ) <> ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= col2
----

query I rowsort
SELECT ALL + 64 AS col2 FROM tab2 cor0
----
64
64
64

query II rowsort
SELECT ALL - + 35 AS col0, - col2 AS col0 FROM tab1 AS cor0 WHERE NOT - 79 IS NULL
----
-35
-59
-35
-68
-35
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-8708
SELECT SUM( ALL 48 ) * - 66 AS col0, 25 * 46 AS col0 FROM tab1
----
-9504
1150

skipif mysql # not compatible
query II rowsort label-8708
SELECT SUM ( ALL 48 ) * - 66 AS col0, 25 * 46 AS col0 FROM tab1
----
-9504
1150

query I rowsort
SELECT col1 * + - col1 * - + col1 AS col1 FROM tab0
----
1
531441
9261

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT DISTINCT - COUNT( * ) * COUNT( * ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8710
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1
----
-9

query I rowsort
SELECT DISTINCT col0 + 82 FROM tab0
----
169
179
97

query I rowsort
SELECT - col0 + + 87 AS col0 FROM tab1
----
-4
2
36

onlyif mysql # aggregate syntax: 
query II rowsort label-8713
SELECT ALL COUNT( * ) - - COUNT( * ), ( + + MIN( + col0 ) ) AS col1 FROM tab1
----
6
51

skipif mysql # not compatible
query II rowsort label-8713
SELECT ALL COUNT ( * ) - - COUNT ( * ), ( + + MIN ( + col0 ) ) AS col1 FROM tab1
----
6
51

query I rowsort
SELECT + 44 * - 15 - - col0 FROM tab1
----
-569
-575
-609

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 13 - - + 52 + + col1 / + col1 * + 33 IN ( + 79 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 27 + - col1 FROM tab2 AS cor0
----
-104
-78
-94

query I rowsort
SELECT ALL + + col2 + - 37 * + col1 FROM tab1 AS cor0
----
-126
-1671
-422

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT - COUNT( * ) FROM tab2 cor0 WHERE NOT + col2 BETWEEN NULL AND ( + 77 )
----
0

skipif mysql # not compatible
query I rowsort label-8718
SELECT - COUNT ( * ) FROM tab2 cor0 WHERE NOT + col2 BETWEEN NULL AND ( + 77 )
----
0

query II rowsort
SELECT ALL col0 * + + ( 59 ) AS col0, - 53 FROM tab0
----
5133
-53
5723
-53
885
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-8720
SELECT ALL 2 DIV + - col2 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8720
SELECT ALL 2 / + - col2 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT NULL IN ( + 71 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8722
SELECT DISTINCT ( + CAST( 58 AS SIGNED ) ) * + 39 + - + 87 * - 9 * - col1 + - - col0 AS col0 FROM tab2
----
-37625
-50124
-57965

skipif mysql # not compatible
query I rowsort label-8722
SELECT DISTINCT ( + CAST ( 58 AS INTEGER ) ) * + 39 + - + 87 * - 9 * - col1 + - - col0 AS col0 FROM tab2
----
-37625
-50124
-57965

query III rowsort
SELECT ALL * FROM tab2 WHERE + 79 BETWEEN - 73 + + + 12 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT SUM( DISTINCT - - col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8724
SELECT SUM ( DISTINCT - - col1 ) AS col0 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT - ( + ( + COUNT( * ) ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8725
SELECT - ( + ( + COUNT ( * ) ) ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + col1 * - ( + 82 ) * + col1 AS col2 FROM tab0
----
-36162
-538002
-82

query I rowsort
SELECT ALL - + col1 / + - 36 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + + ( + - 16 ) * + 71 FROM tab0 cor0
----
-1136

query II rowsort
SELECT ALL + col0, - 50 AS col1 FROM tab2 AS cor0
----
46
-50
64
-50
75
-50

query I rowsort
SELECT - - 93 * - col0 AS col0 FROM tab0 AS cor0
----
-1395
-8091
-9021

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE NOT - col0 + col2 IS NULL
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 WHERE NOT + 49 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8733
SELECT + - CAST( - + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8733
SELECT + - CAST ( - + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8734
SELECT ALL + CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8734
SELECT ALL + CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 3 + + 2 + + ( + col1 ) AS col0 FROM tab1 AS cor0
----
10
19
52

query I rowsort
SELECT - ( - + col2 ) + - col0 AS col1 FROM tab2 AS cor0
----
-17
-23
-24

query II rowsort
SELECT DISTINCT + - col0 + - - 48 - - + col0 * + - col1 AS col1, - col2 + - col2 + + ( + col0 ) FROM tab1 AS cor0
----
-4320
-45
-462
-33
-717
-141

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( + - 44 ) * col0 IS NULL
----

query I rowsort
SELECT ALL col1 + + 74 - - 90 AS col1 FROM tab1 AS cor0
----
169
178
211

query I rowsort
SELECT - 75 + - + 99 * col1 FROM tab1 AS cor0
----
-1461
-4728
-570

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT + 76 + + - ( COUNT( * ) ) FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-8741
SELECT + 76 + + - ( COUNT ( * ) ) FROM tab2 AS cor0
----
73

query I rowsort
SELECT ALL - 72 + + col1 + - col1 + col0 AS col0 FROM tab2
----
-26
-8
3

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

query I rowsort
SELECT ALL - 38 FROM tab2 WHERE NOT + - col2 > - col2
----
-38
-38
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-8745
SELECT DISTINCT ( - col2 ) DIV 17 + + - col2 FROM tab0 AS cor0
----
-10
-104
-49

skipif mysql # not compatible
query I rowsort label-8745
SELECT DISTINCT ( - col2 ) / 17 + + - col2 FROM tab0 AS cor0
----
-10
-104
-49

query I rowsort
SELECT col2 / + + 60 AS col0 FROM tab1 AS cor0 WHERE NULL >= 2 + col0
----

query I rowsort
SELECT + col1 - + + ( 85 ) FROM tab2 AS cor0
----
-18
-34
-8

query I rowsort
SELECT DISTINCT col2 - - 83 AS col1 FROM tab1 AS cor0
----
142
151
179

query I rowsort
SELECT DISTINCT col0 + + 50 FROM tab1 AS cor0
----
101
135
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8750
SELECT - - 35 - + + CAST( 36 AS SIGNED ) * COUNT( * ) FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-8750
SELECT - - 35 - + + CAST ( 36 AS INTEGER ) * COUNT ( * ) FROM tab1 AS cor0
----
-73

query I rowsort
SELECT 42 - + 2 FROM tab0 AS cor0
----
40
40
40

query I rowsort
SELECT - col2 * - 87 * 74 FROM tab0 AS cor0
----
302586
637362
64380

query II rowsort
SELECT + col2, col2 AS col1 FROM tab2 cor0
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT DISTINCT - + SUM( ALL - col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-8754
SELECT DISTINCT - + SUM ( ALL - col1 ) FROM tab1 cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT + ( + - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8755
SELECT + ( + - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT col2, + col1 AS col0 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8757
SELECT + COUNT( * ) DIV - + 81 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8757
SELECT + COUNT ( * ) / - + 81 AS col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 98 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 13 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT ALL + - COUNT( * ) * - + 91 FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL + - COUNT ( * ) * - + 91 FROM tab1 AS cor0
----
273

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 * - + col0 <> - + col2 - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT DISTINCT ( - + COUNT( * ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8762
SELECT DISTINCT ( - + COUNT ( * ) ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT ALL MAX( ALL 84 ) AS col1 FROM tab1, tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL MAX ( ALL 84 ) AS col1 FROM tab1, tab2 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT 22 * - COUNT( - col1 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8764
SELECT 22 * - COUNT ( - col1 ) AS col1 FROM tab1
----
-66

query I rowsort
SELECT ALL - - 82 * + col1 * + - 51 FROM tab0 AS cor0
----
-338742
-4182
-87822

query I rowsort
SELECT + col0 * + col2 * - 11 AS col0 FROM tab2 AS cor0
----
-11638
-28160
-47850

query I rowsort
SELECT ALL ( + 56 ) FROM tab2 AS cor0
----
56
56
56

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > 32 + + 71
----

query I rowsort
SELECT - - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL + col0 * - + 91 FROM tab2
----
-4186
-5824
-6825

onlyif mysql # aggregate syntax: 
query II rowsort label-8771
SELECT ALL + COUNT( * ) AS col0, COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-8771
SELECT ALL + COUNT ( * ) AS col0, COUNT ( * ) FROM tab2
----
3
3

query I rowsort
SELECT + - col2 AS col0 FROM tab0 WHERE NOT 42 + + + 14 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 col2 FROM tab1
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT - MAX( DISTINCT - 94 ) FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-8774
SELECT - MAX ( DISTINCT - 94 ) FROM tab2 AS cor0
----
94

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT ALL + MIN( ALL col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8776
SELECT ALL + MIN ( ALL col0 ) AS col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL - ( + 42 ) + + + col0 AS col0 FROM tab2 AS cor0
----
22
33
4

query I rowsort
SELECT ALL + col2 + - 48 AS col1 FROM tab2 AS cor0
----
-25
-8
10

query I rowsort
SELECT DISTINCT col0 + - col2 + + - col0 FROM tab1 cor0
----
-59
-68
-96

query II rowsort
SELECT DISTINCT + 37 AS col0, col0 FROM tab2 AS cor0
----
37
46
37
64
37
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT DISTINCT - COUNT( 21 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8781
SELECT DISTINCT - COUNT ( 21 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8782
SELECT + CAST( NULL AS SIGNED ) - + + COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8782
SELECT + CAST ( NULL AS INTEGER ) - + + COUNT ( * ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT ( - 66 ) + + col1 AS col1 FROM tab2
----
-15
1
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT DISTINCT + COUNT( * ) * - + MIN( + + col0 ) FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-8784
SELECT DISTINCT + COUNT ( * ) * - + MIN ( + + col0 ) FROM tab0
----
-45

query I rowsort
SELECT 13 + - - 0 FROM tab1
----
13
13
13

query I rowsort
SELECT ALL + col0 * col2 AS col2 FROM tab2 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT col2 + - - 96 + + 65 + 30 FROM tab2
----
214
231
249

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT ALL COUNT( * ) * - + 1 - + 38 + + - 41 + + + 17 FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-8788
SELECT ALL COUNT ( * ) * - + 1 - + 38 + + - 41 + + + 17 FROM tab0 AS cor0
----
-65

query I rowsort
SELECT ALL - - col0 + + col1 + + col2 FROM tab2 AS cor0
----
120
181
200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) * 26 - col0 col2 FROM tab2
----
1150
1600
1875

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 54 col0 FROM tab0 AS cor0
----
2538
5346
540

onlyif mysql # aggregate syntax: 
query II rowsort label-8794
SELECT ALL + COUNT( * ) AS col1, 32 FROM tab1
----
3
32

skipif mysql # not compatible
query II rowsort label-8794
SELECT ALL + COUNT ( * ) AS col1, 32 FROM tab1
----
3
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT + MIN( + col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8795
SELECT + MIN ( + col0 ) FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT - MIN( ALL + col0 ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-8796
SELECT - MIN ( ALL + col0 ) AS col0 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT - MIN( DISTINCT ( + 46 ) ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-8797
SELECT - MIN ( DISTINCT ( + 46 ) ) FROM tab2
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8798
SELECT - COUNT( * ) DIV - COUNT( - col0 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8798
SELECT - COUNT ( * ) / - COUNT ( - col0 ) FROM tab0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8799
SELECT DISTINCT - 71 AS col2, - CAST( ( + + ( - COUNT( * ) ) ) AS SIGNED ) AS col0 FROM tab2
----
-71
3

skipif mysql # not compatible
query II rowsort label-8799
SELECT DISTINCT - 71 AS col2, - CAST ( ( + + ( - COUNT ( * ) ) ) AS INTEGER ) AS col0 FROM tab2
----
-71
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT ALL + MIN( - col0 ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL + MIN ( - col0 ) AS col0 FROM tab0
----
-97

query I rowsort
SELECT DISTINCT ( + + 25 ) * - col1 * col2 FROM tab1
----
-33600
-7375
-79900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8802
SELECT + CAST( NULL AS SIGNED ) * - COUNT( 56 ) - 50 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8802
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( 56 ) - 50 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT SUM( ALL + 78 ) * + 65 * 54 AS col2 FROM tab2 AS cor0
----
821340

skipif mysql # not compatible
query I rowsort label-8803
SELECT SUM ( ALL + 78 ) * + 65 * 54 AS col2 FROM tab2 AS cor0
----
821340

query I rowsort
SELECT ALL + 8 + 83 * + col2 AS col2 FROM tab2 AS cor0
----
1917
3328
4822

query I rowsort
SELECT + ( + + col0 ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + 90 * - 49 AS col2 FROM tab0 AS cor0
----
-4410
-4410
-4410

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT DISTINCT + - MIN( DISTINCT 66 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8807
SELECT DISTINCT + - MIN ( DISTINCT 66 ) AS col1 FROM tab1 AS cor0
----
-66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 81 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT DISTINCT + - COUNT( * ) + 12 + - 20 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-17

skipif mysql # not compatible
query I rowsort label-8809
SELECT DISTINCT + - COUNT ( * ) + 12 + - 20 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-17

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 40 <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8811
SELECT - col1 DIV ( col0 ) * + 85 AS col2, col0 col2 FROM tab1
----
0
51
0
85
0
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8811
SELECT - col1 / ( col0 ) * + 85 AS col2, col0 col2 FROM tab1
----
0
51
0
85
0
91

query I rowsort
SELECT DISTINCT ( 34 ) AS col2 FROM tab1
----
34

query I rowsort
SELECT ALL + 99 * - col2 AS col1 FROM tab2
----
-2277
-3960
-5742

query I rowsort
SELECT + + 18 + - col0 FROM tab0 AS cor0
----
-69
-79
3

query II rowsort
SELECT + col2, + 33 + - + 90 + - 63 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 75 IS NULL
----

query I rowsort
SELECT ALL 36 + + ( - 86 ) * + 60 AS col1 FROM tab2 AS cor0
----
-5124
-5124
-5124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8818
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + 22 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8818
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + 22 AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 60 * - 9 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT ALL - MIN( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - 1 ) + 65 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8820
SELECT ALL - MIN ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - 1 ) + 65 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 85 * - col1 AS col1 FROM tab0
----
-1785
-6885
-85

query I rowsort
SELECT ALL col1 - - 95 - + col1 FROM tab0
----
95
95
95

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * + 54 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 = - col0 * - col1 )
----

query II rowsort
SELECT ALL col0 AS col0, - 79 + - - col1 * 15 - - col1 - 51 FROM tab1
----
51
94
85
-50
91
622

query I rowsort
SELECT ALL + + col0 * + 74 AS col0 FROM tab0 AS cor0
----
1110
6438
7178

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 28 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - ( - col0 ) - + 54 + + col1 FROM tab2 AS cor0
----
-41
-49
-62

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 46 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8830
SELECT DISTINCT CAST( + 56 AS SIGNED ) FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-8830
SELECT DISTINCT CAST ( + 56 AS INTEGER ) FROM tab1
----
56

query I rowsort
SELECT - - 97 * - 87 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b24c002d12b4eafad29da80b3563b65f

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 + - col0 BETWEEN col0 * - 5 - col1 AND + col1
----

query II rowsort
SELECT - 71, + col0 FROM tab1 cor0
----
-71
51
-71
85
-71
91

query I rowsort
SELECT - - 90 * + 68 FROM tab2 AS cor0
----
6120
6120
6120

query II rowsort
SELECT col2, - col0 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 * 46, ( + + col0 ) col2 FROM tab2 AS cor0
----
-2116
46
-2944
64
-3450
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( + col1 ) * col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 36, + col0 FROM tab1 cor0
----
36
51
36
85
36
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT SUM( col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8839
SELECT SUM ( col1 ) FROM tab1
----
66

query I rowsort
SELECT DISTINCT - col2 * - + col2 FROM tab0
----
100
2209
9801

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 WHERE NULL <= - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 + - ( - col2 ) col1 FROM tab2
----
110
127
145

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT + - COUNT( * ) + + + 27 AS col1 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-8843
SELECT + - COUNT ( * ) + + + 27 AS col1 FROM tab2 AS cor0
----
24

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT 60 * + - 77 AS col0 FROM tab2
----
-4620
-4620
-4620

query II rowsort
SELECT col2 AS col1, + col0 AS col2 FROM tab1
----
59
85
68
91
96
51

query II rowsort
SELECT col2, + ( + 11 ) AS col0 FROM tab2
----
23
11
40
11
58
11

query I rowsort
SELECT col1 * + ( 76 ) FROM tab2
----
3876
5092
5852

onlyif mysql # aggregate syntax: 
query II rowsort label-8849
SELECT - 13 * + ( + 41 ), - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-533
-3

skipif mysql # not compatible
query II rowsort label-8849
SELECT - 13 * + ( + 41 ), - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-533
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT - - ( + MIN( DISTINCT - 43 ) ) AS col1 FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-8850
SELECT - - ( + MIN ( DISTINCT - 43 ) ) AS col1 FROM tab2 AS cor0
----
-43

query I rowsort
SELECT ALL + + col2 + - 91 + + col0 * 22 FROM tab2 AS cor0
----
1357
1617
944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8852
SELECT ALL + COUNT( ALL - col1 ) DIV 42 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8852
SELECT ALL + COUNT ( ALL - col1 ) / 42 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8853
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + + AVG ( ALL - 19 ) col0, 3 AS col0 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8853
SELECT DISTINCT + CAST ( NULL AS REAL ) + + + AVG ( ALL - 19 ) col0, 3 AS col0 FROM tab2 AS cor0
----
NULL
3

query I rowsort
SELECT col0 - + + col1 AS col1 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8855
SELECT ALL + + CAST( + - 82 AS SIGNED ) FROM tab0 AS cor0 WHERE col1 + - - col0 + - CAST( 38 AS SIGNED ) * col0 / + + col2 BETWEEN + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8855
SELECT ALL + + CAST ( + - 82 AS INTEGER ) FROM tab0 AS cor0 WHERE col1 + - - col0 + - CAST ( 38 AS INTEGER ) * col0 / + + col2 BETWEEN + col1 AND NULL
----

query I rowsort
SELECT ALL col0 - + ( + + 52 ) + - + col0 * + 35 AS col1 FROM tab2 AS cor0
----
-1616
-2228
-2602

query I rowsort
SELECT DISTINCT + 18 + - - 64 FROM tab0 AS cor0
----
82

query II rowsort
SELECT col0 + - col1, 73 AS col0 FROM tab2
----
-13
73
-5
73
8
73

query I rowsort
SELECT DISTINCT 43 * + - col2 AS col0 FROM tab1
----
-2537
-2924
-4128

query I rowsort
SELECT 64 + + 22 FROM tab2
----
86
86
86

query I rowsort
SELECT + 75 + 91 * - col1 AS col0 FROM tab2
----
-4566
-6022
-6932

query I rowsort
SELECT col2 + - 48 * col1 FROM tab0
----
-3841
-998
51

query I rowsort
SELECT ( - 90 ) + + + col1 * 30 AS col1 FROM tab2
----
1440
1920
2220

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT - + col0 IS NULL
----
-23
-40
-58

query II rowsort
SELECT 13 + + + 75, col1 - col2 AS col2 FROM tab0
----
88
-98
88
11
88
34

query I rowsort
SELECT 7 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - - 41 FROM tab0 AS cor0 WHERE NOT 86 * 32 > + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT DISTINCT 45 * + COUNT( * ) FROM tab2 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-8868
SELECT DISTINCT 45 * + COUNT ( * ) FROM tab2 AS cor0
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-8869
SELECT ALL - 63 col2, ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-63
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8869
SELECT ALL - 63 col2, ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-63
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT + COUNT( DISTINCT + 79 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8870
SELECT + COUNT ( DISTINCT + 79 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT ( + - 55 ) FROM tab1 AS cor0
----
-55

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT DISTINCT MAX( - 98 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL > + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8873
SELECT DISTINCT MAX ( - 98 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL > + col2
----
NULL

query I rowsort
SELECT DISTINCT 25 * col1 FROM tab0 AS cor0
----
2025
25
525

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT DISTINCT - SUM( ALL - 17 ) col2 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8875
SELECT DISTINCT - SUM ( ALL - 17 ) col2 FROM tab0 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8876
SELECT 40 DIV 94 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8876
SELECT 40 / 94 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 63 * + 75 AS col1 FROM tab0 AS cor0
----
4725

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 59 * + + col1 col1 FROM tab0 AS cor0
----
1239
4779
59

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( - col1 * - 61 + + col0 ) >= ( NULL )
----

query II rowsort
SELECT DISTINCT + ( + col0 ) AS col1, + col2 AS col2 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8881
SELECT - 92 DIV - - 89 + COUNT( * ) AS col1 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-8881
SELECT - 92 / - - 89 + COUNT ( * ) AS col1 FROM tab2
----
2

query I rowsort
SELECT col0 + + + col0 AS col2 FROM tab2
----
128
150
92

query II rowsort
SELECT ALL - col0, col2 + - + 66 AS col0 FROM tab0
----
-15
-19
-87
-56
-97
33

query II rowsort
SELECT DISTINCT - col2, col0 AS col0 FROM tab2
----
-23
46
-40
64
-58
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 / col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT ALL - COUNT( * ) + - 6 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL - COUNT ( * ) + - 6 FROM tab2 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 col2 FROM tab0 cor0
----
-12
-12
-12

query I rowsort
SELECT - 36 * - col0 * col2 + 63 + + col1 FROM tab0 AS cor0
----
25524
31404
345772

query III rowsort
SELECT * FROM tab0 WHERE NULL < 14 + + 25
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8890
SELECT DISTINCT - 10 DIV + ( - COUNT( - col1 ) ) + + 75 AS col2, 78 AS col0 FROM tab1
----
78
78

skipif mysql # not compatible
query II rowsort label-8890
SELECT DISTINCT - 10 / + ( - COUNT ( - col1 ) ) + + 75 AS col2, 78 AS col0 FROM tab1
----
78
78

query II rowsort
SELECT + - col0 * col0 + col0 + ( - col0 ), 84 AS col1 FROM tab0 AS cor0
----
-225
84
-7569
84
-9409
84

query I rowsort
SELECT + 91 + - col0 FROM tab0 AS cor0 WHERE - col1 * + + col1 / 91 + - col0 * + col1 <= + col0
----
-6
4
76

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 + + - 99 = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT - 96 + + 70 * - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-8894
SELECT - 96 + + 70 * - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 col0 FROM tab0 AS cor0
----
54

query I rowsort
SELECT ALL col1 + + - col0 - + + col0 AS col1 FROM tab2 AS cor0
----
-41
-51
-83

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( + 0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 63 FROM tab0 cor0
----
63
63
63

query II rowsort
SELECT ALL ( + col0 ) - + - 58, + col1 AS col1 FROM tab0
----
145
21
155
1
73
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT ALL MAX( DISTINCT + - col1 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-8900
SELECT ALL MAX ( DISTINCT + - col1 ) AS col2 FROM tab2
----
-51

query I rowsort
SELECT DISTINCT 40 - + col0 FROM tab2
----
-24
-35
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT ALL MAX( ALL + ( col0 ) ) FROM tab1 WHERE NOT 30 * - 16 - 29 + + 61 NOT BETWEEN + - col0 AND - col2 / - col1 / + - 88 * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8902
SELECT ALL MAX ( ALL + ( col0 ) ) FROM tab1 WHERE NOT 30 * - 16 - 29 + + 61 NOT BETWEEN + - col0 AND - col2 / - col1 / + - 88 * col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8903
SELECT - col0 DIV + - ( - 16 ) - + 2 + - 45 * col2 FROM tab0
----
-2117
-4463
-457

skipif mysql # not compatible
query I rowsort label-8903
SELECT - col0 / + - ( - 16 ) - + 2 + - 45 * col2 FROM tab0
----
-2117
-4463
-457

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8904
SELECT ALL - CAST( + 16 AS DECIMAL ) FROM tab0 WHERE + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8904
SELECT ALL - CAST ( + 16 AS REAL ) FROM tab0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT DISTINCT - MIN( + - 75 ) FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-8905
SELECT DISTINCT - MIN ( + - 75 ) FROM tab0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 * - ( + - col2 ) col2 FROM tab0
----
3854
8118
820

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 < - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8908
SELECT - 37 DIV - 40 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8908
SELECT - 37 / - 40 FROM tab0 cor0
----
0
0
0

query II rowsort
SELECT DISTINCT - 77, col2 FROM tab1 AS cor0
----
-77
59
-77
68
-77
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8910
SELECT + - col1 DIV - + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8910
SELECT + - col1 / - + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8911
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND + - col1
----

skipif mysql # not compatible
query III rowsort label-8911
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND + - col1
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8913
SELECT ALL CAST( + 3 AS SIGNED ) AS col0 FROM tab0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-8913
SELECT ALL CAST ( + 3 AS INTEGER ) AS col0 FROM tab0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT - + 7 + - COUNT( * ) + + COUNT( * ) + + - 11 * - 33 FROM tab2 WHERE NOT col0 IS NOT NULL
----
356

skipif mysql # not compatible
query I rowsort label-8914
SELECT - + 7 + - COUNT ( * ) + + COUNT ( * ) + + - 11 * - 33 FROM tab2 WHERE NOT col0 IS NOT NULL
----
356

query I rowsort
SELECT ALL + - 14 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT ALL - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8916
SELECT ALL - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT ALL - SUM( - col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL - SUM ( - col0 ) FROM tab0 AS cor0
----
199

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= 20
----

query I rowsort
SELECT + - col1 FROM tab1 AS cor0 WHERE NOT ( - col0 ) * + - col2 + col2 > + - 98
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 86 AS col2 FROM tab0 cor0
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT - MAX( ALL + col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-8922
SELECT - MAX ( ALL + col1 ) FROM tab0
----
-81

query I rowsort
SELECT - col0 * col0 * ( 47 ) AS col0 FROM tab1
----
-122247
-339575
-389207

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT ALL + SUM( ALL 78 ) AS col2 FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL + SUM ( ALL 78 ) AS col2 FROM tab0
----
234

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col1 + + col0 <= + ( + 32 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 12 * - - col2 FROM tab0
----
-1188
-120
-564

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8927
SELECT - COUNT( ALL + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8927
SELECT - COUNT ( ALL + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
0

query I rowsort
SELECT + 64 FROM tab1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 * + 29 col1 FROM tab0
----
128
2396
619

query I rowsort
SELECT col1 + 93 FROM tab1
----
107
140
98

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL NOT BETWEEN NULL AND NULL )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - 38 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query II rowsort
SELECT + col2 AS col0, col1 AS col1 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8935
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT 25 - 12 + + + 73 FROM tab0 AS cor0
----
86
86
86

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col1 IS NULL AND NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 - - + 75 + + col0 + - - 2 * + 20 AS col1 FROM tab0 AS cor0
----
177
212
311

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT ALL + 3 + MIN( - - col1 ) + - ( + SUM( ALL col0 ) ) AS col1 FROM tab0 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL + 3 + MIN ( - - col1 ) + - ( + SUM ( ALL col0 ) ) AS col1 FROM tab0 AS cor0
----
-195

query I rowsort
SELECT ALL + col1 - + + 38 - ( - 82 ) - + 88 AS col2 FROM tab2 AS cor0
----
23
33
7

query I rowsort
SELECT + 74 + - col1 FROM tab2 AS cor0
----
-3
23
7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 64 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT + MIN( + col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-8944
SELECT + MIN ( + col2 ) AS col0 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT + COUNT( DISTINCT 53 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8945
SELECT + COUNT ( DISTINCT 53 ) AS col1 FROM tab2
----
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 40 - - col2 IS NOT NULL
----

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT - col1 > + 86
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8948
SELECT 66 DIV + col0 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8948
SELECT 66 / + col0 FROM tab1 cor0
----
0
0
1

query II rowsort
SELECT - 99 * + col0, col1 FROM tab1 AS cor0
----
-5049
14
-8415
5
-9009
47

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < - col0
----

query I rowsort
SELECT DISTINCT + ( col1 ) AS col2 FROM tab0 WHERE NULL <> + - 77 + + col2
----

query I rowsort
SELECT col1 AS col1 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT DISTINCT - COUNT( + 28 ) AS col0 FROM tab1 AS cor0 WHERE col2 BETWEEN + - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT - COUNT ( + 28 ) AS col0 FROM tab1 AS cor0 WHERE col2 BETWEEN + - col2 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT DISTINCT + COUNT( * ) * - + MIN( ALL - - 65 ) + - 91 FROM tab0 AS cor0
----
-286

skipif mysql # not compatible
query I rowsort label-8954
SELECT DISTINCT + COUNT ( * ) * - + MIN ( ALL - - 65 ) + - 91 FROM tab0 AS cor0
----
-286

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT 31 >= + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT ( - col2 ) + col2 AS col2, + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( + col2 - col0 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8957
SELECT DISTINCT - + col1 DIV - ( 50 ) + col1 * - 59 - - 32 AS col2, + ( - - col1 ) AS col2 FROM tab0 AS cor0
----
-1207
21
-27
1
-4746
81

skipif mysql # not compatible
query II rowsort label-8957
SELECT DISTINCT - + col1 / - ( 50 ) + col1 * - 59 - - 32 AS col2, + ( - - col1 ) AS col2 FROM tab0 AS cor0
----
-1207
21
-27
1
-4746
81

query I rowsort
SELECT ALL 92 FROM tab2 AS cor0 WHERE NOT - col1 IN ( col1 + - 57 / 78 / - - ( col1 ) + 48, + 85 )
----
92
92
92

query I rowsort
SELECT + 40 + - + col2 AS col1 FROM tab2 AS cor0
----
-18
0
17

query I rowsort
SELECT col2 + col1 * col2 * col2 FROM tab0 AS cor0
----
178976
2110
9900

query I rowsort
SELECT DISTINCT col1 * + ( - + col0 ) AS col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT ALL ( - MAX( col2 ) ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL ( - MAX ( col2 ) ) AS col0 FROM tab0
----
-99

query II rowsort
SELECT - 20 - col2, - 49 FROM tab2 WHERE - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT DISTINCT - SUM( ( + + 59 ) ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-8964
SELECT DISTINCT - SUM ( ( + + 59 ) ) FROM tab1
----
-177

query I rowsort
SELECT DISTINCT - 1 * - 70 + + col1 * - col2 * - col2 + + + col0 AS col0 FROM tab2
----
123334
225533
27095

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT DISTINCT - 14 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-8966
SELECT DISTINCT - 14 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT + COUNT( + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8967
SELECT + COUNT ( + col2 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT 82 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT ALL - COUNT( * ) FROM tab0 WHERE - col0 NOT IN ( - col2, - col1 + + col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-8969
SELECT ALL - COUNT ( * ) FROM tab0 WHERE - col0 NOT IN ( - col2, - col1 + + col0 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8970
SELECT ALL * FROM tab2 WHERE NOT ( NOT + col0 <> - col1 - + CAST( NULL AS SIGNED ) + + 73 )
----

skipif mysql # not compatible
query III rowsort label-8970
SELECT ALL * FROM tab2 WHERE NOT ( NOT + col0 <> - col1 - + CAST ( NULL AS INTEGER ) + + 73 )
----

query I rowsort
SELECT - - 40 * - 22 FROM tab1 AS cor0
----
-880
-880
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT ALL - ( COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8972
SELECT ALL - ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + - col0 + - + col2 * - col1 col2 FROM tab1 AS cor0
----
1197
151
3037

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT - SUM( ALL 1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8974
SELECT - SUM ( ALL 1 ) FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8975
SELECT - + 51 DIV - - col2 * + col2 * col1 + - + 53 * - col1 FROM tab1 AS cor0
----
2491
265
742

skipif mysql # not compatible
query I rowsort label-8975
SELECT - + 51 / - - col2 * + col2 * col1 + - + 53 * - col1 FROM tab1 AS cor0
----
2491
265
742

query II rowsort
SELECT - col0 AS col0, - col0 AS col2 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8977
SELECT col0 + + - 48 * - + 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-8977
SELECT col0 + + - 48 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT + + COUNT( * ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8978
SELECT + + COUNT ( * ) col0 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0, - col0 col1 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

query II rowsort
SELECT + col1, + col2 * - col0 FROM tab0
----
1
-9603
21
-870
81
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT ALL + SUM( DISTINCT 50 ) FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL + SUM ( DISTINCT 50 ) FROM tab0
----
50

query I rowsort
SELECT - 40 FROM tab0 WHERE col0 + - 69 + - - col0 IS NOT NULL AND NOT NULL NOT BETWEEN NULL AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 * + col2 col1 FROM tab1
----
1344
826
952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 98 col1 FROM tab0 AS cor0
----
-98

query I rowsort
SELECT + 77 * - col0 + col2 * + col0 AS col0 FROM tab1 AS cor0
----
-1530
-819
969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8986
SELECT col1 / + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8986
SELECT col1 / + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + + col1 NOT BETWEEN + col0 AND - 12 + + 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT ALL 88 * + ( - MIN( + 4 ) ) - + + COUNT( * ) FROM tab2 AS cor0
----
-355

skipif mysql # not compatible
query I rowsort label-8988
SELECT ALL 88 * + ( - MIN ( + 4 ) ) - + + COUNT ( * ) FROM tab2 AS cor0
----
-355

query II rowsort
SELECT DISTINCT - 86 AS col1, - col0 AS col0 FROM tab1 AS cor0
----
-86
-51
-86
-85
-86
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT DISTINCT + COUNT( * ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8990
SELECT DISTINCT + COUNT ( * ) col2 FROM tab0
----
3

query I rowsort
SELECT + + 13 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT MIN( DISTINCT - 11 ) FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-8992
SELECT MIN ( DISTINCT - 11 ) FROM tab2 AS cor0
----
-11

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 61 ) * + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > col2 * + 44 + + 9
----

query II rowsort
SELECT ALL col1 AS col2, + ( - col0 ) + + + ( col0 ) + - + col0 FROM tab0
----
1
-97
21
-87
81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT - MIN( DISTINCT + col2 ) + - - 97 col1 FROM tab0
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8996
SELECT - MIN ( DISTINCT + col2 ) + - - 97 col1 FROM tab0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8997
SELECT ALL + col0 DIV 56 DIV + col1 - + 23 + col0 FROM tab2 WHERE NOT + col1 BETWEEN col0 AND + + col1
----
52

skipif mysql # not compatible
query I rowsort label-8997
SELECT ALL + col0 / 56 / + col1 - + 23 + col0 FROM tab2 WHERE NOT + col1 BETWEEN col0 AND + + col1
----
52

query I rowsort
SELECT ALL + ( + + 29 ) + + 24 * - + col1 AS col2 FROM tab1
----
-1099
-307
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8999
SELECT col0 + - - CAST( NULL AS SIGNED ) / + 82 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8999
SELECT col0 + - - CAST ( NULL AS INTEGER ) / + 82 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9000
SELECT DISTINCT - col2 + - CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-100
-128
-31

skipif mysql # not compatible
query I rowsort label-9000
SELECT DISTINCT - col2 + - CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT DISTINCT - 12 AS col1 FROM tab1 WHERE NOT ( + 58 * 44 ) >= ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9002
SELECT DISTINCT + 44 DIV ( 38 ) col0 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9002
SELECT DISTINCT + 44 / ( 38 ) col0 FROM tab2
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 BETWEEN ( - 66 / col0 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9004
SELECT ALL + 75 DIV COUNT( * ) AS col0 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-9004
SELECT ALL + 75 / COUNT ( * ) AS col0 FROM tab1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT ( + COUNT( ALL - 83 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9005
SELECT ( + COUNT ( ALL - 83 ) ) AS col2 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 ) NOT BETWEEN NULL AND col1 + + ( - ( + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT - 14 + COUNT( * ) * - 14 FROM tab2 WHERE col2 IS NULL
----
-14

skipif mysql # not compatible
query I rowsort label-9007
SELECT - 14 + COUNT ( * ) * - 14 FROM tab2 WHERE col2 IS NULL
----
-14

query I rowsort
SELECT DISTINCT col0 * - col1 + col0 AS col1 FROM tab0
----
-1200
-1740
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT DISTINCT + SUM( DISTINCT - col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-9009
SELECT DISTINCT + SUM ( DISTINCT - col0 ) FROM tab2
----
-185

onlyif mysql # DIV for integer division: 
query I rowsort label-9010
SELECT col0 DIV 39 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9010
SELECT col0 / 39 AS col0 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9011
SELECT 46 DIV COUNT( * ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9011
SELECT 46 / COUNT ( * ) FROM tab0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9012
SELECT ALL - col1 AS col1 FROM tab2 WHERE ( + 21 + - col0 * CAST( NULL AS SIGNED ) ) > NULL
----

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL - col1 AS col1 FROM tab2 WHERE ( + 21 + - col0 * CAST ( NULL AS INTEGER ) ) > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9013
SELECT CAST( NULL AS SIGNED ) / ( MAX( + col1 ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9013
SELECT CAST ( NULL AS INTEGER ) / ( MAX ( + col1 ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9014
SELECT + COUNT( * ) DIV + MAX( 91 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9014
SELECT + COUNT ( * ) / + MAX ( 91 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT MAX( + col1 ) * 88 - - COUNT( * ) AS col1 FROM tab1
----
4139

skipif mysql # not compatible
query I rowsort label-9015
SELECT MAX ( + col1 ) * 88 - - COUNT ( * ) AS col1 FROM tab1
----
4139

query I rowsort
SELECT col1 / + col2 + + col2 AS col1 FROM tab1 WHERE NOT ( NULL ) = - col2
----

query I rowsort
SELECT ALL ( col1 ) * 64 + - col2 AS col2 FROM tab1
----
261
2940
800

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col2 * + col2 + col0 ) IS NOT NULL
----

query I rowsort
SELECT - 5 FROM tab2 WHERE ( NULL ) = + 20
----

query I rowsort
SELECT col1 * - 13 FROM tab2 WHERE NOT + 15 = - 86 + col0
----
-1001
-663
-871

query III rowsort
SELECT * FROM tab0 WHERE + col0 * + col2 <= ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col0 ) BETWEEN ( NULL ) AND 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE 89 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( 91 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 44 IN ( + 52 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9028
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9028
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT + SUM( ALL col1 ) * MIN( - col0 + col1 ) FROM tab1 AS cor0
----
-5280

skipif mysql # not compatible
query I rowsort label-9029
SELECT + SUM ( ALL col1 ) * MIN ( - col0 + col1 ) FROM tab1 AS cor0
----
-5280

query I rowsort
SELECT DISTINCT + 62 * 32 AS col1 FROM tab1 AS cor0
----
1984

query III rowsort
SELECT * FROM tab0 WHERE NOT 88 + - col1 >= col2 / col1
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9032
SELECT - col2 DIV col1 FROM tab0 WHERE NULL IS NULL
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-9032
SELECT - col2 / col1 FROM tab0 WHERE NULL IS NULL
----
-99
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( ( - col2 ) ) * + col1 col2 FROM tab2
----
1173
3080
3886

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 52 + + 33 IS NULL
----

query I rowsort
SELECT - + 4 + - 29 FROM tab2 AS cor0
----
-33
-33
-33

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE - 72 * + 26 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9037
SELECT + 60 DIV col0 + col1 FROM tab1 AS cor0
----
15
47
5

skipif mysql # not compatible
query I rowsort label-9037
SELECT + 60 / col0 + col1 FROM tab1 AS cor0
----
15
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9038
SELECT DISTINCT + - col1 DIV 92 + - 11 * 2 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-9038
SELECT DISTINCT + - col1 / 92 + - 11 * 2 FROM tab2 AS cor0
----
-22

query I rowsort
SELECT ALL - col2 + - ( col2 + - col0 ) FROM tab2 AS cor0
----
-16
-41
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT ALL - 39 * - SUM( DISTINCT - col1 + col2 * 52 ) + + 87 col2 FROM tab1 AS cor0
----
449757

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9040
SELECT ALL - 39 * - SUM ( DISTINCT - col1 + col2 * 52 ) + + 87 col2 FROM tab1 AS cor0
----
449757

query I rowsort
SELECT ALL - ( col1 ) FROM tab0 AS cor0 WHERE - col0 * - col0 >= - col1
----
-1
-21
-81

query I rowsort
SELECT col1 + + 47 FROM tab2 AS cor0
----
114
124
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT - COUNT( ALL col1 ) + COUNT( DISTINCT + 8 ) * + 90 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-9043
SELECT - COUNT ( ALL col1 ) + COUNT ( DISTINCT + 8 ) * + 90 FROM tab0 AS cor0
----
87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 35 >= ( NULL )
----

query I rowsort
SELECT - - 49 * col1 + + 24 AS col1 FROM tab1 AS cor0
----
2327
269
710

query I rowsort
SELECT ALL 4 FROM tab2 WHERE NOT + 45 * + col2 + + col2 IS NULL
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT DISTINCT - MAX( ALL ( col2 ) ) * 79 FROM tab2
----
-4582

skipif mysql # not compatible
query I rowsort label-9047
SELECT DISTINCT - MAX ( ALL ( col2 ) ) * 79 FROM tab2
----
-4582

query I rowsort
SELECT ALL 48 * - col2 AS col0 FROM tab1 WHERE NOT ( + col0 ) IS NULL
----
-2832
-3264
-4608

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT ALL 15 * COUNT( * ) * + COUNT( * ) FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL 15 * COUNT ( * ) * + COUNT ( * ) FROM tab1
----
135

query III rowsort
SELECT * FROM tab2 WHERE - ( - col2 ) BETWEEN + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9051
SELECT ALL - CAST( + - col0 AS SIGNED ) * - 64 FROM tab1
----
-3264
-5440
-5824

skipif mysql # not compatible
query I rowsort label-9051
SELECT ALL - CAST ( + - col0 AS INTEGER ) * - 64 FROM tab1
----
-3264
-5440
-5824

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9052
SELECT - CAST( NULL AS DECIMAL ) * SUM( 6 * col1 ) FROM tab2 WHERE NULL >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9052
SELECT - CAST ( NULL AS REAL ) * SUM ( 6 * col1 ) FROM tab2 WHERE NULL >= ( NULL )
----
NULL

query I rowsort
SELECT DISTINCT - col1 * 25 FROM tab0
----
-2025
-25
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT MIN( ALL ( col0 ) ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9054
SELECT MIN ( ALL ( col0 ) ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9055
SELECT ALL - COUNT( * ) * - - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * - 67 < 84
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9057
SELECT + + CAST( - + col0 AS SIGNED ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9057
SELECT + + CAST ( - + col0 AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 39 BETWEEN ( + col1 * + 11 + 6 ) AND + col2 AND NOT NULL NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT + + col2 + col1 * 42 AS col0 FROM tab1 AS cor0
----
2042
269
684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9060
SELECT col0 * - + col0 * col2 + + col1 * CAST( NULL AS SIGNED ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9060
SELECT col0 * - + col0 * col2 + + col1 * CAST ( NULL AS INTEGER ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 < NULL
----

query IIIIII rowsort
SELECT ALL * FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col1 - + - ( + col2 ) + col0 * + col0 AS col0 FROM tab0
----
191
7558
9507

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 WHERE ( NOT ( NULL ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9065
SELECT + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 ) NOT BETWEEN 1 AND ( 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT - MAX( ALL + + 98 ) FROM tab2 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-9067
SELECT - MAX ( ALL + + 98 ) FROM tab2 AS cor0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT ALL - MIN( 7 ) AS col2 FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-9068
SELECT ALL - MIN ( 7 ) AS col2 FROM tab2 AS cor0
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 70 col2 FROM tab1 AS cor0
----
-70
-70
-70

query I rowsort
SELECT 71 * + + 66 FROM tab0 cor0
----
4686
4686
4686

query I rowsort
SELECT DISTINCT + 72 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 77 col2 FROM tab1 AS cor0
----
-3927
-6545
-7007

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT ALL MIN( ALL - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9073
SELECT ALL MIN ( ALL - col2 ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT + ( col1 ) * + + 54 AS col0 FROM tab0 AS cor0
----
1134
4374
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9075
SELECT ( - - CAST( CAST( 5 AS SIGNED ) AS SIGNED ) ) * COUNT( * ) FROM tab1 cor0
----
15

skipif mysql # not compatible
query I rowsort label-9075
SELECT ( - - CAST ( CAST ( 5 AS INTEGER ) AS INTEGER ) ) * COUNT ( * ) FROM tab1 cor0
----
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 29 ) <> - 69
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9077
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 * - + 78 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9077
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 * - + 78 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9078
SELECT * FROM tab2 AS cor0 WHERE NOT col1 - - 14 - + 48 * 65 NOT BETWEEN + CAST( - col0 AS SIGNED ) - + 9 AND col1 * - col1
----

skipif mysql # not compatible
query III rowsort label-9078
SELECT * FROM tab2 AS cor0 WHERE NOT col1 - - 14 - + 48 * 65 NOT BETWEEN + CAST ( - col0 AS INTEGER ) - + 9 AND col1 * - col1
----

query I rowsort
SELECT col2 * + col1 + - col1 * + 49 AS col0 FROM tab2 AS cor0
----
-1326
-693
603

query II rowsort
SELECT ALL - 91 AS col2, ( - col0 ) * + 8 FROM tab0 AS cor0
----
-91
-120
-91
-696
-91
-776

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT - COUNT( * ) col2 FROM tab1 WHERE NOT ( + col2 ) NOT IN ( 94 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9081
SELECT - COUNT ( * ) col2 FROM tab1 WHERE NOT ( + col2 ) NOT IN ( 94 )
----
0

query I rowsort
SELECT ALL + col0 * - col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT NULL <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT MAX( ALL - 25 ) AS col1 FROM tab2 WHERE NOT col1 IS NULL
----
-25

skipif mysql # not compatible
query I rowsort label-9084
SELECT MAX ( ALL - 25 ) AS col1 FROM tab2 WHERE NOT col1 IS NULL
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT MAX( DISTINCT - 20 ) AS col2 FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-9085
SELECT MAX ( DISTINCT - 20 ) AS col2 FROM tab0
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-9086
SELECT ALL 52 DIV - col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9086
SELECT ALL 52 / - col0 FROM tab2
----
-1
0
0

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE ( - col2 - col0 * - col2 ) NOT BETWEEN + ( + col0 ) * col0 AND 24 * - col2
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9088
SELECT DISTINCT - col1 DIV + + 54 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-9088
SELECT DISTINCT - col1 / + + 54 FROM tab2
----
-1
0

query I rowsort
SELECT DISTINCT - ( - + 62 ) + col1 AS col2 FROM tab1 WHERE NULL >= NULL
----

query I rowsort
SELECT - + 94 AS col0 FROM tab2 AS cor0
----
-94
-94
-94

query I rowsort
SELECT ALL - - 34 AS col0 FROM tab0 AS cor0
----
34
34
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9092
SELECT DISTINCT + CAST( col0 AS SIGNED ) + - 27 * + col0 AS col2 FROM tab2 AS cor0
----
-1196
-1664
-1950

skipif mysql # not compatible
query I rowsort label-9092
SELECT DISTINCT + CAST ( col0 AS INTEGER ) + - 27 * + col0 AS col2 FROM tab2 AS cor0
----
-1196
-1664
-1950

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT + COUNT( * ) + - COUNT( * ) col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9093
SELECT + COUNT ( * ) + - COUNT ( * ) col1 FROM tab1 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col0 + + col1 + + col2 col0 FROM tab1 AS cor0
----
5006
5079
6303

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT ( + + col2 ) IS NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 + + ( ( - col0 ) ) <> 86 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9097
SELECT * FROM tab2 WHERE NOT ( NULL ) < col1 + + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) / + 75
----

skipif mysql # not compatible
query III rowsort label-9097
SELECT * FROM tab2 WHERE NOT ( NULL ) < col1 + + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) / + 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT DISTINCT - SUM( - 42 ) FROM tab2 WHERE NOT col0 <= - 7
----
126

skipif mysql # not compatible
query I rowsort label-9098
SELECT DISTINCT - SUM ( - 42 ) FROM tab2 WHERE NOT col0 <= - 7
----
126

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 + + 15 IN ( - col0 )
----

query I rowsort
SELECT DISTINCT col0 + + + 59 * + - ( - col0 ) + + + 4 FROM tab0 AS cor0
----
5224
5824
904

query I rowsort
SELECT ALL col2 * 76 + 54 + 85 + - col1 * - 41 FROM tab1 AS cor0
----
4828
7234
8009

query I rowsort
SELECT - + ( + 38 ) AS col0 FROM tab1 AS cor0
----
-38
-38
-38

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> col1 / - col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 IN ( col1 * - + 2 )
----

query I rowsort
SELECT DISTINCT col2 - + 14 FROM tab2 AS cor0
----
26
44
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + + 64 NOT IN ( col2 + 42 + - 45 / - 97 ) AND - col1 + + col2 / col2 < + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9108
SELECT DISTINCT - ( - + 26 ) * + col1 + col0 + - 17 + 48 DIV col0 FROM tab1 cor0
----
1296
198
398

skipif mysql # not compatible
query I rowsort label-9108
SELECT DISTINCT - ( - + 26 ) * + col1 + col0 + - 17 + 48 / col0 FROM tab1 cor0
----
1296
198
398

query I rowsort
SELECT - 27 / col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <> ( - - col2 - - col2 + - - 61 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT 47 + + COUNT( * ) * - - COUNT( * ) FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-9110
SELECT 47 + + COUNT ( * ) * - - COUNT ( * ) FROM tab2
----
56

query III rowsort
SELECT * FROM tab2 WHERE + 77 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9112
SELECT ALL COUNT( * ) AS col0, 58 AS col1 FROM tab2
----
3
58

skipif mysql # not compatible
query II rowsort label-9112
SELECT ALL COUNT ( * ) AS col0, 58 AS col1 FROM tab2
----
3
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 col2 FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9114
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE NULL IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 + col0 col1 FROM tab0
----
107
179
189

onlyif mysql # aggregate syntax: 
query II rowsort label-9116
SELECT ALL - COUNT( * ), + MIN( ALL + col2 ) AS col2 FROM tab2 cor0
----
-3
23

skipif mysql # not compatible
query II rowsort label-9116
SELECT ALL - COUNT ( * ), + MIN ( ALL + col2 ) AS col2 FROM tab2 cor0
----
-3
23

query I rowsort
SELECT DISTINCT col1 + + 71 * col1 AS col1 FROM tab2 AS cor0
----
3672
4824
5544

query I rowsort
SELECT ALL 89 * - col2 * col2 + - col2 + col2 + col0 + + col0 * col0 FROM tab1 cor0
----
-302499
-403164
-817572

onlyif mysql # aggregate syntax: 
query II rowsort label-9119
SELECT 6, + COUNT( * ) * + + 76 AS col0 FROM tab2 AS cor0
----
6
228

skipif mysql # not compatible
query II rowsort label-9119
SELECT 6, + COUNT ( * ) * + + 76 AS col0 FROM tab2 AS cor0
----
6
228

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT DISTINCT - 0 * + COUNT( col1 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9120
SELECT DISTINCT - 0 * + COUNT ( col1 ) FROM tab1
----
0

query I rowsort
SELECT + col1 + col0 FROM tab1 AS cor0 WHERE NOT ( col0 * - + col1 ) >= NULL
----

query I rowsort
SELECT DISTINCT - - 64 AS col0 FROM tab2 AS cor0
----
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 + - ( - 20 ) col1 FROM tab2 AS cor0
----
1078
2580
4370

onlyif mysql # DIV for integer division: 
query I rowsort label-9124
SELECT ALL col1 DIV + col0 * - col0 - + - col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL col1 / + col0 * - col0 - + - col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9125
SELECT 95 DIV ( - col0 ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9125
SELECT 95 / ( - col0 ) FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT DISTINCT - COUNT( * ) * + - 40 FROM tab1 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-9126
SELECT DISTINCT - COUNT ( * ) * + - 40 FROM tab1 AS cor0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT - 47 * + + ( + - COUNT( DISTINCT - - 26 ) ) FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9127
SELECT - 47 * + + ( + - COUNT ( DISTINCT - - 26 ) ) FROM tab2 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT + 50 * + COUNT( * ) FROM tab0 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-9128
SELECT + 50 * + COUNT ( * ) FROM tab0 AS cor0
----
150

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 16 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 41 col0, - col0 FROM tab1
----
41
-51
41
-85
41
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT DISTINCT - COUNT( DISTINCT col0 ) col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9131
SELECT DISTINCT - COUNT ( DISTINCT col0 ) col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

query II rowsort
SELECT ALL col0, + 71 AS col1 FROM tab0
----
15
71
87
71
97
71

query I rowsort
SELECT - col2 * - + col1 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

query II rowsort
SELECT + col2 AS col1, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query II rowsort
SELECT 1, col0 AS col1 FROM tab2 AS cor0
----
1
46
1
64
1
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT ALL SUM( 28 ) FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-9136
SELECT ALL SUM ( 28 ) FROM tab2 AS cor0
----
84

query I rowsort
SELECT - 57 + + + col2 FROM tab1 AS cor0
----
11
2
39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9138
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9138
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + - 86 + + - 34 AS col2 FROM tab2 cor0
----
-120
-120
-120

query I rowsort
SELECT + col0 + - + 97 FROM tab1 AS cor0
----
-12
-46
-6

query I rowsort
SELECT DISTINCT - 96 + + 37 FROM tab0 AS cor0
----
-59

query I rowsort
SELECT + 84 AS col2 FROM tab0 cor0
----
84
84
84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + - col2 * + + col1 + + + col1 / + + col2 + + - col1 + col0 ) <> 15 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT DISTINCT + COUNT( - 67 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9144
SELECT DISTINCT + COUNT ( - 67 ) AS col2 FROM tab0
----
3

query III rowsort
SELECT * FROM tab0 WHERE - col2 IS NULL AND col0 * + col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL < + col1
----

query I rowsort
SELECT + col1 - - - col0 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT col1 - - + col1 + - + ( 45 ) * col0 * + - col0 FROM tab2 AS cor0
----
184474
253259
95322

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= + col2
----

query I rowsort
SELECT - - ( - col1 ) * - col1 + + col2 AS col1 FROM tab0 AS cor0
----
100
451
6608

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT ALL COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT ( ( + col2 + + col2 * col1 ) IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT ( ( + col2 + + col2 * col1 ) IS NOT NULL )
----
0

query I rowsort
SELECT ALL col2 * + - col2 FROM tab0 AS cor0
----
-100
-2209
-9801

query II rowsort
SELECT DISTINCT col2, col1 * col1 AS col2 FROM tab0
----
10
441
47
6561
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT ALL + - MIN( DISTINCT col1 ) * COUNT( * ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL + - MIN ( DISTINCT col1 ) * COUNT ( * ) FROM tab1 AS cor0
----
-15

query I rowsort
SELECT DISTINCT + ( + - col0 ) * + 1 * ( col2 ) FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT MAX( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9156
SELECT MAX ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT + MIN( + col2 ) AS col2 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-9157
SELECT + MIN ( + col2 ) AS col2 FROM tab2 cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 70 col1 FROM tab1 AS cor0
----
-3290
-350
-980

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND - 56
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col0 * + col1 AS col0, col0 FROM tab0 cor0
----
1215
15
1827
87
97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9161
SELECT DISTINCT + col2 DIV - - col1 - + + col1 FROM tab2 AS cor0 WHERE NOT 98 * + col0 + col0 + + col0 IS NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9161
SELECT DISTINCT + col2 / - - col1 - + + col1 FROM tab2 AS cor0 WHERE NOT 98 * + col0 + col0 + + col0 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9162
SELECT ALL 43 DIV + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-9162
SELECT ALL 43 / + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
14

query I rowsort
SELECT DISTINCT - 42 FROM tab1 WHERE NOT NULL <= - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 col2 FROM tab0
----
33

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT ALL + COUNT( - - 73 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL + COUNT ( - - 73 ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - col2 ), + col2 - + col1 col2 FROM tab0
----
-10
-11
-47
-34
-99
98

query I rowsort
SELECT DISTINCT 1 * - + col0 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT - ( + 62 ) FROM tab1
----
-62
-62
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9170
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) / + - SUM( - - ( - 29 ) ) + 58 + + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9170
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) / + - SUM ( - - ( - 29 ) ) + 58 + + COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 < - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9173
SELECT DISTINCT col0 + - CAST( - 26 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
101
72
90

skipif mysql # not compatible
query I rowsort label-9173
SELECT DISTINCT col0 + - CAST ( - 26 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
101
72
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab0 AS cor0 WHERE + ( + col1 ) IN ( - + 4, + col1 + col2, 86, - - col1 )
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 61 * + col2 col0 FROM tab2
----
1403
2440
3538

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9176
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - ( + ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT - - 20 * + + 69 + - col1 * - col2 FROM tab2 AS cor0
----
2553
4460
5266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 - + + 39 col0 FROM tab1 cor0
----
-44
-53
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 - + + 34 col2, + col2 - - col1 FROM tab1 AS cor0 WHERE - 53 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + + 60 FROM tab2 AS cor0
----
111
127
137

query I rowsort
SELECT DISTINCT col2 * - 11 * - col0 + ( + + col1 ) - - col1 AS col2 FROM tab0 AS cor0
----
105635
7917
9612

query I rowsort
SELECT - + ( + + col2 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 * col2 AS col1 FROM tab0 WHERE - - col2 >= + col1
----
9801

query I rowsort
SELECT ALL - 22 * + col1 - + col1 * - + col0 AS col2 FROM tab2
----
1224
3234
3551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9186
SELECT + CAST( - col0 AS SIGNED ) + - col0 FROM tab0
----
-174
-194
-30

skipif mysql # not compatible
query I rowsort label-9186
SELECT + CAST ( - col0 AS INTEGER ) + - col0 FROM tab0
----
-174
-194
-30

query I rowsort
SELECT DISTINCT - 1 - + col2 FROM tab2
----
-24
-41
-59

query I rowsort
SELECT - 4 + + 88 * + col0 AS col2 FROM tab2
----
4044
5628
6596

query I rowsort
SELECT ALL + 55 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT ALL COUNT( 70 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9190
SELECT ALL COUNT ( 70 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT + 71 + + + ( col1 ) + - 54 * col2 * + col1 AS col1 FROM tab0
----
-11248
-205426
-5274

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT ALL + 7 - - COUNT( * ) AS col0 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL + 7 - - COUNT ( * ) AS col0 FROM tab1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9193
SELECT ALL + + CAST( - - col2 AS SIGNED ) AS col0 FROM tab2 WHERE - 21 IS NOT NULL OR NOT - - col0 = NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL + + CAST ( - - col2 AS INTEGER ) AS col0 FROM tab2 WHERE - 21 IS NOT NULL OR NOT - - col0 = NULL
----
23
40
58

query I rowsort
SELECT + ( - + col1 ) FROM tab2 AS cor0 WHERE NOT + 81 IS NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 <> + 76 + 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT ALL MIN( col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL MIN ( col0 ) AS col2 FROM tab0
----
15

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL - - col1 + 12, - col1 - - 44 FROM tab2 AS cor0 WHERE NOT ( NULL ) = - 73
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL OR NOT NULL NOT IN ( + 76, 30, + col0 + - - col1 )
----

query I rowsort
SELECT - 89 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 33 * - 56 * col2 * + 25 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9202
SELECT + - col1 * - CAST( + + col1 AS SIGNED ) FROM tab1 AS cor0
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-9202
SELECT + - col1 * - CAST ( + + col1 AS INTEGER ) FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT ALL - + col0 + col0 / - col2 / + + 35 * col1 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9204
SELECT COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT + col1 + - + col0 AS col0 FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT DISTINCT - MAX( + + col2 ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT - MAX ( + + col2 ) AS col2 FROM tab1
----
-96

query I rowsort
SELECT ALL 56 * + - 42 AS col2 FROM tab0
----
-2352
-2352
-2352

query I rowsort
SELECT DISTINCT col1 * + 18 * + - 10 FROM tab2
----
-12060
-13860
-9180

query I rowsort
SELECT + col1 FROM tab0 WHERE NULL IN ( - + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE + - ( + col0 ) NOT BETWEEN + + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * + col1 + - 39 AS col1 FROM tab1
----
-14
157
2170

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT + MAX( + col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9213
SELECT + MAX ( + col0 ) AS col2 FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL - 82 + - + col0 * + 62 FROM tab0 AS cor0
----
-1012
-5476
-6096

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + 49 + + 63 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col0 * - col2 + - col2 + col2 + - col0 + + col0 + 86 * col1 FROM tab0 AS cor0
----
-9517
6261
936

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT ALL + 95 * - - SUM( col1 ) FROM tab0
----
9785

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL + 95 * - - SUM ( col1 ) FROM tab0
----
9785

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE col2 - - - 76 NOT IN ( col2 + - col0, 10 / col1, + 53 )
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-9219
SELECT - - ( COUNT( * ) ) col0, 69 FROM tab0 AS cor0
----
3
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9219
SELECT - - ( COUNT ( * ) ) col0, 69 FROM tab0 AS cor0
----
3
69

query I rowsort
SELECT DISTINCT + col0 + + + col0 AS col1 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT DISTINCT + col1 - + - ( col1 ) + + col1 FROM tab2 AS cor0
----
153
201
231

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT + COUNT( - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9222
SELECT + COUNT ( - col0 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - ( + - col1 ) + - col2 AS col2 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT ( + col0 ) * + 98 + col1 * col1 FROM tab1 AS cor0
----
11127
5194
8355

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 32 + - 78, + col2 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-110
10
-110
47
-110
99

query I rowsort
SELECT + - 93 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT DISTINCT + col1 * - col2 + ( + + 37 ) + + col0 AS col0 FROM tab0 AS cor0
----
-3755
-86
35

query I rowsort
SELECT ALL + col1 + 14 + + 78 * + 77 AS col2 FROM tab0 AS cor0
----
6021
6041
6101

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT DISTINCT - MAX( - + 32 ) FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-9229
SELECT DISTINCT - MAX ( - + 32 ) FROM tab2 AS cor0
----
32

query I rowsort
SELECT - 27 * col2 + - + 4 * + col2 * + col2 FROM tab0 cor0 WHERE NOT ( NULL IS NOT NULL )
----
-10105
-41877
-670

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9231
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT ALL + MIN( + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL + MIN ( + col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9233
SELECT 82 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9233
SELECT 82 * - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT - 8 * - - SUM( - 36 ) FROM tab0
----
864

skipif mysql # not compatible
query I rowsort label-9234
SELECT - 8 * - - SUM ( - 36 ) FROM tab0
----
864

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT ALL + 57 * + - COUNT( * ) AS col0 FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-9235
SELECT ALL + 57 * + - COUNT ( * ) AS col0 FROM tab2
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT ( + 29 ) * 64 * + 29 * + MAX( + col1 ) FROM tab1
----
2529728

skipif mysql # not compatible
query I rowsort label-9236
SELECT ( + 29 ) * 64 * + 29 * + MAX ( + col1 ) FROM tab1
----
2529728

query I rowsort
SELECT - col2 * 16 AS col2 FROM tab1
----
-1088
-1536
-944

query I rowsort
SELECT col2 + + ( + - col2 ) * + col2 * - 97 * - + col0 FROM tab2
----
-2360375
-24473042
-9932760

query I rowsort
SELECT ALL - col2 * - - col2 + - col0 FROM tab0
----
-187
-2224
-9898

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 + + col0 + - 85 IS NOT NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9242
SELECT * FROM tab1 AS cor0 WHERE + col0 - - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9242
SELECT * FROM tab1 AS cor0 WHERE + col0 - - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 + + + col2 AS col1 FROM tab2 cor0
----
104
133
69

query I rowsort
SELECT DISTINCT - 35 - - 10 FROM tab2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT - + 45 * + + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-405

skipif mysql # not compatible
query I rowsort label-9245
SELECT - + 45 * + + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * - col0 + + + col0 * + 71 * + - 15 * - - col2 col2 FROM tab2 AS cor0
----
-1128886
-2730496
-4638375

query I rowsort
SELECT DISTINCT col2 + - 9 FROM tab2 AS cor0
----
14
31
49

query II rowsort
SELECT ALL + - col1 AS col1, 56 FROM tab1 AS cor0
----
-14
56
-47
56
-5
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT DISTINCT + COUNT( * ) * 84 FROM tab2 cor0
----
252

skipif mysql # not compatible
query I rowsort label-9249
SELECT DISTINCT + COUNT ( * ) * 84 FROM tab2 cor0
----
252

query III rowsort
SELECT * FROM tab1 WHERE NOT + 68 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 71 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9252
SELECT DISTINCT - CAST( col1 AS SIGNED ) * - + col0 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-9252
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * - + col0 FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9253
SELECT ALL CAST( NULL AS SIGNED ) * + - 9 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9253
SELECT ALL CAST ( NULL AS INTEGER ) * + - 9 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - - 96 AS col2 FROM tab1 WHERE NOT NULL BETWEEN + col2 - + 98 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9255
SELECT ALL - 56 DIV ( + col0 ) FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL - 56 / ( + col0 ) FROM tab0
----
-3
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 63 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT ALL - SUM( + 46 ) AS col0 FROM tab1 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-9257
SELECT ALL - SUM ( + 46 ) AS col0 FROM tab1 AS cor0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT - - ( + COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9258
SELECT - - ( + COUNT ( * ) ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-9259
SELECT + - 56 DIV - col0, 38 * + 2 AS col1 FROM tab1 cor0
----
0
76
0
76
1
76

skipif mysql # not compatible
query II rowsort label-9259
SELECT + - 56 / - col0, 38 * + 2 AS col1 FROM tab1 cor0
----
0
76
0
76
1
76

query II rowsort
SELECT - ( + col1 ) AS col2, col1 AS col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query III rowsort
SELECT * FROM tab1 WHERE NOT 97 NOT BETWEEN col0 * - col0 - 7 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT SUM( DISTINCT 41 ) FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-9262
SELECT SUM ( DISTINCT 41 ) FROM tab1
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * col0 + + 3 col1, + 31 - + - col0 FROM tab2 AS cor0
----
2119
77
4099
95
5628
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9264
SELECT COUNT( * ) + + AVG ( col0 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9264
SELECT COUNT ( * ) + + AVG ( col0 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col2 + - - col1 FROM tab1 AS cor0
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 + - col0 col0 FROM tab0 AS cor0
----
-41
-51
31

query I rowsort
SELECT + 48 + - + col0 AS col1 FROM tab1 AS cor0
----
-3
-37
-43

query I rowsort
SELECT 59 + - 50 + 20 FROM tab1
----
29
29
29

onlyif mysql # DIV for integer division: 
query I rowsort label-9269
SELECT DISTINCT col2 + + - col0 DIV + col0 FROM tab1
----
58
67
95

skipif mysql # not compatible
query I rowsort label-9269
SELECT DISTINCT col2 + + - col0 / + col0 FROM tab1
----
58
67
95

query I rowsort
SELECT + + col2 FROM tab2 WHERE ( NULL ) NOT BETWEEN col2 AND - - col1
----

query I rowsort
SELECT 0 * 78 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 24 / - 74 AS col0 FROM tab1 WHERE + 73 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9274
SELECT ALL + COUNT( * ), COUNT( * ) - + - COUNT( * ) col1 FROM tab2, tab0 AS cor0
----
9
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9274
SELECT ALL + COUNT ( * ), COUNT ( * ) - + - COUNT ( * ) col1 FROM tab2, tab0 AS cor0
----
9
18

query I rowsort
SELECT DISTINCT ( 55 ) FROM tab1
----
55

query III rowsort
SELECT * FROM tab2 WHERE 44 IS NULL
----

query I rowsort
SELECT - - col2 - - col1 + + - col1 AS col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT - - col1 - col0 * col2 AS col1 FROM tab1 cor0
----
-4882
-5010
-6141

query I rowsort
SELECT 97 * 63 - 11 - + col0 AS col0 FROM tab0 AS cor0
----
6003
6013
6085

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT - - 43 + MAX( DISTINCT - col0 ) * MAX( + col0 ) AS col1 FROM tab1 AS cor0
----
-4598

skipif mysql # not compatible
query I rowsort label-9280
SELECT - - 43 + MAX ( DISTINCT - col0 ) * MAX ( + col0 ) AS col1 FROM tab1 AS cor0
----
-4598

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9282
SELECT DISTINCT - CAST( + 34 AS SIGNED ) FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-9282
SELECT DISTINCT - CAST ( + 34 AS INTEGER ) FROM tab1 AS cor0
----
-34

query I rowsort
SELECT + - 56 AS col1 FROM tab1 cor0
----
-56
-56
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9284
SELECT + CAST( - - col0 AS SIGNED ) * - - col1 * - col1 FROM tab0 AS cor0
----
-38367
-97
-98415

skipif mysql # not compatible
query I rowsort label-9284
SELECT + CAST ( - - col0 AS INTEGER ) * - - col1 * - col1 FROM tab0 AS cor0
----
-38367
-97
-98415

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, ( - 34 ) * + col0 FROM tab2 AS cor0
----
23
-1564
40
-2176
58
-2550

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9286
SELECT - - 52 * + - CAST( - - 13 AS SIGNED ), 56 AS col0 FROM tab2 AS cor0
----
-676
56
-676
56
-676
56

skipif mysql # not compatible
query II rowsort label-9286
SELECT - - 52 * + - CAST ( - - 13 AS INTEGER ), 56 AS col0 FROM tab2 AS cor0
----
-676
56
-676
56
-676
56

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 85 IN ( - 60, + col0, + col2, + 33, - + col0 - + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9288
SELECT - CAST( + - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9288
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT ALL SUM( - col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9289
SELECT ALL SUM ( - col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 72 * col1 col1 FROM tab1 AS cor0
----
1008
3384
360

query I rowsort
SELECT DISTINCT - col2 * + + col0 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT + col1 * - 28 FROM tab1 AS cor0
----
-1316
-140
-392

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT + col2 * + - 81 FROM tab2
----
-1863
-3240
-4698

query III rowsort
SELECT ALL * FROM tab1 WHERE - 88 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT + MAX( + col2 ) col0 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9296
SELECT + MAX ( + col2 ) col0 FROM tab1
----
96

query II rowsort
SELECT DISTINCT 56, col1 FROM tab1
----
56
14
56
47
56
5

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT + MAX( - ( - ( - - col0 ) ) ) * + - 42 AS col0 FROM tab1 AS cor0
----
-3822

skipif mysql # not compatible
query I rowsort label-9299
SELECT + MAX ( - ( - ( - - col0 ) ) ) * + - 42 AS col0 FROM tab1 AS cor0
----
-3822

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9300
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + 83 + + col2 + - col2 * + CAST( + 73 AS SIGNED ) AND ( + 85 * + - col1 + + col0 )
----

skipif mysql # not compatible
query III rowsort label-9300
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + 83 + + col2 + - col2 * + CAST ( + 73 AS INTEGER ) AND ( + 85 * + - col1 + + col0 )
----

query I rowsort
SELECT DISTINCT - + ( col0 ) FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9302
SELECT ALL col1 * - CAST( NULL AS SIGNED ) / - 5 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) / - 5 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 77 * + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col1 + + 93 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( - + col0 ) FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT ALL COUNT( * ) col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9306
SELECT ALL COUNT ( * ) col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col1 <> - col1 )
----

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9309
SELECT ALL + col1 + + 93 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL + col1 + + 93 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT ALL COUNT( * ) * 19 + - 83 FROM tab1 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL COUNT ( * ) * 19 + - 83 FROM tab1 cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9311
SELECT + COUNT( * ) col2 FROM tab2 AS cor0 WHERE - col0 / col2 <= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9311
SELECT + COUNT ( * ) col2 FROM tab2 AS cor0 WHERE - col0 / col2 <= NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 11 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9313
SELECT ALL - MAX( ALL + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9313
SELECT ALL - MAX ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT - 28 + - col0 AS col0 FROM tab2
----
-103
-74
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9315
SELECT + 72 / + - CAST( NULL AS SIGNED ) * - - 30 + + - 96 * - col1 + - 97 + + 52 + + + col0 + + - col1 AS col1, - 40 * - + col2 - + col1 FROM tab0
----
NULL
1799
NULL
379
NULL
3959

skipif mysql # not compatible
query II rowsort label-9315
SELECT + 72 / + - CAST ( NULL AS INTEGER ) * - - 30 + + - 96 * - col1 + - 97 + + 52 + + + col0 + + - col1 AS col1, - 40 * - + col2 - + col1 FROM tab0
----
NULL
1799
NULL
379
NULL
3959

query III rowsort
SELECT * FROM tab1 WHERE NULL > ( NULL ) AND ( + col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 + + - col0 col1 FROM tab2
----
-18
-29
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, - col1 col0 FROM tab0
----
-1
-1
-21
-21
-81
-81

query I rowsort
SELECT ALL + + 43 AS col2 FROM tab2 WHERE NOT - 92 IS NOT NULL
----

query I rowsort
SELECT - 26 + col1 FROM tab1
----
-12
-21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT - COUNT( + + col0 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9321
SELECT - COUNT ( + + col0 ) AS col0 FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL + + col2 + + 60 FROM tab1 AS cor0
----
119
128
156

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9323
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT ALL ( + - 98 ) * - + SUM( ALL - + ( + col2 ) ) col0 FROM tab2 AS cor0
----
-11858

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9324
SELECT ALL ( + - 98 ) * - + SUM ( ALL - + ( + col2 ) ) col0 FROM tab2 AS cor0
----
-11858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( + 56 ) col1, col2 AS col2 FROM tab2 cor0
----
56
23
56
40
56
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT DISTINCT - COUNT( * ) * + - 30 * - COUNT( DISTINCT - 66 ) * + MIN( DISTINCT + + 49 ) AS col2 FROM tab1 cor0
----
-4410

skipif mysql # not compatible
query I rowsort label-9326
SELECT DISTINCT - COUNT ( * ) * + - 30 * - COUNT ( DISTINCT - 66 ) * + MIN ( DISTINCT + + 49 ) AS col2 FROM tab1 cor0
----
-4410

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT + - ( + - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9327
SELECT + - ( + - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + ( + - col2 ) FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL BETWEEN - 60 AND 44 + + col2 )
----

query II rowsort
SELECT ALL - 70 AS col1, + 29 FROM tab1
----
-70
29
-70
29
-70
29

query I rowsort
SELECT DISTINCT ( - + 32 ) FROM tab2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT ALL COUNT( * ) * COUNT( * ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT DISTINCT - MIN( - + col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-9333
SELECT DISTINCT - MIN ( - + col1 ) AS col1 FROM tab2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9334
SELECT ALL * FROM tab1 WHERE + col1 + - + 9 NOT IN ( + col0 * col0, CAST( col0 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9334
SELECT ALL * FROM tab1 WHERE + col1 + - + 9 NOT IN ( + col0 * col0, CAST ( col0 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 84 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( col0 ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 51 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
51

query I rowsort
SELECT ALL 4 * - 52 FROM tab0
----
-208
-208
-208

query I rowsort
SELECT + - col1 + + 68 * - + col0 FROM tab2 cor0 WHERE NULL BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9340
SELECT ALL - COUNT( * ) + + - 95 AS col2, 21 col1 FROM tab1 AS cor0
----
-98
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9340
SELECT ALL - COUNT ( * ) + + - 95 AS col2, 21 col1 FROM tab1 AS cor0
----
-98
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 37 + - 51 col1 FROM tab0 AS cor0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT DISTINCT COUNT( col0 ) + + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9342
SELECT DISTINCT COUNT ( col0 ) + + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - col1 + col0 + - 66 AS col1 FROM tab0 AS cor0 WHERE + ( 99 ) BETWEEN col1 AND - col0
----

query I rowsort
SELECT - col1 * - col1 + col2 FROM tab1 AS cor0
----
2277
292
84

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT - MIN( + col1 ) + - 67 FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-9346
SELECT - MIN ( + col1 ) + - 67 FROM tab0 AS cor0
----
-68

query I rowsort
SELECT - - 37 * - 56 * - col0 AS col2 FROM tab2 AS cor0
----
132608
155400
95312

query I rowsort
SELECT DISTINCT col1 + - - 84 FROM tab1 AS cor0
----
131
89
98

query I rowsort
SELECT ( ( + 63 ) ) FROM tab0 AS cor0
----
63
63
63

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN + 37 AND - col1 + col0 + - col1
----

query I rowsort
SELECT col1 * - - col2 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT DISTINCT - SUM( + - ( + - col0 ) ) * SUM( col1 ) AS col0 FROM tab2
----
-36075

skipif mysql # not compatible
query I rowsort label-9352
SELECT DISTINCT - SUM ( + - ( + - col0 ) ) * SUM ( col1 ) AS col0 FROM tab2
----
-36075

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col0 * + - col0 AS col0, col2 + - ( + ( col1 ) ) FROM tab1
----
-2601
82
-7225
54
-8281
21

query III rowsort
SELECT * FROM tab2 WHERE + ( col0 ) NOT BETWEEN + ( - + 0 ) AND 32 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9356
SELECT DISTINCT + ( + - CAST( NULL AS SIGNED ) ) * col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9356
SELECT DISTINCT + ( + - CAST ( NULL AS INTEGER ) ) * col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col1 * 48 - + col1 * + col2 FROM tab0 AS cor0
----
-51
798
81

query I rowsort
SELECT ALL 77 + - col0 * - col2 AS col2 FROM tab1 AS cor0
----
4973
5092
6265

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - col0 ) + + - col2 + + + col0 * 30 * col0 + ( col2 ) col2, col2 FROM tab1 AS cor0
----
216665
59
248339
68
77979
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9360
SELECT DISTINCT + COUNT( * ) AS col0, COUNT( * ) AS col0 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-9360
SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0
----
3
3

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT NULL NOT BETWEEN + 43 AND - ( + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9362
SELECT col2 AS col1, - ( col2 ) DIV + CAST( + - 13 AS SIGNED ) FROM tab0 AS cor0
----
10
0
47
3
99
7

skipif mysql # not compatible
query II rowsort label-9362
SELECT col2 AS col1, - ( col2 ) / + CAST ( + - 13 AS INTEGER ) FROM tab0 AS cor0
----
10
0
47
3
99
7

query I rowsort
SELECT ALL - 67 * + col2 FROM tab0 AS cor0
----
-3149
-6633
-670

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 97 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9365
SELECT COUNT( * ) AS col2, + 5 + 92 AS col2 FROM tab1 cor0
----
3
97

skipif mysql # not compatible
query II rowsort label-9365
SELECT COUNT ( * ) AS col2, + 5 + 92 AS col2 FROM tab1 cor0
----
3
97

query I rowsort
SELECT DISTINCT - 65 AS col0 FROM tab2 AS cor0
----
-65

query I rowsort
SELECT DISTINCT - + 9 FROM tab1 cor0
----
-9

query I rowsort
SELECT + col0 + - 86 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9369
SELECT + - col2 AS col2, + CAST( - 40 AS SIGNED ) AS col2 FROM tab2 cor0
----
-23
-40
-40
-40
-58
-40

skipif mysql # not compatible
query II rowsort label-9369
SELECT + - col2 AS col2, + CAST ( - 40 AS INTEGER ) AS col2 FROM tab2 cor0
----
-23
-40
-40
-40
-58
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT SUM( DISTINCT 7 ) AS col0 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-9370
SELECT SUM ( DISTINCT 7 ) AS col0 FROM tab2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT ALL - + COUNT( DISTINCT + col1 ) FROM tab2 WHERE NULL NOT BETWEEN 15 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL - + COUNT ( DISTINCT + col1 ) FROM tab2 WHERE NULL NOT BETWEEN 15 AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9372
SELECT + - 26 - + col2 + 71 DIV + - col2 AS col2 FROM tab0 WHERE NOT 47 BETWEEN - col2 AND + col2
----
-43

skipif mysql # not compatible
query I rowsort label-9372
SELECT + - 26 - + col2 + 71 / + - col2 AS col2 FROM tab0 WHERE NOT 47 BETWEEN - col2 AND + col2
----
-43

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + col2 = col2 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT SUM( - col1 ) * + - 90 AS col2 FROM tab0
----
9270

skipif mysql # not compatible
query I rowsort label-9374
SELECT SUM ( - col1 ) * + - 90 AS col2 FROM tab0
----
9270

query I rowsort
SELECT ALL - + col1 + - ( col0 ) + - 91 FROM tab1 AS cor0
----
-156
-181
-229

query I rowsort
SELECT col0 + + col2 AS col0 FROM tab0 cor0 WHERE ( - + col1 IS NOT NULL )
----
196
62
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 33 col0 FROM tab2
----
33
33
33

query I rowsort
SELECT DISTINCT + 54 AS col2 FROM tab0 WHERE NOT 60 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 64 / - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 89 + + 25 FROM tab1 AS cor0
----
114
114
114

query I rowsort
SELECT + + col1 * 61 FROM tab0 AS cor0
----
1281
4941
61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + + - col1 AS col0 FROM tab0 cor0
----
-108
-96
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + + 24 + - 84, col1 col1 FROM tab1 cor0
----
-107
47
-65
5
-74
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9385
SELECT DISTINCT - col0 DIV + 7 + - col0 * + 60 AS col2 FROM tab0 AS cor0
----
-5232
-5833
-902

skipif mysql # not compatible
query I rowsort label-9385
SELECT DISTINCT - col0 / + 7 + - col0 * + 60 AS col2 FROM tab0 AS cor0
----
-5232
-5833
-902

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9386
SELECT ALL ( col1 ) + CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
102
134
154

skipif mysql # not compatible
query I rowsort label-9386
SELECT ALL ( col1 ) + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT ALL + col2 - - col1 * col1 FROM tab1
----
2277
292
84

query I rowsort
SELECT DISTINCT col1 + - 46 * + - col0 FROM tab1
----
2360
3915
4233

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9389
SELECT ALL COUNT( * ) DIV + 73 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9389
SELECT ALL COUNT ( * ) / + 73 FROM tab0
----
0

query I rowsort
SELECT 20 + + 25 + col2 FROM tab0
----
144
55
92

query I rowsort
SELECT 53 + + col1 + - col0 FROM tab2
----
45
58
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9392
SELECT ALL col1 DIV - 76 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9392
SELECT ALL col1 / - 76 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9393
SELECT ALL + - 14 DIV - COUNT( * ) FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL + - 14 / - COUNT ( * ) FROM tab1 AS cor0
----
4

query II rowsort
SELECT DISTINCT + + col2, 74 FROM tab1 cor0
----
59
74
68
74
96
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT ALL - COUNT( DISTINCT + + col0 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL - COUNT ( DISTINCT + + col0 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - - 3 AS col1 FROM tab1 cor0
----
3
3
3

query I rowsort
SELECT ALL + + ( - + 85 ) FROM tab0 AS cor0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT DISTINCT - MAX( DISTINCT + 74 ) FROM tab0 cor0
----
-74

skipif mysql # not compatible
query I rowsort label-9398
SELECT DISTINCT - MAX ( DISTINCT + 74 ) FROM tab0 cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT ALL + SUM( - 66 ) FROM tab0 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-9399
SELECT ALL + SUM ( - 66 ) FROM tab0 AS cor0
----
-198

query II rowsort
SELECT - col0 * - col2, col2 AS col0 FROM tab2 AS cor0
----
1058
23
2560
40
4350
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9401
SELECT + col2 DIV + - col0 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9401
SELECT + col2 / + - col0 AS col0 FROM tab1
----
-1
0
0

query II rowsort
SELECT DISTINCT 35 AS col2, 47 FROM tab2
----
35
47

query II rowsort
SELECT ALL - col0 AS col0, + col2 * col1 FROM tab2
----
-46
1173
-64
3080
-75
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9404
SELECT DISTINCT + CAST( - + col1 AS SIGNED ) col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9404
SELECT DISTINCT + CAST ( - + col1 AS INTEGER ) col1 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 WHERE - + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9405
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 WHERE - + col0 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9406
SELECT - 33 * - - col0 DIV - + col0 AS col2, col2 DIV + ( + - ( - col0 ) ) + col0 FROM tab0 AS cor0
----
33
18
33
87
33
98

skipif mysql # not compatible
query II rowsort label-9406
SELECT - 33 * - - col0 / - + col0 AS col2, col2 / + ( + - ( - col0 ) ) + col0 FROM tab0 AS cor0
----
33
18
33
87
33
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT ALL + - MIN( DISTINCT col2 ) AS col2 FROM tab2 cor0 WHERE col1 IS NOT NULL
----
-23

skipif mysql # not compatible
query I rowsort label-9408
SELECT ALL + - MIN ( DISTINCT col2 ) AS col2 FROM tab2 cor0 WHERE col1 IS NOT NULL
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT + SUM( ALL + 35 ) FROM tab0 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-9409
SELECT + SUM ( ALL + 35 ) FROM tab0 AS cor0
----
105

query I rowsort
SELECT + 95 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query III rowsort
SELECT * FROM tab0 WHERE - col0 BETWEEN - + 29 AND NULL
----

query II rowsort
SELECT ALL - col1 * + col2 AS col2, + col0 * + col0 * + 17 * col0 AS col1 FROM tab2
----
-1173
1654712
-3080
4456448
-3886
7171875

query I rowsort
SELECT ALL - col2 + - 39 FROM tab2 AS cor0
----
-62
-79
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9414
SELECT - ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9414
SELECT - ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * - 18 * + 37 AS col2 FROM tab0 AS cor0
----
-57942
-64602
-9990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9416
SELECT - - CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9416
SELECT - - CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT ALL - MAX( - - col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL - MAX ( - - col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - 97 + 24 * + + 47 col0 FROM tab2
----
1082
1098
1108

query III rowsort
SELECT * FROM tab0 WHERE col2 NOT BETWEEN - 2 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 19 * - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT DISTINCT COUNT( * ) - + SUM( - 21 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9422
SELECT DISTINCT COUNT ( * ) - + SUM ( - 21 ) AS col2 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT COUNT( * ) - - 43 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-9423
SELECT COUNT ( * ) - - 43 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT DISTINCT - ( + COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9424
SELECT DISTINCT - ( + COUNT ( * ) ) FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9425
SELECT + + CAST( - - COUNT( - col1 ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9425
SELECT + + CAST ( - - COUNT ( - col1 ) AS INTEGER ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - - col0 * - - 67 AS col0 FROM tab0 AS cor0
----
1005
5829
6499

query I rowsort
SELECT DISTINCT + 99 * + 87 AS col2 FROM tab2 AS cor0
----
8613

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT ALL + - 9 * + - MAX( + 30 ) FROM tab1 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL + - 9 * + - MAX ( + 30 ) FROM tab1 AS cor0
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9429
SELECT - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 ) <= col2 + - col2 / - col0 * + col2
----

query I rowsort
SELECT ( 16 ) AS col1 FROM tab2
----
16
16
16

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9432
SELECT * FROM tab2 WHERE NOT + col0 + + 63 + CAST( col2 AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9432
SELECT * FROM tab2 WHERE NOT + col0 + + 63 + CAST ( col2 AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9433
SELECT ALL - + CAST( + 86 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL - + CAST ( + 86 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-86
-86
-86

query I rowsort
SELECT + 59 * - + col1 FROM tab2 AS cor0
----
-3009
-3953
-4543

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL < col1
----

query I rowsort
SELECT - + 24 AS col2 FROM tab1 AS cor0
----
-24
-24
-24

query I rowsort
SELECT ALL - - 12 + - col2 AS col1 FROM tab1 AS cor0
----
-47
-56
-84

query I rowsort
SELECT ALL - + 49 FROM tab2 AS cor0
----
-49
-49
-49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 41 AS col0 FROM tab1 WHERE NOT ( NULL <= - col2 * - 9 * + ( 92 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9441
SELECT col1 DIV ( col2 ) AS col0 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9441
SELECT col1 / ( col2 ) AS col0 FROM tab2
----
1
1
2

query I rowsort
SELECT ( + col0 ) AS col1 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9443
SELECT + 54 + - + AVG ( ALL CAST( NULL AS SIGNED ) ) + - 73 + MAX( DISTINCT + 57 ) / 79 * - - 71 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9443
SELECT + 54 + - + AVG ( ALL CAST ( NULL AS INTEGER ) ) + - 73 + MAX ( DISTINCT + 57 ) / 79 * - - 71 AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9444
SELECT 11 DIV col2 + - col2 * + ( + + 13 ) + ( - + 98 ) col0 FROM tab0
----
-1385
-227
-709

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9444
SELECT 11 / col2 + - col2 * + ( + + 13 ) + ( - + 98 ) col0 FROM tab0
----
-1385
-227
-709

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 <> + + col0 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT DISTINCT + SUM( - 9 ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9446
SELECT DISTINCT + SUM ( - 9 ) FROM tab1 AS cor0
----
-27

query I rowsort
SELECT DISTINCT + 85 + - 69 + + - 18 * + col1 + - col1 FROM tab1 AS cor0
----
-250
-79
-877

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT + ( + + COUNT( + + col1 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9448
SELECT + ( + + COUNT ( + + col1 ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE + - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9449
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE + - col2 IS NULL
----
0

query I rowsort
SELECT 18 * + + col2 FROM tab1
----
1062
1224
1728

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL < - 95
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9453
SELECT ALL col1 DIV + 49 * + 50 + - ( + col0 ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL col1 / + 49 * + 50 + - ( + col0 ) FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 69 > + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT ALL + ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT ( ( + 64 IS NULL ) )
----
-3

skipif mysql # not compatible
query I rowsort label-9455
SELECT ALL + ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT ( ( + 64 IS NULL ) )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT ALL - SUM( DISTINCT + col2 ) + + 64 AS col2 FROM tab0 cor0
----
-92

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL - SUM ( DISTINCT + col2 ) + + 64 AS col2 FROM tab0 cor0
----
-92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT ALL - + col2 + + col1 * 12 * + col2 FROM tab0 AS cor0
----
1089
2510
45637

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT 52 + - COUNT( * ) AS col2 FROM tab1 cor0
----
49

skipif mysql # not compatible
query I rowsort label-9459
SELECT 52 + - COUNT ( * ) AS col2 FROM tab1 cor0
----
49

query I rowsort
SELECT ALL col0 * + 70 * - col1 + - 69 AS col2 FROM tab2 AS cor0
----
-164289
-345029
-351819

query I rowsort
SELECT DISTINCT + + 32 * + col1 + + col1 + ( col1 ) + + + col0 * + + col2 FROM tab1 cor0
----
5185
5372
7786

query I rowsort
SELECT DISTINCT 94 * + col2 * col0 AS col1 FROM tab0
----
66270
81780
902682

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT ( MIN( DISTINCT 53 ) ) AS col2 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-9463
SELECT ( MIN ( DISTINCT 53 ) ) AS col2 FROM tab2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT + COUNT( * ) * + MIN( col1 ) AS col0 FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-9464
SELECT + COUNT ( * ) * + MIN ( col1 ) AS col0 FROM tab2
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT - COUNT( * ) + 8 FROM tab1 WHERE NOT ( + ( + col0 ) ) IS NOT NULL
----
8

skipif mysql # not compatible
query I rowsort label-9465
SELECT - COUNT ( * ) + 8 FROM tab1 WHERE NOT ( + ( + col0 ) ) IS NOT NULL
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT ALL - SUM( ALL - 87 ) FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL - SUM ( ALL - 87 ) FROM tab2
----
261

query I rowsort
SELECT ALL + ( + - col0 ) AS col1 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9468
SELECT ALL + CAST( NULL AS SIGNED ) * + + col1 * col1 * + 97 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9468
SELECT ALL + CAST ( NULL AS INTEGER ) * + + col1 * col1 * + 97 col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT DISTINCT MIN( ALL - 19 ) FROM tab2 cor0
----
-19

skipif mysql # not compatible
query I rowsort label-9469
SELECT DISTINCT MIN ( ALL - 19 ) FROM tab2 cor0
----
-19

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND - 0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9471
SELECT + + col1 DIV + + 27 FROM tab2 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-9471
SELECT + + col1 / + + 27 FROM tab2 AS cor0
----
1
2
2

query II rowsort
SELECT DISTINCT + col2 * + col1 * - col0 * col0 AS col1, col0 * - col1 AS col1 FROM tab0 AS cor0
----
-1589490
-1827
-856575
-1215
-931491
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9473
SELECT ALL - col1 DIV - 8 + 24 AS col2 FROM tab2 AS cor0
----
30
32
33

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL - col1 / - 8 + 24 AS col2 FROM tab2 AS cor0
----
30
32
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9474
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - col1 * + ( col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9474
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - col1 * + ( col1 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT DISTINCT + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9475
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT ALL + col2 + 76 AS col0 FROM tab0 cor0
----
123
175
86

onlyif mysql # DIV for integer division: 
query I rowsort label-9477
SELECT DISTINCT - 21 DIV 90 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9477
SELECT DISTINCT - 21 / 90 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9478
SELECT ALL 61 + + - ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL 61 + + - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT - 28 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-9479
SELECT - 28 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-25

query I rowsort
SELECT + ( 61 ) + 6 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col1 + col2 + col0, - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9481
SELECT DISTINCT + CAST( MIN( ALL - col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT + CAST ( MIN ( ALL - col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT - col0 + + 96 FROM tab0 cor0
----
-1
81
9

query I rowsort
SELECT DISTINCT + col2 + + ( ( + 10 ) ) FROM tab2 cor0
----
33
50
68

query I rowsort
SELECT ALL - col0 * + + 55 AS col0 FROM tab1 AS cor0
----
-2805
-4675
-5005

query I rowsort
SELECT + col1 + col0 * - + ( ( - + 94 ) ) * + 8 FROM tab1 AS cor0
----
38366
63925
68479

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT - - 28 + - + COUNT( * ) col0 FROM tab1 cor0
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9486
SELECT - - 28 + - + COUNT ( * ) col0 FROM tab1 cor0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-9487
SELECT ALL - 48 DIV + - col2 AS col2 FROM tab0 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL - 48 / + - col2 AS col2 FROM tab0 AS cor0
----
0
1
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9488
SELECT ( - 31 ) DIV 84 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9488
SELECT ( - 31 ) / 84 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9489
SELECT ALL CAST( COUNT( * ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9490
SELECT DISTINCT + SUM( ALL CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9490
SELECT DISTINCT + SUM ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT ALL SUM( ALL - col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-9491
SELECT ALL SUM ( ALL - col0 ) FROM tab0
----
-199

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT - - col2 * ( + col2 ) * - - col0 FROM tab0 AS cor0
----
33135
8700
950697

onlyif mysql # DIV for integer division: 
query I rowsort label-9494
SELECT DISTINCT - col0 + 97 DIV + 25 col1 FROM tab0 AS cor0
----
-12
-84
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9494
SELECT DISTINCT - col0 + 97 / + 25 col1 FROM tab0 AS cor0
----
-12
-84
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-9495
SELECT ALL - - 39 DIV - 34 + - + 90 AS col1 FROM tab2 AS cor0
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-9495
SELECT ALL - - 39 / - 34 + - + 90 AS col1 FROM tab2 AS cor0
----
-91
-91
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 col2 FROM tab1
----
-94

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT 22 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT + COUNT( - - 75 ) * MIN( - col1 ) AS col1 FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-9498
SELECT + COUNT ( - - 75 ) * MIN ( - col1 ) AS col1 FROM tab2 AS cor0
----
-231

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT + + ( MIN( DISTINCT col1 ) ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9500
SELECT + + ( MIN ( DISTINCT col1 ) ) FROM tab1 AS cor0
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-9501
SELECT - col1 AS col2, + 17 DIV - - 10 col0 FROM tab1
----
-14
1
-47
1
-5
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9501
SELECT - col1 AS col2, + 17 / - - 10 col0 FROM tab1
----
-14
1
-47
1
-5
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= - - ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col2, - col0 * 84 + - col0 col0 FROM tab1
----
59
-7225
68
-7735
96
-4335

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT ALL MAX( + col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-9504
SELECT ALL MAX ( + col1 ) AS col0 FROM tab1
----
47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9506
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0, tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT DISTINCT SUM( col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-9507
SELECT DISTINCT SUM ( col1 ) FROM tab0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 55, + col2 col2 FROM tab2
----
55
23
55
40
55
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT - SUM( + col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-9509
SELECT - SUM ( + col2 ) FROM tab0
----
-156

query II rowsort
SELECT - col1 AS col1, - col1 FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

query I rowsort
SELECT + col0 / - 27 * col1 + - 77 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT + 95 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT ALL + - COUNT( * ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9513
SELECT ALL + - COUNT ( * ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT ALL - col2 - - col2 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT - COUNT( * ) + + 49 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-9515
SELECT - COUNT ( * ) + + 49 FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9516
SELECT + ( + CAST( - 44 AS SIGNED ) ) DIV + col2 + - col2 AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9516
SELECT + ( + CAST ( - 44 AS INTEGER ) ) / + col2 + - col2 AS col2 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT ALL - COUNT( * ) AS col1 FROM tab1 WHERE ( col0 + + col1 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 WHERE ( col0 + + col1 ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT COUNT( ALL ( - col2 ) ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9518
SELECT COUNT ( ALL ( - col2 ) ) col2 FROM tab0
----
3

query I rowsort
SELECT + col2 FROM tab2 WHERE col1 * col0 NOT BETWEEN 85 + - col2 / col0 AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL <> ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9521
SELECT DISTINCT col0 * 36 + + col0 DIV col2 AS col2 FROM tab1
----
1836
3061
3277

skipif mysql # not compatible
query I rowsort label-9521
SELECT DISTINCT col0 * 36 + + col0 / col2 AS col2 FROM tab1
----
1836
3061
3277

query I rowsort
SELECT - 93 * ( col2 * ( 2 / col1 ) ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 * col0 col0 FROM tab0
----
3219
3589
555

query I rowsort
SELECT DISTINCT + col0 * - 99 AS col1 FROM tab2
----
-4554
-6336
-7425

query I rowsort
SELECT + 26 - + col0 AS col1 FROM tab2
----
-20
-38
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9526
SELECT ALL - 46 FROM tab1 WHERE NOT - CAST( 24 AS SIGNED ) NOT BETWEEN 81 AND ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-9526
SELECT ALL - 46 FROM tab1 WHERE NOT - CAST ( 24 AS INTEGER ) NOT BETWEEN 81 AND ( + col1 )
----

query I rowsort
SELECT ALL - col2 - 91 AS col2 FROM tab1
----
-150
-159
-187

query I rowsort
SELECT DISTINCT 88 + 71 AS col0 FROM tab0
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9529
SELECT CAST( + col2 AS SIGNED ) * - col1 FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-9529
SELECT CAST ( + col2 AS INTEGER ) * - col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT DISTINCT + SUM( col0 ) - COUNT( * ) AS col2 FROM tab1
----
224

skipif mysql # not compatible
query I rowsort label-9530
SELECT DISTINCT + SUM ( col0 ) - COUNT ( * ) AS col2 FROM tab1
----
224

query I rowsort
SELECT col2 * - 50 FROM tab2
----
-1150
-2000
-2900

query I rowsort
SELECT ALL 12 - col1 FROM tab2
----
-39
-55
-65

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT COUNT( * ) * 7 col0 FROM tab1
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9534
SELECT COUNT ( * ) * 7 col0 FROM tab1
----
21

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - ( col0 ) ) = NULL
----

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT ( + col0 ) + 10 <> col2
----

query I rowsort
SELECT 67 * - 14 AS col2 FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT ALL col1 * 5 FROM tab0 AS cor0
----
105
405
5

query I rowsort
SELECT 44 FROM tab2 AS cor0 WHERE col0 * + 61 IN ( + col2 )
----

query I rowsort
SELECT DISTINCT col0 - - col0 AS col0 FROM tab0 cor0
----
174
194
30

query I rowsort
SELECT ALL + 53 - col2 * + col1 FROM tab2 AS cor0
----
-1120
-3027
-3833

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT DISTINCT + SUM( DISTINCT col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9543
SELECT DISTINCT + SUM ( DISTINCT col2 ) FROM tab1
----
223

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 + col2 NOT IN ( + col2 / + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 92 ) BETWEEN col1 AND + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT COUNT( * ) + - 84 FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----
-84

skipif mysql # not compatible
query I rowsort label-9546
SELECT COUNT ( * ) + - 84 FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9547
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9548
SELECT ALL - - ( + col0 ) DIV + col0 AS col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL - - ( + col0 ) / + col0 AS col2 FROM tab0 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 97 col1 FROM tab2 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT - 73 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-9550
SELECT - 73 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT ALL - MIN( - 8 ) AS col0 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-9551
SELECT ALL - MIN ( - 8 ) AS col0 FROM tab0 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT MIN( DISTINCT - 96 ) AS col1 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-9552
SELECT MIN ( DISTINCT - 96 ) AS col1 FROM tab0
----
-96

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > col2 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9555
SELECT DISTINCT CAST( + + 95 AS SIGNED ) AS col0 FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-9555
SELECT DISTINCT CAST ( + + 95 AS INTEGER ) AS col0 FROM tab2
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9556
SELECT DISTINCT + CAST( + - col0 AS SIGNED ) AS col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9556
SELECT DISTINCT + CAST ( + - col0 AS INTEGER ) AS col2 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT COUNT( * ) * - + 8 AS col1 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-9557
SELECT COUNT ( * ) * - + 8 AS col1 FROM tab2
----
-24

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + ( col1 ) ) > NULL OR - 25 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + 18 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9560
SELECT CAST( 1 AS SIGNED ) AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9560
SELECT CAST ( 1 AS INTEGER ) AS col0 FROM tab2
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT + COUNT( ALL - 47 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9563
SELECT + COUNT ( ALL - 47 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT COUNT( * ) * - 44 FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-9564
SELECT COUNT ( * ) * - 44 FROM tab1
----
-132

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 7 / - 41 AS col1 FROM tab1 WHERE ( 54 ) < - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT DISTINCT SUM( ALL col0 ) * + MAX( - 69 ) AS col2 FROM tab1
----
-15663

skipif mysql # not compatible
query I rowsort label-9567
SELECT DISTINCT SUM ( ALL col0 ) * + MAX ( - 69 ) AS col2 FROM tab1
----
-15663

query I rowsort
SELECT ALL - 42 + - col0 AS col1 FROM tab0
----
-129
-139
-57

query I rowsort
SELECT DISTINCT + col1 + + + col0 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT DISTINCT + 2 * + 59 + + - col2 + col2 * 39 * col2 + + col2 AS col1 FROM tab2 AS cor0
----
131314
20749
62518

query I rowsort
SELECT ALL + 62 + col0 AS col2 FROM tab2 AS cor0
----
108
126
137

onlyif mysql # DIV for integer division: 
query I rowsort label-9572
SELECT + col0 * - col2 DIV + col2 + - 82 * 31 + + col0 FROM tab2 cor0
----
-2542
-2542
-2542

skipif mysql # not compatible
query I rowsort label-9572
SELECT + col0 * - col2 / + col2 + - 82 * 31 + + col0 FROM tab2 cor0
----
-2542
-2542
-2542

query I rowsort
SELECT DISTINCT - col1 + + + col2 AS col2 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9574
SELECT COUNT( * ) col1 FROM tab1 AS cor0 WHERE ( - CAST( NULL AS SIGNED ) * - col1 ) IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9574
SELECT COUNT ( * ) col1 FROM tab1 AS cor0 WHERE ( - CAST ( NULL AS INTEGER ) * - col1 ) IS NULL
----
3

query I rowsort
SELECT ALL - col1 + col1 + + - 68 FROM tab1 cor0
----
-68
-68
-68

query I rowsort
SELECT ALL col1 + - 10 * - col1 + + + col2 AS col2 FROM tab2
----
584
795
887

query I rowsort
SELECT DISTINCT + 20 * + 13 FROM tab1
----
260

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT ALL SUM( DISTINCT 73 ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-9578
SELECT ALL SUM ( DISTINCT 73 ) FROM tab0
----
73

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9579
SELECT ALL * FROM tab2 WHERE NOT ( - CAST( col0 AS DECIMAL ) ) <> - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9579
SELECT ALL * FROM tab2 WHERE NOT ( - CAST ( col0 AS REAL ) ) <> - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT + COUNT( * ) * 3 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9580
SELECT + COUNT ( * ) * 3 FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9581
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9581
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 + + ( + + col0 ) AS col0 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT DISTINCT - + 8 AS col2 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9584
SELECT * FROM tab2 WHERE + col1 + - CAST( + - col0 AS SIGNED ) + - ( col1 ) * 71 * col0 BETWEEN + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9584
SELECT * FROM tab2 WHERE + col1 + - CAST ( + - col0 AS INTEGER ) + - ( col1 ) * 71 * col0 BETWEEN + col2 AND NULL
----

query I rowsort
SELECT ALL col2 - col1 * + - col2 * - 2 AS col0 FROM tab2
----
-2323
-6120
-7714

onlyif mysql # DIV for integer division: 
query I rowsort label-9586
SELECT DISTINCT - col0 DIV 12 FROM tab1
----
-4
-7

skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT - col0 / 12 FROM tab1
----
-4
-7

query I rowsort
SELECT 77 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
77
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9588
SELECT * FROM tab2 AS cor0 WHERE NOT ( 7 * - + col2 + - col2 + + 25 * - col1 ) < NULL AND - 30 NOT BETWEEN NULL AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9588
SELECT * FROM tab2 AS cor0 WHERE NOT ( 7 * - + col2 + - col2 + + 25 * - col1 ) < NULL AND - 30 NOT BETWEEN NULL AND ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9589
SELECT 50 DIV + - COUNT( * ) - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-9589
SELECT 50 / + - COUNT ( * ) - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-19

query I rowsort
SELECT - + col1 + + col2 AS col1 FROM tab1 AS cor0 WHERE NOT col2 - + - 43 IS NULL
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT - COUNT( * ) * + - 33 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9591
SELECT - COUNT ( * ) * + - 33 FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9592
SELECT ALL col1 * + CAST( - col2 AS SIGNED ) AS col0 FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-9592
SELECT ALL col1 * + CAST ( - col2 AS INTEGER ) AS col0 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT ALL COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9593
SELECT ALL COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT COUNT( 48 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9594
SELECT COUNT ( 48 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 col1 FROM tab2 WHERE NOT col0 + 30 IN ( + - 65 )
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT - COUNT( DISTINCT - 98 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9596
SELECT - COUNT ( DISTINCT - 98 ) FROM tab2
----
-1

query II rowsort
SELECT DISTINCT col1, - 40 * - col0 FROM tab1
----
14
2040
47
3640
5
3400

query I rowsort
SELECT 9 + + col0 + + col1 * + col2 + - col1 + col0 FROM tab2 AS cor0
----
1223
3140
3978

onlyif mysql # DIV for integer division: 
query I rowsort label-9599
SELECT ALL + col0 DIV - col2 + - + col2 FROM tab1 AS cor0
----
-60
-69
-96

skipif mysql # not compatible
query I rowsort label-9599
SELECT ALL + col0 / - col2 + - + col2 FROM tab1 AS cor0
----
-60
-69
-96

query II rowsort
SELECT DISTINCT col0, - col0 AS col2 FROM tab0 cor0
----
15
-15
87
-87
97
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 BETWEEN NULL AND ( 12 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9602
SELECT ALL + CAST( - + col0 AS DECIMAL ) AS col0 FROM tab2 WHERE NOT NULL > - + 40
----

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL + CAST ( - + col0 AS REAL ) AS col0 FROM tab2 WHERE NOT NULL > - + 40
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9603
SELECT ALL col0 DIV col0 + - 48 FROM tab1
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL col0 / col0 + - 48 FROM tab1
----
-47
-47
-47

query I rowsort
SELECT ALL - col2 * - 94 + + + col0 - + col0 * + 38 AS col0 FROM tab1 AS cor0
----
2401
3025
7137

query I rowsort
SELECT + - 40 AS col1 FROM tab2 AS cor0
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT ALL - COUNT( * ) * + 65 + - 99 AS col0 FROM tab1 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-9606
SELECT ALL - COUNT ( * ) * + 65 + - 99 AS col0 FROM tab1 AS cor0
----
-294

query II rowsort
SELECT DISTINCT - 76 + - 20 + + - col2 * - 74 * + col2 AS col0, + col1 FROM tab2 AS cor0
----
118304
77
248840
67
39050
51

query I rowsort
SELECT col2 + + col1 - 74 - + col0 FROM tab1
----
-15
-50
-95

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 - - - 94 * - - col2 + + col2 FROM tab2 WHERE NOT + + col2 BETWEEN col0 AND - 11
----
-2116
-3680
-5336

query III rowsort
SELECT * FROM tab2 WHERE + col1 IN ( - col1 )
----

query I rowsort
SELECT ALL 35 * col1 AS col1 FROM tab2
----
1785
2345
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT ALL ( + + COUNT( * ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL ( + + COUNT ( * ) ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT DISTINCT MAX( DISTINCT col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-9614
SELECT DISTINCT MAX ( DISTINCT col2 ) AS col1 FROM tab0
----
99

query I rowsort
SELECT col0 * col1 * + + col0 AS col0 FROM tab1
----
36125
36414
389207

query I rowsort
SELECT DISTINCT + col1 * + - col1 + - - 92 * - col0 * - + col1 FROM tab1 AS cor0
----
39075
391275
65492

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 IN ( - col2 - + - col1 + + 78 )
----

query I rowsort
SELECT DISTINCT + 61 * + - col1 + + 18 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9619
SELECT + col1, - ( + CAST( - col2 AS SIGNED ) ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + - col1 AND - col0 * + - col0
----

skipif mysql # not compatible
query II rowsort label-9619
SELECT + col1, - ( + CAST ( - col2 AS INTEGER ) ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + - col1 AND - col0 * + - col0
----

query I rowsort
SELECT ALL col0 - - 92 FROM tab2 AS cor0 WHERE 32 <> ( col1 * 58 )
----
138
156
167

query I rowsort
SELECT + 67 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * col0 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( col2 * + col0 + + 39 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9625
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9626
SELECT ALL + col1 * + 29 - - - 92 + 99 - - 73 DIV CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
1487
1951
2240

skipif mysql # not compatible
query I rowsort label-9626
SELECT ALL + col1 * + 29 - - - 92 + 99 - - 73 / CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
1487
1951
2240

query I rowsort
SELECT + col0 * - - col1 * + + 35 AS col0 FROM tab0 AS cor0
----
3395
42525
63945

query I rowsort
SELECT - + ( + col1 ) * + 91 AS col1 FROM tab0 cor0
----
-1911
-7371
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9629
SELECT DISTINCT col1 * + + ( - - col1 ) + + col2 + + - 76 + + col1 + + + col1 + + 42 + CAST( NULL AS SIGNED ) / + col1 * col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9629
SELECT DISTINCT col1 * + + ( - - col1 ) + + col2 + + - 76 + + col1 + + + col1 + + 42 + CAST ( NULL AS INTEGER ) / + col1 * col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9630
SELECT DISTINCT 8 DIV 60 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9630
SELECT DISTINCT 8 / 60 col1 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9631
SELECT DISTINCT + col1 DIV + 8 FROM tab2
----
6
8
9

skipif mysql # not compatible
query I rowsort label-9631
SELECT DISTINCT + col1 / + 8 FROM tab2
----
6
8
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT ALL ( + + COUNT( * ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL ( + + COUNT ( * ) ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT DISTINCT COUNT( - col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9633
SELECT DISTINCT COUNT ( - col1 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT col2 FROM tab0 WHERE NOT NULL NOT BETWEEN - 38 AND 56 AND NOT ( NULL ) BETWEEN NULL AND - ( - - 20 )
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 * + + 0 * col2 - col1 IN ( + col1 )
----

query I rowsort
SELECT - - 77 + + col1 * + col2 AS col2 FROM tab0 AS cor0
----
176
287
3884

query I rowsort
SELECT - 57 AS col0 FROM tab0 cor0 WHERE + 8 + col0 BETWEEN + col1 AND - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9638
SELECT ALL - + 74 + COUNT( * ) DIV + 14 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-9638
SELECT ALL - + 74 + COUNT ( * ) / + 14 FROM tab1 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT COUNT( * ) + - - 42 col1 FROM tab2 cor0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9639
SELECT COUNT ( * ) + - - 42 col1 FROM tab2 cor0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-9640
SELECT ALL 33 + col1 * - 17 + + ( - col2 ) DIV - col0 FROM tab1 AS cor0
----
-204
-52
-766

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL 33 + col1 * - 17 + + ( - col2 ) / - col0 FROM tab1 AS cor0
----
-204
-52
-766

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9641
SELECT + col0 AS col1, col1 * + col1 / - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-9641
SELECT + col0 AS col1, col1 * + col1 / - CAST ( NULL AS REAL ) FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

query II rowsort
SELECT 31, + 49 AS col2 FROM tab2 AS cor0
----
31
49
31
49
31
49

query I rowsort
SELECT ALL - 4 + 21 FROM tab2 AS cor0
----
17
17
17

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - 47, + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE 86 IS NULL
----

query I rowsort
SELECT ALL - 98 - 25 + - 87 AS col1 FROM tab2
----
-210
-210
-210

onlyif mysql # DIV for integer division: 
query I rowsort label-9647
SELECT - col1 DIV - ( + + col2 ) * + - col1 - ( + col2 ) AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9647
SELECT - col1 / - ( + + col2 ) * + - col1 - ( + col2 ) AS col2 FROM tab1
----
-59
-68
-96

query II rowsort
SELECT col2 AS col0, col0 FROM tab0 AS cor0 WHERE NOT NULL <= col2 * + + col1 * + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 14 * - col0 col1 FROM tab1
----
1190
1274
714

query III rowsort
SELECT * FROM tab0 WHERE NOT 17 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9651
SELECT + ( + - 50 ) * - 39 AS col0, - COUNT( * ) AS col2 FROM tab2 AS cor0
----
1950
-3

skipif mysql # not compatible
query II rowsort label-9651
SELECT + ( + - 50 ) * - 39 AS col0, - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
1950
-3

query I rowsort
SELECT col0 * + - 31 FROM tab2 AS cor0
----
-1426
-1984
-2325

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 * + - col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT DISTINCT col1 * + 60 FROM tab2 AS cor0
----
3060
4020
4620

onlyif mysql # DIV for integer division: 
query II rowsort label-9656
SELECT + 71 DIV col0, col2 DIV - col1 * + 26 + - 88 + - 91 AS col1 FROM tab2
----
0
-179
1
-179
1
-179

skipif mysql # not compatible
query II rowsort label-9656
SELECT + 71 / col0, col2 / - col1 * + 26 + - 88 + - 91 AS col1 FROM tab2
----
0
-179
1
-179
1
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT DISTINCT - MIN( ALL - ( + col2 ) ) col1 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9657
SELECT DISTINCT - MIN ( ALL - ( + col2 ) ) col1 FROM tab2
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 col2 FROM tab1
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT ALL - SUM( DISTINCT + 46 ) FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL - SUM ( DISTINCT + 46 ) FROM tab1
----
-46

query I rowsort
SELECT DISTINCT + col2 + + + col1 - - col1 * col0 FROM tab0
----
1343
1858
197

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * 39 >= - col2
----

query II rowsort
SELECT col1 + + col2 AS col0, - col2 AS col1 FROM tab2
----
117
-40
125
-58
74
-23

query I rowsort
SELECT 1 + + - col0 FROM tab0 AS cor0
----
-14
-86
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-9664
SELECT DISTINCT - COUNT( * ), + 24 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
24

skipif mysql # not compatible
query II rowsort label-9664
SELECT DISTINCT - COUNT ( * ), + 24 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
24

query III rowsort
SELECT * FROM tab0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT + COUNT( * ) * 15 AS col0 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-9666
SELECT + COUNT ( * ) * 15 AS col0 FROM tab2
----
45

query I rowsort
SELECT - col2 * + 94 FROM tab0
----
-4418
-9306
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT DISTINCT + COUNT( ALL col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9668
SELECT DISTINCT + COUNT ( ALL col1 ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 21 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN + ( + + col0 ) * + col2 + col0 AND - 58 + - 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT - COUNT( ALL + col1 ) - - - ( + - COUNT( * ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9671
SELECT - COUNT ( ALL + col1 ) - - - ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT ALL + + ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9672
SELECT ALL + + ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT COUNT( * ) - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9673
SELECT COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * - col1 >= + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > + col1
----

query I rowsort
SELECT - + 51 - + + col1 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9678
SELECT ALL + col2 - - ( - CAST( NULL AS SIGNED ) ) + + + 96 + - 77 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL + col2 - - ( - CAST ( NULL AS INTEGER ) ) + + + 96 + - 77 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= + col0 + - col0
----

query I rowsort
SELECT ALL 96 + + col0 + + 92 FROM tab2
----
234
252
263

query I rowsort
SELECT DISTINCT 14 - - + 37 * + col2 FROM tab2
----
1494
2160
865

query II rowsort
SELECT - col0 AS col2, - col1 FROM tab2
----
-46
-51
-64
-77
-75
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT DISTINCT - SUM( DISTINCT col2 ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-9683
SELECT DISTINCT - SUM ( DISTINCT col2 ) AS col0 FROM tab0
----
-156

query I rowsort
SELECT - 72 + - - col0 FROM tab0 WHERE NOT - + 57 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT - col0 AS col1, col2 AS col0 FROM tab0
----
-15
47
-87
10
-97
99

query II rowsort
SELECT 87 AS col0, col2 * + - ( + 95 ) + - ( + - 28 ) AS col2 FROM tab2
----
87
-2157
87
-3772
87
-5482

query I rowsort
SELECT DISTINCT 32 AS col2 FROM tab2 WHERE NOT + 52 * col2 + + col1 - - col1 IS NOT NULL
----

query I rowsort
SELECT + - col1 * + + 66 AS col0 FROM tab1 AS cor0
----
-3102
-330
-924

query II rowsort
SELECT ALL - 91, + col1 AS col0 FROM tab1 AS cor0
----
-91
14
-91
47
-91
5

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT - col0 * - + 6 * + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT DISTINCT ( - - COUNT( * ) ) * + 69 * + - 3 AS col2 FROM tab2 cor0
----
-621

skipif mysql # not compatible
query I rowsort label-9691
SELECT DISTINCT ( - - COUNT ( * ) ) * + 69 * + - 3 AS col2 FROM tab2 cor0
----
-621

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-9692
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT + SUM( - 69 ) AS col2 FROM tab1
----
-207

skipif mysql # not compatible
query I rowsort label-9693
SELECT + SUM ( - 69 ) AS col2 FROM tab1
----
-207

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT + COUNT( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9695
SELECT + COUNT ( DISTINCT - col2 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9696
SELECT ALL - 32 + + COUNT( ALL + col0 ) AS col2, COUNT( * ) FROM tab2 AS cor0
----
-29
3

skipif mysql # not compatible
query II rowsort label-9696
SELECT ALL - 32 + + COUNT ( ALL + col0 ) AS col2, COUNT ( * ) FROM tab2 AS cor0
----
-29
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT ( + COUNT( * ) ) AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9697
SELECT ( + COUNT ( * ) ) AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT - col0 + + 82 FROM tab0 AS cor0
----
-15
-5
67

query I rowsort
SELECT col1 * + 21 FROM tab1
----
105
294
987

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT ALL ( + - COUNT( * ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL ( + - COUNT ( * ) ) AS col1 FROM tab0
----
-3

query II rowsort
SELECT col2, 6 FROM tab0
----
10
6
47
6
99
6

query III rowsort
SELECT * FROM tab2 WHERE ( NOT NULL <= - 55 + + ( + col0 ) )
----

query I rowsort
SELECT DISTINCT + - 22 + + col1 FROM tab2 AS cor0
----
29
45
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT - MIN( - col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9704
SELECT - MIN ( - col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT DISTINCT - 52 + - col0 * + - 90 FROM tab1
----
4538
7598
8138

query I rowsort
SELECT + - 38 * - - 34 FROM tab1 AS cor0
----
-1292
-1292
-1292

onlyif mysql # DIV for integer division: 
query I rowsort label-9708
SELECT ALL 56 DIV + + 21 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT col1 IS NOT NULL )
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9708
SELECT ALL 56 / + + 21 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT col1 IS NOT NULL )
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 88 col0 FROM tab1 cor0
----
88
88
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9710
SELECT - + COUNT( * ) DIV - COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9710
SELECT - + COUNT ( * ) / - COUNT ( * ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT + MIN( ALL - 23 ) AS col0 FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9711
SELECT + MIN ( ALL - 23 ) AS col0 FROM tab0 AS cor0
----
-23

query I rowsort
SELECT DISTINCT 84 * + ( - col2 ) + col1 FROM tab2 AS cor0
----
-1881
-3283
-4805

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 87 - - + col2 * - col2 + + - ( + - 47 ) col2 FROM tab1 AS cor0
----
-3521
-4664
-9256

onlyif mysql # DIV for integer division: 
query I rowsort label-9714
SELECT col1 DIV col2 - col1 - + col2 FROM tab2 AS cor0
----
-116
-124
-72

skipif mysql # not compatible
query I rowsort label-9714
SELECT col1 / col2 - col1 - + col2 FROM tab2 AS cor0
----
-116
-124
-72

query I rowsort
SELECT col0 * + + 72 FROM tab1 WHERE NOT col1 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 90 NOT BETWEEN + col2 AND ( + + col0 * - ( - + col2 ) - 50 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9717
SELECT DISTINCT + col1 + col1 + + + col2 DIV 2 AS col0 FROM tab2 WHERE - + 12 IS NOT NULL
----
113
163
174

skipif mysql # not compatible
query I rowsort label-9717
SELECT DISTINCT + col1 + col1 + + + col2 / 2 AS col0 FROM tab2 WHERE - + 12 IS NOT NULL
----
113
163
174

query I rowsort
SELECT ALL 19 * 74 AS col0 FROM tab2
----
1406
1406
1406

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9719
SELECT + - col2 AS col2 FROM tab1 WHERE NOT + CAST( - - 63 AS DECIMAL ) / - col1 + - - col1 >= + - 15 * - col2 + 82 * + 27 * col1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9719
SELECT + - col2 AS col2 FROM tab1 WHERE NOT + CAST ( - - 63 AS REAL ) / - col1 + - - col1 >= + - 15 * - col2 + 82 * + 27 * col1
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> 23
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9721
SELECT COUNT( * ) AS col2, AVG ( CAST( NULL AS SIGNED ) ) FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9721
SELECT COUNT ( * ) AS col2, AVG ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT MIN( + - col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9722
SELECT MIN ( + - col2 ) FROM tab2
----
-58

query I rowsort
SELECT 87 * col1 AS col1 FROM tab2
----
4437
5829
6699

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9724
SELECT DISTINCT - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9724
SELECT DISTINCT - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT ALL + SUM( ALL + + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL + SUM ( ALL + + col0 ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT ( - - col2 ) FROM tab1
----
59
68
96

query II rowsort
SELECT ALL - 99 AS col0, - 82 + col0 + + col2 FROM tab2
----
-99
-13
-99
22
-99
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT - ( + COUNT( DISTINCT - col1 ) ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9728
SELECT - ( + COUNT ( DISTINCT - col1 ) ) col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + 15 FROM tab2 cor0
----
15
15
15

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( - col2 * + 42, col2 )
----

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT 2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9732
SELECT - - ( CAST( + - 14 AS SIGNED ) ) * 60 + - SUM( DISTINCT - 93 ) DIV ( + 34 ) FROM tab2 AS cor0
----
-838

skipif mysql # not compatible
query I rowsort label-9732
SELECT - - ( CAST ( + - 14 AS INTEGER ) ) * 60 + - SUM ( DISTINCT - 93 ) / ( + 34 ) FROM tab2 AS cor0
----
-838

query II rowsort
SELECT ALL col0, 84 FROM tab1 AS cor0
----
51
84
85
84
91
84

query I rowsort
SELECT - 98 + - - col1 + col0 FROM tab0
----
-2
0
10

query II rowsort
SELECT + 64 + col0 AS col1, - col2 + col1 + - col2 AS col1 FROM tab0
----
151
1
161
-197
79
-13

query II rowsort
SELECT col2 + - 98, col2 * + - 14 AS col2 FROM tab2
----
-40
-812
-58
-560
-75
-322

onlyif mysql # DIV for integer division: 
query II rowsort label-9737
SELECT + col1 + - col0 AS col1, + 59 DIV + col0 FROM tab1
----
-37
1
-44
0
-80
0

skipif mysql # not compatible
query II rowsort label-9737
SELECT + col1 + - col0 AS col1, + 59 / + col0 FROM tab1
----
-37
1
-44
0
-80
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9738
SELECT ALL 35 * - col2 + - col0 col2, CAST( + + col2 AS SIGNED ) AS col2 FROM tab2
----
-1464
40
-2105
58
-851
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9738
SELECT ALL 35 * - col2 + - col0 col2, CAST ( + + col2 AS INTEGER ) AS col2 FROM tab2
----
-1464
40
-2105
58
-851
23

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 > - col2
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT - 20 * - col2 FROM tab2
----
1160
460
800

query II rowsort
SELECT ALL - 92 - + col1, - col2 AS col1 FROM tab2 AS cor0
----
-143
-23
-159
-58
-169
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - col1 col1 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9743
SELECT - - SUM( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 WHERE NULL <= col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9743
SELECT - - SUM ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 WHERE NULL <= col2
----
NULL

query I rowsort
SELECT 1 - + - col2 FROM tab0
----
100
11
48

query I rowsort
SELECT DISTINCT + col0 * - 36 FROM tab1 AS cor0
----
-1836
-3060
-3276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9746
SELECT - COUNT( * ) DIV + - ( 78 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9746
SELECT - COUNT ( * ) / + - ( 78 ) AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9747
SELECT ALL col1 * CAST( + col2 AS SIGNED ) * + col0, 26 AS col0 FROM tab1
----
25075
26
290836
26
68544
26

skipif mysql # not compatible
query II rowsort label-9747
SELECT ALL col1 * CAST ( + col2 AS INTEGER ) * + col0, 26 AS col0 FROM tab1
----
25075
26
290836
26
68544
26

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < 63
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 31 * - 20 / + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT ALL 16 * + + COUNT( * ) AS col2 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-9750
SELECT ALL 16 * + + COUNT ( * ) AS col2 FROM tab1
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-9751
SELECT DISTINCT col1 DIV - + col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9751
SELECT DISTINCT col1 / - + col2 FROM tab0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT COUNT( * ) * - + 79 FROM tab0
----
-237

skipif mysql # not compatible
query I rowsort label-9752
SELECT COUNT ( * ) * - + 79 FROM tab0
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT ALL - + ( + COUNT( * ) ) FROM tab1 WHERE NOT - col1 - + col1 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL - + ( + COUNT ( * ) ) FROM tab1 WHERE NOT - col1 - + col1 <= NULL
----
0

query I rowsort
SELECT ALL + 87 * + - 55 FROM tab2 AS cor0
----
-4785
-4785
-4785

query I rowsort
SELECT ALL - + 49 AS col1 FROM tab2 AS cor0
----
-49
-49
-49

query I rowsort
SELECT DISTINCT + - col2 + + 94 * - col1 + - 82 AS col1 FROM tab0 AS cor0
----
-2066
-275
-7743

query II rowsort
SELECT DISTINCT col1, col0 AS col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query I rowsort
SELECT 25 + - col0 * - - col2 FROM tab1 AS cor0
----
-4871
-4990
-6163

query I rowsort
SELECT ALL + 31 * + ( 78 ) + + col1 + + - col0 - col2 + + 28 * + 32 - - - col1 * ( + col1 ) * + 15 * + 84 AS col1 FROM tab2 AS cor0
----
-3273964
-5652892
-7467253

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT ALL + + COUNT( DISTINCT + col0 ) * - MAX( DISTINCT 48 ) * + - COUNT( * ) FROM tab1 AS cor0
----
432

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL + + COUNT ( DISTINCT + col0 ) * - MAX ( DISTINCT 48 ) * + - COUNT ( * ) FROM tab1 AS cor0
----
432

query I rowsort
SELECT - 47 + + + 22 - - 0 + 79 * + ( + 26 ) AS col1 FROM tab2 AS cor0
----
2029
2029
2029

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT 61 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-9762
SELECT 61 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-9763
SELECT + + 7 AS col0, COUNT( * ) FROM tab0 AS cor0
----
7
3

skipif mysql # not compatible
query II rowsort label-9763
SELECT + + 7 AS col0, COUNT ( * ) FROM tab0 AS cor0
----
7
3

query II rowsort
SELECT col2, - 2 FROM tab2
----
23
-2
40
-2
58
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 36 AS col1, + col0 col1 FROM tab0
----
36
15
36
87
36
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9766
SELECT DISTINCT 47, COUNT( col1 ) AS col0 FROM tab2
----
47
3

skipif mysql # not compatible
query II rowsort label-9766
SELECT DISTINCT 47, COUNT ( col1 ) AS col0 FROM tab2
----
47
3

query I rowsort
SELECT ALL col0 * - 87 FROM tab2
----
-4002
-5568
-6525

query III rowsort
SELECT * FROM tab0 WHERE + 14 IN ( + - 30, 63 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT DISTINCT ( - COUNT( * ) ) * COUNT( * ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9769
SELECT DISTINCT ( - COUNT ( * ) ) * COUNT ( * ) AS col0 FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9770
SELECT DISTINCT 59 * 35 * - col0 * - col1 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9770
SELECT DISTINCT 59 * 35 * - col0 * - col1 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL 99 + - - 35 AS col0 FROM tab2 AS cor0
----
134
134
134

query I rowsort
SELECT col0 - - - 67 * - ( + col0 ) AS col2 FROM tab0 AS cor0
----
1020
5916
6596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9773
SELECT - 22 DIV - COUNT( * ) - + 79 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9773
SELECT - 22 / - COUNT ( * ) - + 79 FROM tab0 AS cor0
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-9774
SELECT ALL + col2 DIV - + col0 - - col1 + - col1 + + ( 0 ) FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL + col2 / - + col0 - - col1 + - col1 + + ( 0 ) FROM tab0 AS cor0
----
-1
-3
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9775
SELECT MAX( ALL - + 13 ) + - + 14 DIV - + COUNT( - col0 ) FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9775
SELECT MAX ( ALL - + 13 ) + - + 14 / - + COUNT ( - col0 ) FROM tab2 cor0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-9776
SELECT ALL + 52 * COUNT( * ) + + + 52 + + + 87 AS col1, - 61 AS col1 FROM tab0 AS cor0
----
295
-61

skipif mysql # not compatible
query II rowsort label-9776
SELECT ALL + 52 * COUNT ( * ) + + + 52 + + + 87 AS col1, - 61 AS col1 FROM tab0 AS cor0
----
295
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9777
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL >= CAST( NULL AS SIGNED ) / - 11
----
0

skipif mysql # not compatible
query I rowsort label-9777
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL >= CAST ( NULL AS INTEGER ) / - 11
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + - - 3 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + 85 FROM tab1 AS cor0 WHERE NOT + 17 IS NULL
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT - + MIN( DISTINCT + - col0 ) col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9780
SELECT - + MIN ( DISTINCT + - col0 ) col2 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT 70 * + COUNT( * ) FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-9781
SELECT 70 * + COUNT ( * ) FROM tab1 AS cor0
----
210

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9782
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-9782
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 16 + - + 86 * + - ( col1 ) - - - col1 >= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9784
SELECT DISTINCT 35 DIV - 75 * + 99 * 94 * SUM( DISTINCT 17 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9784
SELECT DISTINCT 35 / - 75 * + 99 * 94 * SUM ( DISTINCT 17 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL + 53 * + col1 AS col1 FROM tab2
----
2703
3551
4081

onlyif mysql # DIV for integer division: 
query I rowsort label-9787
SELECT + col2 DIV - 94 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9787
SELECT + col2 / - 94 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT + ( + + COUNT( * ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9788
SELECT + ( + + COUNT ( * ) ) AS col0 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + ( - + 83 ) FROM tab0
----
-83

query I rowsort
SELECT ALL + 0 + - 49 - col0 * + ( - + col1 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT - MIN( DISTINCT - col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-9791
SELECT - MIN ( DISTINCT - col2 ) FROM tab2
----
58

query I rowsort
SELECT 97 + - col2 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT + 80 * + + 14 * COUNT( * ) FROM tab2 AS cor0
----
3360

skipif mysql # not compatible
query I rowsort label-9793
SELECT + 80 * + + 14 * COUNT ( * ) FROM tab2 AS cor0
----
3360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9794
SELECT DISTINCT ( - 23 ) / + ( + + MIN( ALL CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9794
SELECT DISTINCT ( - 23 ) / + ( + + MIN ( ALL CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9795
SELECT COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9795
SELECT COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9796
SELECT DISTINCT col2 DIV + - col2 col1 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9796
SELECT DISTINCT col2 / + - col2 col1 FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9797
SELECT ALL col2 DIV - + col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9797
SELECT ALL col2 / - + col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 11 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
28

query I rowsort
SELECT ALL 3 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT ALL + + COUNT( ALL - col1 ) + + COUNT( * ) + ( + 50 ) AS col0 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-9801
SELECT ALL + + COUNT ( ALL - col1 ) + + COUNT ( * ) + ( + 50 ) AS col0 FROM tab2 AS cor0
----
56

query I rowsort
SELECT ALL + + 83 + - + 83 AS col0 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 + + + col1 col1 FROM tab1 AS cor0
----
13
4
46

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + 35 * - + 0 * col1 ) <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + ( - + col2 ) ) col1 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9806
SELECT ALL + 28 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL + 28 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IS NULL AND - col2 < + ( 94 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 29 + ( - col0 ) + + col2 FROM tab0
----
-48
31
61

query I rowsort
SELECT 37 + - + 31 + - ( + - 2 ) FROM tab1
----
8
8
8

query I rowsort
SELECT ALL 77 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 / 94 IS NULL
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT DISTINCT ( - + 26 ) + + - COUNT( * ) + - MIN( ALL - + col0 ) + - 93 - - - MIN( ALL 69 ) * ( - MAX( col2 ) ) AS col0 FROM tab2 AS cor0
----
3955

skipif mysql # not compatible
query I rowsort label-9811
SELECT DISTINCT ( - + 26 ) + + - COUNT ( * ) + - MIN ( ALL - + col0 ) + - 93 - - - MIN ( ALL 69 ) * ( - MAX ( col2 ) ) AS col0 FROM tab2 AS cor0
----
3955

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col1 + col2 * col2 + 7 * + - col2 ) <= NULL
----

query I rowsort
SELECT - col0 - + - col1 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9814
SELECT - 17 AS col1, - CAST( NULL AS DECIMAL ) - - COUNT( col2 ) FROM tab1
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-9814
SELECT - 17 AS col1, - CAST ( NULL AS REAL ) - - COUNT ( col2 ) FROM tab1
----
-17
NULL

query I rowsort
SELECT - col0 * + + col2 FROM tab2
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab2 WHERE NOT 58 <> NULL
----

query I rowsort
SELECT + col1 * + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT ALL - 90 AS col2 FROM tab0 cor0
----
-90
-90
-90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - ( + 36 ) + col2 ) IS NOT NULL
----

query I rowsort
SELECT col1 + 90 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT col0 * 7 FROM tab1
----
357
595
637

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * + 56 AS col0, - col0 + - col1 col1 FROM tab1
----
2856
-65
4760
-90
5096
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9823
SELECT DISTINCT CAST( + + AVG ( ALL - 92 ) AS SIGNED ) col1 FROM tab0
----
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9823
SELECT DISTINCT CAST ( + + AVG ( ALL - 92 ) AS INTEGER ) col1 FROM tab0
----
-92

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 67 > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9825
SELECT 69 DIV + col0, + col0 * + col1 AS col0 FROM tab1
----
0
425
0
4277
1
714

skipif mysql # not compatible
query II rowsort label-9825
SELECT 69 / + col0, + col0 * + col1 AS col0 FROM tab1
----
0
425
0
4277
1
714

query I rowsort
SELECT - + col1 AS col1 FROM tab2 WHERE NOT - 31 IS NOT NULL
----

query I rowsort
SELECT - col1 * + - 66 * col2 AS col2 FROM tab0
----
13860
251262
6534

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = + 53 * + - 64
----

query II rowsort
SELECT ALL 23 + + - col1 AS col1, + 3 AS col1 FROM tab0
----
-58
3
2
3
22
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9830
SELECT ALL * FROM tab2 WHERE NOT 9 * CAST( NULL AS DECIMAL ) BETWEEN NULL AND ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-9830
SELECT ALL * FROM tab2 WHERE NOT 9 * CAST ( NULL AS REAL ) BETWEEN NULL AND ( - col1 )
----

query I rowsort
SELECT DISTINCT 41 * + - 93 FROM tab2
----
-3813

query I rowsort
SELECT + col0 * - col0 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN col0 AND col2
----
-7569

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 19 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9835
SELECT DISTINCT - 72 DIV - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
8

skipif mysql # not compatible
query I rowsort label-9835
SELECT DISTINCT - 72 / - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT - MAX( ALL col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9836
SELECT - MAX ( ALL col2 ) FROM tab2
----
-58

query II rowsort
SELECT - ( - col0 ) + 8 AS col0, + col1 * + col1 FROM tab0
----
105
1
23
6561
95
441

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 + - - 32 col2 FROM tab1 AS cor0
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT DISTINCT MAX( DISTINCT + 6 ) * + 12 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-9839
SELECT DISTINCT MAX ( DISTINCT + 6 ) * + 12 FROM tab1 AS cor0
----
72

query I rowsort
SELECT ALL - - 61 + col0 AS col1 FROM tab0 AS cor0
----
148
158
76

query II rowsort
SELECT - col2 AS col2, ( - col0 ) * + col1 + + 49 * + col1 AS col1 FROM tab0 AS cor0
----
-10
-798
-47
2754
-99
-48

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + - 63 / col2 + + 13 BETWEEN NULL AND + ( 38 ) + col1
----

query I rowsort
SELECT + ( - - 21 ) AS col2 FROM tab2 AS cor0
----
21
21
21

query I rowsort
SELECT DISTINCT + col1 - col0 * + col1 AS col1 FROM tab0 AS cor0
----
-1134
-1806
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-9845
SELECT DISTINCT COUNT( DISTINCT + col1 ) + - 39, + COUNT( * ) col0 FROM tab1 AS cor0
----
-36
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9845
SELECT DISTINCT COUNT ( DISTINCT + col1 ) + - 39, + COUNT ( * ) col0 FROM tab1 AS cor0
----
-36
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9846
SELECT - ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9846
SELECT - ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col2 * - 16, 79 AS col2 FROM tab1
----
-1088
79
-1536
79
-944
79

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col1 <> ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE + 63 = NULL
----

query I rowsort
SELECT ALL + col1 * + - 4 * - col2 AS col1 FROM tab1
----
1180
12784
5376

onlyif mysql # aggregate syntax: 
query II rowsort label-9851
SELECT ALL + SUM( + 47 ) * + - COUNT( * ) * + - 78 * + 70, COUNT( * ) AS col0 FROM tab1
----
2309580
3

skipif mysql # not compatible
query II rowsort label-9851
SELECT ALL + SUM ( + 47 ) * + - COUNT ( * ) * + - 78 * + 70, COUNT ( * ) AS col0 FROM tab1
----
2309580
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9852
SELECT ALL - 43 * col1 DIV - col0 + col2 FROM tab1 AS cor0
----
107
61
90

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL - 43 * col1 / - col0 + col2 FROM tab1 AS cor0
----
107
61
90

query I rowsort
SELECT - col0 + + 43 AS col0 FROM tab1 cor0
----
-42
-48
-8

query I rowsort
SELECT ALL col2 + - col2 * - col1 AS col1 FROM tab0 AS cor0
----
198
220
3854

query I rowsort
SELECT DISTINCT col0 FROM tab1 cor0 WHERE col0 * + 82 = + 36 + + ( - col2 ) + + - 87 * 3
----

query I rowsort
SELECT + ( + + AVG ( DISTINCT 82 ) ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE 48 > + col2 + + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 25 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 24 IS NOT NULL
----

query I rowsort
SELECT - 90 * col0 AS col1 FROM tab1 AS cor0
----
-4590
-7650
-8190

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT ALL + + MIN( + 82 ) FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-9861
SELECT ALL + + MIN ( + 82 ) FROM tab2 AS cor0
----
82

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 25 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT + ( + - COUNT( - + 93 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9863
SELECT + ( + - COUNT ( - + 93 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT ALL + COUNT( * ) col1 FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9864
SELECT ALL + COUNT ( * ) col1 FROM tab1, tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT - 99 + + ( 2 ) * 24 FROM tab2, tab0 AS cor0
----
-51

query I rowsort
SELECT ALL 43 AS col2 FROM tab1
----
43
43
43

query I rowsort
SELECT ( + - 99 ) FROM tab1
----
-99
-99
-99

query I rowsort
SELECT DISTINCT - - col0 + - col2 AS col2 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9869
SELECT - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT DISTINCT - MIN( DISTINCT + - col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT - MIN ( DISTINCT + - col1 ) FROM tab1 AS cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab1 WHERE + 99 > + + col1
----
51
85
91

query II rowsort
SELECT DISTINCT col2 * - col2, col0 FROM tab2
----
-1600
64
-3364
75
-529
46

onlyif mysql # DIV for integer division: 
query II rowsort label-9873
SELECT col1 DIV - col0 AS col2, 35 FROM tab1
----
0
35
0
35
0
35

skipif mysql # not compatible
query II rowsort label-9873
SELECT col1 / - col0 AS col2, 35 FROM tab1
----
0
35
0
35
0
35

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # DIV for integer division: 
query I rowsort label-9875
SELECT 14 DIV col1 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9875
SELECT 14 / col1 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + + 85 + col1 AS col2 FROM tab0 AS cor0
----
-11
151
19

query I rowsort
SELECT DISTINCT 62 + + col1 * - - col2 + 33 FROM tab1 AS cor0
----
1439
3291
390

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 39 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 AS col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT DISTINCT COUNT( * ) + + - 42 AS col0 FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-9880
SELECT DISTINCT COUNT ( * ) + + - 42 AS col0 FROM tab2
----
-39

query I rowsort
SELECT - ( + ( + - col0 ) ) + - col0 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + 25 - col2 FROM tab1
----
-34
-43
-71

query I rowsort
SELECT col2 * - + col1 AS col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-9884
SELECT ALL + col2 DIV - 15 col1 FROM tab1
----
-3
-4
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9884
SELECT ALL + col2 / - 15 col1 FROM tab1
----
-3
-4
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT COUNT( + + col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9885
SELECT COUNT ( + + col1 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9886
SELECT col1 AS col1 FROM tab0 WHERE + CAST( + col2 AS SIGNED ) IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9886
SELECT col1 AS col1 FROM tab0 WHERE + CAST ( + col2 AS INTEGER ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT + col0 FROM tab0 cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT DISTINCT - ( 95 ) FROM tab1 AS cor0
----
-95

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 29 IS NOT NULL
----

query I rowsort
SELECT - 31 * - 87 FROM tab1 cor0
----
2697
2697
2697

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 + - col2 < + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - ( 85 ) AS col0, col2 * + 9 + - - col2 AS col1 FROM tab0 AS cor0
----
-85
100
-85
470
-85
990

query I rowsort
SELECT + - AVG ( DISTINCT + + col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT + col2 + + 25 - - col1 AS col2 FROM tab2 AS cor0
----
142
150
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 8 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT + - 65 + MIN( col2 ) FROM tab2 cor0
----
-42

skipif mysql # not compatible
query I rowsort label-9897
SELECT + - 65 + MIN ( col2 ) FROM tab2 cor0
----
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-9898
SELECT col1 DIV + + ( 99 ) + + + col1 AS col1, - 32 FROM tab0 AS cor0
----
1
-32
21
-32
81
-32

skipif mysql # not compatible
query II rowsort label-9898
SELECT col1 / + + ( 99 ) + + + col1 AS col1, - 32 FROM tab0 AS cor0
----
1
-32
21
-32
81
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-9899
SELECT + MIN( + col1 ) * - 26, - MIN( DISTINCT - col1 ) AS col0 FROM tab1
----
-130
47

skipif mysql # not compatible
query II rowsort label-9899
SELECT + MIN ( + col1 ) * - 26, - MIN ( DISTINCT - col1 ) AS col0 FROM tab1
----
-130
47

query I rowsort
SELECT col2 * + 93 FROM tab1
----
5487
6324
8928

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 <> NULL AND NULL IS NOT NULL
----

query II rowsort
SELECT col0, 66 AS col0 FROM tab1 WHERE NOT - + col0 / - col2 <= - 60
----
51
66
85
66
91
66

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9904
SELECT + col1 DIV + - col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9904
SELECT + col1 / + - col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT + + 9 AS col0 FROM tab1 WHERE NOT + 77 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col0 FROM tab0
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT MIN( - col1 ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-9907
SELECT MIN ( - col1 ) AS col0 FROM tab2
----
-77

query I rowsort
SELECT DISTINCT + + 66 FROM tab1 WHERE - col2 IS NULL
----

query I rowsort
SELECT + 13 * + 54 + + + col1 - col1 * + col1 FROM tab1 WHERE + 73 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + + 19 FROM tab0
----
106
116
34

query I rowsort
SELECT ALL - 55 * - - col1 FROM tab0
----
-1155
-4455
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT DISTINCT - - 47 * - COUNT( * ) AS col2 FROM tab2 cor0
----
-141

skipif mysql # not compatible
query I rowsort label-9912
SELECT DISTINCT - - 47 * - COUNT ( * ) AS col2 FROM tab2 cor0
----
-141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab2 AS cor0 WHERE ( NOT - col1 / - col0 >= - + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - + 26 col0 FROM tab1 AS cor0
----
-122
-85
-94

query I rowsort
SELECT 14 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, + col2 col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query II rowsort
SELECT - col2, + col1 AS col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

query I rowsort
SELECT + col0 + + - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9919
SELECT ALL - MAX( + + col0 ) AS col0 FROM tab1 WHERE NOT + CAST( 20 AS SIGNED ) * + + col1 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL - MAX ( + + col0 ) AS col0 FROM tab1 WHERE NOT + CAST ( 20 AS INTEGER ) * + + col1 < NULL
----
NULL

query I rowsort
SELECT ALL - col2 * 32 FROM tab0
----
-1504
-3168
-320

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT - 36 + + + MIN( col0 ) AS col2 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-9921
SELECT - 36 + + + MIN ( col0 ) AS col2 FROM tab1
----
15

query I rowsort
SELECT ALL col0 * + ( + - col0 ) + + + 1 AS col0 FROM tab1
----
-2600
-7224
-8280

query II rowsort
SELECT col0 + - 76 * - 91 * - 56 AS col2, col1 FROM tab0
----
-387199
1
-387209
21
-387281
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT ALL COUNT( * ) + - 47 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL COUNT ( * ) + - 47 FROM tab0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT DISTINCT 2 * + 31 * - 87 + + 71 + COUNT( * ) FROM tab2 cor0
----
-5320

skipif mysql # not compatible
query I rowsort label-9925
SELECT DISTINCT 2 * + 31 * - 87 + + 71 + COUNT ( * ) FROM tab2 cor0
----
-5320

query I rowsort
SELECT col1 * col1 + - col1 AS col2 FROM tab1 cor0
----
182
20
2162

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 = + 43
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 64 + + - col1 col1 FROM tab2 AS cor0
----
-13
-3
13

onlyif mysql # DIV for integer division: 
query I rowsort label-9930
SELECT - 64 DIV - + col1 AS col1 FROM tab1 AS cor0
----
1
12
4

skipif mysql # not compatible
query I rowsort label-9930
SELECT - 64 / - + col1 AS col1 FROM tab1 AS cor0
----
1
12
4

query I rowsort
SELECT DISTINCT ( - 71 ) / - col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( + 78 + col2 + + col1, 67, + ( - 32 ) * - - col2 * - 45 * + + col2, + 91 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT DISTINCT 44 + - COUNT( * ) FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-9932
SELECT DISTINCT 44 + - COUNT ( * ) FROM tab1 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT DISTINCT 48 + + - COUNT( * ) + + MAX( DISTINCT + col2 ) + + 1 AS col0 FROM tab0 AS cor0
----
145

skipif mysql # not compatible
query I rowsort label-9933
SELECT DISTINCT 48 + + - COUNT ( * ) + + MAX ( DISTINCT + col2 ) + + 1 AS col0 FROM tab0 AS cor0
----
145

query II rowsort
SELECT - - col1, col2 AS col0 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT ALL + ( + COUNT( * ) ) * - 19 - + - 41 FROM tab0, tab1 cor0
----
-130

skipif mysql # not compatible
query I rowsort label-9935
SELECT ALL + ( + COUNT ( * ) ) * - 19 - + - 41 FROM tab0, tab1 cor0
----
-130

query I rowsort
SELECT 54 FROM tab2 WHERE ( - 74 ) <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9938
SELECT DISTINCT + col0 DIV - col2 FROM tab0
----
-8
0

skipif mysql # not compatible
query I rowsort label-9938
SELECT DISTINCT + col0 / - col2 FROM tab0
----
-8
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9939
SELECT ALL - 22 DIV + + 52 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9939
SELECT ALL - 22 / + + 52 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT - 4 * + COUNT( * ) FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-9940
SELECT - 4 * + COUNT ( * ) FROM tab1 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT ALL + - MIN( DISTINCT + col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL + - MIN ( DISTINCT + col0 ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT ALL + 98 AS col0 FROM tab2 cor0 WHERE NOT col2 IN ( + - col1, + 25 )
----
98
98
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9943
SELECT * FROM tab1 WHERE NOT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) NOT BETWEEN col0 * - + col2 - - col0 + - - ( + - ( - + col1 ) ) - col1 * - col2 * - col2 - + 19 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9943
SELECT * FROM tab1 WHERE NOT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) NOT BETWEEN col0 * - + col2 - - col0 + - - ( + - ( - + col1 ) ) - col1 * - col2 * - col2 - + 19 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT - COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9944
SELECT - COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9945
SELECT ALL COUNT( * ) DIV 52 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL COUNT ( * ) / 52 AS col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9946
SELECT - + col0, col1 DIV + col1 AS col0 FROM tab0 AS cor0
----
-15
1
-87
1
-97
1

skipif mysql # not compatible
query II rowsort label-9946
SELECT - + col0, col1 / + col1 AS col0 FROM tab0 AS cor0
----
-15
1
-87
1
-97
1

query I rowsort
SELECT + - 23 FROM tab1 cor0
----
-23
-23
-23

query I rowsort
SELECT ALL + - col0 * col2 + + + 34 * col1 FROM tab0 AS cor0
----
-156
-9569
2049

query III rowsort
SELECT + - 39 AS col1, - col0 * ( - 8 ) AS col2, + 72 FROM tab1 AS cor0
----
9 values hashing to 6d87f465f4a167ca16b36d6fd8554c82

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - col2 - - - 21 <> - col1 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT DISTINCT + COUNT( * ) * + ( - + 44 ) FROM tab2 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-9951
SELECT DISTINCT + COUNT ( * ) * + ( - + 44 ) FROM tab2 AS cor0
----
-132

query II rowsort
SELECT - col2, - col0 * + 5 AS col2 FROM tab0 AS cor0
----
-10
-435
-47
-75
-99
-485

query I rowsort
SELECT 47 * - col1 + + col1 FROM tab0 WHERE NULL IS NULL
----
-3726
-46
-966

onlyif mysql # DIV for integer division: 
query I rowsort label-9954
SELECT ALL - ( + col1 ) + + col0 + col0 DIV + + 14 col1 FROM tab1
----
40
50
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9954
SELECT ALL - ( + col1 ) + + col0 + col0 / + + 14 col1 FROM tab1
----
40
50
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT DISTINCT + SUM( + 98 ) + - + 91 FROM tab0
----
203

skipif mysql # not compatible
query I rowsort label-9955
SELECT DISTINCT + SUM ( + 98 ) + - + 91 FROM tab0
----
203

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT ALL + - SUM( 94 ) FROM tab1 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL + - SUM ( 94 ) FROM tab1 AS cor0
----
-282

query I rowsort
SELECT DISTINCT + 56 + - + col1 AS col1 FROM tab0 AS cor0
----
-25
35
55

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9959
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 - + 48 * + CAST( NULL AS SIGNED ) * 72 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9959
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 - + 48 * + CAST ( NULL AS INTEGER ) * 72 IS NOT NULL
----

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE - col1 * + + 28 NOT BETWEEN 15 AND + + 7
----
-23
-40
-58

query I rowsort
SELECT ALL - 82 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query II rowsort
SELECT DISTINCT col2 AS col0, col2 AS col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT DISTINCT - col1 - + - 6 FROM tab0 AS cor0 WHERE NOT - 55 IS NULL
----
-15
-75
5

query I rowsort
SELECT ALL + 7 + - col2 FROM tab0 AS cor0
----
-3
-40
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9965
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT - - 28 * - - col0 - + col2 + - col2 * - col1 AS col2, col0 AS col1 FROM tab1 cor0
----
2616
85
2676
51
5676
91

query II rowsort
SELECT ALL - + 17 AS col1, + col0 + + ( - col0 ) + col1 AS col2 FROM tab1 cor0
----
-17
14
-17
47
-17
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 <> - + col0 + - - ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col1, col1 col1 FROM tab2
----
23
51
40
77
58
67

query I rowsort
SELECT DISTINCT + col2 * + 86 * + 10 AS col1 FROM tab0
----
40420
85140
8600

onlyif mysql # aggregate syntax: 
query II rowsort label-9971
SELECT - COUNT( * ) col0, SUM( ALL - - col0 ) FROM tab0
----
-3
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9971
SELECT - COUNT ( * ) col0, SUM ( ALL - - col0 ) FROM tab0
----
-3
199

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - 97 * col2 * col1 FROM tab0 cor0
----
20370
369279
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-9974
SELECT DISTINCT + col1 DIV 75 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9974
SELECT DISTINCT + col1 / 75 FROM tab2 AS cor0
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 + - col0 + - - col1 / + ( col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9976
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL - 77 + + - col2 + - col0 FROM tab1
----
-221
-224
-236

query I rowsort
SELECT ALL 71 AS col2 FROM tab2 WHERE + + 2 * + 52 IS NOT NULL
----
71
71
71

query I rowsort
SELECT DISTINCT 80 * - col2 * + - col1 + - col2 AS col1 FROM tab0
----
16790
304513
7821

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 86 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 > NULL
----

query I rowsort
SELECT ALL - 80 + + - col0 * col0 AS col1 FROM tab2 cor0
----
-2196
-4176
-5705

onlyif mysql # DIV for integer division: 
query I rowsort label-9983
SELECT ALL + col0 DIV - 88 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL + col0 / - 88 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT + - col0 + 93 AS col0 FROM tab1 AS cor0
----
2
42
8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 > - + col2
----
15
81
47
97
1
99

query II rowsort
SELECT ALL - col0 AS col1, col1 + col2 FROM tab2
----
-46
74
-64
117
-75
125

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9987
SELECT ALL + col0, CAST( NULL AS SIGNED ) / + 47 * + col2 + + 86 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-9987
SELECT ALL + col0, CAST ( NULL AS INTEGER ) / + 47 * + col2 + + 86 FROM tab1
----
51
NULL
85
NULL
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT DISTINCT + MIN( ALL col2 ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9988
SELECT DISTINCT + MIN ( ALL col2 ) AS col2 FROM tab0
----
10

query III rowsort
SELECT * FROM tab2 WHERE NULL > + col1
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) BETWEEN NULL AND - col2 + col0
----

query II rowsort
SELECT + 70 * + + 43 + + 73 AS col1, - 8 AS col1 FROM tab0 AS cor0
----
3083
-8
3083
-8
3083
-8

query I rowsort
SELECT ALL - col0 - + 76 AS col1 FROM tab2 AS cor0
----
-122
-140
-151

query I rowsort
SELECT - col1 + - 78 AS col2 FROM tab2 AS cor0
----
-129
-145
-155

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE ( NULL ) < 18
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9995
SELECT ALL + col2 * - col0 + col0 DIV + col2 FROM tab0
----
-705
-862
-9603

skipif mysql # not compatible
query I rowsort label-9995
SELECT ALL + col2 * - col0 + col0 / + col2 FROM tab0
----
-705
-862
-9603

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 NOT BETWEEN ( + 10 + + col2 ) AND ( + col2 )
----

query I rowsort
SELECT + 30 - - col2 FROM tab0
----
129
40
77

query I rowsort
SELECT DISTINCT - ( 36 ) + + col0 FROM tab2
----
10
28
39

query I rowsort
SELECT - 30 FROM tab1 WHERE NOT ( + col0 ) NOT IN ( col1 / col2 )
----

