sqllogictest
Artifact Content
Not logged in

Artifact 757d55daf8515aa53255c8d042bc1bc1ebdaa3fa:


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 ro